() {
public IsolationLevelEnum findValueByNumber(int number) {
return IsolationLevelEnum.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return context.ContextOuterClass.getDescriptor().getEnumTypes().get(7);
}
private static final IsolationLevelEnum[] VALUES = values();
public static IsolationLevelEnum valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private IsolationLevelEnum(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:context.IsolationLevelEnum)
}
public interface EmptyOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.Empty)
com.google.protobuf.MessageOrBuilder {
}
/**
*
* ----- Generic -------------------------------------------------------------------------------------------------------
*
*
* Protobuf type {@code context.Empty}
*/
public static final class Empty extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.Empty)
EmptyOrBuilder {
private static final long serialVersionUID = 0L;
// Use Empty.newBuilder() to construct.
private Empty(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Empty() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Empty();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Empty(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_Empty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_Empty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.Empty.class, context.ContextOuterClass.Empty.Builder.class);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.Empty)) {
return super.equals(obj);
}
context.ContextOuterClass.Empty other = (context.ContextOuterClass.Empty) obj;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.Empty parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Empty parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Empty parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Empty parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Empty parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Empty parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Empty parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Empty parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.Empty parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Empty parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.Empty parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Empty parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.Empty prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ----- Generic -------------------------------------------------------------------------------------------------------
*
*
* Protobuf type {@code context.Empty}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.Empty)
context.ContextOuterClass.EmptyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_Empty_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_Empty_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.Empty.class, context.ContextOuterClass.Empty.Builder.class);
}
// Construct using context.ContextOuterClass.Empty.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_Empty_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.Empty getDefaultInstanceForType() {
return context.ContextOuterClass.Empty.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.Empty build() {
context.ContextOuterClass.Empty result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.Empty buildPartial() {
context.ContextOuterClass.Empty result = new context.ContextOuterClass.Empty(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.Empty) {
return mergeFrom((context.ContextOuterClass.Empty)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.Empty other) {
if (other == context.ContextOuterClass.Empty.getDefaultInstance()) return this;
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.Empty parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.Empty) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.Empty)
}
// @@protoc_insertion_point(class_scope:context.Empty)
private static final context.ContextOuterClass.Empty DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.Empty();
}
public static context.ContextOuterClass.Empty getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Empty parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Empty(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.Empty getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UuidOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.Uuid)
com.google.protobuf.MessageOrBuilder {
/**
* string uuid = 1;
* @return The uuid.
*/
java.lang.String getUuid();
/**
* string uuid = 1;
* @return The bytes for uuid.
*/
com.google.protobuf.ByteString
getUuidBytes();
}
/**
* Protobuf type {@code context.Uuid}
*/
public static final class Uuid extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.Uuid)
UuidOrBuilder {
private static final long serialVersionUID = 0L;
// Use Uuid.newBuilder() to construct.
private Uuid(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Uuid() {
uuid_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Uuid();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Uuid(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
uuid_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_Uuid_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_Uuid_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.Uuid.class, context.ContextOuterClass.Uuid.Builder.class);
}
public static final int UUID_FIELD_NUMBER = 1;
private volatile java.lang.Object uuid_;
/**
* string uuid = 1;
* @return The uuid.
*/
@java.lang.Override
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uuid_ = s;
return s;
}
}
/**
* string uuid = 1;
* @return The bytes for uuid.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUuidBytes() {
java.lang.Object ref = uuid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getUuidBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getUuidBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.Uuid)) {
return super.equals(obj);
}
context.ContextOuterClass.Uuid other = (context.ContextOuterClass.Uuid) obj;
if (!getUuid()
.equals(other.getUuid())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + UUID_FIELD_NUMBER;
hash = (53 * hash) + getUuid().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.Uuid parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Uuid parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Uuid parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Uuid parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Uuid parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Uuid parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Uuid parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Uuid parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.Uuid parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Uuid parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.Uuid parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Uuid parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.Uuid prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.Uuid}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.Uuid)
context.ContextOuterClass.UuidOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_Uuid_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_Uuid_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.Uuid.class, context.ContextOuterClass.Uuid.Builder.class);
}
// Construct using context.ContextOuterClass.Uuid.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
uuid_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_Uuid_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.Uuid getDefaultInstanceForType() {
return context.ContextOuterClass.Uuid.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.Uuid build() {
context.ContextOuterClass.Uuid result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.Uuid buildPartial() {
context.ContextOuterClass.Uuid result = new context.ContextOuterClass.Uuid(this);
result.uuid_ = uuid_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.Uuid) {
return mergeFrom((context.ContextOuterClass.Uuid)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.Uuid other) {
if (other == context.ContextOuterClass.Uuid.getDefaultInstance()) return this;
if (!other.getUuid().isEmpty()) {
uuid_ = other.uuid_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.Uuid parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.Uuid) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object uuid_ = "";
/**
* string uuid = 1;
* @return The uuid.
*/
public java.lang.String getUuid() {
java.lang.Object ref = uuid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uuid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string uuid = 1;
* @return The bytes for uuid.
*/
public com.google.protobuf.ByteString
getUuidBytes() {
java.lang.Object ref = uuid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uuid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string uuid = 1;
* @param value The uuid to set.
* @return This builder for chaining.
*/
public Builder setUuid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uuid_ = value;
onChanged();
return this;
}
/**
* string uuid = 1;
* @return This builder for chaining.
*/
public Builder clearUuid() {
uuid_ = getDefaultInstance().getUuid();
onChanged();
return this;
}
/**
* string uuid = 1;
* @param value The bytes for uuid to set.
* @return This builder for chaining.
*/
public Builder setUuidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uuid_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.Uuid)
}
// @@protoc_insertion_point(class_scope:context.Uuid)
private static final context.ContextOuterClass.Uuid DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.Uuid();
}
public static context.ContextOuterClass.Uuid getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Uuid parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Uuid(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.Uuid getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TimestampOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.Timestamp)
com.google.protobuf.MessageOrBuilder {
/**
* double timestamp = 1;
* @return The timestamp.
*/
double getTimestamp();
}
/**
* Protobuf type {@code context.Timestamp}
*/
public static final class Timestamp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.Timestamp)
TimestampOrBuilder {
private static final long serialVersionUID = 0L;
// Use Timestamp.newBuilder() to construct.
private Timestamp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Timestamp() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Timestamp();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Timestamp(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 9: {
timestamp_ = input.readDouble();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_Timestamp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_Timestamp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.Timestamp.class, context.ContextOuterClass.Timestamp.Builder.class);
}
public static final int TIMESTAMP_FIELD_NUMBER = 1;
private double timestamp_;
/**
* double timestamp = 1;
* @return The timestamp.
*/
@java.lang.Override
public double getTimestamp() {
return timestamp_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (timestamp_ != 0D) {
output.writeDouble(1, timestamp_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (timestamp_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, timestamp_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.Timestamp)) {
return super.equals(obj);
}
context.ContextOuterClass.Timestamp other = (context.ContextOuterClass.Timestamp) obj;
if (java.lang.Double.doubleToLongBits(getTimestamp())
!= java.lang.Double.doubleToLongBits(
other.getTimestamp())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getTimestamp()));
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.Timestamp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Timestamp parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Timestamp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Timestamp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Timestamp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Timestamp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Timestamp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Timestamp parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.Timestamp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Timestamp parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.Timestamp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Timestamp parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.Timestamp prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.Timestamp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.Timestamp)
context.ContextOuterClass.TimestampOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_Timestamp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_Timestamp_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.Timestamp.class, context.ContextOuterClass.Timestamp.Builder.class);
}
// Construct using context.ContextOuterClass.Timestamp.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
timestamp_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_Timestamp_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.Timestamp getDefaultInstanceForType() {
return context.ContextOuterClass.Timestamp.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.Timestamp build() {
context.ContextOuterClass.Timestamp result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.Timestamp buildPartial() {
context.ContextOuterClass.Timestamp result = new context.ContextOuterClass.Timestamp(this);
result.timestamp_ = timestamp_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.Timestamp) {
return mergeFrom((context.ContextOuterClass.Timestamp)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.Timestamp other) {
if (other == context.ContextOuterClass.Timestamp.getDefaultInstance()) return this;
if (other.getTimestamp() != 0D) {
setTimestamp(other.getTimestamp());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.Timestamp parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.Timestamp) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private double timestamp_ ;
/**
* double timestamp = 1;
* @return The timestamp.
*/
@java.lang.Override
public double getTimestamp() {
return timestamp_;
}
/**
* double timestamp = 1;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(double value) {
timestamp_ = value;
onChanged();
return this;
}
/**
* double timestamp = 1;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
timestamp_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.Timestamp)
}
// @@protoc_insertion_point(class_scope:context.Timestamp)
private static final context.ContextOuterClass.Timestamp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.Timestamp();
}
public static context.ContextOuterClass.Timestamp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Timestamp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Timestamp(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.Timestamp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EventOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.Event)
com.google.protobuf.MessageOrBuilder {
/**
* .context.Timestamp timestamp = 1;
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
* .context.Timestamp timestamp = 1;
* @return The timestamp.
*/
context.ContextOuterClass.Timestamp getTimestamp();
/**
* .context.Timestamp timestamp = 1;
*/
context.ContextOuterClass.TimestampOrBuilder getTimestampOrBuilder();
/**
* .context.EventTypeEnum event_type = 2;
* @return The enum numeric value on the wire for eventType.
*/
int getEventTypeValue();
/**
* .context.EventTypeEnum event_type = 2;
* @return The eventType.
*/
context.ContextOuterClass.EventTypeEnum getEventType();
}
/**
* Protobuf type {@code context.Event}
*/
public static final class Event extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.Event)
EventOrBuilder {
private static final long serialVersionUID = 0L;
// Use Event.newBuilder() to construct.
private Event(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Event() {
eventType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Event();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Event(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
context.ContextOuterClass.Timestamp.Builder subBuilder = null;
if (timestamp_ != null) {
subBuilder = timestamp_.toBuilder();
}
timestamp_ = input.readMessage(context.ContextOuterClass.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timestamp_);
timestamp_ = subBuilder.buildPartial();
}
break;
}
case 16: {
int rawValue = input.readEnum();
eventType_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_Event_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_Event_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.Event.class, context.ContextOuterClass.Event.Builder.class);
}
public static final int TIMESTAMP_FIELD_NUMBER = 1;
private context.ContextOuterClass.Timestamp timestamp_;
/**
* .context.Timestamp timestamp = 1;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return timestamp_ != null;
}
/**
* .context.Timestamp timestamp = 1;
* @return The timestamp.
*/
@java.lang.Override
public context.ContextOuterClass.Timestamp getTimestamp() {
return timestamp_ == null ? context.ContextOuterClass.Timestamp.getDefaultInstance() : timestamp_;
}
/**
* .context.Timestamp timestamp = 1;
*/
@java.lang.Override
public context.ContextOuterClass.TimestampOrBuilder getTimestampOrBuilder() {
return getTimestamp();
}
public static final int EVENT_TYPE_FIELD_NUMBER = 2;
private int eventType_;
/**
* .context.EventTypeEnum event_type = 2;
* @return The enum numeric value on the wire for eventType.
*/
@java.lang.Override public int getEventTypeValue() {
return eventType_;
}
/**
* .context.EventTypeEnum event_type = 2;
* @return The eventType.
*/
@java.lang.Override public context.ContextOuterClass.EventTypeEnum getEventType() {
@SuppressWarnings("deprecation")
context.ContextOuterClass.EventTypeEnum result = context.ContextOuterClass.EventTypeEnum.valueOf(eventType_);
return result == null ? context.ContextOuterClass.EventTypeEnum.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (timestamp_ != null) {
output.writeMessage(1, getTimestamp());
}
if (eventType_ != context.ContextOuterClass.EventTypeEnum.EVENTTYPE_UNDEFINED.getNumber()) {
output.writeEnum(2, eventType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (timestamp_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTimestamp());
}
if (eventType_ != context.ContextOuterClass.EventTypeEnum.EVENTTYPE_UNDEFINED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, eventType_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.Event)) {
return super.equals(obj);
}
context.ContextOuterClass.Event other = (context.ContextOuterClass.Event) obj;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp()
.equals(other.getTimestamp())) return false;
}
if (eventType_ != other.eventType_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + eventType_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.Event parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Event parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Event parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Event parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Event parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Event parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Event parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Event parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.Event parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Event parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.Event parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Event parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.Event prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.Event}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.Event)
context.ContextOuterClass.EventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_Event_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_Event_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.Event.class, context.ContextOuterClass.Event.Builder.class);
}
// Construct using context.ContextOuterClass.Event.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (timestampBuilder_ == null) {
timestamp_ = null;
} else {
timestamp_ = null;
timestampBuilder_ = null;
}
eventType_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_Event_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.Event getDefaultInstanceForType() {
return context.ContextOuterClass.Event.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.Event build() {
context.ContextOuterClass.Event result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.Event buildPartial() {
context.ContextOuterClass.Event result = new context.ContextOuterClass.Event(this);
if (timestampBuilder_ == null) {
result.timestamp_ = timestamp_;
} else {
result.timestamp_ = timestampBuilder_.build();
}
result.eventType_ = eventType_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.Event) {
return mergeFrom((context.ContextOuterClass.Event)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.Event other) {
if (other == context.ContextOuterClass.Event.getDefaultInstance()) return this;
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
if (other.eventType_ != 0) {
setEventTypeValue(other.getEventTypeValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.Event parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.Event) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private context.ContextOuterClass.Timestamp timestamp_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Timestamp, context.ContextOuterClass.Timestamp.Builder, context.ContextOuterClass.TimestampOrBuilder> timestampBuilder_;
/**
* .context.Timestamp timestamp = 1;
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
return timestampBuilder_ != null || timestamp_ != null;
}
/**
* .context.Timestamp timestamp = 1;
* @return The timestamp.
*/
public context.ContextOuterClass.Timestamp getTimestamp() {
if (timestampBuilder_ == null) {
return timestamp_ == null ? context.ContextOuterClass.Timestamp.getDefaultInstance() : timestamp_;
} else {
return timestampBuilder_.getMessage();
}
}
/**
* .context.Timestamp timestamp = 1;
*/
public Builder setTimestamp(context.ContextOuterClass.Timestamp value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timestamp_ = value;
onChanged();
} else {
timestampBuilder_.setMessage(value);
}
return this;
}
/**
* .context.Timestamp timestamp = 1;
*/
public Builder setTimestamp(
context.ContextOuterClass.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
onChanged();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.Timestamp timestamp = 1;
*/
public Builder mergeTimestamp(context.ContextOuterClass.Timestamp value) {
if (timestampBuilder_ == null) {
if (timestamp_ != null) {
timestamp_ =
context.ContextOuterClass.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial();
} else {
timestamp_ = value;
}
onChanged();
} else {
timestampBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.Timestamp timestamp = 1;
*/
public Builder clearTimestamp() {
if (timestampBuilder_ == null) {
timestamp_ = null;
onChanged();
} else {
timestamp_ = null;
timestampBuilder_ = null;
}
return this;
}
/**
* .context.Timestamp timestamp = 1;
*/
public context.ContextOuterClass.Timestamp.Builder getTimestampBuilder() {
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
/**
* .context.Timestamp timestamp = 1;
*/
public context.ContextOuterClass.TimestampOrBuilder getTimestampOrBuilder() {
if (timestampBuilder_ != null) {
return timestampBuilder_.getMessageOrBuilder();
} else {
return timestamp_ == null ?
context.ContextOuterClass.Timestamp.getDefaultInstance() : timestamp_;
}
}
/**
* .context.Timestamp timestamp = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Timestamp, context.ContextOuterClass.Timestamp.Builder, context.ContextOuterClass.TimestampOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Timestamp, context.ContextOuterClass.Timestamp.Builder, context.ContextOuterClass.TimestampOrBuilder>(
getTimestamp(),
getParentForChildren(),
isClean());
timestamp_ = null;
}
return timestampBuilder_;
}
private int eventType_ = 0;
/**
* .context.EventTypeEnum event_type = 2;
* @return The enum numeric value on the wire for eventType.
*/
@java.lang.Override public int getEventTypeValue() {
return eventType_;
}
/**
* .context.EventTypeEnum event_type = 2;
* @param value The enum numeric value on the wire for eventType to set.
* @return This builder for chaining.
*/
public Builder setEventTypeValue(int value) {
eventType_ = value;
onChanged();
return this;
}
/**
* .context.EventTypeEnum event_type = 2;
* @return The eventType.
*/
@java.lang.Override
public context.ContextOuterClass.EventTypeEnum getEventType() {
@SuppressWarnings("deprecation")
context.ContextOuterClass.EventTypeEnum result = context.ContextOuterClass.EventTypeEnum.valueOf(eventType_);
return result == null ? context.ContextOuterClass.EventTypeEnum.UNRECOGNIZED : result;
}
/**
* .context.EventTypeEnum event_type = 2;
* @param value The eventType to set.
* @return This builder for chaining.
*/
public Builder setEventType(context.ContextOuterClass.EventTypeEnum value) {
if (value == null) {
throw new NullPointerException();
}
eventType_ = value.getNumber();
onChanged();
return this;
}
/**
* .context.EventTypeEnum event_type = 2;
* @return This builder for chaining.
*/
public Builder clearEventType() {
eventType_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.Event)
}
// @@protoc_insertion_point(class_scope:context.Event)
private static final context.ContextOuterClass.Event DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.Event();
}
public static context.ContextOuterClass.Event getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Event parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Event(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.Event getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContextIdOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.ContextId)
com.google.protobuf.MessageOrBuilder {
/**
* .context.Uuid context_uuid = 1;
* @return Whether the contextUuid field is set.
*/
boolean hasContextUuid();
/**
* .context.Uuid context_uuid = 1;
* @return The contextUuid.
*/
context.ContextOuterClass.Uuid getContextUuid();
/**
* .context.Uuid context_uuid = 1;
*/
context.ContextOuterClass.UuidOrBuilder getContextUuidOrBuilder();
}
/**
*
* ----- Context -------------------------------------------------------------------------------------------------------
*
*
* Protobuf type {@code context.ContextId}
*/
public static final class ContextId extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.ContextId)
ContextIdOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContextId.newBuilder() to construct.
private ContextId(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContextId() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContextId();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContextId(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
context.ContextOuterClass.Uuid.Builder subBuilder = null;
if (contextUuid_ != null) {
subBuilder = contextUuid_.toBuilder();
}
contextUuid_ = input.readMessage(context.ContextOuterClass.Uuid.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(contextUuid_);
contextUuid_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_ContextId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_ContextId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.ContextId.class, context.ContextOuterClass.ContextId.Builder.class);
}
public static final int CONTEXT_UUID_FIELD_NUMBER = 1;
private context.ContextOuterClass.Uuid contextUuid_;
/**
* .context.Uuid context_uuid = 1;
* @return Whether the contextUuid field is set.
*/
@java.lang.Override
public boolean hasContextUuid() {
return contextUuid_ != null;
}
/**
* .context.Uuid context_uuid = 1;
* @return The contextUuid.
*/
@java.lang.Override
public context.ContextOuterClass.Uuid getContextUuid() {
return contextUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : contextUuid_;
}
/**
* .context.Uuid context_uuid = 1;
*/
@java.lang.Override
public context.ContextOuterClass.UuidOrBuilder getContextUuidOrBuilder() {
return getContextUuid();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (contextUuid_ != null) {
output.writeMessage(1, getContextUuid());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (contextUuid_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getContextUuid());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.ContextId)) {
return super.equals(obj);
}
context.ContextOuterClass.ContextId other = (context.ContextOuterClass.ContextId) obj;
if (hasContextUuid() != other.hasContextUuid()) return false;
if (hasContextUuid()) {
if (!getContextUuid()
.equals(other.getContextUuid())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasContextUuid()) {
hash = (37 * hash) + CONTEXT_UUID_FIELD_NUMBER;
hash = (53 * hash) + getContextUuid().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.ContextId parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.ContextId parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.ContextId parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.ContextId parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.ContextId parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.ContextId parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.ContextId parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.ContextId parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.ContextId parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.ContextId parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.ContextId parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.ContextId parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.ContextId prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ----- Context -------------------------------------------------------------------------------------------------------
*
*
* Protobuf type {@code context.ContextId}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.ContextId)
context.ContextOuterClass.ContextIdOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_ContextId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_ContextId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.ContextId.class, context.ContextOuterClass.ContextId.Builder.class);
}
// Construct using context.ContextOuterClass.ContextId.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (contextUuidBuilder_ == null) {
contextUuid_ = null;
} else {
contextUuid_ = null;
contextUuidBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_ContextId_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.ContextId getDefaultInstanceForType() {
return context.ContextOuterClass.ContextId.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.ContextId build() {
context.ContextOuterClass.ContextId result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.ContextId buildPartial() {
context.ContextOuterClass.ContextId result = new context.ContextOuterClass.ContextId(this);
if (contextUuidBuilder_ == null) {
result.contextUuid_ = contextUuid_;
} else {
result.contextUuid_ = contextUuidBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.ContextId) {
return mergeFrom((context.ContextOuterClass.ContextId)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.ContextId other) {
if (other == context.ContextOuterClass.ContextId.getDefaultInstance()) return this;
if (other.hasContextUuid()) {
mergeContextUuid(other.getContextUuid());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.ContextId parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.ContextId) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private context.ContextOuterClass.Uuid contextUuid_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder> contextUuidBuilder_;
/**
* .context.Uuid context_uuid = 1;
* @return Whether the contextUuid field is set.
*/
public boolean hasContextUuid() {
return contextUuidBuilder_ != null || contextUuid_ != null;
}
/**
* .context.Uuid context_uuid = 1;
* @return The contextUuid.
*/
public context.ContextOuterClass.Uuid getContextUuid() {
if (contextUuidBuilder_ == null) {
return contextUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : contextUuid_;
} else {
return contextUuidBuilder_.getMessage();
}
}
/**
* .context.Uuid context_uuid = 1;
*/
public Builder setContextUuid(context.ContextOuterClass.Uuid value) {
if (contextUuidBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contextUuid_ = value;
onChanged();
} else {
contextUuidBuilder_.setMessage(value);
}
return this;
}
/**
* .context.Uuid context_uuid = 1;
*/
public Builder setContextUuid(
context.ContextOuterClass.Uuid.Builder builderForValue) {
if (contextUuidBuilder_ == null) {
contextUuid_ = builderForValue.build();
onChanged();
} else {
contextUuidBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.Uuid context_uuid = 1;
*/
public Builder mergeContextUuid(context.ContextOuterClass.Uuid value) {
if (contextUuidBuilder_ == null) {
if (contextUuid_ != null) {
contextUuid_ =
context.ContextOuterClass.Uuid.newBuilder(contextUuid_).mergeFrom(value).buildPartial();
} else {
contextUuid_ = value;
}
onChanged();
} else {
contextUuidBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.Uuid context_uuid = 1;
*/
public Builder clearContextUuid() {
if (contextUuidBuilder_ == null) {
contextUuid_ = null;
onChanged();
} else {
contextUuid_ = null;
contextUuidBuilder_ = null;
}
return this;
}
/**
* .context.Uuid context_uuid = 1;
*/
public context.ContextOuterClass.Uuid.Builder getContextUuidBuilder() {
onChanged();
return getContextUuidFieldBuilder().getBuilder();
}
/**
* .context.Uuid context_uuid = 1;
*/
public context.ContextOuterClass.UuidOrBuilder getContextUuidOrBuilder() {
if (contextUuidBuilder_ != null) {
return contextUuidBuilder_.getMessageOrBuilder();
} else {
return contextUuid_ == null ?
context.ContextOuterClass.Uuid.getDefaultInstance() : contextUuid_;
}
}
/**
* .context.Uuid context_uuid = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder>
getContextUuidFieldBuilder() {
if (contextUuidBuilder_ == null) {
contextUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder>(
getContextUuid(),
getParentForChildren(),
isClean());
contextUuid_ = null;
}
return contextUuidBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.ContextId)
}
// @@protoc_insertion_point(class_scope:context.ContextId)
private static final context.ContextOuterClass.ContextId DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.ContextId();
}
public static context.ContextOuterClass.ContextId getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ContextId parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContextId(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.ContextId getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContextOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.Context)
com.google.protobuf.MessageOrBuilder {
/**
* .context.ContextId context_id = 1;
* @return Whether the contextId field is set.
*/
boolean hasContextId();
/**
* .context.ContextId context_id = 1;
* @return The contextId.
*/
context.ContextOuterClass.ContextId getContextId();
/**
* .context.ContextId context_id = 1;
*/
context.ContextOuterClass.ContextIdOrBuilder getContextIdOrBuilder();
/**
* repeated .context.TopologyId topology_ids = 2;
*/
java.util.List
getTopologyIdsList();
/**
* repeated .context.TopologyId topology_ids = 2;
*/
context.ContextOuterClass.TopologyId getTopologyIds(int index);
/**
* repeated .context.TopologyId topology_ids = 2;
*/
int getTopologyIdsCount();
/**
* repeated .context.TopologyId topology_ids = 2;
*/
java.util.List extends context.ContextOuterClass.TopologyIdOrBuilder>
getTopologyIdsOrBuilderList();
/**
* repeated .context.TopologyId topology_ids = 2;
*/
context.ContextOuterClass.TopologyIdOrBuilder getTopologyIdsOrBuilder(
int index);
/**
* repeated .context.ServiceId service_ids = 3;
*/
java.util.List
getServiceIdsList();
/**
* repeated .context.ServiceId service_ids = 3;
*/
context.ContextOuterClass.ServiceId getServiceIds(int index);
/**
* repeated .context.ServiceId service_ids = 3;
*/
int getServiceIdsCount();
/**
* repeated .context.ServiceId service_ids = 3;
*/
java.util.List extends context.ContextOuterClass.ServiceIdOrBuilder>
getServiceIdsOrBuilderList();
/**
* repeated .context.ServiceId service_ids = 3;
*/
context.ContextOuterClass.ServiceIdOrBuilder getServiceIdsOrBuilder(
int index);
/**
* .context.TeraFlowController controller = 4;
* @return Whether the controller field is set.
*/
boolean hasController();
/**
* .context.TeraFlowController controller = 4;
* @return The controller.
*/
context.ContextOuterClass.TeraFlowController getController();
/**
* .context.TeraFlowController controller = 4;
*/
context.ContextOuterClass.TeraFlowControllerOrBuilder getControllerOrBuilder();
}
/**
* Protobuf type {@code context.Context}
*/
public static final class Context extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.Context)
ContextOrBuilder {
private static final long serialVersionUID = 0L;
// Use Context.newBuilder() to construct.
private Context(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Context() {
topologyIds_ = java.util.Collections.emptyList();
serviceIds_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Context();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Context(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
context.ContextOuterClass.ContextId.Builder subBuilder = null;
if (contextId_ != null) {
subBuilder = contextId_.toBuilder();
}
contextId_ = input.readMessage(context.ContextOuterClass.ContextId.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(contextId_);
contextId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
topologyIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
topologyIds_.add(
input.readMessage(context.ContextOuterClass.TopologyId.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
serviceIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
serviceIds_.add(
input.readMessage(context.ContextOuterClass.ServiceId.parser(), extensionRegistry));
break;
}
case 34: {
context.ContextOuterClass.TeraFlowController.Builder subBuilder = null;
if (controller_ != null) {
subBuilder = controller_.toBuilder();
}
controller_ = input.readMessage(context.ContextOuterClass.TeraFlowController.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(controller_);
controller_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
topologyIds_ = java.util.Collections.unmodifiableList(topologyIds_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
serviceIds_ = java.util.Collections.unmodifiableList(serviceIds_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_Context_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_Context_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.Context.class, context.ContextOuterClass.Context.Builder.class);
}
public static final int CONTEXT_ID_FIELD_NUMBER = 1;
private context.ContextOuterClass.ContextId contextId_;
/**
* .context.ContextId context_id = 1;
* @return Whether the contextId field is set.
*/
@java.lang.Override
public boolean hasContextId() {
return contextId_ != null;
}
/**
* .context.ContextId context_id = 1;
* @return The contextId.
*/
@java.lang.Override
public context.ContextOuterClass.ContextId getContextId() {
return contextId_ == null ? context.ContextOuterClass.ContextId.getDefaultInstance() : contextId_;
}
/**
* .context.ContextId context_id = 1;
*/
@java.lang.Override
public context.ContextOuterClass.ContextIdOrBuilder getContextIdOrBuilder() {
return getContextId();
}
public static final int TOPOLOGY_IDS_FIELD_NUMBER = 2;
private java.util.List topologyIds_;
/**
* repeated .context.TopologyId topology_ids = 2;
*/
@java.lang.Override
public java.util.List getTopologyIdsList() {
return topologyIds_;
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.TopologyIdOrBuilder>
getTopologyIdsOrBuilderList() {
return topologyIds_;
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
@java.lang.Override
public int getTopologyIdsCount() {
return topologyIds_.size();
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
@java.lang.Override
public context.ContextOuterClass.TopologyId getTopologyIds(int index) {
return topologyIds_.get(index);
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
@java.lang.Override
public context.ContextOuterClass.TopologyIdOrBuilder getTopologyIdsOrBuilder(
int index) {
return topologyIds_.get(index);
}
public static final int SERVICE_IDS_FIELD_NUMBER = 3;
private java.util.List serviceIds_;
/**
* repeated .context.ServiceId service_ids = 3;
*/
@java.lang.Override
public java.util.List getServiceIdsList() {
return serviceIds_;
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.ServiceIdOrBuilder>
getServiceIdsOrBuilderList() {
return serviceIds_;
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
@java.lang.Override
public int getServiceIdsCount() {
return serviceIds_.size();
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
@java.lang.Override
public context.ContextOuterClass.ServiceId getServiceIds(int index) {
return serviceIds_.get(index);
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
@java.lang.Override
public context.ContextOuterClass.ServiceIdOrBuilder getServiceIdsOrBuilder(
int index) {
return serviceIds_.get(index);
}
public static final int CONTROLLER_FIELD_NUMBER = 4;
private context.ContextOuterClass.TeraFlowController controller_;
/**
* .context.TeraFlowController controller = 4;
* @return Whether the controller field is set.
*/
@java.lang.Override
public boolean hasController() {
return controller_ != null;
}
/**
* .context.TeraFlowController controller = 4;
* @return The controller.
*/
@java.lang.Override
public context.ContextOuterClass.TeraFlowController getController() {
return controller_ == null ? context.ContextOuterClass.TeraFlowController.getDefaultInstance() : controller_;
}
/**
* .context.TeraFlowController controller = 4;
*/
@java.lang.Override
public context.ContextOuterClass.TeraFlowControllerOrBuilder getControllerOrBuilder() {
return getController();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (contextId_ != null) {
output.writeMessage(1, getContextId());
}
for (int i = 0; i < topologyIds_.size(); i++) {
output.writeMessage(2, topologyIds_.get(i));
}
for (int i = 0; i < serviceIds_.size(); i++) {
output.writeMessage(3, serviceIds_.get(i));
}
if (controller_ != null) {
output.writeMessage(4, getController());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (contextId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getContextId());
}
for (int i = 0; i < topologyIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, topologyIds_.get(i));
}
for (int i = 0; i < serviceIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, serviceIds_.get(i));
}
if (controller_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getController());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.Context)) {
return super.equals(obj);
}
context.ContextOuterClass.Context other = (context.ContextOuterClass.Context) obj;
if (hasContextId() != other.hasContextId()) return false;
if (hasContextId()) {
if (!getContextId()
.equals(other.getContextId())) return false;
}
if (!getTopologyIdsList()
.equals(other.getTopologyIdsList())) return false;
if (!getServiceIdsList()
.equals(other.getServiceIdsList())) return false;
if (hasController() != other.hasController()) return false;
if (hasController()) {
if (!getController()
.equals(other.getController())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasContextId()) {
hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER;
hash = (53 * hash) + getContextId().hashCode();
}
if (getTopologyIdsCount() > 0) {
hash = (37 * hash) + TOPOLOGY_IDS_FIELD_NUMBER;
hash = (53 * hash) + getTopologyIdsList().hashCode();
}
if (getServiceIdsCount() > 0) {
hash = (37 * hash) + SERVICE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getServiceIdsList().hashCode();
}
if (hasController()) {
hash = (37 * hash) + CONTROLLER_FIELD_NUMBER;
hash = (53 * hash) + getController().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.Context parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Context parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Context parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Context parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Context parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Context parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Context parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Context parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.Context parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Context parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.Context parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Context parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.Context prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.Context}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.Context)
context.ContextOuterClass.ContextOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_Context_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_Context_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.Context.class, context.ContextOuterClass.Context.Builder.class);
}
// Construct using context.ContextOuterClass.Context.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTopologyIdsFieldBuilder();
getServiceIdsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (contextIdBuilder_ == null) {
contextId_ = null;
} else {
contextId_ = null;
contextIdBuilder_ = null;
}
if (topologyIdsBuilder_ == null) {
topologyIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
topologyIdsBuilder_.clear();
}
if (serviceIdsBuilder_ == null) {
serviceIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
serviceIdsBuilder_.clear();
}
if (controllerBuilder_ == null) {
controller_ = null;
} else {
controller_ = null;
controllerBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_Context_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.Context getDefaultInstanceForType() {
return context.ContextOuterClass.Context.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.Context build() {
context.ContextOuterClass.Context result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.Context buildPartial() {
context.ContextOuterClass.Context result = new context.ContextOuterClass.Context(this);
int from_bitField0_ = bitField0_;
if (contextIdBuilder_ == null) {
result.contextId_ = contextId_;
} else {
result.contextId_ = contextIdBuilder_.build();
}
if (topologyIdsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
topologyIds_ = java.util.Collections.unmodifiableList(topologyIds_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.topologyIds_ = topologyIds_;
} else {
result.topologyIds_ = topologyIdsBuilder_.build();
}
if (serviceIdsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
serviceIds_ = java.util.Collections.unmodifiableList(serviceIds_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.serviceIds_ = serviceIds_;
} else {
result.serviceIds_ = serviceIdsBuilder_.build();
}
if (controllerBuilder_ == null) {
result.controller_ = controller_;
} else {
result.controller_ = controllerBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.Context) {
return mergeFrom((context.ContextOuterClass.Context)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.Context other) {
if (other == context.ContextOuterClass.Context.getDefaultInstance()) return this;
if (other.hasContextId()) {
mergeContextId(other.getContextId());
}
if (topologyIdsBuilder_ == null) {
if (!other.topologyIds_.isEmpty()) {
if (topologyIds_.isEmpty()) {
topologyIds_ = other.topologyIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTopologyIdsIsMutable();
topologyIds_.addAll(other.topologyIds_);
}
onChanged();
}
} else {
if (!other.topologyIds_.isEmpty()) {
if (topologyIdsBuilder_.isEmpty()) {
topologyIdsBuilder_.dispose();
topologyIdsBuilder_ = null;
topologyIds_ = other.topologyIds_;
bitField0_ = (bitField0_ & ~0x00000001);
topologyIdsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTopologyIdsFieldBuilder() : null;
} else {
topologyIdsBuilder_.addAllMessages(other.topologyIds_);
}
}
}
if (serviceIdsBuilder_ == null) {
if (!other.serviceIds_.isEmpty()) {
if (serviceIds_.isEmpty()) {
serviceIds_ = other.serviceIds_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureServiceIdsIsMutable();
serviceIds_.addAll(other.serviceIds_);
}
onChanged();
}
} else {
if (!other.serviceIds_.isEmpty()) {
if (serviceIdsBuilder_.isEmpty()) {
serviceIdsBuilder_.dispose();
serviceIdsBuilder_ = null;
serviceIds_ = other.serviceIds_;
bitField0_ = (bitField0_ & ~0x00000002);
serviceIdsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getServiceIdsFieldBuilder() : null;
} else {
serviceIdsBuilder_.addAllMessages(other.serviceIds_);
}
}
}
if (other.hasController()) {
mergeController(other.getController());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.Context parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.Context) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private context.ContextOuterClass.ContextId contextId_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.ContextId, context.ContextOuterClass.ContextId.Builder, context.ContextOuterClass.ContextIdOrBuilder> contextIdBuilder_;
/**
* .context.ContextId context_id = 1;
* @return Whether the contextId field is set.
*/
public boolean hasContextId() {
return contextIdBuilder_ != null || contextId_ != null;
}
/**
* .context.ContextId context_id = 1;
* @return The contextId.
*/
public context.ContextOuterClass.ContextId getContextId() {
if (contextIdBuilder_ == null) {
return contextId_ == null ? context.ContextOuterClass.ContextId.getDefaultInstance() : contextId_;
} else {
return contextIdBuilder_.getMessage();
}
}
/**
* .context.ContextId context_id = 1;
*/
public Builder setContextId(context.ContextOuterClass.ContextId value) {
if (contextIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contextId_ = value;
onChanged();
} else {
contextIdBuilder_.setMessage(value);
}
return this;
}
/**
* .context.ContextId context_id = 1;
*/
public Builder setContextId(
context.ContextOuterClass.ContextId.Builder builderForValue) {
if (contextIdBuilder_ == null) {
contextId_ = builderForValue.build();
onChanged();
} else {
contextIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.ContextId context_id = 1;
*/
public Builder mergeContextId(context.ContextOuterClass.ContextId value) {
if (contextIdBuilder_ == null) {
if (contextId_ != null) {
contextId_ =
context.ContextOuterClass.ContextId.newBuilder(contextId_).mergeFrom(value).buildPartial();
} else {
contextId_ = value;
}
onChanged();
} else {
contextIdBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.ContextId context_id = 1;
*/
public Builder clearContextId() {
if (contextIdBuilder_ == null) {
contextId_ = null;
onChanged();
} else {
contextId_ = null;
contextIdBuilder_ = null;
}
return this;
}
/**
* .context.ContextId context_id = 1;
*/
public context.ContextOuterClass.ContextId.Builder getContextIdBuilder() {
onChanged();
return getContextIdFieldBuilder().getBuilder();
}
/**
* .context.ContextId context_id = 1;
*/
public context.ContextOuterClass.ContextIdOrBuilder getContextIdOrBuilder() {
if (contextIdBuilder_ != null) {
return contextIdBuilder_.getMessageOrBuilder();
} else {
return contextId_ == null ?
context.ContextOuterClass.ContextId.getDefaultInstance() : contextId_;
}
}
/**
* .context.ContextId context_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.ContextId, context.ContextOuterClass.ContextId.Builder, context.ContextOuterClass.ContextIdOrBuilder>
getContextIdFieldBuilder() {
if (contextIdBuilder_ == null) {
contextIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.ContextId, context.ContextOuterClass.ContextId.Builder, context.ContextOuterClass.ContextIdOrBuilder>(
getContextId(),
getParentForChildren(),
isClean());
contextId_ = null;
}
return contextIdBuilder_;
}
private java.util.List topologyIds_ =
java.util.Collections.emptyList();
private void ensureTopologyIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
topologyIds_ = new java.util.ArrayList(topologyIds_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.TopologyId, context.ContextOuterClass.TopologyId.Builder, context.ContextOuterClass.TopologyIdOrBuilder> topologyIdsBuilder_;
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public java.util.List getTopologyIdsList() {
if (topologyIdsBuilder_ == null) {
return java.util.Collections.unmodifiableList(topologyIds_);
} else {
return topologyIdsBuilder_.getMessageList();
}
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public int getTopologyIdsCount() {
if (topologyIdsBuilder_ == null) {
return topologyIds_.size();
} else {
return topologyIdsBuilder_.getCount();
}
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public context.ContextOuterClass.TopologyId getTopologyIds(int index) {
if (topologyIdsBuilder_ == null) {
return topologyIds_.get(index);
} else {
return topologyIdsBuilder_.getMessage(index);
}
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public Builder setTopologyIds(
int index, context.ContextOuterClass.TopologyId value) {
if (topologyIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopologyIdsIsMutable();
topologyIds_.set(index, value);
onChanged();
} else {
topologyIdsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public Builder setTopologyIds(
int index, context.ContextOuterClass.TopologyId.Builder builderForValue) {
if (topologyIdsBuilder_ == null) {
ensureTopologyIdsIsMutable();
topologyIds_.set(index, builderForValue.build());
onChanged();
} else {
topologyIdsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public Builder addTopologyIds(context.ContextOuterClass.TopologyId value) {
if (topologyIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopologyIdsIsMutable();
topologyIds_.add(value);
onChanged();
} else {
topologyIdsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public Builder addTopologyIds(
int index, context.ContextOuterClass.TopologyId value) {
if (topologyIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopologyIdsIsMutable();
topologyIds_.add(index, value);
onChanged();
} else {
topologyIdsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public Builder addTopologyIds(
context.ContextOuterClass.TopologyId.Builder builderForValue) {
if (topologyIdsBuilder_ == null) {
ensureTopologyIdsIsMutable();
topologyIds_.add(builderForValue.build());
onChanged();
} else {
topologyIdsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public Builder addTopologyIds(
int index, context.ContextOuterClass.TopologyId.Builder builderForValue) {
if (topologyIdsBuilder_ == null) {
ensureTopologyIdsIsMutable();
topologyIds_.add(index, builderForValue.build());
onChanged();
} else {
topologyIdsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public Builder addAllTopologyIds(
java.lang.Iterable extends context.ContextOuterClass.TopologyId> values) {
if (topologyIdsBuilder_ == null) {
ensureTopologyIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, topologyIds_);
onChanged();
} else {
topologyIdsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public Builder clearTopologyIds() {
if (topologyIdsBuilder_ == null) {
topologyIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
topologyIdsBuilder_.clear();
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public Builder removeTopologyIds(int index) {
if (topologyIdsBuilder_ == null) {
ensureTopologyIdsIsMutable();
topologyIds_.remove(index);
onChanged();
} else {
topologyIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public context.ContextOuterClass.TopologyId.Builder getTopologyIdsBuilder(
int index) {
return getTopologyIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public context.ContextOuterClass.TopologyIdOrBuilder getTopologyIdsOrBuilder(
int index) {
if (topologyIdsBuilder_ == null) {
return topologyIds_.get(index); } else {
return topologyIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public java.util.List extends context.ContextOuterClass.TopologyIdOrBuilder>
getTopologyIdsOrBuilderList() {
if (topologyIdsBuilder_ != null) {
return topologyIdsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(topologyIds_);
}
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public context.ContextOuterClass.TopologyId.Builder addTopologyIdsBuilder() {
return getTopologyIdsFieldBuilder().addBuilder(
context.ContextOuterClass.TopologyId.getDefaultInstance());
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public context.ContextOuterClass.TopologyId.Builder addTopologyIdsBuilder(
int index) {
return getTopologyIdsFieldBuilder().addBuilder(
index, context.ContextOuterClass.TopologyId.getDefaultInstance());
}
/**
* repeated .context.TopologyId topology_ids = 2;
*/
public java.util.List
getTopologyIdsBuilderList() {
return getTopologyIdsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.TopologyId, context.ContextOuterClass.TopologyId.Builder, context.ContextOuterClass.TopologyIdOrBuilder>
getTopologyIdsFieldBuilder() {
if (topologyIdsBuilder_ == null) {
topologyIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.TopologyId, context.ContextOuterClass.TopologyId.Builder, context.ContextOuterClass.TopologyIdOrBuilder>(
topologyIds_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
topologyIds_ = null;
}
return topologyIdsBuilder_;
}
private java.util.List serviceIds_ =
java.util.Collections.emptyList();
private void ensureServiceIdsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
serviceIds_ = new java.util.ArrayList(serviceIds_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.ServiceId, context.ContextOuterClass.ServiceId.Builder, context.ContextOuterClass.ServiceIdOrBuilder> serviceIdsBuilder_;
/**
* repeated .context.ServiceId service_ids = 3;
*/
public java.util.List getServiceIdsList() {
if (serviceIdsBuilder_ == null) {
return java.util.Collections.unmodifiableList(serviceIds_);
} else {
return serviceIdsBuilder_.getMessageList();
}
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
public int getServiceIdsCount() {
if (serviceIdsBuilder_ == null) {
return serviceIds_.size();
} else {
return serviceIdsBuilder_.getCount();
}
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
public context.ContextOuterClass.ServiceId getServiceIds(int index) {
if (serviceIdsBuilder_ == null) {
return serviceIds_.get(index);
} else {
return serviceIdsBuilder_.getMessage(index);
}
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
public Builder setServiceIds(
int index, context.ContextOuterClass.ServiceId value) {
if (serviceIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServiceIdsIsMutable();
serviceIds_.set(index, value);
onChanged();
} else {
serviceIdsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
public Builder setServiceIds(
int index, context.ContextOuterClass.ServiceId.Builder builderForValue) {
if (serviceIdsBuilder_ == null) {
ensureServiceIdsIsMutable();
serviceIds_.set(index, builderForValue.build());
onChanged();
} else {
serviceIdsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
public Builder addServiceIds(context.ContextOuterClass.ServiceId value) {
if (serviceIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServiceIdsIsMutable();
serviceIds_.add(value);
onChanged();
} else {
serviceIdsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
public Builder addServiceIds(
int index, context.ContextOuterClass.ServiceId value) {
if (serviceIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureServiceIdsIsMutable();
serviceIds_.add(index, value);
onChanged();
} else {
serviceIdsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
public Builder addServiceIds(
context.ContextOuterClass.ServiceId.Builder builderForValue) {
if (serviceIdsBuilder_ == null) {
ensureServiceIdsIsMutable();
serviceIds_.add(builderForValue.build());
onChanged();
} else {
serviceIdsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
public Builder addServiceIds(
int index, context.ContextOuterClass.ServiceId.Builder builderForValue) {
if (serviceIdsBuilder_ == null) {
ensureServiceIdsIsMutable();
serviceIds_.add(index, builderForValue.build());
onChanged();
} else {
serviceIdsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
public Builder addAllServiceIds(
java.lang.Iterable extends context.ContextOuterClass.ServiceId> values) {
if (serviceIdsBuilder_ == null) {
ensureServiceIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, serviceIds_);
onChanged();
} else {
serviceIdsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
public Builder clearServiceIds() {
if (serviceIdsBuilder_ == null) {
serviceIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
serviceIdsBuilder_.clear();
}
return this;
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
public Builder removeServiceIds(int index) {
if (serviceIdsBuilder_ == null) {
ensureServiceIdsIsMutable();
serviceIds_.remove(index);
onChanged();
} else {
serviceIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
public context.ContextOuterClass.ServiceId.Builder getServiceIdsBuilder(
int index) {
return getServiceIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
public context.ContextOuterClass.ServiceIdOrBuilder getServiceIdsOrBuilder(
int index) {
if (serviceIdsBuilder_ == null) {
return serviceIds_.get(index); } else {
return serviceIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
public java.util.List extends context.ContextOuterClass.ServiceIdOrBuilder>
getServiceIdsOrBuilderList() {
if (serviceIdsBuilder_ != null) {
return serviceIdsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(serviceIds_);
}
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
public context.ContextOuterClass.ServiceId.Builder addServiceIdsBuilder() {
return getServiceIdsFieldBuilder().addBuilder(
context.ContextOuterClass.ServiceId.getDefaultInstance());
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
public context.ContextOuterClass.ServiceId.Builder addServiceIdsBuilder(
int index) {
return getServiceIdsFieldBuilder().addBuilder(
index, context.ContextOuterClass.ServiceId.getDefaultInstance());
}
/**
* repeated .context.ServiceId service_ids = 3;
*/
public java.util.List
getServiceIdsBuilderList() {
return getServiceIdsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.ServiceId, context.ContextOuterClass.ServiceId.Builder, context.ContextOuterClass.ServiceIdOrBuilder>
getServiceIdsFieldBuilder() {
if (serviceIdsBuilder_ == null) {
serviceIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.ServiceId, context.ContextOuterClass.ServiceId.Builder, context.ContextOuterClass.ServiceIdOrBuilder>(
serviceIds_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
serviceIds_ = null;
}
return serviceIdsBuilder_;
}
private context.ContextOuterClass.TeraFlowController controller_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.TeraFlowController, context.ContextOuterClass.TeraFlowController.Builder, context.ContextOuterClass.TeraFlowControllerOrBuilder> controllerBuilder_;
/**
* .context.TeraFlowController controller = 4;
* @return Whether the controller field is set.
*/
public boolean hasController() {
return controllerBuilder_ != null || controller_ != null;
}
/**
* .context.TeraFlowController controller = 4;
* @return The controller.
*/
public context.ContextOuterClass.TeraFlowController getController() {
if (controllerBuilder_ == null) {
return controller_ == null ? context.ContextOuterClass.TeraFlowController.getDefaultInstance() : controller_;
} else {
return controllerBuilder_.getMessage();
}
}
/**
* .context.TeraFlowController controller = 4;
*/
public Builder setController(context.ContextOuterClass.TeraFlowController value) {
if (controllerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
controller_ = value;
onChanged();
} else {
controllerBuilder_.setMessage(value);
}
return this;
}
/**
* .context.TeraFlowController controller = 4;
*/
public Builder setController(
context.ContextOuterClass.TeraFlowController.Builder builderForValue) {
if (controllerBuilder_ == null) {
controller_ = builderForValue.build();
onChanged();
} else {
controllerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.TeraFlowController controller = 4;
*/
public Builder mergeController(context.ContextOuterClass.TeraFlowController value) {
if (controllerBuilder_ == null) {
if (controller_ != null) {
controller_ =
context.ContextOuterClass.TeraFlowController.newBuilder(controller_).mergeFrom(value).buildPartial();
} else {
controller_ = value;
}
onChanged();
} else {
controllerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.TeraFlowController controller = 4;
*/
public Builder clearController() {
if (controllerBuilder_ == null) {
controller_ = null;
onChanged();
} else {
controller_ = null;
controllerBuilder_ = null;
}
return this;
}
/**
* .context.TeraFlowController controller = 4;
*/
public context.ContextOuterClass.TeraFlowController.Builder getControllerBuilder() {
onChanged();
return getControllerFieldBuilder().getBuilder();
}
/**
* .context.TeraFlowController controller = 4;
*/
public context.ContextOuterClass.TeraFlowControllerOrBuilder getControllerOrBuilder() {
if (controllerBuilder_ != null) {
return controllerBuilder_.getMessageOrBuilder();
} else {
return controller_ == null ?
context.ContextOuterClass.TeraFlowController.getDefaultInstance() : controller_;
}
}
/**
* .context.TeraFlowController controller = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.TeraFlowController, context.ContextOuterClass.TeraFlowController.Builder, context.ContextOuterClass.TeraFlowControllerOrBuilder>
getControllerFieldBuilder() {
if (controllerBuilder_ == null) {
controllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.TeraFlowController, context.ContextOuterClass.TeraFlowController.Builder, context.ContextOuterClass.TeraFlowControllerOrBuilder>(
getController(),
getParentForChildren(),
isClean());
controller_ = null;
}
return controllerBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.Context)
}
// @@protoc_insertion_point(class_scope:context.Context)
private static final context.ContextOuterClass.Context DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.Context();
}
public static context.ContextOuterClass.Context getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Context parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Context(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.Context getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContextIdListOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.ContextIdList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .context.ContextId context_ids = 1;
*/
java.util.List
getContextIdsList();
/**
* repeated .context.ContextId context_ids = 1;
*/
context.ContextOuterClass.ContextId getContextIds(int index);
/**
* repeated .context.ContextId context_ids = 1;
*/
int getContextIdsCount();
/**
* repeated .context.ContextId context_ids = 1;
*/
java.util.List extends context.ContextOuterClass.ContextIdOrBuilder>
getContextIdsOrBuilderList();
/**
* repeated .context.ContextId context_ids = 1;
*/
context.ContextOuterClass.ContextIdOrBuilder getContextIdsOrBuilder(
int index);
}
/**
* Protobuf type {@code context.ContextIdList}
*/
public static final class ContextIdList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.ContextIdList)
ContextIdListOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContextIdList.newBuilder() to construct.
private ContextIdList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContextIdList() {
contextIds_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContextIdList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContextIdList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
contextIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
contextIds_.add(
input.readMessage(context.ContextOuterClass.ContextId.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
contextIds_ = java.util.Collections.unmodifiableList(contextIds_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_ContextIdList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_ContextIdList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.ContextIdList.class, context.ContextOuterClass.ContextIdList.Builder.class);
}
public static final int CONTEXT_IDS_FIELD_NUMBER = 1;
private java.util.List contextIds_;
/**
* repeated .context.ContextId context_ids = 1;
*/
@java.lang.Override
public java.util.List getContextIdsList() {
return contextIds_;
}
/**
* repeated .context.ContextId context_ids = 1;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.ContextIdOrBuilder>
getContextIdsOrBuilderList() {
return contextIds_;
}
/**
* repeated .context.ContextId context_ids = 1;
*/
@java.lang.Override
public int getContextIdsCount() {
return contextIds_.size();
}
/**
* repeated .context.ContextId context_ids = 1;
*/
@java.lang.Override
public context.ContextOuterClass.ContextId getContextIds(int index) {
return contextIds_.get(index);
}
/**
* repeated .context.ContextId context_ids = 1;
*/
@java.lang.Override
public context.ContextOuterClass.ContextIdOrBuilder getContextIdsOrBuilder(
int index) {
return contextIds_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < contextIds_.size(); i++) {
output.writeMessage(1, contextIds_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < contextIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, contextIds_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.ContextIdList)) {
return super.equals(obj);
}
context.ContextOuterClass.ContextIdList other = (context.ContextOuterClass.ContextIdList) obj;
if (!getContextIdsList()
.equals(other.getContextIdsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getContextIdsCount() > 0) {
hash = (37 * hash) + CONTEXT_IDS_FIELD_NUMBER;
hash = (53 * hash) + getContextIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.ContextIdList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.ContextIdList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.ContextIdList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.ContextIdList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.ContextIdList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.ContextIdList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.ContextIdList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.ContextIdList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.ContextIdList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.ContextIdList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.ContextIdList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.ContextIdList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.ContextIdList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.ContextIdList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.ContextIdList)
context.ContextOuterClass.ContextIdListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_ContextIdList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_ContextIdList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.ContextIdList.class, context.ContextOuterClass.ContextIdList.Builder.class);
}
// Construct using context.ContextOuterClass.ContextIdList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getContextIdsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (contextIdsBuilder_ == null) {
contextIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
contextIdsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_ContextIdList_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.ContextIdList getDefaultInstanceForType() {
return context.ContextOuterClass.ContextIdList.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.ContextIdList build() {
context.ContextOuterClass.ContextIdList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.ContextIdList buildPartial() {
context.ContextOuterClass.ContextIdList result = new context.ContextOuterClass.ContextIdList(this);
int from_bitField0_ = bitField0_;
if (contextIdsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
contextIds_ = java.util.Collections.unmodifiableList(contextIds_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.contextIds_ = contextIds_;
} else {
result.contextIds_ = contextIdsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.ContextIdList) {
return mergeFrom((context.ContextOuterClass.ContextIdList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.ContextIdList other) {
if (other == context.ContextOuterClass.ContextIdList.getDefaultInstance()) return this;
if (contextIdsBuilder_ == null) {
if (!other.contextIds_.isEmpty()) {
if (contextIds_.isEmpty()) {
contextIds_ = other.contextIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureContextIdsIsMutable();
contextIds_.addAll(other.contextIds_);
}
onChanged();
}
} else {
if (!other.contextIds_.isEmpty()) {
if (contextIdsBuilder_.isEmpty()) {
contextIdsBuilder_.dispose();
contextIdsBuilder_ = null;
contextIds_ = other.contextIds_;
bitField0_ = (bitField0_ & ~0x00000001);
contextIdsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContextIdsFieldBuilder() : null;
} else {
contextIdsBuilder_.addAllMessages(other.contextIds_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.ContextIdList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.ContextIdList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List contextIds_ =
java.util.Collections.emptyList();
private void ensureContextIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
contextIds_ = new java.util.ArrayList(contextIds_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.ContextId, context.ContextOuterClass.ContextId.Builder, context.ContextOuterClass.ContextIdOrBuilder> contextIdsBuilder_;
/**
* repeated .context.ContextId context_ids = 1;
*/
public java.util.List getContextIdsList() {
if (contextIdsBuilder_ == null) {
return java.util.Collections.unmodifiableList(contextIds_);
} else {
return contextIdsBuilder_.getMessageList();
}
}
/**
* repeated .context.ContextId context_ids = 1;
*/
public int getContextIdsCount() {
if (contextIdsBuilder_ == null) {
return contextIds_.size();
} else {
return contextIdsBuilder_.getCount();
}
}
/**
* repeated .context.ContextId context_ids = 1;
*/
public context.ContextOuterClass.ContextId getContextIds(int index) {
if (contextIdsBuilder_ == null) {
return contextIds_.get(index);
} else {
return contextIdsBuilder_.getMessage(index);
}
}
/**
* repeated .context.ContextId context_ids = 1;
*/
public Builder setContextIds(
int index, context.ContextOuterClass.ContextId value) {
if (contextIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextIdsIsMutable();
contextIds_.set(index, value);
onChanged();
} else {
contextIdsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .context.ContextId context_ids = 1;
*/
public Builder setContextIds(
int index, context.ContextOuterClass.ContextId.Builder builderForValue) {
if (contextIdsBuilder_ == null) {
ensureContextIdsIsMutable();
contextIds_.set(index, builderForValue.build());
onChanged();
} else {
contextIdsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.ContextId context_ids = 1;
*/
public Builder addContextIds(context.ContextOuterClass.ContextId value) {
if (contextIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextIdsIsMutable();
contextIds_.add(value);
onChanged();
} else {
contextIdsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .context.ContextId context_ids = 1;
*/
public Builder addContextIds(
int index, context.ContextOuterClass.ContextId value) {
if (contextIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextIdsIsMutable();
contextIds_.add(index, value);
onChanged();
} else {
contextIdsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .context.ContextId context_ids = 1;
*/
public Builder addContextIds(
context.ContextOuterClass.ContextId.Builder builderForValue) {
if (contextIdsBuilder_ == null) {
ensureContextIdsIsMutable();
contextIds_.add(builderForValue.build());
onChanged();
} else {
contextIdsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .context.ContextId context_ids = 1;
*/
public Builder addContextIds(
int index, context.ContextOuterClass.ContextId.Builder builderForValue) {
if (contextIdsBuilder_ == null) {
ensureContextIdsIsMutable();
contextIds_.add(index, builderForValue.build());
onChanged();
} else {
contextIdsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.ContextId context_ids = 1;
*/
public Builder addAllContextIds(
java.lang.Iterable extends context.ContextOuterClass.ContextId> values) {
if (contextIdsBuilder_ == null) {
ensureContextIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, contextIds_);
onChanged();
} else {
contextIdsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .context.ContextId context_ids = 1;
*/
public Builder clearContextIds() {
if (contextIdsBuilder_ == null) {
contextIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
contextIdsBuilder_.clear();
}
return this;
}
/**
* repeated .context.ContextId context_ids = 1;
*/
public Builder removeContextIds(int index) {
if (contextIdsBuilder_ == null) {
ensureContextIdsIsMutable();
contextIds_.remove(index);
onChanged();
} else {
contextIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.ContextId context_ids = 1;
*/
public context.ContextOuterClass.ContextId.Builder getContextIdsBuilder(
int index) {
return getContextIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .context.ContextId context_ids = 1;
*/
public context.ContextOuterClass.ContextIdOrBuilder getContextIdsOrBuilder(
int index) {
if (contextIdsBuilder_ == null) {
return contextIds_.get(index); } else {
return contextIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.ContextId context_ids = 1;
*/
public java.util.List extends context.ContextOuterClass.ContextIdOrBuilder>
getContextIdsOrBuilderList() {
if (contextIdsBuilder_ != null) {
return contextIdsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contextIds_);
}
}
/**
* repeated .context.ContextId context_ids = 1;
*/
public context.ContextOuterClass.ContextId.Builder addContextIdsBuilder() {
return getContextIdsFieldBuilder().addBuilder(
context.ContextOuterClass.ContextId.getDefaultInstance());
}
/**
* repeated .context.ContextId context_ids = 1;
*/
public context.ContextOuterClass.ContextId.Builder addContextIdsBuilder(
int index) {
return getContextIdsFieldBuilder().addBuilder(
index, context.ContextOuterClass.ContextId.getDefaultInstance());
}
/**
* repeated .context.ContextId context_ids = 1;
*/
public java.util.List
getContextIdsBuilderList() {
return getContextIdsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.ContextId, context.ContextOuterClass.ContextId.Builder, context.ContextOuterClass.ContextIdOrBuilder>
getContextIdsFieldBuilder() {
if (contextIdsBuilder_ == null) {
contextIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.ContextId, context.ContextOuterClass.ContextId.Builder, context.ContextOuterClass.ContextIdOrBuilder>(
contextIds_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
contextIds_ = null;
}
return contextIdsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.ContextIdList)
}
// @@protoc_insertion_point(class_scope:context.ContextIdList)
private static final context.ContextOuterClass.ContextIdList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.ContextIdList();
}
public static context.ContextOuterClass.ContextIdList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ContextIdList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContextIdList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.ContextIdList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContextListOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.ContextList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .context.Context contexts = 1;
*/
java.util.List
getContextsList();
/**
* repeated .context.Context contexts = 1;
*/
context.ContextOuterClass.Context getContexts(int index);
/**
* repeated .context.Context contexts = 1;
*/
int getContextsCount();
/**
* repeated .context.Context contexts = 1;
*/
java.util.List extends context.ContextOuterClass.ContextOrBuilder>
getContextsOrBuilderList();
/**
* repeated .context.Context contexts = 1;
*/
context.ContextOuterClass.ContextOrBuilder getContextsOrBuilder(
int index);
}
/**
* Protobuf type {@code context.ContextList}
*/
public static final class ContextList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.ContextList)
ContextListOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContextList.newBuilder() to construct.
private ContextList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContextList() {
contexts_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContextList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContextList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
contexts_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
contexts_.add(
input.readMessage(context.ContextOuterClass.Context.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
contexts_ = java.util.Collections.unmodifiableList(contexts_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_ContextList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_ContextList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.ContextList.class, context.ContextOuterClass.ContextList.Builder.class);
}
public static final int CONTEXTS_FIELD_NUMBER = 1;
private java.util.List contexts_;
/**
* repeated .context.Context contexts = 1;
*/
@java.lang.Override
public java.util.List getContextsList() {
return contexts_;
}
/**
* repeated .context.Context contexts = 1;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.ContextOrBuilder>
getContextsOrBuilderList() {
return contexts_;
}
/**
* repeated .context.Context contexts = 1;
*/
@java.lang.Override
public int getContextsCount() {
return contexts_.size();
}
/**
* repeated .context.Context contexts = 1;
*/
@java.lang.Override
public context.ContextOuterClass.Context getContexts(int index) {
return contexts_.get(index);
}
/**
* repeated .context.Context contexts = 1;
*/
@java.lang.Override
public context.ContextOuterClass.ContextOrBuilder getContextsOrBuilder(
int index) {
return contexts_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < contexts_.size(); i++) {
output.writeMessage(1, contexts_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < contexts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, contexts_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.ContextList)) {
return super.equals(obj);
}
context.ContextOuterClass.ContextList other = (context.ContextOuterClass.ContextList) obj;
if (!getContextsList()
.equals(other.getContextsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getContextsCount() > 0) {
hash = (37 * hash) + CONTEXTS_FIELD_NUMBER;
hash = (53 * hash) + getContextsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.ContextList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.ContextList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.ContextList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.ContextList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.ContextList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.ContextList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.ContextList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.ContextList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.ContextList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.ContextList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.ContextList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.ContextList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.ContextList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.ContextList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.ContextList)
context.ContextOuterClass.ContextListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_ContextList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_ContextList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.ContextList.class, context.ContextOuterClass.ContextList.Builder.class);
}
// Construct using context.ContextOuterClass.ContextList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getContextsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (contextsBuilder_ == null) {
contexts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
contextsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_ContextList_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.ContextList getDefaultInstanceForType() {
return context.ContextOuterClass.ContextList.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.ContextList build() {
context.ContextOuterClass.ContextList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.ContextList buildPartial() {
context.ContextOuterClass.ContextList result = new context.ContextOuterClass.ContextList(this);
int from_bitField0_ = bitField0_;
if (contextsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
contexts_ = java.util.Collections.unmodifiableList(contexts_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.contexts_ = contexts_;
} else {
result.contexts_ = contextsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.ContextList) {
return mergeFrom((context.ContextOuterClass.ContextList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.ContextList other) {
if (other == context.ContextOuterClass.ContextList.getDefaultInstance()) return this;
if (contextsBuilder_ == null) {
if (!other.contexts_.isEmpty()) {
if (contexts_.isEmpty()) {
contexts_ = other.contexts_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureContextsIsMutable();
contexts_.addAll(other.contexts_);
}
onChanged();
}
} else {
if (!other.contexts_.isEmpty()) {
if (contextsBuilder_.isEmpty()) {
contextsBuilder_.dispose();
contextsBuilder_ = null;
contexts_ = other.contexts_;
bitField0_ = (bitField0_ & ~0x00000001);
contextsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContextsFieldBuilder() : null;
} else {
contextsBuilder_.addAllMessages(other.contexts_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.ContextList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.ContextList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List contexts_ =
java.util.Collections.emptyList();
private void ensureContextsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
contexts_ = new java.util.ArrayList(contexts_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.Context, context.ContextOuterClass.Context.Builder, context.ContextOuterClass.ContextOrBuilder> contextsBuilder_;
/**
* repeated .context.Context contexts = 1;
*/
public java.util.List getContextsList() {
if (contextsBuilder_ == null) {
return java.util.Collections.unmodifiableList(contexts_);
} else {
return contextsBuilder_.getMessageList();
}
}
/**
* repeated .context.Context contexts = 1;
*/
public int getContextsCount() {
if (contextsBuilder_ == null) {
return contexts_.size();
} else {
return contextsBuilder_.getCount();
}
}
/**
* repeated .context.Context contexts = 1;
*/
public context.ContextOuterClass.Context getContexts(int index) {
if (contextsBuilder_ == null) {
return contexts_.get(index);
} else {
return contextsBuilder_.getMessage(index);
}
}
/**
* repeated .context.Context contexts = 1;
*/
public Builder setContexts(
int index, context.ContextOuterClass.Context value) {
if (contextsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextsIsMutable();
contexts_.set(index, value);
onChanged();
} else {
contextsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .context.Context contexts = 1;
*/
public Builder setContexts(
int index, context.ContextOuterClass.Context.Builder builderForValue) {
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
contexts_.set(index, builderForValue.build());
onChanged();
} else {
contextsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.Context contexts = 1;
*/
public Builder addContexts(context.ContextOuterClass.Context value) {
if (contextsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextsIsMutable();
contexts_.add(value);
onChanged();
} else {
contextsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .context.Context contexts = 1;
*/
public Builder addContexts(
int index, context.ContextOuterClass.Context value) {
if (contextsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextsIsMutable();
contexts_.add(index, value);
onChanged();
} else {
contextsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .context.Context contexts = 1;
*/
public Builder addContexts(
context.ContextOuterClass.Context.Builder builderForValue) {
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
contexts_.add(builderForValue.build());
onChanged();
} else {
contextsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .context.Context contexts = 1;
*/
public Builder addContexts(
int index, context.ContextOuterClass.Context.Builder builderForValue) {
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
contexts_.add(index, builderForValue.build());
onChanged();
} else {
contextsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.Context contexts = 1;
*/
public Builder addAllContexts(
java.lang.Iterable extends context.ContextOuterClass.Context> values) {
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, contexts_);
onChanged();
} else {
contextsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .context.Context contexts = 1;
*/
public Builder clearContexts() {
if (contextsBuilder_ == null) {
contexts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
contextsBuilder_.clear();
}
return this;
}
/**
* repeated .context.Context contexts = 1;
*/
public Builder removeContexts(int index) {
if (contextsBuilder_ == null) {
ensureContextsIsMutable();
contexts_.remove(index);
onChanged();
} else {
contextsBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.Context contexts = 1;
*/
public context.ContextOuterClass.Context.Builder getContextsBuilder(
int index) {
return getContextsFieldBuilder().getBuilder(index);
}
/**
* repeated .context.Context contexts = 1;
*/
public context.ContextOuterClass.ContextOrBuilder getContextsOrBuilder(
int index) {
if (contextsBuilder_ == null) {
return contexts_.get(index); } else {
return contextsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.Context contexts = 1;
*/
public java.util.List extends context.ContextOuterClass.ContextOrBuilder>
getContextsOrBuilderList() {
if (contextsBuilder_ != null) {
return contextsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contexts_);
}
}
/**
* repeated .context.Context contexts = 1;
*/
public context.ContextOuterClass.Context.Builder addContextsBuilder() {
return getContextsFieldBuilder().addBuilder(
context.ContextOuterClass.Context.getDefaultInstance());
}
/**
* repeated .context.Context contexts = 1;
*/
public context.ContextOuterClass.Context.Builder addContextsBuilder(
int index) {
return getContextsFieldBuilder().addBuilder(
index, context.ContextOuterClass.Context.getDefaultInstance());
}
/**
* repeated .context.Context contexts = 1;
*/
public java.util.List
getContextsBuilderList() {
return getContextsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.Context, context.ContextOuterClass.Context.Builder, context.ContextOuterClass.ContextOrBuilder>
getContextsFieldBuilder() {
if (contextsBuilder_ == null) {
contextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.Context, context.ContextOuterClass.Context.Builder, context.ContextOuterClass.ContextOrBuilder>(
contexts_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
contexts_ = null;
}
return contextsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.ContextList)
}
// @@protoc_insertion_point(class_scope:context.ContextList)
private static final context.ContextOuterClass.ContextList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.ContextList();
}
public static context.ContextOuterClass.ContextList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ContextList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContextList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.ContextList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContextEventOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.ContextEvent)
com.google.protobuf.MessageOrBuilder {
/**
* .context.Event event = 1;
* @return Whether the event field is set.
*/
boolean hasEvent();
/**
* .context.Event event = 1;
* @return The event.
*/
context.ContextOuterClass.Event getEvent();
/**
* .context.Event event = 1;
*/
context.ContextOuterClass.EventOrBuilder getEventOrBuilder();
/**
* .context.ContextId context_id = 2;
* @return Whether the contextId field is set.
*/
boolean hasContextId();
/**
* .context.ContextId context_id = 2;
* @return The contextId.
*/
context.ContextOuterClass.ContextId getContextId();
/**
* .context.ContextId context_id = 2;
*/
context.ContextOuterClass.ContextIdOrBuilder getContextIdOrBuilder();
}
/**
* Protobuf type {@code context.ContextEvent}
*/
public static final class ContextEvent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.ContextEvent)
ContextEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContextEvent.newBuilder() to construct.
private ContextEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContextEvent() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContextEvent();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContextEvent(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
context.ContextOuterClass.Event.Builder subBuilder = null;
if (event_ != null) {
subBuilder = event_.toBuilder();
}
event_ = input.readMessage(context.ContextOuterClass.Event.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(event_);
event_ = subBuilder.buildPartial();
}
break;
}
case 18: {
context.ContextOuterClass.ContextId.Builder subBuilder = null;
if (contextId_ != null) {
subBuilder = contextId_.toBuilder();
}
contextId_ = input.readMessage(context.ContextOuterClass.ContextId.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(contextId_);
contextId_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_ContextEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_ContextEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.ContextEvent.class, context.ContextOuterClass.ContextEvent.Builder.class);
}
public static final int EVENT_FIELD_NUMBER = 1;
private context.ContextOuterClass.Event event_;
/**
* .context.Event event = 1;
* @return Whether the event field is set.
*/
@java.lang.Override
public boolean hasEvent() {
return event_ != null;
}
/**
* .context.Event event = 1;
* @return The event.
*/
@java.lang.Override
public context.ContextOuterClass.Event getEvent() {
return event_ == null ? context.ContextOuterClass.Event.getDefaultInstance() : event_;
}
/**
* .context.Event event = 1;
*/
@java.lang.Override
public context.ContextOuterClass.EventOrBuilder getEventOrBuilder() {
return getEvent();
}
public static final int CONTEXT_ID_FIELD_NUMBER = 2;
private context.ContextOuterClass.ContextId contextId_;
/**
* .context.ContextId context_id = 2;
* @return Whether the contextId field is set.
*/
@java.lang.Override
public boolean hasContextId() {
return contextId_ != null;
}
/**
* .context.ContextId context_id = 2;
* @return The contextId.
*/
@java.lang.Override
public context.ContextOuterClass.ContextId getContextId() {
return contextId_ == null ? context.ContextOuterClass.ContextId.getDefaultInstance() : contextId_;
}
/**
* .context.ContextId context_id = 2;
*/
@java.lang.Override
public context.ContextOuterClass.ContextIdOrBuilder getContextIdOrBuilder() {
return getContextId();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (event_ != null) {
output.writeMessage(1, getEvent());
}
if (contextId_ != null) {
output.writeMessage(2, getContextId());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (event_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEvent());
}
if (contextId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getContextId());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.ContextEvent)) {
return super.equals(obj);
}
context.ContextOuterClass.ContextEvent other = (context.ContextOuterClass.ContextEvent) obj;
if (hasEvent() != other.hasEvent()) return false;
if (hasEvent()) {
if (!getEvent()
.equals(other.getEvent())) return false;
}
if (hasContextId() != other.hasContextId()) return false;
if (hasContextId()) {
if (!getContextId()
.equals(other.getContextId())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasEvent()) {
hash = (37 * hash) + EVENT_FIELD_NUMBER;
hash = (53 * hash) + getEvent().hashCode();
}
if (hasContextId()) {
hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER;
hash = (53 * hash) + getContextId().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.ContextEvent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.ContextEvent parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.ContextEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.ContextEvent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.ContextEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.ContextEvent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.ContextEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.ContextEvent parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.ContextEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.ContextEvent parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.ContextEvent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.ContextEvent parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.ContextEvent prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.ContextEvent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.ContextEvent)
context.ContextOuterClass.ContextEventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_ContextEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_ContextEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.ContextEvent.class, context.ContextOuterClass.ContextEvent.Builder.class);
}
// Construct using context.ContextOuterClass.ContextEvent.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (eventBuilder_ == null) {
event_ = null;
} else {
event_ = null;
eventBuilder_ = null;
}
if (contextIdBuilder_ == null) {
contextId_ = null;
} else {
contextId_ = null;
contextIdBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_ContextEvent_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.ContextEvent getDefaultInstanceForType() {
return context.ContextOuterClass.ContextEvent.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.ContextEvent build() {
context.ContextOuterClass.ContextEvent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.ContextEvent buildPartial() {
context.ContextOuterClass.ContextEvent result = new context.ContextOuterClass.ContextEvent(this);
if (eventBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = eventBuilder_.build();
}
if (contextIdBuilder_ == null) {
result.contextId_ = contextId_;
} else {
result.contextId_ = contextIdBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.ContextEvent) {
return mergeFrom((context.ContextOuterClass.ContextEvent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.ContextEvent other) {
if (other == context.ContextOuterClass.ContextEvent.getDefaultInstance()) return this;
if (other.hasEvent()) {
mergeEvent(other.getEvent());
}
if (other.hasContextId()) {
mergeContextId(other.getContextId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.ContextEvent parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.ContextEvent) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private context.ContextOuterClass.Event event_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Event, context.ContextOuterClass.Event.Builder, context.ContextOuterClass.EventOrBuilder> eventBuilder_;
/**
* .context.Event event = 1;
* @return Whether the event field is set.
*/
public boolean hasEvent() {
return eventBuilder_ != null || event_ != null;
}
/**
* .context.Event event = 1;
* @return The event.
*/
public context.ContextOuterClass.Event getEvent() {
if (eventBuilder_ == null) {
return event_ == null ? context.ContextOuterClass.Event.getDefaultInstance() : event_;
} else {
return eventBuilder_.getMessage();
}
}
/**
* .context.Event event = 1;
*/
public Builder setEvent(context.ContextOuterClass.Event value) {
if (eventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
eventBuilder_.setMessage(value);
}
return this;
}
/**
* .context.Event event = 1;
*/
public Builder setEvent(
context.ContextOuterClass.Event.Builder builderForValue) {
if (eventBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
eventBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.Event event = 1;
*/
public Builder mergeEvent(context.ContextOuterClass.Event value) {
if (eventBuilder_ == null) {
if (event_ != null) {
event_ =
context.ContextOuterClass.Event.newBuilder(event_).mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
eventBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.Event event = 1;
*/
public Builder clearEvent() {
if (eventBuilder_ == null) {
event_ = null;
onChanged();
} else {
event_ = null;
eventBuilder_ = null;
}
return this;
}
/**
* .context.Event event = 1;
*/
public context.ContextOuterClass.Event.Builder getEventBuilder() {
onChanged();
return getEventFieldBuilder().getBuilder();
}
/**
* .context.Event event = 1;
*/
public context.ContextOuterClass.EventOrBuilder getEventOrBuilder() {
if (eventBuilder_ != null) {
return eventBuilder_.getMessageOrBuilder();
} else {
return event_ == null ?
context.ContextOuterClass.Event.getDefaultInstance() : event_;
}
}
/**
* .context.Event event = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Event, context.ContextOuterClass.Event.Builder, context.ContextOuterClass.EventOrBuilder>
getEventFieldBuilder() {
if (eventBuilder_ == null) {
eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Event, context.ContextOuterClass.Event.Builder, context.ContextOuterClass.EventOrBuilder>(
getEvent(),
getParentForChildren(),
isClean());
event_ = null;
}
return eventBuilder_;
}
private context.ContextOuterClass.ContextId contextId_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.ContextId, context.ContextOuterClass.ContextId.Builder, context.ContextOuterClass.ContextIdOrBuilder> contextIdBuilder_;
/**
* .context.ContextId context_id = 2;
* @return Whether the contextId field is set.
*/
public boolean hasContextId() {
return contextIdBuilder_ != null || contextId_ != null;
}
/**
* .context.ContextId context_id = 2;
* @return The contextId.
*/
public context.ContextOuterClass.ContextId getContextId() {
if (contextIdBuilder_ == null) {
return contextId_ == null ? context.ContextOuterClass.ContextId.getDefaultInstance() : contextId_;
} else {
return contextIdBuilder_.getMessage();
}
}
/**
* .context.ContextId context_id = 2;
*/
public Builder setContextId(context.ContextOuterClass.ContextId value) {
if (contextIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contextId_ = value;
onChanged();
} else {
contextIdBuilder_.setMessage(value);
}
return this;
}
/**
* .context.ContextId context_id = 2;
*/
public Builder setContextId(
context.ContextOuterClass.ContextId.Builder builderForValue) {
if (contextIdBuilder_ == null) {
contextId_ = builderForValue.build();
onChanged();
} else {
contextIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.ContextId context_id = 2;
*/
public Builder mergeContextId(context.ContextOuterClass.ContextId value) {
if (contextIdBuilder_ == null) {
if (contextId_ != null) {
contextId_ =
context.ContextOuterClass.ContextId.newBuilder(contextId_).mergeFrom(value).buildPartial();
} else {
contextId_ = value;
}
onChanged();
} else {
contextIdBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.ContextId context_id = 2;
*/
public Builder clearContextId() {
if (contextIdBuilder_ == null) {
contextId_ = null;
onChanged();
} else {
contextId_ = null;
contextIdBuilder_ = null;
}
return this;
}
/**
* .context.ContextId context_id = 2;
*/
public context.ContextOuterClass.ContextId.Builder getContextIdBuilder() {
onChanged();
return getContextIdFieldBuilder().getBuilder();
}
/**
* .context.ContextId context_id = 2;
*/
public context.ContextOuterClass.ContextIdOrBuilder getContextIdOrBuilder() {
if (contextIdBuilder_ != null) {
return contextIdBuilder_.getMessageOrBuilder();
} else {
return contextId_ == null ?
context.ContextOuterClass.ContextId.getDefaultInstance() : contextId_;
}
}
/**
* .context.ContextId context_id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.ContextId, context.ContextOuterClass.ContextId.Builder, context.ContextOuterClass.ContextIdOrBuilder>
getContextIdFieldBuilder() {
if (contextIdBuilder_ == null) {
contextIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.ContextId, context.ContextOuterClass.ContextId.Builder, context.ContextOuterClass.ContextIdOrBuilder>(
getContextId(),
getParentForChildren(),
isClean());
contextId_ = null;
}
return contextIdBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.ContextEvent)
}
// @@protoc_insertion_point(class_scope:context.ContextEvent)
private static final context.ContextOuterClass.ContextEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.ContextEvent();
}
public static context.ContextOuterClass.ContextEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ContextEvent parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContextEvent(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.ContextEvent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TopologyIdOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.TopologyId)
com.google.protobuf.MessageOrBuilder {
/**
* .context.ContextId context_id = 1;
* @return Whether the contextId field is set.
*/
boolean hasContextId();
/**
* .context.ContextId context_id = 1;
* @return The contextId.
*/
context.ContextOuterClass.ContextId getContextId();
/**
* .context.ContextId context_id = 1;
*/
context.ContextOuterClass.ContextIdOrBuilder getContextIdOrBuilder();
/**
* .context.Uuid topology_uuid = 2;
* @return Whether the topologyUuid field is set.
*/
boolean hasTopologyUuid();
/**
* .context.Uuid topology_uuid = 2;
* @return The topologyUuid.
*/
context.ContextOuterClass.Uuid getTopologyUuid();
/**
* .context.Uuid topology_uuid = 2;
*/
context.ContextOuterClass.UuidOrBuilder getTopologyUuidOrBuilder();
}
/**
*
* ----- Topology ------------------------------------------------------------------------------------------------------
*
*
* Protobuf type {@code context.TopologyId}
*/
public static final class TopologyId extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.TopologyId)
TopologyIdOrBuilder {
private static final long serialVersionUID = 0L;
// Use TopologyId.newBuilder() to construct.
private TopologyId(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TopologyId() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TopologyId();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TopologyId(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
context.ContextOuterClass.ContextId.Builder subBuilder = null;
if (contextId_ != null) {
subBuilder = contextId_.toBuilder();
}
contextId_ = input.readMessage(context.ContextOuterClass.ContextId.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(contextId_);
contextId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
context.ContextOuterClass.Uuid.Builder subBuilder = null;
if (topologyUuid_ != null) {
subBuilder = topologyUuid_.toBuilder();
}
topologyUuid_ = input.readMessage(context.ContextOuterClass.Uuid.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(topologyUuid_);
topologyUuid_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_TopologyId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_TopologyId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.TopologyId.class, context.ContextOuterClass.TopologyId.Builder.class);
}
public static final int CONTEXT_ID_FIELD_NUMBER = 1;
private context.ContextOuterClass.ContextId contextId_;
/**
* .context.ContextId context_id = 1;
* @return Whether the contextId field is set.
*/
@java.lang.Override
public boolean hasContextId() {
return contextId_ != null;
}
/**
* .context.ContextId context_id = 1;
* @return The contextId.
*/
@java.lang.Override
public context.ContextOuterClass.ContextId getContextId() {
return contextId_ == null ? context.ContextOuterClass.ContextId.getDefaultInstance() : contextId_;
}
/**
* .context.ContextId context_id = 1;
*/
@java.lang.Override
public context.ContextOuterClass.ContextIdOrBuilder getContextIdOrBuilder() {
return getContextId();
}
public static final int TOPOLOGY_UUID_FIELD_NUMBER = 2;
private context.ContextOuterClass.Uuid topologyUuid_;
/**
* .context.Uuid topology_uuid = 2;
* @return Whether the topologyUuid field is set.
*/
@java.lang.Override
public boolean hasTopologyUuid() {
return topologyUuid_ != null;
}
/**
* .context.Uuid topology_uuid = 2;
* @return The topologyUuid.
*/
@java.lang.Override
public context.ContextOuterClass.Uuid getTopologyUuid() {
return topologyUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : topologyUuid_;
}
/**
* .context.Uuid topology_uuid = 2;
*/
@java.lang.Override
public context.ContextOuterClass.UuidOrBuilder getTopologyUuidOrBuilder() {
return getTopologyUuid();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (contextId_ != null) {
output.writeMessage(1, getContextId());
}
if (topologyUuid_ != null) {
output.writeMessage(2, getTopologyUuid());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (contextId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getContextId());
}
if (topologyUuid_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTopologyUuid());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.TopologyId)) {
return super.equals(obj);
}
context.ContextOuterClass.TopologyId other = (context.ContextOuterClass.TopologyId) obj;
if (hasContextId() != other.hasContextId()) return false;
if (hasContextId()) {
if (!getContextId()
.equals(other.getContextId())) return false;
}
if (hasTopologyUuid() != other.hasTopologyUuid()) return false;
if (hasTopologyUuid()) {
if (!getTopologyUuid()
.equals(other.getTopologyUuid())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasContextId()) {
hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER;
hash = (53 * hash) + getContextId().hashCode();
}
if (hasTopologyUuid()) {
hash = (37 * hash) + TOPOLOGY_UUID_FIELD_NUMBER;
hash = (53 * hash) + getTopologyUuid().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.TopologyId parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.TopologyId parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.TopologyId parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.TopologyId parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.TopologyId parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.TopologyId parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.TopologyId parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.TopologyId parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.TopologyId parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.TopologyId parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.TopologyId parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.TopologyId parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.TopologyId prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ----- Topology ------------------------------------------------------------------------------------------------------
*
*
* Protobuf type {@code context.TopologyId}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.TopologyId)
context.ContextOuterClass.TopologyIdOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_TopologyId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_TopologyId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.TopologyId.class, context.ContextOuterClass.TopologyId.Builder.class);
}
// Construct using context.ContextOuterClass.TopologyId.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (contextIdBuilder_ == null) {
contextId_ = null;
} else {
contextId_ = null;
contextIdBuilder_ = null;
}
if (topologyUuidBuilder_ == null) {
topologyUuid_ = null;
} else {
topologyUuid_ = null;
topologyUuidBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_TopologyId_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.TopologyId getDefaultInstanceForType() {
return context.ContextOuterClass.TopologyId.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.TopologyId build() {
context.ContextOuterClass.TopologyId result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.TopologyId buildPartial() {
context.ContextOuterClass.TopologyId result = new context.ContextOuterClass.TopologyId(this);
if (contextIdBuilder_ == null) {
result.contextId_ = contextId_;
} else {
result.contextId_ = contextIdBuilder_.build();
}
if (topologyUuidBuilder_ == null) {
result.topologyUuid_ = topologyUuid_;
} else {
result.topologyUuid_ = topologyUuidBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.TopologyId) {
return mergeFrom((context.ContextOuterClass.TopologyId)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.TopologyId other) {
if (other == context.ContextOuterClass.TopologyId.getDefaultInstance()) return this;
if (other.hasContextId()) {
mergeContextId(other.getContextId());
}
if (other.hasTopologyUuid()) {
mergeTopologyUuid(other.getTopologyUuid());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.TopologyId parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.TopologyId) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private context.ContextOuterClass.ContextId contextId_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.ContextId, context.ContextOuterClass.ContextId.Builder, context.ContextOuterClass.ContextIdOrBuilder> contextIdBuilder_;
/**
* .context.ContextId context_id = 1;
* @return Whether the contextId field is set.
*/
public boolean hasContextId() {
return contextIdBuilder_ != null || contextId_ != null;
}
/**
* .context.ContextId context_id = 1;
* @return The contextId.
*/
public context.ContextOuterClass.ContextId getContextId() {
if (contextIdBuilder_ == null) {
return contextId_ == null ? context.ContextOuterClass.ContextId.getDefaultInstance() : contextId_;
} else {
return contextIdBuilder_.getMessage();
}
}
/**
* .context.ContextId context_id = 1;
*/
public Builder setContextId(context.ContextOuterClass.ContextId value) {
if (contextIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
contextId_ = value;
onChanged();
} else {
contextIdBuilder_.setMessage(value);
}
return this;
}
/**
* .context.ContextId context_id = 1;
*/
public Builder setContextId(
context.ContextOuterClass.ContextId.Builder builderForValue) {
if (contextIdBuilder_ == null) {
contextId_ = builderForValue.build();
onChanged();
} else {
contextIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.ContextId context_id = 1;
*/
public Builder mergeContextId(context.ContextOuterClass.ContextId value) {
if (contextIdBuilder_ == null) {
if (contextId_ != null) {
contextId_ =
context.ContextOuterClass.ContextId.newBuilder(contextId_).mergeFrom(value).buildPartial();
} else {
contextId_ = value;
}
onChanged();
} else {
contextIdBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.ContextId context_id = 1;
*/
public Builder clearContextId() {
if (contextIdBuilder_ == null) {
contextId_ = null;
onChanged();
} else {
contextId_ = null;
contextIdBuilder_ = null;
}
return this;
}
/**
* .context.ContextId context_id = 1;
*/
public context.ContextOuterClass.ContextId.Builder getContextIdBuilder() {
onChanged();
return getContextIdFieldBuilder().getBuilder();
}
/**
* .context.ContextId context_id = 1;
*/
public context.ContextOuterClass.ContextIdOrBuilder getContextIdOrBuilder() {
if (contextIdBuilder_ != null) {
return contextIdBuilder_.getMessageOrBuilder();
} else {
return contextId_ == null ?
context.ContextOuterClass.ContextId.getDefaultInstance() : contextId_;
}
}
/**
* .context.ContextId context_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.ContextId, context.ContextOuterClass.ContextId.Builder, context.ContextOuterClass.ContextIdOrBuilder>
getContextIdFieldBuilder() {
if (contextIdBuilder_ == null) {
contextIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.ContextId, context.ContextOuterClass.ContextId.Builder, context.ContextOuterClass.ContextIdOrBuilder>(
getContextId(),
getParentForChildren(),
isClean());
contextId_ = null;
}
return contextIdBuilder_;
}
private context.ContextOuterClass.Uuid topologyUuid_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder> topologyUuidBuilder_;
/**
* .context.Uuid topology_uuid = 2;
* @return Whether the topologyUuid field is set.
*/
public boolean hasTopologyUuid() {
return topologyUuidBuilder_ != null || topologyUuid_ != null;
}
/**
* .context.Uuid topology_uuid = 2;
* @return The topologyUuid.
*/
public context.ContextOuterClass.Uuid getTopologyUuid() {
if (topologyUuidBuilder_ == null) {
return topologyUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : topologyUuid_;
} else {
return topologyUuidBuilder_.getMessage();
}
}
/**
* .context.Uuid topology_uuid = 2;
*/
public Builder setTopologyUuid(context.ContextOuterClass.Uuid value) {
if (topologyUuidBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
topologyUuid_ = value;
onChanged();
} else {
topologyUuidBuilder_.setMessage(value);
}
return this;
}
/**
* .context.Uuid topology_uuid = 2;
*/
public Builder setTopologyUuid(
context.ContextOuterClass.Uuid.Builder builderForValue) {
if (topologyUuidBuilder_ == null) {
topologyUuid_ = builderForValue.build();
onChanged();
} else {
topologyUuidBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.Uuid topology_uuid = 2;
*/
public Builder mergeTopologyUuid(context.ContextOuterClass.Uuid value) {
if (topologyUuidBuilder_ == null) {
if (topologyUuid_ != null) {
topologyUuid_ =
context.ContextOuterClass.Uuid.newBuilder(topologyUuid_).mergeFrom(value).buildPartial();
} else {
topologyUuid_ = value;
}
onChanged();
} else {
topologyUuidBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.Uuid topology_uuid = 2;
*/
public Builder clearTopologyUuid() {
if (topologyUuidBuilder_ == null) {
topologyUuid_ = null;
onChanged();
} else {
topologyUuid_ = null;
topologyUuidBuilder_ = null;
}
return this;
}
/**
* .context.Uuid topology_uuid = 2;
*/
public context.ContextOuterClass.Uuid.Builder getTopologyUuidBuilder() {
onChanged();
return getTopologyUuidFieldBuilder().getBuilder();
}
/**
* .context.Uuid topology_uuid = 2;
*/
public context.ContextOuterClass.UuidOrBuilder getTopologyUuidOrBuilder() {
if (topologyUuidBuilder_ != null) {
return topologyUuidBuilder_.getMessageOrBuilder();
} else {
return topologyUuid_ == null ?
context.ContextOuterClass.Uuid.getDefaultInstance() : topologyUuid_;
}
}
/**
* .context.Uuid topology_uuid = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder>
getTopologyUuidFieldBuilder() {
if (topologyUuidBuilder_ == null) {
topologyUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder>(
getTopologyUuid(),
getParentForChildren(),
isClean());
topologyUuid_ = null;
}
return topologyUuidBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.TopologyId)
}
// @@protoc_insertion_point(class_scope:context.TopologyId)
private static final context.ContextOuterClass.TopologyId DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.TopologyId();
}
public static context.ContextOuterClass.TopologyId getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TopologyId parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TopologyId(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.TopologyId getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TopologyOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.Topology)
com.google.protobuf.MessageOrBuilder {
/**
* .context.TopologyId topology_id = 1;
* @return Whether the topologyId field is set.
*/
boolean hasTopologyId();
/**
* .context.TopologyId topology_id = 1;
* @return The topologyId.
*/
context.ContextOuterClass.TopologyId getTopologyId();
/**
* .context.TopologyId topology_id = 1;
*/
context.ContextOuterClass.TopologyIdOrBuilder getTopologyIdOrBuilder();
/**
* repeated .context.DeviceId device_ids = 2;
*/
java.util.List
getDeviceIdsList();
/**
* repeated .context.DeviceId device_ids = 2;
*/
context.ContextOuterClass.DeviceId getDeviceIds(int index);
/**
* repeated .context.DeviceId device_ids = 2;
*/
int getDeviceIdsCount();
/**
* repeated .context.DeviceId device_ids = 2;
*/
java.util.List extends context.ContextOuterClass.DeviceIdOrBuilder>
getDeviceIdsOrBuilderList();
/**
* repeated .context.DeviceId device_ids = 2;
*/
context.ContextOuterClass.DeviceIdOrBuilder getDeviceIdsOrBuilder(
int index);
/**
* repeated .context.LinkId link_ids = 3;
*/
java.util.List
getLinkIdsList();
/**
* repeated .context.LinkId link_ids = 3;
*/
context.ContextOuterClass.LinkId getLinkIds(int index);
/**
* repeated .context.LinkId link_ids = 3;
*/
int getLinkIdsCount();
/**
* repeated .context.LinkId link_ids = 3;
*/
java.util.List extends context.ContextOuterClass.LinkIdOrBuilder>
getLinkIdsOrBuilderList();
/**
* repeated .context.LinkId link_ids = 3;
*/
context.ContextOuterClass.LinkIdOrBuilder getLinkIdsOrBuilder(
int index);
}
/**
* Protobuf type {@code context.Topology}
*/
public static final class Topology extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.Topology)
TopologyOrBuilder {
private static final long serialVersionUID = 0L;
// Use Topology.newBuilder() to construct.
private Topology(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Topology() {
deviceIds_ = java.util.Collections.emptyList();
linkIds_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Topology();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Topology(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
context.ContextOuterClass.TopologyId.Builder subBuilder = null;
if (topologyId_ != null) {
subBuilder = topologyId_.toBuilder();
}
topologyId_ = input.readMessage(context.ContextOuterClass.TopologyId.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(topologyId_);
topologyId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
deviceIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
deviceIds_.add(
input.readMessage(context.ContextOuterClass.DeviceId.parser(), extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
linkIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
linkIds_.add(
input.readMessage(context.ContextOuterClass.LinkId.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
deviceIds_ = java.util.Collections.unmodifiableList(deviceIds_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
linkIds_ = java.util.Collections.unmodifiableList(linkIds_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_Topology_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_Topology_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.Topology.class, context.ContextOuterClass.Topology.Builder.class);
}
public static final int TOPOLOGY_ID_FIELD_NUMBER = 1;
private context.ContextOuterClass.TopologyId topologyId_;
/**
* .context.TopologyId topology_id = 1;
* @return Whether the topologyId field is set.
*/
@java.lang.Override
public boolean hasTopologyId() {
return topologyId_ != null;
}
/**
* .context.TopologyId topology_id = 1;
* @return The topologyId.
*/
@java.lang.Override
public context.ContextOuterClass.TopologyId getTopologyId() {
return topologyId_ == null ? context.ContextOuterClass.TopologyId.getDefaultInstance() : topologyId_;
}
/**
* .context.TopologyId topology_id = 1;
*/
@java.lang.Override
public context.ContextOuterClass.TopologyIdOrBuilder getTopologyIdOrBuilder() {
return getTopologyId();
}
public static final int DEVICE_IDS_FIELD_NUMBER = 2;
private java.util.List deviceIds_;
/**
* repeated .context.DeviceId device_ids = 2;
*/
@java.lang.Override
public java.util.List getDeviceIdsList() {
return deviceIds_;
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.DeviceIdOrBuilder>
getDeviceIdsOrBuilderList() {
return deviceIds_;
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
@java.lang.Override
public int getDeviceIdsCount() {
return deviceIds_.size();
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
@java.lang.Override
public context.ContextOuterClass.DeviceId getDeviceIds(int index) {
return deviceIds_.get(index);
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
@java.lang.Override
public context.ContextOuterClass.DeviceIdOrBuilder getDeviceIdsOrBuilder(
int index) {
return deviceIds_.get(index);
}
public static final int LINK_IDS_FIELD_NUMBER = 3;
private java.util.List linkIds_;
/**
* repeated .context.LinkId link_ids = 3;
*/
@java.lang.Override
public java.util.List getLinkIdsList() {
return linkIds_;
}
/**
* repeated .context.LinkId link_ids = 3;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.LinkIdOrBuilder>
getLinkIdsOrBuilderList() {
return linkIds_;
}
/**
* repeated .context.LinkId link_ids = 3;
*/
@java.lang.Override
public int getLinkIdsCount() {
return linkIds_.size();
}
/**
* repeated .context.LinkId link_ids = 3;
*/
@java.lang.Override
public context.ContextOuterClass.LinkId getLinkIds(int index) {
return linkIds_.get(index);
}
/**
* repeated .context.LinkId link_ids = 3;
*/
@java.lang.Override
public context.ContextOuterClass.LinkIdOrBuilder getLinkIdsOrBuilder(
int index) {
return linkIds_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (topologyId_ != null) {
output.writeMessage(1, getTopologyId());
}
for (int i = 0; i < deviceIds_.size(); i++) {
output.writeMessage(2, deviceIds_.get(i));
}
for (int i = 0; i < linkIds_.size(); i++) {
output.writeMessage(3, linkIds_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (topologyId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTopologyId());
}
for (int i = 0; i < deviceIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, deviceIds_.get(i));
}
for (int i = 0; i < linkIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, linkIds_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.Topology)) {
return super.equals(obj);
}
context.ContextOuterClass.Topology other = (context.ContextOuterClass.Topology) obj;
if (hasTopologyId() != other.hasTopologyId()) return false;
if (hasTopologyId()) {
if (!getTopologyId()
.equals(other.getTopologyId())) return false;
}
if (!getDeviceIdsList()
.equals(other.getDeviceIdsList())) return false;
if (!getLinkIdsList()
.equals(other.getLinkIdsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTopologyId()) {
hash = (37 * hash) + TOPOLOGY_ID_FIELD_NUMBER;
hash = (53 * hash) + getTopologyId().hashCode();
}
if (getDeviceIdsCount() > 0) {
hash = (37 * hash) + DEVICE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getDeviceIdsList().hashCode();
}
if (getLinkIdsCount() > 0) {
hash = (37 * hash) + LINK_IDS_FIELD_NUMBER;
hash = (53 * hash) + getLinkIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.Topology parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Topology parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Topology parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Topology parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Topology parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Topology parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Topology parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Topology parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.Topology parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Topology parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.Topology parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Topology parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.Topology prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.Topology}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.Topology)
context.ContextOuterClass.TopologyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_Topology_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_Topology_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.Topology.class, context.ContextOuterClass.Topology.Builder.class);
}
// Construct using context.ContextOuterClass.Topology.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDeviceIdsFieldBuilder();
getLinkIdsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (topologyIdBuilder_ == null) {
topologyId_ = null;
} else {
topologyId_ = null;
topologyIdBuilder_ = null;
}
if (deviceIdsBuilder_ == null) {
deviceIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
deviceIdsBuilder_.clear();
}
if (linkIdsBuilder_ == null) {
linkIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
linkIdsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_Topology_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.Topology getDefaultInstanceForType() {
return context.ContextOuterClass.Topology.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.Topology build() {
context.ContextOuterClass.Topology result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.Topology buildPartial() {
context.ContextOuterClass.Topology result = new context.ContextOuterClass.Topology(this);
int from_bitField0_ = bitField0_;
if (topologyIdBuilder_ == null) {
result.topologyId_ = topologyId_;
} else {
result.topologyId_ = topologyIdBuilder_.build();
}
if (deviceIdsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
deviceIds_ = java.util.Collections.unmodifiableList(deviceIds_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.deviceIds_ = deviceIds_;
} else {
result.deviceIds_ = deviceIdsBuilder_.build();
}
if (linkIdsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
linkIds_ = java.util.Collections.unmodifiableList(linkIds_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.linkIds_ = linkIds_;
} else {
result.linkIds_ = linkIdsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.Topology) {
return mergeFrom((context.ContextOuterClass.Topology)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.Topology other) {
if (other == context.ContextOuterClass.Topology.getDefaultInstance()) return this;
if (other.hasTopologyId()) {
mergeTopologyId(other.getTopologyId());
}
if (deviceIdsBuilder_ == null) {
if (!other.deviceIds_.isEmpty()) {
if (deviceIds_.isEmpty()) {
deviceIds_ = other.deviceIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDeviceIdsIsMutable();
deviceIds_.addAll(other.deviceIds_);
}
onChanged();
}
} else {
if (!other.deviceIds_.isEmpty()) {
if (deviceIdsBuilder_.isEmpty()) {
deviceIdsBuilder_.dispose();
deviceIdsBuilder_ = null;
deviceIds_ = other.deviceIds_;
bitField0_ = (bitField0_ & ~0x00000001);
deviceIdsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDeviceIdsFieldBuilder() : null;
} else {
deviceIdsBuilder_.addAllMessages(other.deviceIds_);
}
}
}
if (linkIdsBuilder_ == null) {
if (!other.linkIds_.isEmpty()) {
if (linkIds_.isEmpty()) {
linkIds_ = other.linkIds_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureLinkIdsIsMutable();
linkIds_.addAll(other.linkIds_);
}
onChanged();
}
} else {
if (!other.linkIds_.isEmpty()) {
if (linkIdsBuilder_.isEmpty()) {
linkIdsBuilder_.dispose();
linkIdsBuilder_ = null;
linkIds_ = other.linkIds_;
bitField0_ = (bitField0_ & ~0x00000002);
linkIdsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLinkIdsFieldBuilder() : null;
} else {
linkIdsBuilder_.addAllMessages(other.linkIds_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.Topology parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.Topology) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private context.ContextOuterClass.TopologyId topologyId_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.TopologyId, context.ContextOuterClass.TopologyId.Builder, context.ContextOuterClass.TopologyIdOrBuilder> topologyIdBuilder_;
/**
* .context.TopologyId topology_id = 1;
* @return Whether the topologyId field is set.
*/
public boolean hasTopologyId() {
return topologyIdBuilder_ != null || topologyId_ != null;
}
/**
* .context.TopologyId topology_id = 1;
* @return The topologyId.
*/
public context.ContextOuterClass.TopologyId getTopologyId() {
if (topologyIdBuilder_ == null) {
return topologyId_ == null ? context.ContextOuterClass.TopologyId.getDefaultInstance() : topologyId_;
} else {
return topologyIdBuilder_.getMessage();
}
}
/**
* .context.TopologyId topology_id = 1;
*/
public Builder setTopologyId(context.ContextOuterClass.TopologyId value) {
if (topologyIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
topologyId_ = value;
onChanged();
} else {
topologyIdBuilder_.setMessage(value);
}
return this;
}
/**
* .context.TopologyId topology_id = 1;
*/
public Builder setTopologyId(
context.ContextOuterClass.TopologyId.Builder builderForValue) {
if (topologyIdBuilder_ == null) {
topologyId_ = builderForValue.build();
onChanged();
} else {
topologyIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.TopologyId topology_id = 1;
*/
public Builder mergeTopologyId(context.ContextOuterClass.TopologyId value) {
if (topologyIdBuilder_ == null) {
if (topologyId_ != null) {
topologyId_ =
context.ContextOuterClass.TopologyId.newBuilder(topologyId_).mergeFrom(value).buildPartial();
} else {
topologyId_ = value;
}
onChanged();
} else {
topologyIdBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.TopologyId topology_id = 1;
*/
public Builder clearTopologyId() {
if (topologyIdBuilder_ == null) {
topologyId_ = null;
onChanged();
} else {
topologyId_ = null;
topologyIdBuilder_ = null;
}
return this;
}
/**
* .context.TopologyId topology_id = 1;
*/
public context.ContextOuterClass.TopologyId.Builder getTopologyIdBuilder() {
onChanged();
return getTopologyIdFieldBuilder().getBuilder();
}
/**
* .context.TopologyId topology_id = 1;
*/
public context.ContextOuterClass.TopologyIdOrBuilder getTopologyIdOrBuilder() {
if (topologyIdBuilder_ != null) {
return topologyIdBuilder_.getMessageOrBuilder();
} else {
return topologyId_ == null ?
context.ContextOuterClass.TopologyId.getDefaultInstance() : topologyId_;
}
}
/**
* .context.TopologyId topology_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.TopologyId, context.ContextOuterClass.TopologyId.Builder, context.ContextOuterClass.TopologyIdOrBuilder>
getTopologyIdFieldBuilder() {
if (topologyIdBuilder_ == null) {
topologyIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.TopologyId, context.ContextOuterClass.TopologyId.Builder, context.ContextOuterClass.TopologyIdOrBuilder>(
getTopologyId(),
getParentForChildren(),
isClean());
topologyId_ = null;
}
return topologyIdBuilder_;
}
private java.util.List deviceIds_ =
java.util.Collections.emptyList();
private void ensureDeviceIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
deviceIds_ = new java.util.ArrayList(deviceIds_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder> deviceIdsBuilder_;
/**
* repeated .context.DeviceId device_ids = 2;
*/
public java.util.List getDeviceIdsList() {
if (deviceIdsBuilder_ == null) {
return java.util.Collections.unmodifiableList(deviceIds_);
} else {
return deviceIdsBuilder_.getMessageList();
}
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
public int getDeviceIdsCount() {
if (deviceIdsBuilder_ == null) {
return deviceIds_.size();
} else {
return deviceIdsBuilder_.getCount();
}
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
public context.ContextOuterClass.DeviceId getDeviceIds(int index) {
if (deviceIdsBuilder_ == null) {
return deviceIds_.get(index);
} else {
return deviceIdsBuilder_.getMessage(index);
}
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
public Builder setDeviceIds(
int index, context.ContextOuterClass.DeviceId value) {
if (deviceIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceIdsIsMutable();
deviceIds_.set(index, value);
onChanged();
} else {
deviceIdsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
public Builder setDeviceIds(
int index, context.ContextOuterClass.DeviceId.Builder builderForValue) {
if (deviceIdsBuilder_ == null) {
ensureDeviceIdsIsMutable();
deviceIds_.set(index, builderForValue.build());
onChanged();
} else {
deviceIdsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
public Builder addDeviceIds(context.ContextOuterClass.DeviceId value) {
if (deviceIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceIdsIsMutable();
deviceIds_.add(value);
onChanged();
} else {
deviceIdsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
public Builder addDeviceIds(
int index, context.ContextOuterClass.DeviceId value) {
if (deviceIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceIdsIsMutable();
deviceIds_.add(index, value);
onChanged();
} else {
deviceIdsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
public Builder addDeviceIds(
context.ContextOuterClass.DeviceId.Builder builderForValue) {
if (deviceIdsBuilder_ == null) {
ensureDeviceIdsIsMutable();
deviceIds_.add(builderForValue.build());
onChanged();
} else {
deviceIdsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
public Builder addDeviceIds(
int index, context.ContextOuterClass.DeviceId.Builder builderForValue) {
if (deviceIdsBuilder_ == null) {
ensureDeviceIdsIsMutable();
deviceIds_.add(index, builderForValue.build());
onChanged();
} else {
deviceIdsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
public Builder addAllDeviceIds(
java.lang.Iterable extends context.ContextOuterClass.DeviceId> values) {
if (deviceIdsBuilder_ == null) {
ensureDeviceIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, deviceIds_);
onChanged();
} else {
deviceIdsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
public Builder clearDeviceIds() {
if (deviceIdsBuilder_ == null) {
deviceIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
deviceIdsBuilder_.clear();
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
public Builder removeDeviceIds(int index) {
if (deviceIdsBuilder_ == null) {
ensureDeviceIdsIsMutable();
deviceIds_.remove(index);
onChanged();
} else {
deviceIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
public context.ContextOuterClass.DeviceId.Builder getDeviceIdsBuilder(
int index) {
return getDeviceIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
public context.ContextOuterClass.DeviceIdOrBuilder getDeviceIdsOrBuilder(
int index) {
if (deviceIdsBuilder_ == null) {
return deviceIds_.get(index); } else {
return deviceIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
public java.util.List extends context.ContextOuterClass.DeviceIdOrBuilder>
getDeviceIdsOrBuilderList() {
if (deviceIdsBuilder_ != null) {
return deviceIdsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(deviceIds_);
}
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
public context.ContextOuterClass.DeviceId.Builder addDeviceIdsBuilder() {
return getDeviceIdsFieldBuilder().addBuilder(
context.ContextOuterClass.DeviceId.getDefaultInstance());
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
public context.ContextOuterClass.DeviceId.Builder addDeviceIdsBuilder(
int index) {
return getDeviceIdsFieldBuilder().addBuilder(
index, context.ContextOuterClass.DeviceId.getDefaultInstance());
}
/**
* repeated .context.DeviceId device_ids = 2;
*/
public java.util.List
getDeviceIdsBuilderList() {
return getDeviceIdsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder>
getDeviceIdsFieldBuilder() {
if (deviceIdsBuilder_ == null) {
deviceIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder>(
deviceIds_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
deviceIds_ = null;
}
return deviceIdsBuilder_;
}
private java.util.List linkIds_ =
java.util.Collections.emptyList();
private void ensureLinkIdsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
linkIds_ = new java.util.ArrayList(linkIds_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.LinkId, context.ContextOuterClass.LinkId.Builder, context.ContextOuterClass.LinkIdOrBuilder> linkIdsBuilder_;
/**
* repeated .context.LinkId link_ids = 3;
*/
public java.util.List getLinkIdsList() {
if (linkIdsBuilder_ == null) {
return java.util.Collections.unmodifiableList(linkIds_);
} else {
return linkIdsBuilder_.getMessageList();
}
}
/**
* repeated .context.LinkId link_ids = 3;
*/
public int getLinkIdsCount() {
if (linkIdsBuilder_ == null) {
return linkIds_.size();
} else {
return linkIdsBuilder_.getCount();
}
}
/**
* repeated .context.LinkId link_ids = 3;
*/
public context.ContextOuterClass.LinkId getLinkIds(int index) {
if (linkIdsBuilder_ == null) {
return linkIds_.get(index);
} else {
return linkIdsBuilder_.getMessage(index);
}
}
/**
* repeated .context.LinkId link_ids = 3;
*/
public Builder setLinkIds(
int index, context.ContextOuterClass.LinkId value) {
if (linkIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinkIdsIsMutable();
linkIds_.set(index, value);
onChanged();
} else {
linkIdsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .context.LinkId link_ids = 3;
*/
public Builder setLinkIds(
int index, context.ContextOuterClass.LinkId.Builder builderForValue) {
if (linkIdsBuilder_ == null) {
ensureLinkIdsIsMutable();
linkIds_.set(index, builderForValue.build());
onChanged();
} else {
linkIdsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.LinkId link_ids = 3;
*/
public Builder addLinkIds(context.ContextOuterClass.LinkId value) {
if (linkIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinkIdsIsMutable();
linkIds_.add(value);
onChanged();
} else {
linkIdsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .context.LinkId link_ids = 3;
*/
public Builder addLinkIds(
int index, context.ContextOuterClass.LinkId value) {
if (linkIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinkIdsIsMutable();
linkIds_.add(index, value);
onChanged();
} else {
linkIdsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .context.LinkId link_ids = 3;
*/
public Builder addLinkIds(
context.ContextOuterClass.LinkId.Builder builderForValue) {
if (linkIdsBuilder_ == null) {
ensureLinkIdsIsMutable();
linkIds_.add(builderForValue.build());
onChanged();
} else {
linkIdsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .context.LinkId link_ids = 3;
*/
public Builder addLinkIds(
int index, context.ContextOuterClass.LinkId.Builder builderForValue) {
if (linkIdsBuilder_ == null) {
ensureLinkIdsIsMutable();
linkIds_.add(index, builderForValue.build());
onChanged();
} else {
linkIdsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.LinkId link_ids = 3;
*/
public Builder addAllLinkIds(
java.lang.Iterable extends context.ContextOuterClass.LinkId> values) {
if (linkIdsBuilder_ == null) {
ensureLinkIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, linkIds_);
onChanged();
} else {
linkIdsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .context.LinkId link_ids = 3;
*/
public Builder clearLinkIds() {
if (linkIdsBuilder_ == null) {
linkIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
linkIdsBuilder_.clear();
}
return this;
}
/**
* repeated .context.LinkId link_ids = 3;
*/
public Builder removeLinkIds(int index) {
if (linkIdsBuilder_ == null) {
ensureLinkIdsIsMutable();
linkIds_.remove(index);
onChanged();
} else {
linkIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.LinkId link_ids = 3;
*/
public context.ContextOuterClass.LinkId.Builder getLinkIdsBuilder(
int index) {
return getLinkIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .context.LinkId link_ids = 3;
*/
public context.ContextOuterClass.LinkIdOrBuilder getLinkIdsOrBuilder(
int index) {
if (linkIdsBuilder_ == null) {
return linkIds_.get(index); } else {
return linkIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.LinkId link_ids = 3;
*/
public java.util.List extends context.ContextOuterClass.LinkIdOrBuilder>
getLinkIdsOrBuilderList() {
if (linkIdsBuilder_ != null) {
return linkIdsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(linkIds_);
}
}
/**
* repeated .context.LinkId link_ids = 3;
*/
public context.ContextOuterClass.LinkId.Builder addLinkIdsBuilder() {
return getLinkIdsFieldBuilder().addBuilder(
context.ContextOuterClass.LinkId.getDefaultInstance());
}
/**
* repeated .context.LinkId link_ids = 3;
*/
public context.ContextOuterClass.LinkId.Builder addLinkIdsBuilder(
int index) {
return getLinkIdsFieldBuilder().addBuilder(
index, context.ContextOuterClass.LinkId.getDefaultInstance());
}
/**
* repeated .context.LinkId link_ids = 3;
*/
public java.util.List
getLinkIdsBuilderList() {
return getLinkIdsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.LinkId, context.ContextOuterClass.LinkId.Builder, context.ContextOuterClass.LinkIdOrBuilder>
getLinkIdsFieldBuilder() {
if (linkIdsBuilder_ == null) {
linkIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.LinkId, context.ContextOuterClass.LinkId.Builder, context.ContextOuterClass.LinkIdOrBuilder>(
linkIds_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
linkIds_ = null;
}
return linkIdsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.Topology)
}
// @@protoc_insertion_point(class_scope:context.Topology)
private static final context.ContextOuterClass.Topology DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.Topology();
}
public static context.ContextOuterClass.Topology getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Topology parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Topology(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.Topology getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TopologyIdListOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.TopologyIdList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .context.TopologyId topology_ids = 1;
*/
java.util.List
getTopologyIdsList();
/**
* repeated .context.TopologyId topology_ids = 1;
*/
context.ContextOuterClass.TopologyId getTopologyIds(int index);
/**
* repeated .context.TopologyId topology_ids = 1;
*/
int getTopologyIdsCount();
/**
* repeated .context.TopologyId topology_ids = 1;
*/
java.util.List extends context.ContextOuterClass.TopologyIdOrBuilder>
getTopologyIdsOrBuilderList();
/**
* repeated .context.TopologyId topology_ids = 1;
*/
context.ContextOuterClass.TopologyIdOrBuilder getTopologyIdsOrBuilder(
int index);
}
/**
* Protobuf type {@code context.TopologyIdList}
*/
public static final class TopologyIdList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.TopologyIdList)
TopologyIdListOrBuilder {
private static final long serialVersionUID = 0L;
// Use TopologyIdList.newBuilder() to construct.
private TopologyIdList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TopologyIdList() {
topologyIds_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TopologyIdList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TopologyIdList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
topologyIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
topologyIds_.add(
input.readMessage(context.ContextOuterClass.TopologyId.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
topologyIds_ = java.util.Collections.unmodifiableList(topologyIds_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_TopologyIdList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_TopologyIdList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.TopologyIdList.class, context.ContextOuterClass.TopologyIdList.Builder.class);
}
public static final int TOPOLOGY_IDS_FIELD_NUMBER = 1;
private java.util.List topologyIds_;
/**
* repeated .context.TopologyId topology_ids = 1;
*/
@java.lang.Override
public java.util.List getTopologyIdsList() {
return topologyIds_;
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.TopologyIdOrBuilder>
getTopologyIdsOrBuilderList() {
return topologyIds_;
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
@java.lang.Override
public int getTopologyIdsCount() {
return topologyIds_.size();
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
@java.lang.Override
public context.ContextOuterClass.TopologyId getTopologyIds(int index) {
return topologyIds_.get(index);
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
@java.lang.Override
public context.ContextOuterClass.TopologyIdOrBuilder getTopologyIdsOrBuilder(
int index) {
return topologyIds_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < topologyIds_.size(); i++) {
output.writeMessage(1, topologyIds_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < topologyIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, topologyIds_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.TopologyIdList)) {
return super.equals(obj);
}
context.ContextOuterClass.TopologyIdList other = (context.ContextOuterClass.TopologyIdList) obj;
if (!getTopologyIdsList()
.equals(other.getTopologyIdsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getTopologyIdsCount() > 0) {
hash = (37 * hash) + TOPOLOGY_IDS_FIELD_NUMBER;
hash = (53 * hash) + getTopologyIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.TopologyIdList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.TopologyIdList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.TopologyIdList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.TopologyIdList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.TopologyIdList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.TopologyIdList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.TopologyIdList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.TopologyIdList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.TopologyIdList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.TopologyIdList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.TopologyIdList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.TopologyIdList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.TopologyIdList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.TopologyIdList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.TopologyIdList)
context.ContextOuterClass.TopologyIdListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_TopologyIdList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_TopologyIdList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.TopologyIdList.class, context.ContextOuterClass.TopologyIdList.Builder.class);
}
// Construct using context.ContextOuterClass.TopologyIdList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTopologyIdsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (topologyIdsBuilder_ == null) {
topologyIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
topologyIdsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_TopologyIdList_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.TopologyIdList getDefaultInstanceForType() {
return context.ContextOuterClass.TopologyIdList.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.TopologyIdList build() {
context.ContextOuterClass.TopologyIdList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.TopologyIdList buildPartial() {
context.ContextOuterClass.TopologyIdList result = new context.ContextOuterClass.TopologyIdList(this);
int from_bitField0_ = bitField0_;
if (topologyIdsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
topologyIds_ = java.util.Collections.unmodifiableList(topologyIds_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.topologyIds_ = topologyIds_;
} else {
result.topologyIds_ = topologyIdsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.TopologyIdList) {
return mergeFrom((context.ContextOuterClass.TopologyIdList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.TopologyIdList other) {
if (other == context.ContextOuterClass.TopologyIdList.getDefaultInstance()) return this;
if (topologyIdsBuilder_ == null) {
if (!other.topologyIds_.isEmpty()) {
if (topologyIds_.isEmpty()) {
topologyIds_ = other.topologyIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTopologyIdsIsMutable();
topologyIds_.addAll(other.topologyIds_);
}
onChanged();
}
} else {
if (!other.topologyIds_.isEmpty()) {
if (topologyIdsBuilder_.isEmpty()) {
topologyIdsBuilder_.dispose();
topologyIdsBuilder_ = null;
topologyIds_ = other.topologyIds_;
bitField0_ = (bitField0_ & ~0x00000001);
topologyIdsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTopologyIdsFieldBuilder() : null;
} else {
topologyIdsBuilder_.addAllMessages(other.topologyIds_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.TopologyIdList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.TopologyIdList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List topologyIds_ =
java.util.Collections.emptyList();
private void ensureTopologyIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
topologyIds_ = new java.util.ArrayList(topologyIds_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.TopologyId, context.ContextOuterClass.TopologyId.Builder, context.ContextOuterClass.TopologyIdOrBuilder> topologyIdsBuilder_;
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public java.util.List getTopologyIdsList() {
if (topologyIdsBuilder_ == null) {
return java.util.Collections.unmodifiableList(topologyIds_);
} else {
return topologyIdsBuilder_.getMessageList();
}
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public int getTopologyIdsCount() {
if (topologyIdsBuilder_ == null) {
return topologyIds_.size();
} else {
return topologyIdsBuilder_.getCount();
}
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public context.ContextOuterClass.TopologyId getTopologyIds(int index) {
if (topologyIdsBuilder_ == null) {
return topologyIds_.get(index);
} else {
return topologyIdsBuilder_.getMessage(index);
}
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public Builder setTopologyIds(
int index, context.ContextOuterClass.TopologyId value) {
if (topologyIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopologyIdsIsMutable();
topologyIds_.set(index, value);
onChanged();
} else {
topologyIdsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public Builder setTopologyIds(
int index, context.ContextOuterClass.TopologyId.Builder builderForValue) {
if (topologyIdsBuilder_ == null) {
ensureTopologyIdsIsMutable();
topologyIds_.set(index, builderForValue.build());
onChanged();
} else {
topologyIdsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public Builder addTopologyIds(context.ContextOuterClass.TopologyId value) {
if (topologyIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopologyIdsIsMutable();
topologyIds_.add(value);
onChanged();
} else {
topologyIdsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public Builder addTopologyIds(
int index, context.ContextOuterClass.TopologyId value) {
if (topologyIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopologyIdsIsMutable();
topologyIds_.add(index, value);
onChanged();
} else {
topologyIdsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public Builder addTopologyIds(
context.ContextOuterClass.TopologyId.Builder builderForValue) {
if (topologyIdsBuilder_ == null) {
ensureTopologyIdsIsMutable();
topologyIds_.add(builderForValue.build());
onChanged();
} else {
topologyIdsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public Builder addTopologyIds(
int index, context.ContextOuterClass.TopologyId.Builder builderForValue) {
if (topologyIdsBuilder_ == null) {
ensureTopologyIdsIsMutable();
topologyIds_.add(index, builderForValue.build());
onChanged();
} else {
topologyIdsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public Builder addAllTopologyIds(
java.lang.Iterable extends context.ContextOuterClass.TopologyId> values) {
if (topologyIdsBuilder_ == null) {
ensureTopologyIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, topologyIds_);
onChanged();
} else {
topologyIdsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public Builder clearTopologyIds() {
if (topologyIdsBuilder_ == null) {
topologyIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
topologyIdsBuilder_.clear();
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public Builder removeTopologyIds(int index) {
if (topologyIdsBuilder_ == null) {
ensureTopologyIdsIsMutable();
topologyIds_.remove(index);
onChanged();
} else {
topologyIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public context.ContextOuterClass.TopologyId.Builder getTopologyIdsBuilder(
int index) {
return getTopologyIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public context.ContextOuterClass.TopologyIdOrBuilder getTopologyIdsOrBuilder(
int index) {
if (topologyIdsBuilder_ == null) {
return topologyIds_.get(index); } else {
return topologyIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public java.util.List extends context.ContextOuterClass.TopologyIdOrBuilder>
getTopologyIdsOrBuilderList() {
if (topologyIdsBuilder_ != null) {
return topologyIdsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(topologyIds_);
}
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public context.ContextOuterClass.TopologyId.Builder addTopologyIdsBuilder() {
return getTopologyIdsFieldBuilder().addBuilder(
context.ContextOuterClass.TopologyId.getDefaultInstance());
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public context.ContextOuterClass.TopologyId.Builder addTopologyIdsBuilder(
int index) {
return getTopologyIdsFieldBuilder().addBuilder(
index, context.ContextOuterClass.TopologyId.getDefaultInstance());
}
/**
* repeated .context.TopologyId topology_ids = 1;
*/
public java.util.List
getTopologyIdsBuilderList() {
return getTopologyIdsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.TopologyId, context.ContextOuterClass.TopologyId.Builder, context.ContextOuterClass.TopologyIdOrBuilder>
getTopologyIdsFieldBuilder() {
if (topologyIdsBuilder_ == null) {
topologyIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.TopologyId, context.ContextOuterClass.TopologyId.Builder, context.ContextOuterClass.TopologyIdOrBuilder>(
topologyIds_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
topologyIds_ = null;
}
return topologyIdsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.TopologyIdList)
}
// @@protoc_insertion_point(class_scope:context.TopologyIdList)
private static final context.ContextOuterClass.TopologyIdList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.TopologyIdList();
}
public static context.ContextOuterClass.TopologyIdList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TopologyIdList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TopologyIdList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.TopologyIdList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TopologyListOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.TopologyList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .context.Topology topologies = 1;
*/
java.util.List
getTopologiesList();
/**
* repeated .context.Topology topologies = 1;
*/
context.ContextOuterClass.Topology getTopologies(int index);
/**
* repeated .context.Topology topologies = 1;
*/
int getTopologiesCount();
/**
* repeated .context.Topology topologies = 1;
*/
java.util.List extends context.ContextOuterClass.TopologyOrBuilder>
getTopologiesOrBuilderList();
/**
* repeated .context.Topology topologies = 1;
*/
context.ContextOuterClass.TopologyOrBuilder getTopologiesOrBuilder(
int index);
}
/**
* Protobuf type {@code context.TopologyList}
*/
public static final class TopologyList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.TopologyList)
TopologyListOrBuilder {
private static final long serialVersionUID = 0L;
// Use TopologyList.newBuilder() to construct.
private TopologyList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TopologyList() {
topologies_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TopologyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TopologyList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
topologies_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
topologies_.add(
input.readMessage(context.ContextOuterClass.Topology.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
topologies_ = java.util.Collections.unmodifiableList(topologies_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_TopologyList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_TopologyList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.TopologyList.class, context.ContextOuterClass.TopologyList.Builder.class);
}
public static final int TOPOLOGIES_FIELD_NUMBER = 1;
private java.util.List topologies_;
/**
* repeated .context.Topology topologies = 1;
*/
@java.lang.Override
public java.util.List getTopologiesList() {
return topologies_;
}
/**
* repeated .context.Topology topologies = 1;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.TopologyOrBuilder>
getTopologiesOrBuilderList() {
return topologies_;
}
/**
* repeated .context.Topology topologies = 1;
*/
@java.lang.Override
public int getTopologiesCount() {
return topologies_.size();
}
/**
* repeated .context.Topology topologies = 1;
*/
@java.lang.Override
public context.ContextOuterClass.Topology getTopologies(int index) {
return topologies_.get(index);
}
/**
* repeated .context.Topology topologies = 1;
*/
@java.lang.Override
public context.ContextOuterClass.TopologyOrBuilder getTopologiesOrBuilder(
int index) {
return topologies_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < topologies_.size(); i++) {
output.writeMessage(1, topologies_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < topologies_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, topologies_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.TopologyList)) {
return super.equals(obj);
}
context.ContextOuterClass.TopologyList other = (context.ContextOuterClass.TopologyList) obj;
if (!getTopologiesList()
.equals(other.getTopologiesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getTopologiesCount() > 0) {
hash = (37 * hash) + TOPOLOGIES_FIELD_NUMBER;
hash = (53 * hash) + getTopologiesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.TopologyList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.TopologyList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.TopologyList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.TopologyList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.TopologyList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.TopologyList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.TopologyList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.TopologyList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.TopologyList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.TopologyList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.TopologyList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.TopologyList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.TopologyList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.TopologyList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.TopologyList)
context.ContextOuterClass.TopologyListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_TopologyList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_TopologyList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.TopologyList.class, context.ContextOuterClass.TopologyList.Builder.class);
}
// Construct using context.ContextOuterClass.TopologyList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTopologiesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (topologiesBuilder_ == null) {
topologies_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
topologiesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_TopologyList_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.TopologyList getDefaultInstanceForType() {
return context.ContextOuterClass.TopologyList.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.TopologyList build() {
context.ContextOuterClass.TopologyList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.TopologyList buildPartial() {
context.ContextOuterClass.TopologyList result = new context.ContextOuterClass.TopologyList(this);
int from_bitField0_ = bitField0_;
if (topologiesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
topologies_ = java.util.Collections.unmodifiableList(topologies_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.topologies_ = topologies_;
} else {
result.topologies_ = topologiesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.TopologyList) {
return mergeFrom((context.ContextOuterClass.TopologyList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.TopologyList other) {
if (other == context.ContextOuterClass.TopologyList.getDefaultInstance()) return this;
if (topologiesBuilder_ == null) {
if (!other.topologies_.isEmpty()) {
if (topologies_.isEmpty()) {
topologies_ = other.topologies_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTopologiesIsMutable();
topologies_.addAll(other.topologies_);
}
onChanged();
}
} else {
if (!other.topologies_.isEmpty()) {
if (topologiesBuilder_.isEmpty()) {
topologiesBuilder_.dispose();
topologiesBuilder_ = null;
topologies_ = other.topologies_;
bitField0_ = (bitField0_ & ~0x00000001);
topologiesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTopologiesFieldBuilder() : null;
} else {
topologiesBuilder_.addAllMessages(other.topologies_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.TopologyList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.TopologyList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List topologies_ =
java.util.Collections.emptyList();
private void ensureTopologiesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
topologies_ = new java.util.ArrayList(topologies_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.Topology, context.ContextOuterClass.Topology.Builder, context.ContextOuterClass.TopologyOrBuilder> topologiesBuilder_;
/**
* repeated .context.Topology topologies = 1;
*/
public java.util.List getTopologiesList() {
if (topologiesBuilder_ == null) {
return java.util.Collections.unmodifiableList(topologies_);
} else {
return topologiesBuilder_.getMessageList();
}
}
/**
* repeated .context.Topology topologies = 1;
*/
public int getTopologiesCount() {
if (topologiesBuilder_ == null) {
return topologies_.size();
} else {
return topologiesBuilder_.getCount();
}
}
/**
* repeated .context.Topology topologies = 1;
*/
public context.ContextOuterClass.Topology getTopologies(int index) {
if (topologiesBuilder_ == null) {
return topologies_.get(index);
} else {
return topologiesBuilder_.getMessage(index);
}
}
/**
* repeated .context.Topology topologies = 1;
*/
public Builder setTopologies(
int index, context.ContextOuterClass.Topology value) {
if (topologiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopologiesIsMutable();
topologies_.set(index, value);
onChanged();
} else {
topologiesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .context.Topology topologies = 1;
*/
public Builder setTopologies(
int index, context.ContextOuterClass.Topology.Builder builderForValue) {
if (topologiesBuilder_ == null) {
ensureTopologiesIsMutable();
topologies_.set(index, builderForValue.build());
onChanged();
} else {
topologiesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.Topology topologies = 1;
*/
public Builder addTopologies(context.ContextOuterClass.Topology value) {
if (topologiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopologiesIsMutable();
topologies_.add(value);
onChanged();
} else {
topologiesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .context.Topology topologies = 1;
*/
public Builder addTopologies(
int index, context.ContextOuterClass.Topology value) {
if (topologiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopologiesIsMutable();
topologies_.add(index, value);
onChanged();
} else {
topologiesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .context.Topology topologies = 1;
*/
public Builder addTopologies(
context.ContextOuterClass.Topology.Builder builderForValue) {
if (topologiesBuilder_ == null) {
ensureTopologiesIsMutable();
topologies_.add(builderForValue.build());
onChanged();
} else {
topologiesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .context.Topology topologies = 1;
*/
public Builder addTopologies(
int index, context.ContextOuterClass.Topology.Builder builderForValue) {
if (topologiesBuilder_ == null) {
ensureTopologiesIsMutable();
topologies_.add(index, builderForValue.build());
onChanged();
} else {
topologiesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.Topology topologies = 1;
*/
public Builder addAllTopologies(
java.lang.Iterable extends context.ContextOuterClass.Topology> values) {
if (topologiesBuilder_ == null) {
ensureTopologiesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, topologies_);
onChanged();
} else {
topologiesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .context.Topology topologies = 1;
*/
public Builder clearTopologies() {
if (topologiesBuilder_ == null) {
topologies_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
topologiesBuilder_.clear();
}
return this;
}
/**
* repeated .context.Topology topologies = 1;
*/
public Builder removeTopologies(int index) {
if (topologiesBuilder_ == null) {
ensureTopologiesIsMutable();
topologies_.remove(index);
onChanged();
} else {
topologiesBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.Topology topologies = 1;
*/
public context.ContextOuterClass.Topology.Builder getTopologiesBuilder(
int index) {
return getTopologiesFieldBuilder().getBuilder(index);
}
/**
* repeated .context.Topology topologies = 1;
*/
public context.ContextOuterClass.TopologyOrBuilder getTopologiesOrBuilder(
int index) {
if (topologiesBuilder_ == null) {
return topologies_.get(index); } else {
return topologiesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.Topology topologies = 1;
*/
public java.util.List extends context.ContextOuterClass.TopologyOrBuilder>
getTopologiesOrBuilderList() {
if (topologiesBuilder_ != null) {
return topologiesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(topologies_);
}
}
/**
* repeated .context.Topology topologies = 1;
*/
public context.ContextOuterClass.Topology.Builder addTopologiesBuilder() {
return getTopologiesFieldBuilder().addBuilder(
context.ContextOuterClass.Topology.getDefaultInstance());
}
/**
* repeated .context.Topology topologies = 1;
*/
public context.ContextOuterClass.Topology.Builder addTopologiesBuilder(
int index) {
return getTopologiesFieldBuilder().addBuilder(
index, context.ContextOuterClass.Topology.getDefaultInstance());
}
/**
* repeated .context.Topology topologies = 1;
*/
public java.util.List
getTopologiesBuilderList() {
return getTopologiesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.Topology, context.ContextOuterClass.Topology.Builder, context.ContextOuterClass.TopologyOrBuilder>
getTopologiesFieldBuilder() {
if (topologiesBuilder_ == null) {
topologiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.Topology, context.ContextOuterClass.Topology.Builder, context.ContextOuterClass.TopologyOrBuilder>(
topologies_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
topologies_ = null;
}
return topologiesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.TopologyList)
}
// @@protoc_insertion_point(class_scope:context.TopologyList)
private static final context.ContextOuterClass.TopologyList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.TopologyList();
}
public static context.ContextOuterClass.TopologyList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TopologyList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TopologyList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.TopologyList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TopologyEventOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.TopologyEvent)
com.google.protobuf.MessageOrBuilder {
/**
* .context.Event event = 1;
* @return Whether the event field is set.
*/
boolean hasEvent();
/**
* .context.Event event = 1;
* @return The event.
*/
context.ContextOuterClass.Event getEvent();
/**
* .context.Event event = 1;
*/
context.ContextOuterClass.EventOrBuilder getEventOrBuilder();
/**
* .context.TopologyId topology_id = 2;
* @return Whether the topologyId field is set.
*/
boolean hasTopologyId();
/**
* .context.TopologyId topology_id = 2;
* @return The topologyId.
*/
context.ContextOuterClass.TopologyId getTopologyId();
/**
* .context.TopologyId topology_id = 2;
*/
context.ContextOuterClass.TopologyIdOrBuilder getTopologyIdOrBuilder();
}
/**
* Protobuf type {@code context.TopologyEvent}
*/
public static final class TopologyEvent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.TopologyEvent)
TopologyEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use TopologyEvent.newBuilder() to construct.
private TopologyEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TopologyEvent() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TopologyEvent();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TopologyEvent(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
context.ContextOuterClass.Event.Builder subBuilder = null;
if (event_ != null) {
subBuilder = event_.toBuilder();
}
event_ = input.readMessage(context.ContextOuterClass.Event.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(event_);
event_ = subBuilder.buildPartial();
}
break;
}
case 18: {
context.ContextOuterClass.TopologyId.Builder subBuilder = null;
if (topologyId_ != null) {
subBuilder = topologyId_.toBuilder();
}
topologyId_ = input.readMessage(context.ContextOuterClass.TopologyId.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(topologyId_);
topologyId_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_TopologyEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_TopologyEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.TopologyEvent.class, context.ContextOuterClass.TopologyEvent.Builder.class);
}
public static final int EVENT_FIELD_NUMBER = 1;
private context.ContextOuterClass.Event event_;
/**
* .context.Event event = 1;
* @return Whether the event field is set.
*/
@java.lang.Override
public boolean hasEvent() {
return event_ != null;
}
/**
* .context.Event event = 1;
* @return The event.
*/
@java.lang.Override
public context.ContextOuterClass.Event getEvent() {
return event_ == null ? context.ContextOuterClass.Event.getDefaultInstance() : event_;
}
/**
* .context.Event event = 1;
*/
@java.lang.Override
public context.ContextOuterClass.EventOrBuilder getEventOrBuilder() {
return getEvent();
}
public static final int TOPOLOGY_ID_FIELD_NUMBER = 2;
private context.ContextOuterClass.TopologyId topologyId_;
/**
* .context.TopologyId topology_id = 2;
* @return Whether the topologyId field is set.
*/
@java.lang.Override
public boolean hasTopologyId() {
return topologyId_ != null;
}
/**
* .context.TopologyId topology_id = 2;
* @return The topologyId.
*/
@java.lang.Override
public context.ContextOuterClass.TopologyId getTopologyId() {
return topologyId_ == null ? context.ContextOuterClass.TopologyId.getDefaultInstance() : topologyId_;
}
/**
* .context.TopologyId topology_id = 2;
*/
@java.lang.Override
public context.ContextOuterClass.TopologyIdOrBuilder getTopologyIdOrBuilder() {
return getTopologyId();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (event_ != null) {
output.writeMessage(1, getEvent());
}
if (topologyId_ != null) {
output.writeMessage(2, getTopologyId());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (event_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEvent());
}
if (topologyId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTopologyId());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.TopologyEvent)) {
return super.equals(obj);
}
context.ContextOuterClass.TopologyEvent other = (context.ContextOuterClass.TopologyEvent) obj;
if (hasEvent() != other.hasEvent()) return false;
if (hasEvent()) {
if (!getEvent()
.equals(other.getEvent())) return false;
}
if (hasTopologyId() != other.hasTopologyId()) return false;
if (hasTopologyId()) {
if (!getTopologyId()
.equals(other.getTopologyId())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasEvent()) {
hash = (37 * hash) + EVENT_FIELD_NUMBER;
hash = (53 * hash) + getEvent().hashCode();
}
if (hasTopologyId()) {
hash = (37 * hash) + TOPOLOGY_ID_FIELD_NUMBER;
hash = (53 * hash) + getTopologyId().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.TopologyEvent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.TopologyEvent parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.TopologyEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.TopologyEvent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.TopologyEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.TopologyEvent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.TopologyEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.TopologyEvent parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.TopologyEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.TopologyEvent parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.TopologyEvent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.TopologyEvent parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.TopologyEvent prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.TopologyEvent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.TopologyEvent)
context.ContextOuterClass.TopologyEventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_TopologyEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_TopologyEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.TopologyEvent.class, context.ContextOuterClass.TopologyEvent.Builder.class);
}
// Construct using context.ContextOuterClass.TopologyEvent.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (eventBuilder_ == null) {
event_ = null;
} else {
event_ = null;
eventBuilder_ = null;
}
if (topologyIdBuilder_ == null) {
topologyId_ = null;
} else {
topologyId_ = null;
topologyIdBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_TopologyEvent_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.TopologyEvent getDefaultInstanceForType() {
return context.ContextOuterClass.TopologyEvent.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.TopologyEvent build() {
context.ContextOuterClass.TopologyEvent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.TopologyEvent buildPartial() {
context.ContextOuterClass.TopologyEvent result = new context.ContextOuterClass.TopologyEvent(this);
if (eventBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = eventBuilder_.build();
}
if (topologyIdBuilder_ == null) {
result.topologyId_ = topologyId_;
} else {
result.topologyId_ = topologyIdBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.TopologyEvent) {
return mergeFrom((context.ContextOuterClass.TopologyEvent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.TopologyEvent other) {
if (other == context.ContextOuterClass.TopologyEvent.getDefaultInstance()) return this;
if (other.hasEvent()) {
mergeEvent(other.getEvent());
}
if (other.hasTopologyId()) {
mergeTopologyId(other.getTopologyId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.TopologyEvent parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.TopologyEvent) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private context.ContextOuterClass.Event event_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Event, context.ContextOuterClass.Event.Builder, context.ContextOuterClass.EventOrBuilder> eventBuilder_;
/**
* .context.Event event = 1;
* @return Whether the event field is set.
*/
public boolean hasEvent() {
return eventBuilder_ != null || event_ != null;
}
/**
* .context.Event event = 1;
* @return The event.
*/
public context.ContextOuterClass.Event getEvent() {
if (eventBuilder_ == null) {
return event_ == null ? context.ContextOuterClass.Event.getDefaultInstance() : event_;
} else {
return eventBuilder_.getMessage();
}
}
/**
* .context.Event event = 1;
*/
public Builder setEvent(context.ContextOuterClass.Event value) {
if (eventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
eventBuilder_.setMessage(value);
}
return this;
}
/**
* .context.Event event = 1;
*/
public Builder setEvent(
context.ContextOuterClass.Event.Builder builderForValue) {
if (eventBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
eventBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.Event event = 1;
*/
public Builder mergeEvent(context.ContextOuterClass.Event value) {
if (eventBuilder_ == null) {
if (event_ != null) {
event_ =
context.ContextOuterClass.Event.newBuilder(event_).mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
eventBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.Event event = 1;
*/
public Builder clearEvent() {
if (eventBuilder_ == null) {
event_ = null;
onChanged();
} else {
event_ = null;
eventBuilder_ = null;
}
return this;
}
/**
* .context.Event event = 1;
*/
public context.ContextOuterClass.Event.Builder getEventBuilder() {
onChanged();
return getEventFieldBuilder().getBuilder();
}
/**
* .context.Event event = 1;
*/
public context.ContextOuterClass.EventOrBuilder getEventOrBuilder() {
if (eventBuilder_ != null) {
return eventBuilder_.getMessageOrBuilder();
} else {
return event_ == null ?
context.ContextOuterClass.Event.getDefaultInstance() : event_;
}
}
/**
* .context.Event event = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Event, context.ContextOuterClass.Event.Builder, context.ContextOuterClass.EventOrBuilder>
getEventFieldBuilder() {
if (eventBuilder_ == null) {
eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Event, context.ContextOuterClass.Event.Builder, context.ContextOuterClass.EventOrBuilder>(
getEvent(),
getParentForChildren(),
isClean());
event_ = null;
}
return eventBuilder_;
}
private context.ContextOuterClass.TopologyId topologyId_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.TopologyId, context.ContextOuterClass.TopologyId.Builder, context.ContextOuterClass.TopologyIdOrBuilder> topologyIdBuilder_;
/**
* .context.TopologyId topology_id = 2;
* @return Whether the topologyId field is set.
*/
public boolean hasTopologyId() {
return topologyIdBuilder_ != null || topologyId_ != null;
}
/**
* .context.TopologyId topology_id = 2;
* @return The topologyId.
*/
public context.ContextOuterClass.TopologyId getTopologyId() {
if (topologyIdBuilder_ == null) {
return topologyId_ == null ? context.ContextOuterClass.TopologyId.getDefaultInstance() : topologyId_;
} else {
return topologyIdBuilder_.getMessage();
}
}
/**
* .context.TopologyId topology_id = 2;
*/
public Builder setTopologyId(context.ContextOuterClass.TopologyId value) {
if (topologyIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
topologyId_ = value;
onChanged();
} else {
topologyIdBuilder_.setMessage(value);
}
return this;
}
/**
* .context.TopologyId topology_id = 2;
*/
public Builder setTopologyId(
context.ContextOuterClass.TopologyId.Builder builderForValue) {
if (topologyIdBuilder_ == null) {
topologyId_ = builderForValue.build();
onChanged();
} else {
topologyIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.TopologyId topology_id = 2;
*/
public Builder mergeTopologyId(context.ContextOuterClass.TopologyId value) {
if (topologyIdBuilder_ == null) {
if (topologyId_ != null) {
topologyId_ =
context.ContextOuterClass.TopologyId.newBuilder(topologyId_).mergeFrom(value).buildPartial();
} else {
topologyId_ = value;
}
onChanged();
} else {
topologyIdBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.TopologyId topology_id = 2;
*/
public Builder clearTopologyId() {
if (topologyIdBuilder_ == null) {
topologyId_ = null;
onChanged();
} else {
topologyId_ = null;
topologyIdBuilder_ = null;
}
return this;
}
/**
* .context.TopologyId topology_id = 2;
*/
public context.ContextOuterClass.TopologyId.Builder getTopologyIdBuilder() {
onChanged();
return getTopologyIdFieldBuilder().getBuilder();
}
/**
* .context.TopologyId topology_id = 2;
*/
public context.ContextOuterClass.TopologyIdOrBuilder getTopologyIdOrBuilder() {
if (topologyIdBuilder_ != null) {
return topologyIdBuilder_.getMessageOrBuilder();
} else {
return topologyId_ == null ?
context.ContextOuterClass.TopologyId.getDefaultInstance() : topologyId_;
}
}
/**
* .context.TopologyId topology_id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.TopologyId, context.ContextOuterClass.TopologyId.Builder, context.ContextOuterClass.TopologyIdOrBuilder>
getTopologyIdFieldBuilder() {
if (topologyIdBuilder_ == null) {
topologyIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.TopologyId, context.ContextOuterClass.TopologyId.Builder, context.ContextOuterClass.TopologyIdOrBuilder>(
getTopologyId(),
getParentForChildren(),
isClean());
topologyId_ = null;
}
return topologyIdBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.TopologyEvent)
}
// @@protoc_insertion_point(class_scope:context.TopologyEvent)
private static final context.ContextOuterClass.TopologyEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.TopologyEvent();
}
public static context.ContextOuterClass.TopologyEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TopologyEvent parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TopologyEvent(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.TopologyEvent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeviceIdOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.DeviceId)
com.google.protobuf.MessageOrBuilder {
/**
* .context.Uuid device_uuid = 1;
* @return Whether the deviceUuid field is set.
*/
boolean hasDeviceUuid();
/**
* .context.Uuid device_uuid = 1;
* @return The deviceUuid.
*/
context.ContextOuterClass.Uuid getDeviceUuid();
/**
* .context.Uuid device_uuid = 1;
*/
context.ContextOuterClass.UuidOrBuilder getDeviceUuidOrBuilder();
}
/**
*
* ----- Device --------------------------------------------------------------------------------------------------------
*
*
* Protobuf type {@code context.DeviceId}
*/
public static final class DeviceId extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.DeviceId)
DeviceIdOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeviceId.newBuilder() to construct.
private DeviceId(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeviceId() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeviceId();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeviceId(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
context.ContextOuterClass.Uuid.Builder subBuilder = null;
if (deviceUuid_ != null) {
subBuilder = deviceUuid_.toBuilder();
}
deviceUuid_ = input.readMessage(context.ContextOuterClass.Uuid.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(deviceUuid_);
deviceUuid_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_DeviceId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_DeviceId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.DeviceId.class, context.ContextOuterClass.DeviceId.Builder.class);
}
public static final int DEVICE_UUID_FIELD_NUMBER = 1;
private context.ContextOuterClass.Uuid deviceUuid_;
/**
* .context.Uuid device_uuid = 1;
* @return Whether the deviceUuid field is set.
*/
@java.lang.Override
public boolean hasDeviceUuid() {
return deviceUuid_ != null;
}
/**
* .context.Uuid device_uuid = 1;
* @return The deviceUuid.
*/
@java.lang.Override
public context.ContextOuterClass.Uuid getDeviceUuid() {
return deviceUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : deviceUuid_;
}
/**
* .context.Uuid device_uuid = 1;
*/
@java.lang.Override
public context.ContextOuterClass.UuidOrBuilder getDeviceUuidOrBuilder() {
return getDeviceUuid();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (deviceUuid_ != null) {
output.writeMessage(1, getDeviceUuid());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (deviceUuid_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getDeviceUuid());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.DeviceId)) {
return super.equals(obj);
}
context.ContextOuterClass.DeviceId other = (context.ContextOuterClass.DeviceId) obj;
if (hasDeviceUuid() != other.hasDeviceUuid()) return false;
if (hasDeviceUuid()) {
if (!getDeviceUuid()
.equals(other.getDeviceUuid())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasDeviceUuid()) {
hash = (37 * hash) + DEVICE_UUID_FIELD_NUMBER;
hash = (53 * hash) + getDeviceUuid().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.DeviceId parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.DeviceId parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.DeviceId parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.DeviceId parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.DeviceId parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.DeviceId parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.DeviceId parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.DeviceId parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.DeviceId parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.DeviceId parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.DeviceId parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.DeviceId parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.DeviceId prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ----- Device --------------------------------------------------------------------------------------------------------
*
*
* Protobuf type {@code context.DeviceId}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.DeviceId)
context.ContextOuterClass.DeviceIdOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_DeviceId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_DeviceId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.DeviceId.class, context.ContextOuterClass.DeviceId.Builder.class);
}
// Construct using context.ContextOuterClass.DeviceId.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (deviceUuidBuilder_ == null) {
deviceUuid_ = null;
} else {
deviceUuid_ = null;
deviceUuidBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_DeviceId_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.DeviceId getDefaultInstanceForType() {
return context.ContextOuterClass.DeviceId.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.DeviceId build() {
context.ContextOuterClass.DeviceId result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.DeviceId buildPartial() {
context.ContextOuterClass.DeviceId result = new context.ContextOuterClass.DeviceId(this);
if (deviceUuidBuilder_ == null) {
result.deviceUuid_ = deviceUuid_;
} else {
result.deviceUuid_ = deviceUuidBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.DeviceId) {
return mergeFrom((context.ContextOuterClass.DeviceId)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.DeviceId other) {
if (other == context.ContextOuterClass.DeviceId.getDefaultInstance()) return this;
if (other.hasDeviceUuid()) {
mergeDeviceUuid(other.getDeviceUuid());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.DeviceId parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.DeviceId) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private context.ContextOuterClass.Uuid deviceUuid_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder> deviceUuidBuilder_;
/**
* .context.Uuid device_uuid = 1;
* @return Whether the deviceUuid field is set.
*/
public boolean hasDeviceUuid() {
return deviceUuidBuilder_ != null || deviceUuid_ != null;
}
/**
* .context.Uuid device_uuid = 1;
* @return The deviceUuid.
*/
public context.ContextOuterClass.Uuid getDeviceUuid() {
if (deviceUuidBuilder_ == null) {
return deviceUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : deviceUuid_;
} else {
return deviceUuidBuilder_.getMessage();
}
}
/**
* .context.Uuid device_uuid = 1;
*/
public Builder setDeviceUuid(context.ContextOuterClass.Uuid value) {
if (deviceUuidBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deviceUuid_ = value;
onChanged();
} else {
deviceUuidBuilder_.setMessage(value);
}
return this;
}
/**
* .context.Uuid device_uuid = 1;
*/
public Builder setDeviceUuid(
context.ContextOuterClass.Uuid.Builder builderForValue) {
if (deviceUuidBuilder_ == null) {
deviceUuid_ = builderForValue.build();
onChanged();
} else {
deviceUuidBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.Uuid device_uuid = 1;
*/
public Builder mergeDeviceUuid(context.ContextOuterClass.Uuid value) {
if (deviceUuidBuilder_ == null) {
if (deviceUuid_ != null) {
deviceUuid_ =
context.ContextOuterClass.Uuid.newBuilder(deviceUuid_).mergeFrom(value).buildPartial();
} else {
deviceUuid_ = value;
}
onChanged();
} else {
deviceUuidBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.Uuid device_uuid = 1;
*/
public Builder clearDeviceUuid() {
if (deviceUuidBuilder_ == null) {
deviceUuid_ = null;
onChanged();
} else {
deviceUuid_ = null;
deviceUuidBuilder_ = null;
}
return this;
}
/**
* .context.Uuid device_uuid = 1;
*/
public context.ContextOuterClass.Uuid.Builder getDeviceUuidBuilder() {
onChanged();
return getDeviceUuidFieldBuilder().getBuilder();
}
/**
* .context.Uuid device_uuid = 1;
*/
public context.ContextOuterClass.UuidOrBuilder getDeviceUuidOrBuilder() {
if (deviceUuidBuilder_ != null) {
return deviceUuidBuilder_.getMessageOrBuilder();
} else {
return deviceUuid_ == null ?
context.ContextOuterClass.Uuid.getDefaultInstance() : deviceUuid_;
}
}
/**
* .context.Uuid device_uuid = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder>
getDeviceUuidFieldBuilder() {
if (deviceUuidBuilder_ == null) {
deviceUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder>(
getDeviceUuid(),
getParentForChildren(),
isClean());
deviceUuid_ = null;
}
return deviceUuidBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.DeviceId)
}
// @@protoc_insertion_point(class_scope:context.DeviceId)
private static final context.ContextOuterClass.DeviceId DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.DeviceId();
}
public static context.ContextOuterClass.DeviceId getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeviceId parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeviceId(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.DeviceId getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeviceOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.Device)
com.google.protobuf.MessageOrBuilder {
/**
* .context.DeviceId device_id = 1;
* @return Whether the deviceId field is set.
*/
boolean hasDeviceId();
/**
* .context.DeviceId device_id = 1;
* @return The deviceId.
*/
context.ContextOuterClass.DeviceId getDeviceId();
/**
* .context.DeviceId device_id = 1;
*/
context.ContextOuterClass.DeviceIdOrBuilder getDeviceIdOrBuilder();
/**
* string device_type = 2;
* @return The deviceType.
*/
java.lang.String getDeviceType();
/**
* string device_type = 2;
* @return The bytes for deviceType.
*/
com.google.protobuf.ByteString
getDeviceTypeBytes();
/**
* .context.DeviceConfig device_config = 3;
* @return Whether the deviceConfig field is set.
*/
boolean hasDeviceConfig();
/**
* .context.DeviceConfig device_config = 3;
* @return The deviceConfig.
*/
context.ContextOuterClass.DeviceConfig getDeviceConfig();
/**
* .context.DeviceConfig device_config = 3;
*/
context.ContextOuterClass.DeviceConfigOrBuilder getDeviceConfigOrBuilder();
/**
* .context.DeviceOperationalStatusEnum device_operational_status = 4;
* @return The enum numeric value on the wire for deviceOperationalStatus.
*/
int getDeviceOperationalStatusValue();
/**
* .context.DeviceOperationalStatusEnum device_operational_status = 4;
* @return The deviceOperationalStatus.
*/
context.ContextOuterClass.DeviceOperationalStatusEnum getDeviceOperationalStatus();
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @return A list containing the deviceDrivers.
*/
java.util.List getDeviceDriversList();
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @return The count of deviceDrivers.
*/
int getDeviceDriversCount();
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @param index The index of the element to return.
* @return The deviceDrivers at the given index.
*/
context.ContextOuterClass.DeviceDriverEnum getDeviceDrivers(int index);
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @return A list containing the enum numeric values on the wire for deviceDrivers.
*/
java.util.List
getDeviceDriversValueList();
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of deviceDrivers at the given index.
*/
int getDeviceDriversValue(int index);
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
java.util.List
getDeviceEndpointsList();
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
context.ContextOuterClass.EndPoint getDeviceEndpoints(int index);
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
int getDeviceEndpointsCount();
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
java.util.List extends context.ContextOuterClass.EndPointOrBuilder>
getDeviceEndpointsOrBuilderList();
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
context.ContextOuterClass.EndPointOrBuilder getDeviceEndpointsOrBuilder(
int index);
}
/**
* Protobuf type {@code context.Device}
*/
public static final class Device extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.Device)
DeviceOrBuilder {
private static final long serialVersionUID = 0L;
// Use Device.newBuilder() to construct.
private Device(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Device() {
deviceType_ = "";
deviceOperationalStatus_ = 0;
deviceDrivers_ = java.util.Collections.emptyList();
deviceEndpoints_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Device();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Device(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
context.ContextOuterClass.DeviceId.Builder subBuilder = null;
if (deviceId_ != null) {
subBuilder = deviceId_.toBuilder();
}
deviceId_ = input.readMessage(context.ContextOuterClass.DeviceId.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(deviceId_);
deviceId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
deviceType_ = s;
break;
}
case 26: {
context.ContextOuterClass.DeviceConfig.Builder subBuilder = null;
if (deviceConfig_ != null) {
subBuilder = deviceConfig_.toBuilder();
}
deviceConfig_ = input.readMessage(context.ContextOuterClass.DeviceConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(deviceConfig_);
deviceConfig_ = subBuilder.buildPartial();
}
break;
}
case 32: {
int rawValue = input.readEnum();
deviceOperationalStatus_ = rawValue;
break;
}
case 40: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
deviceDrivers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
deviceDrivers_.add(rawValue);
break;
}
case 42: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
deviceDrivers_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
deviceDrivers_.add(rawValue);
}
input.popLimit(oldLimit);
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
deviceEndpoints_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
deviceEndpoints_.add(
input.readMessage(context.ContextOuterClass.EndPoint.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
deviceDrivers_ = java.util.Collections.unmodifiableList(deviceDrivers_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
deviceEndpoints_ = java.util.Collections.unmodifiableList(deviceEndpoints_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_Device_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_Device_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.Device.class, context.ContextOuterClass.Device.Builder.class);
}
public static final int DEVICE_ID_FIELD_NUMBER = 1;
private context.ContextOuterClass.DeviceId deviceId_;
/**
* .context.DeviceId device_id = 1;
* @return Whether the deviceId field is set.
*/
@java.lang.Override
public boolean hasDeviceId() {
return deviceId_ != null;
}
/**
* .context.DeviceId device_id = 1;
* @return The deviceId.
*/
@java.lang.Override
public context.ContextOuterClass.DeviceId getDeviceId() {
return deviceId_ == null ? context.ContextOuterClass.DeviceId.getDefaultInstance() : deviceId_;
}
/**
* .context.DeviceId device_id = 1;
*/
@java.lang.Override
public context.ContextOuterClass.DeviceIdOrBuilder getDeviceIdOrBuilder() {
return getDeviceId();
}
public static final int DEVICE_TYPE_FIELD_NUMBER = 2;
private volatile java.lang.Object deviceType_;
/**
* string device_type = 2;
* @return The deviceType.
*/
@java.lang.Override
public java.lang.String getDeviceType() {
java.lang.Object ref = deviceType_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deviceType_ = s;
return s;
}
}
/**
* string device_type = 2;
* @return The bytes for deviceType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeviceTypeBytes() {
java.lang.Object ref = deviceType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEVICE_CONFIG_FIELD_NUMBER = 3;
private context.ContextOuterClass.DeviceConfig deviceConfig_;
/**
* .context.DeviceConfig device_config = 3;
* @return Whether the deviceConfig field is set.
*/
@java.lang.Override
public boolean hasDeviceConfig() {
return deviceConfig_ != null;
}
/**
* .context.DeviceConfig device_config = 3;
* @return The deviceConfig.
*/
@java.lang.Override
public context.ContextOuterClass.DeviceConfig getDeviceConfig() {
return deviceConfig_ == null ? context.ContextOuterClass.DeviceConfig.getDefaultInstance() : deviceConfig_;
}
/**
* .context.DeviceConfig device_config = 3;
*/
@java.lang.Override
public context.ContextOuterClass.DeviceConfigOrBuilder getDeviceConfigOrBuilder() {
return getDeviceConfig();
}
public static final int DEVICE_OPERATIONAL_STATUS_FIELD_NUMBER = 4;
private int deviceOperationalStatus_;
/**
* .context.DeviceOperationalStatusEnum device_operational_status = 4;
* @return The enum numeric value on the wire for deviceOperationalStatus.
*/
@java.lang.Override public int getDeviceOperationalStatusValue() {
return deviceOperationalStatus_;
}
/**
* .context.DeviceOperationalStatusEnum device_operational_status = 4;
* @return The deviceOperationalStatus.
*/
@java.lang.Override public context.ContextOuterClass.DeviceOperationalStatusEnum getDeviceOperationalStatus() {
@SuppressWarnings("deprecation")
context.ContextOuterClass.DeviceOperationalStatusEnum result = context.ContextOuterClass.DeviceOperationalStatusEnum.valueOf(deviceOperationalStatus_);
return result == null ? context.ContextOuterClass.DeviceOperationalStatusEnum.UNRECOGNIZED : result;
}
public static final int DEVICE_DRIVERS_FIELD_NUMBER = 5;
private java.util.List deviceDrivers_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, context.ContextOuterClass.DeviceDriverEnum> deviceDrivers_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, context.ContextOuterClass.DeviceDriverEnum>() {
public context.ContextOuterClass.DeviceDriverEnum convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
context.ContextOuterClass.DeviceDriverEnum result = context.ContextOuterClass.DeviceDriverEnum.valueOf(from);
return result == null ? context.ContextOuterClass.DeviceDriverEnum.UNRECOGNIZED : result;
}
};
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @return A list containing the deviceDrivers.
*/
@java.lang.Override
public java.util.List getDeviceDriversList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, context.ContextOuterClass.DeviceDriverEnum>(deviceDrivers_, deviceDrivers_converter_);
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @return The count of deviceDrivers.
*/
@java.lang.Override
public int getDeviceDriversCount() {
return deviceDrivers_.size();
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @param index The index of the element to return.
* @return The deviceDrivers at the given index.
*/
@java.lang.Override
public context.ContextOuterClass.DeviceDriverEnum getDeviceDrivers(int index) {
return deviceDrivers_converter_.convert(deviceDrivers_.get(index));
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @return A list containing the enum numeric values on the wire for deviceDrivers.
*/
@java.lang.Override
public java.util.List
getDeviceDriversValueList() {
return deviceDrivers_;
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of deviceDrivers at the given index.
*/
@java.lang.Override
public int getDeviceDriversValue(int index) {
return deviceDrivers_.get(index);
}
private int deviceDriversMemoizedSerializedSize;
public static final int DEVICE_ENDPOINTS_FIELD_NUMBER = 6;
private java.util.List deviceEndpoints_;
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
@java.lang.Override
public java.util.List getDeviceEndpointsList() {
return deviceEndpoints_;
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.EndPointOrBuilder>
getDeviceEndpointsOrBuilderList() {
return deviceEndpoints_;
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
@java.lang.Override
public int getDeviceEndpointsCount() {
return deviceEndpoints_.size();
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
@java.lang.Override
public context.ContextOuterClass.EndPoint getDeviceEndpoints(int index) {
return deviceEndpoints_.get(index);
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
@java.lang.Override
public context.ContextOuterClass.EndPointOrBuilder getDeviceEndpointsOrBuilder(
int index) {
return deviceEndpoints_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (deviceId_ != null) {
output.writeMessage(1, getDeviceId());
}
if (!getDeviceTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceType_);
}
if (deviceConfig_ != null) {
output.writeMessage(3, getDeviceConfig());
}
if (deviceOperationalStatus_ != context.ContextOuterClass.DeviceOperationalStatusEnum.DEVICEOPERATIONALSTATUS_UNDEFINED.getNumber()) {
output.writeEnum(4, deviceOperationalStatus_);
}
if (getDeviceDriversList().size() > 0) {
output.writeUInt32NoTag(42);
output.writeUInt32NoTag(deviceDriversMemoizedSerializedSize);
}
for (int i = 0; i < deviceDrivers_.size(); i++) {
output.writeEnumNoTag(deviceDrivers_.get(i));
}
for (int i = 0; i < deviceEndpoints_.size(); i++) {
output.writeMessage(6, deviceEndpoints_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (deviceId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getDeviceId());
}
if (!getDeviceTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceType_);
}
if (deviceConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getDeviceConfig());
}
if (deviceOperationalStatus_ != context.ContextOuterClass.DeviceOperationalStatusEnum.DEVICEOPERATIONALSTATUS_UNDEFINED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, deviceOperationalStatus_);
}
{
int dataSize = 0;
for (int i = 0; i < deviceDrivers_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(deviceDrivers_.get(i));
}
size += dataSize;
if (!getDeviceDriversList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}deviceDriversMemoizedSerializedSize = dataSize;
}
for (int i = 0; i < deviceEndpoints_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, deviceEndpoints_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.Device)) {
return super.equals(obj);
}
context.ContextOuterClass.Device other = (context.ContextOuterClass.Device) obj;
if (hasDeviceId() != other.hasDeviceId()) return false;
if (hasDeviceId()) {
if (!getDeviceId()
.equals(other.getDeviceId())) return false;
}
if (!getDeviceType()
.equals(other.getDeviceType())) return false;
if (hasDeviceConfig() != other.hasDeviceConfig()) return false;
if (hasDeviceConfig()) {
if (!getDeviceConfig()
.equals(other.getDeviceConfig())) return false;
}
if (deviceOperationalStatus_ != other.deviceOperationalStatus_) return false;
if (!deviceDrivers_.equals(other.deviceDrivers_)) return false;
if (!getDeviceEndpointsList()
.equals(other.getDeviceEndpointsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasDeviceId()) {
hash = (37 * hash) + DEVICE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDeviceId().hashCode();
}
hash = (37 * hash) + DEVICE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getDeviceType().hashCode();
if (hasDeviceConfig()) {
hash = (37 * hash) + DEVICE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getDeviceConfig().hashCode();
}
hash = (37 * hash) + DEVICE_OPERATIONAL_STATUS_FIELD_NUMBER;
hash = (53 * hash) + deviceOperationalStatus_;
if (getDeviceDriversCount() > 0) {
hash = (37 * hash) + DEVICE_DRIVERS_FIELD_NUMBER;
hash = (53 * hash) + deviceDrivers_.hashCode();
}
if (getDeviceEndpointsCount() > 0) {
hash = (37 * hash) + DEVICE_ENDPOINTS_FIELD_NUMBER;
hash = (53 * hash) + getDeviceEndpointsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.Device parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Device parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Device parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Device parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Device parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Device parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Device parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Device parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.Device parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Device parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.Device parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Device parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.Device prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.Device}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.Device)
context.ContextOuterClass.DeviceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_Device_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_Device_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.Device.class, context.ContextOuterClass.Device.Builder.class);
}
// Construct using context.ContextOuterClass.Device.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDeviceEndpointsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (deviceIdBuilder_ == null) {
deviceId_ = null;
} else {
deviceId_ = null;
deviceIdBuilder_ = null;
}
deviceType_ = "";
if (deviceConfigBuilder_ == null) {
deviceConfig_ = null;
} else {
deviceConfig_ = null;
deviceConfigBuilder_ = null;
}
deviceOperationalStatus_ = 0;
deviceDrivers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
if (deviceEndpointsBuilder_ == null) {
deviceEndpoints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
deviceEndpointsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_Device_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.Device getDefaultInstanceForType() {
return context.ContextOuterClass.Device.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.Device build() {
context.ContextOuterClass.Device result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.Device buildPartial() {
context.ContextOuterClass.Device result = new context.ContextOuterClass.Device(this);
int from_bitField0_ = bitField0_;
if (deviceIdBuilder_ == null) {
result.deviceId_ = deviceId_;
} else {
result.deviceId_ = deviceIdBuilder_.build();
}
result.deviceType_ = deviceType_;
if (deviceConfigBuilder_ == null) {
result.deviceConfig_ = deviceConfig_;
} else {
result.deviceConfig_ = deviceConfigBuilder_.build();
}
result.deviceOperationalStatus_ = deviceOperationalStatus_;
if (((bitField0_ & 0x00000001) != 0)) {
deviceDrivers_ = java.util.Collections.unmodifiableList(deviceDrivers_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.deviceDrivers_ = deviceDrivers_;
if (deviceEndpointsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
deviceEndpoints_ = java.util.Collections.unmodifiableList(deviceEndpoints_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.deviceEndpoints_ = deviceEndpoints_;
} else {
result.deviceEndpoints_ = deviceEndpointsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.Device) {
return mergeFrom((context.ContextOuterClass.Device)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.Device other) {
if (other == context.ContextOuterClass.Device.getDefaultInstance()) return this;
if (other.hasDeviceId()) {
mergeDeviceId(other.getDeviceId());
}
if (!other.getDeviceType().isEmpty()) {
deviceType_ = other.deviceType_;
onChanged();
}
if (other.hasDeviceConfig()) {
mergeDeviceConfig(other.getDeviceConfig());
}
if (other.deviceOperationalStatus_ != 0) {
setDeviceOperationalStatusValue(other.getDeviceOperationalStatusValue());
}
if (!other.deviceDrivers_.isEmpty()) {
if (deviceDrivers_.isEmpty()) {
deviceDrivers_ = other.deviceDrivers_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDeviceDriversIsMutable();
deviceDrivers_.addAll(other.deviceDrivers_);
}
onChanged();
}
if (deviceEndpointsBuilder_ == null) {
if (!other.deviceEndpoints_.isEmpty()) {
if (deviceEndpoints_.isEmpty()) {
deviceEndpoints_ = other.deviceEndpoints_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDeviceEndpointsIsMutable();
deviceEndpoints_.addAll(other.deviceEndpoints_);
}
onChanged();
}
} else {
if (!other.deviceEndpoints_.isEmpty()) {
if (deviceEndpointsBuilder_.isEmpty()) {
deviceEndpointsBuilder_.dispose();
deviceEndpointsBuilder_ = null;
deviceEndpoints_ = other.deviceEndpoints_;
bitField0_ = (bitField0_ & ~0x00000002);
deviceEndpointsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDeviceEndpointsFieldBuilder() : null;
} else {
deviceEndpointsBuilder_.addAllMessages(other.deviceEndpoints_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.Device parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.Device) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private context.ContextOuterClass.DeviceId deviceId_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder> deviceIdBuilder_;
/**
* .context.DeviceId device_id = 1;
* @return Whether the deviceId field is set.
*/
public boolean hasDeviceId() {
return deviceIdBuilder_ != null || deviceId_ != null;
}
/**
* .context.DeviceId device_id = 1;
* @return The deviceId.
*/
public context.ContextOuterClass.DeviceId getDeviceId() {
if (deviceIdBuilder_ == null) {
return deviceId_ == null ? context.ContextOuterClass.DeviceId.getDefaultInstance() : deviceId_;
} else {
return deviceIdBuilder_.getMessage();
}
}
/**
* .context.DeviceId device_id = 1;
*/
public Builder setDeviceId(context.ContextOuterClass.DeviceId value) {
if (deviceIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deviceId_ = value;
onChanged();
} else {
deviceIdBuilder_.setMessage(value);
}
return this;
}
/**
* .context.DeviceId device_id = 1;
*/
public Builder setDeviceId(
context.ContextOuterClass.DeviceId.Builder builderForValue) {
if (deviceIdBuilder_ == null) {
deviceId_ = builderForValue.build();
onChanged();
} else {
deviceIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.DeviceId device_id = 1;
*/
public Builder mergeDeviceId(context.ContextOuterClass.DeviceId value) {
if (deviceIdBuilder_ == null) {
if (deviceId_ != null) {
deviceId_ =
context.ContextOuterClass.DeviceId.newBuilder(deviceId_).mergeFrom(value).buildPartial();
} else {
deviceId_ = value;
}
onChanged();
} else {
deviceIdBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.DeviceId device_id = 1;
*/
public Builder clearDeviceId() {
if (deviceIdBuilder_ == null) {
deviceId_ = null;
onChanged();
} else {
deviceId_ = null;
deviceIdBuilder_ = null;
}
return this;
}
/**
* .context.DeviceId device_id = 1;
*/
public context.ContextOuterClass.DeviceId.Builder getDeviceIdBuilder() {
onChanged();
return getDeviceIdFieldBuilder().getBuilder();
}
/**
* .context.DeviceId device_id = 1;
*/
public context.ContextOuterClass.DeviceIdOrBuilder getDeviceIdOrBuilder() {
if (deviceIdBuilder_ != null) {
return deviceIdBuilder_.getMessageOrBuilder();
} else {
return deviceId_ == null ?
context.ContextOuterClass.DeviceId.getDefaultInstance() : deviceId_;
}
}
/**
* .context.DeviceId device_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder>
getDeviceIdFieldBuilder() {
if (deviceIdBuilder_ == null) {
deviceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder>(
getDeviceId(),
getParentForChildren(),
isClean());
deviceId_ = null;
}
return deviceIdBuilder_;
}
private java.lang.Object deviceType_ = "";
/**
* string device_type = 2;
* @return The deviceType.
*/
public java.lang.String getDeviceType() {
java.lang.Object ref = deviceType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deviceType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string device_type = 2;
* @return The bytes for deviceType.
*/
public com.google.protobuf.ByteString
getDeviceTypeBytes() {
java.lang.Object ref = deviceType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string device_type = 2;
* @param value The deviceType to set.
* @return This builder for chaining.
*/
public Builder setDeviceType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
deviceType_ = value;
onChanged();
return this;
}
/**
* string device_type = 2;
* @return This builder for chaining.
*/
public Builder clearDeviceType() {
deviceType_ = getDefaultInstance().getDeviceType();
onChanged();
return this;
}
/**
* string device_type = 2;
* @param value The bytes for deviceType to set.
* @return This builder for chaining.
*/
public Builder setDeviceTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
deviceType_ = value;
onChanged();
return this;
}
private context.ContextOuterClass.DeviceConfig deviceConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.DeviceConfig, context.ContextOuterClass.DeviceConfig.Builder, context.ContextOuterClass.DeviceConfigOrBuilder> deviceConfigBuilder_;
/**
* .context.DeviceConfig device_config = 3;
* @return Whether the deviceConfig field is set.
*/
public boolean hasDeviceConfig() {
return deviceConfigBuilder_ != null || deviceConfig_ != null;
}
/**
* .context.DeviceConfig device_config = 3;
* @return The deviceConfig.
*/
public context.ContextOuterClass.DeviceConfig getDeviceConfig() {
if (deviceConfigBuilder_ == null) {
return deviceConfig_ == null ? context.ContextOuterClass.DeviceConfig.getDefaultInstance() : deviceConfig_;
} else {
return deviceConfigBuilder_.getMessage();
}
}
/**
* .context.DeviceConfig device_config = 3;
*/
public Builder setDeviceConfig(context.ContextOuterClass.DeviceConfig value) {
if (deviceConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deviceConfig_ = value;
onChanged();
} else {
deviceConfigBuilder_.setMessage(value);
}
return this;
}
/**
* .context.DeviceConfig device_config = 3;
*/
public Builder setDeviceConfig(
context.ContextOuterClass.DeviceConfig.Builder builderForValue) {
if (deviceConfigBuilder_ == null) {
deviceConfig_ = builderForValue.build();
onChanged();
} else {
deviceConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.DeviceConfig device_config = 3;
*/
public Builder mergeDeviceConfig(context.ContextOuterClass.DeviceConfig value) {
if (deviceConfigBuilder_ == null) {
if (deviceConfig_ != null) {
deviceConfig_ =
context.ContextOuterClass.DeviceConfig.newBuilder(deviceConfig_).mergeFrom(value).buildPartial();
} else {
deviceConfig_ = value;
}
onChanged();
} else {
deviceConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.DeviceConfig device_config = 3;
*/
public Builder clearDeviceConfig() {
if (deviceConfigBuilder_ == null) {
deviceConfig_ = null;
onChanged();
} else {
deviceConfig_ = null;
deviceConfigBuilder_ = null;
}
return this;
}
/**
* .context.DeviceConfig device_config = 3;
*/
public context.ContextOuterClass.DeviceConfig.Builder getDeviceConfigBuilder() {
onChanged();
return getDeviceConfigFieldBuilder().getBuilder();
}
/**
* .context.DeviceConfig device_config = 3;
*/
public context.ContextOuterClass.DeviceConfigOrBuilder getDeviceConfigOrBuilder() {
if (deviceConfigBuilder_ != null) {
return deviceConfigBuilder_.getMessageOrBuilder();
} else {
return deviceConfig_ == null ?
context.ContextOuterClass.DeviceConfig.getDefaultInstance() : deviceConfig_;
}
}
/**
* .context.DeviceConfig device_config = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.DeviceConfig, context.ContextOuterClass.DeviceConfig.Builder, context.ContextOuterClass.DeviceConfigOrBuilder>
getDeviceConfigFieldBuilder() {
if (deviceConfigBuilder_ == null) {
deviceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.DeviceConfig, context.ContextOuterClass.DeviceConfig.Builder, context.ContextOuterClass.DeviceConfigOrBuilder>(
getDeviceConfig(),
getParentForChildren(),
isClean());
deviceConfig_ = null;
}
return deviceConfigBuilder_;
}
private int deviceOperationalStatus_ = 0;
/**
* .context.DeviceOperationalStatusEnum device_operational_status = 4;
* @return The enum numeric value on the wire for deviceOperationalStatus.
*/
@java.lang.Override public int getDeviceOperationalStatusValue() {
return deviceOperationalStatus_;
}
/**
* .context.DeviceOperationalStatusEnum device_operational_status = 4;
* @param value The enum numeric value on the wire for deviceOperationalStatus to set.
* @return This builder for chaining.
*/
public Builder setDeviceOperationalStatusValue(int value) {
deviceOperationalStatus_ = value;
onChanged();
return this;
}
/**
* .context.DeviceOperationalStatusEnum device_operational_status = 4;
* @return The deviceOperationalStatus.
*/
@java.lang.Override
public context.ContextOuterClass.DeviceOperationalStatusEnum getDeviceOperationalStatus() {
@SuppressWarnings("deprecation")
context.ContextOuterClass.DeviceOperationalStatusEnum result = context.ContextOuterClass.DeviceOperationalStatusEnum.valueOf(deviceOperationalStatus_);
return result == null ? context.ContextOuterClass.DeviceOperationalStatusEnum.UNRECOGNIZED : result;
}
/**
* .context.DeviceOperationalStatusEnum device_operational_status = 4;
* @param value The deviceOperationalStatus to set.
* @return This builder for chaining.
*/
public Builder setDeviceOperationalStatus(context.ContextOuterClass.DeviceOperationalStatusEnum value) {
if (value == null) {
throw new NullPointerException();
}
deviceOperationalStatus_ = value.getNumber();
onChanged();
return this;
}
/**
* .context.DeviceOperationalStatusEnum device_operational_status = 4;
* @return This builder for chaining.
*/
public Builder clearDeviceOperationalStatus() {
deviceOperationalStatus_ = 0;
onChanged();
return this;
}
private java.util.List deviceDrivers_ =
java.util.Collections.emptyList();
private void ensureDeviceDriversIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
deviceDrivers_ = new java.util.ArrayList(deviceDrivers_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @return A list containing the deviceDrivers.
*/
public java.util.List getDeviceDriversList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, context.ContextOuterClass.DeviceDriverEnum>(deviceDrivers_, deviceDrivers_converter_);
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @return The count of deviceDrivers.
*/
public int getDeviceDriversCount() {
return deviceDrivers_.size();
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @param index The index of the element to return.
* @return The deviceDrivers at the given index.
*/
public context.ContextOuterClass.DeviceDriverEnum getDeviceDrivers(int index) {
return deviceDrivers_converter_.convert(deviceDrivers_.get(index));
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @param index The index to set the value at.
* @param value The deviceDrivers to set.
* @return This builder for chaining.
*/
public Builder setDeviceDrivers(
int index, context.ContextOuterClass.DeviceDriverEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceDriversIsMutable();
deviceDrivers_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @param value The deviceDrivers to add.
* @return This builder for chaining.
*/
public Builder addDeviceDrivers(context.ContextOuterClass.DeviceDriverEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceDriversIsMutable();
deviceDrivers_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @param values The deviceDrivers to add.
* @return This builder for chaining.
*/
public Builder addAllDeviceDrivers(
java.lang.Iterable extends context.ContextOuterClass.DeviceDriverEnum> values) {
ensureDeviceDriversIsMutable();
for (context.ContextOuterClass.DeviceDriverEnum value : values) {
deviceDrivers_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @return This builder for chaining.
*/
public Builder clearDeviceDrivers() {
deviceDrivers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @return A list containing the enum numeric values on the wire for deviceDrivers.
*/
public java.util.List
getDeviceDriversValueList() {
return java.util.Collections.unmodifiableList(deviceDrivers_);
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of deviceDrivers at the given index.
*/
public int getDeviceDriversValue(int index) {
return deviceDrivers_.get(index);
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of deviceDrivers at the given index.
* @return This builder for chaining.
*/
public Builder setDeviceDriversValue(
int index, int value) {
ensureDeviceDriversIsMutable();
deviceDrivers_.set(index, value);
onChanged();
return this;
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @param value The enum numeric value on the wire for deviceDrivers to add.
* @return This builder for chaining.
*/
public Builder addDeviceDriversValue(int value) {
ensureDeviceDriversIsMutable();
deviceDrivers_.add(value);
onChanged();
return this;
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 5;
* @param values The enum numeric values on the wire for deviceDrivers to add.
* @return This builder for chaining.
*/
public Builder addAllDeviceDriversValue(
java.lang.Iterable values) {
ensureDeviceDriversIsMutable();
for (int value : values) {
deviceDrivers_.add(value);
}
onChanged();
return this;
}
private java.util.List deviceEndpoints_ =
java.util.Collections.emptyList();
private void ensureDeviceEndpointsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
deviceEndpoints_ = new java.util.ArrayList(deviceEndpoints_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.EndPoint, context.ContextOuterClass.EndPoint.Builder, context.ContextOuterClass.EndPointOrBuilder> deviceEndpointsBuilder_;
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public java.util.List getDeviceEndpointsList() {
if (deviceEndpointsBuilder_ == null) {
return java.util.Collections.unmodifiableList(deviceEndpoints_);
} else {
return deviceEndpointsBuilder_.getMessageList();
}
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public int getDeviceEndpointsCount() {
if (deviceEndpointsBuilder_ == null) {
return deviceEndpoints_.size();
} else {
return deviceEndpointsBuilder_.getCount();
}
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public context.ContextOuterClass.EndPoint getDeviceEndpoints(int index) {
if (deviceEndpointsBuilder_ == null) {
return deviceEndpoints_.get(index);
} else {
return deviceEndpointsBuilder_.getMessage(index);
}
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public Builder setDeviceEndpoints(
int index, context.ContextOuterClass.EndPoint value) {
if (deviceEndpointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceEndpointsIsMutable();
deviceEndpoints_.set(index, value);
onChanged();
} else {
deviceEndpointsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public Builder setDeviceEndpoints(
int index, context.ContextOuterClass.EndPoint.Builder builderForValue) {
if (deviceEndpointsBuilder_ == null) {
ensureDeviceEndpointsIsMutable();
deviceEndpoints_.set(index, builderForValue.build());
onChanged();
} else {
deviceEndpointsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public Builder addDeviceEndpoints(context.ContextOuterClass.EndPoint value) {
if (deviceEndpointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceEndpointsIsMutable();
deviceEndpoints_.add(value);
onChanged();
} else {
deviceEndpointsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public Builder addDeviceEndpoints(
int index, context.ContextOuterClass.EndPoint value) {
if (deviceEndpointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceEndpointsIsMutable();
deviceEndpoints_.add(index, value);
onChanged();
} else {
deviceEndpointsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public Builder addDeviceEndpoints(
context.ContextOuterClass.EndPoint.Builder builderForValue) {
if (deviceEndpointsBuilder_ == null) {
ensureDeviceEndpointsIsMutable();
deviceEndpoints_.add(builderForValue.build());
onChanged();
} else {
deviceEndpointsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public Builder addDeviceEndpoints(
int index, context.ContextOuterClass.EndPoint.Builder builderForValue) {
if (deviceEndpointsBuilder_ == null) {
ensureDeviceEndpointsIsMutable();
deviceEndpoints_.add(index, builderForValue.build());
onChanged();
} else {
deviceEndpointsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public Builder addAllDeviceEndpoints(
java.lang.Iterable extends context.ContextOuterClass.EndPoint> values) {
if (deviceEndpointsBuilder_ == null) {
ensureDeviceEndpointsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, deviceEndpoints_);
onChanged();
} else {
deviceEndpointsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public Builder clearDeviceEndpoints() {
if (deviceEndpointsBuilder_ == null) {
deviceEndpoints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
deviceEndpointsBuilder_.clear();
}
return this;
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public Builder removeDeviceEndpoints(int index) {
if (deviceEndpointsBuilder_ == null) {
ensureDeviceEndpointsIsMutable();
deviceEndpoints_.remove(index);
onChanged();
} else {
deviceEndpointsBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public context.ContextOuterClass.EndPoint.Builder getDeviceEndpointsBuilder(
int index) {
return getDeviceEndpointsFieldBuilder().getBuilder(index);
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public context.ContextOuterClass.EndPointOrBuilder getDeviceEndpointsOrBuilder(
int index) {
if (deviceEndpointsBuilder_ == null) {
return deviceEndpoints_.get(index); } else {
return deviceEndpointsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public java.util.List extends context.ContextOuterClass.EndPointOrBuilder>
getDeviceEndpointsOrBuilderList() {
if (deviceEndpointsBuilder_ != null) {
return deviceEndpointsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(deviceEndpoints_);
}
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public context.ContextOuterClass.EndPoint.Builder addDeviceEndpointsBuilder() {
return getDeviceEndpointsFieldBuilder().addBuilder(
context.ContextOuterClass.EndPoint.getDefaultInstance());
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public context.ContextOuterClass.EndPoint.Builder addDeviceEndpointsBuilder(
int index) {
return getDeviceEndpointsFieldBuilder().addBuilder(
index, context.ContextOuterClass.EndPoint.getDefaultInstance());
}
/**
* repeated .context.EndPoint device_endpoints = 6;
*/
public java.util.List
getDeviceEndpointsBuilderList() {
return getDeviceEndpointsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.EndPoint, context.ContextOuterClass.EndPoint.Builder, context.ContextOuterClass.EndPointOrBuilder>
getDeviceEndpointsFieldBuilder() {
if (deviceEndpointsBuilder_ == null) {
deviceEndpointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.EndPoint, context.ContextOuterClass.EndPoint.Builder, context.ContextOuterClass.EndPointOrBuilder>(
deviceEndpoints_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
deviceEndpoints_ = null;
}
return deviceEndpointsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.Device)
}
// @@protoc_insertion_point(class_scope:context.Device)
private static final context.ContextOuterClass.Device DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.Device();
}
public static context.ContextOuterClass.Device getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Device parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Device(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.Device getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeviceConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.DeviceConfig)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .context.ConfigRule config_rules = 1;
*/
java.util.List
getConfigRulesList();
/**
* repeated .context.ConfigRule config_rules = 1;
*/
context.ContextOuterClass.ConfigRule getConfigRules(int index);
/**
* repeated .context.ConfigRule config_rules = 1;
*/
int getConfigRulesCount();
/**
* repeated .context.ConfigRule config_rules = 1;
*/
java.util.List extends context.ContextOuterClass.ConfigRuleOrBuilder>
getConfigRulesOrBuilderList();
/**
* repeated .context.ConfigRule config_rules = 1;
*/
context.ContextOuterClass.ConfigRuleOrBuilder getConfigRulesOrBuilder(
int index);
}
/**
* Protobuf type {@code context.DeviceConfig}
*/
public static final class DeviceConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.DeviceConfig)
DeviceConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeviceConfig.newBuilder() to construct.
private DeviceConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeviceConfig() {
configRules_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeviceConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeviceConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
configRules_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
configRules_.add(
input.readMessage(context.ContextOuterClass.ConfigRule.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
configRules_ = java.util.Collections.unmodifiableList(configRules_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_DeviceConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_DeviceConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.DeviceConfig.class, context.ContextOuterClass.DeviceConfig.Builder.class);
}
public static final int CONFIG_RULES_FIELD_NUMBER = 1;
private java.util.List configRules_;
/**
* repeated .context.ConfigRule config_rules = 1;
*/
@java.lang.Override
public java.util.List getConfigRulesList() {
return configRules_;
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.ConfigRuleOrBuilder>
getConfigRulesOrBuilderList() {
return configRules_;
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
@java.lang.Override
public int getConfigRulesCount() {
return configRules_.size();
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
@java.lang.Override
public context.ContextOuterClass.ConfigRule getConfigRules(int index) {
return configRules_.get(index);
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
@java.lang.Override
public context.ContextOuterClass.ConfigRuleOrBuilder getConfigRulesOrBuilder(
int index) {
return configRules_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < configRules_.size(); i++) {
output.writeMessage(1, configRules_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < configRules_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, configRules_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.DeviceConfig)) {
return super.equals(obj);
}
context.ContextOuterClass.DeviceConfig other = (context.ContextOuterClass.DeviceConfig) obj;
if (!getConfigRulesList()
.equals(other.getConfigRulesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getConfigRulesCount() > 0) {
hash = (37 * hash) + CONFIG_RULES_FIELD_NUMBER;
hash = (53 * hash) + getConfigRulesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.DeviceConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.DeviceConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.DeviceConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.DeviceConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.DeviceConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.DeviceConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.DeviceConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.DeviceConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.DeviceConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.DeviceConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.DeviceConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.DeviceConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.DeviceConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.DeviceConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.DeviceConfig)
context.ContextOuterClass.DeviceConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_DeviceConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_DeviceConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.DeviceConfig.class, context.ContextOuterClass.DeviceConfig.Builder.class);
}
// Construct using context.ContextOuterClass.DeviceConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getConfigRulesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (configRulesBuilder_ == null) {
configRules_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
configRulesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_DeviceConfig_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.DeviceConfig getDefaultInstanceForType() {
return context.ContextOuterClass.DeviceConfig.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.DeviceConfig build() {
context.ContextOuterClass.DeviceConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.DeviceConfig buildPartial() {
context.ContextOuterClass.DeviceConfig result = new context.ContextOuterClass.DeviceConfig(this);
int from_bitField0_ = bitField0_;
if (configRulesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
configRules_ = java.util.Collections.unmodifiableList(configRules_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.configRules_ = configRules_;
} else {
result.configRules_ = configRulesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.DeviceConfig) {
return mergeFrom((context.ContextOuterClass.DeviceConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.DeviceConfig other) {
if (other == context.ContextOuterClass.DeviceConfig.getDefaultInstance()) return this;
if (configRulesBuilder_ == null) {
if (!other.configRules_.isEmpty()) {
if (configRules_.isEmpty()) {
configRules_ = other.configRules_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureConfigRulesIsMutable();
configRules_.addAll(other.configRules_);
}
onChanged();
}
} else {
if (!other.configRules_.isEmpty()) {
if (configRulesBuilder_.isEmpty()) {
configRulesBuilder_.dispose();
configRulesBuilder_ = null;
configRules_ = other.configRules_;
bitField0_ = (bitField0_ & ~0x00000001);
configRulesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getConfigRulesFieldBuilder() : null;
} else {
configRulesBuilder_.addAllMessages(other.configRules_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.DeviceConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.DeviceConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List configRules_ =
java.util.Collections.emptyList();
private void ensureConfigRulesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
configRules_ = new java.util.ArrayList(configRules_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.ConfigRule, context.ContextOuterClass.ConfigRule.Builder, context.ContextOuterClass.ConfigRuleOrBuilder> configRulesBuilder_;
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public java.util.List getConfigRulesList() {
if (configRulesBuilder_ == null) {
return java.util.Collections.unmodifiableList(configRules_);
} else {
return configRulesBuilder_.getMessageList();
}
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public int getConfigRulesCount() {
if (configRulesBuilder_ == null) {
return configRules_.size();
} else {
return configRulesBuilder_.getCount();
}
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public context.ContextOuterClass.ConfigRule getConfigRules(int index) {
if (configRulesBuilder_ == null) {
return configRules_.get(index);
} else {
return configRulesBuilder_.getMessage(index);
}
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public Builder setConfigRules(
int index, context.ContextOuterClass.ConfigRule value) {
if (configRulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigRulesIsMutable();
configRules_.set(index, value);
onChanged();
} else {
configRulesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public Builder setConfigRules(
int index, context.ContextOuterClass.ConfigRule.Builder builderForValue) {
if (configRulesBuilder_ == null) {
ensureConfigRulesIsMutable();
configRules_.set(index, builderForValue.build());
onChanged();
} else {
configRulesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public Builder addConfigRules(context.ContextOuterClass.ConfigRule value) {
if (configRulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigRulesIsMutable();
configRules_.add(value);
onChanged();
} else {
configRulesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public Builder addConfigRules(
int index, context.ContextOuterClass.ConfigRule value) {
if (configRulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigRulesIsMutable();
configRules_.add(index, value);
onChanged();
} else {
configRulesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public Builder addConfigRules(
context.ContextOuterClass.ConfigRule.Builder builderForValue) {
if (configRulesBuilder_ == null) {
ensureConfigRulesIsMutable();
configRules_.add(builderForValue.build());
onChanged();
} else {
configRulesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public Builder addConfigRules(
int index, context.ContextOuterClass.ConfigRule.Builder builderForValue) {
if (configRulesBuilder_ == null) {
ensureConfigRulesIsMutable();
configRules_.add(index, builderForValue.build());
onChanged();
} else {
configRulesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public Builder addAllConfigRules(
java.lang.Iterable extends context.ContextOuterClass.ConfigRule> values) {
if (configRulesBuilder_ == null) {
ensureConfigRulesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, configRules_);
onChanged();
} else {
configRulesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public Builder clearConfigRules() {
if (configRulesBuilder_ == null) {
configRules_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
configRulesBuilder_.clear();
}
return this;
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public Builder removeConfigRules(int index) {
if (configRulesBuilder_ == null) {
ensureConfigRulesIsMutable();
configRules_.remove(index);
onChanged();
} else {
configRulesBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public context.ContextOuterClass.ConfigRule.Builder getConfigRulesBuilder(
int index) {
return getConfigRulesFieldBuilder().getBuilder(index);
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public context.ContextOuterClass.ConfigRuleOrBuilder getConfigRulesOrBuilder(
int index) {
if (configRulesBuilder_ == null) {
return configRules_.get(index); } else {
return configRulesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public java.util.List extends context.ContextOuterClass.ConfigRuleOrBuilder>
getConfigRulesOrBuilderList() {
if (configRulesBuilder_ != null) {
return configRulesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(configRules_);
}
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public context.ContextOuterClass.ConfigRule.Builder addConfigRulesBuilder() {
return getConfigRulesFieldBuilder().addBuilder(
context.ContextOuterClass.ConfigRule.getDefaultInstance());
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public context.ContextOuterClass.ConfigRule.Builder addConfigRulesBuilder(
int index) {
return getConfigRulesFieldBuilder().addBuilder(
index, context.ContextOuterClass.ConfigRule.getDefaultInstance());
}
/**
* repeated .context.ConfigRule config_rules = 1;
*/
public java.util.List
getConfigRulesBuilderList() {
return getConfigRulesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.ConfigRule, context.ContextOuterClass.ConfigRule.Builder, context.ContextOuterClass.ConfigRuleOrBuilder>
getConfigRulesFieldBuilder() {
if (configRulesBuilder_ == null) {
configRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.ConfigRule, context.ContextOuterClass.ConfigRule.Builder, context.ContextOuterClass.ConfigRuleOrBuilder>(
configRules_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
configRules_ = null;
}
return configRulesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.DeviceConfig)
}
// @@protoc_insertion_point(class_scope:context.DeviceConfig)
private static final context.ContextOuterClass.DeviceConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.DeviceConfig();
}
public static context.ContextOuterClass.DeviceConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeviceConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeviceConfig(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.DeviceConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeviceIdListOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.DeviceIdList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .context.DeviceId device_ids = 1;
*/
java.util.List
getDeviceIdsList();
/**
* repeated .context.DeviceId device_ids = 1;
*/
context.ContextOuterClass.DeviceId getDeviceIds(int index);
/**
* repeated .context.DeviceId device_ids = 1;
*/
int getDeviceIdsCount();
/**
* repeated .context.DeviceId device_ids = 1;
*/
java.util.List extends context.ContextOuterClass.DeviceIdOrBuilder>
getDeviceIdsOrBuilderList();
/**
* repeated .context.DeviceId device_ids = 1;
*/
context.ContextOuterClass.DeviceIdOrBuilder getDeviceIdsOrBuilder(
int index);
}
/**
* Protobuf type {@code context.DeviceIdList}
*/
public static final class DeviceIdList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.DeviceIdList)
DeviceIdListOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeviceIdList.newBuilder() to construct.
private DeviceIdList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeviceIdList() {
deviceIds_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeviceIdList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeviceIdList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
deviceIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
deviceIds_.add(
input.readMessage(context.ContextOuterClass.DeviceId.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
deviceIds_ = java.util.Collections.unmodifiableList(deviceIds_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_DeviceIdList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_DeviceIdList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.DeviceIdList.class, context.ContextOuterClass.DeviceIdList.Builder.class);
}
public static final int DEVICE_IDS_FIELD_NUMBER = 1;
private java.util.List deviceIds_;
/**
* repeated .context.DeviceId device_ids = 1;
*/
@java.lang.Override
public java.util.List getDeviceIdsList() {
return deviceIds_;
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.DeviceIdOrBuilder>
getDeviceIdsOrBuilderList() {
return deviceIds_;
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
@java.lang.Override
public int getDeviceIdsCount() {
return deviceIds_.size();
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
@java.lang.Override
public context.ContextOuterClass.DeviceId getDeviceIds(int index) {
return deviceIds_.get(index);
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
@java.lang.Override
public context.ContextOuterClass.DeviceIdOrBuilder getDeviceIdsOrBuilder(
int index) {
return deviceIds_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < deviceIds_.size(); i++) {
output.writeMessage(1, deviceIds_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < deviceIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, deviceIds_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.DeviceIdList)) {
return super.equals(obj);
}
context.ContextOuterClass.DeviceIdList other = (context.ContextOuterClass.DeviceIdList) obj;
if (!getDeviceIdsList()
.equals(other.getDeviceIdsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getDeviceIdsCount() > 0) {
hash = (37 * hash) + DEVICE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getDeviceIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.DeviceIdList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.DeviceIdList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.DeviceIdList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.DeviceIdList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.DeviceIdList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.DeviceIdList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.DeviceIdList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.DeviceIdList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.DeviceIdList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.DeviceIdList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.DeviceIdList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.DeviceIdList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.DeviceIdList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.DeviceIdList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.DeviceIdList)
context.ContextOuterClass.DeviceIdListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_DeviceIdList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_DeviceIdList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.DeviceIdList.class, context.ContextOuterClass.DeviceIdList.Builder.class);
}
// Construct using context.ContextOuterClass.DeviceIdList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDeviceIdsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (deviceIdsBuilder_ == null) {
deviceIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
deviceIdsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_DeviceIdList_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.DeviceIdList getDefaultInstanceForType() {
return context.ContextOuterClass.DeviceIdList.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.DeviceIdList build() {
context.ContextOuterClass.DeviceIdList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.DeviceIdList buildPartial() {
context.ContextOuterClass.DeviceIdList result = new context.ContextOuterClass.DeviceIdList(this);
int from_bitField0_ = bitField0_;
if (deviceIdsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
deviceIds_ = java.util.Collections.unmodifiableList(deviceIds_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.deviceIds_ = deviceIds_;
} else {
result.deviceIds_ = deviceIdsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.DeviceIdList) {
return mergeFrom((context.ContextOuterClass.DeviceIdList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.DeviceIdList other) {
if (other == context.ContextOuterClass.DeviceIdList.getDefaultInstance()) return this;
if (deviceIdsBuilder_ == null) {
if (!other.deviceIds_.isEmpty()) {
if (deviceIds_.isEmpty()) {
deviceIds_ = other.deviceIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDeviceIdsIsMutable();
deviceIds_.addAll(other.deviceIds_);
}
onChanged();
}
} else {
if (!other.deviceIds_.isEmpty()) {
if (deviceIdsBuilder_.isEmpty()) {
deviceIdsBuilder_.dispose();
deviceIdsBuilder_ = null;
deviceIds_ = other.deviceIds_;
bitField0_ = (bitField0_ & ~0x00000001);
deviceIdsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDeviceIdsFieldBuilder() : null;
} else {
deviceIdsBuilder_.addAllMessages(other.deviceIds_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.DeviceIdList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.DeviceIdList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List deviceIds_ =
java.util.Collections.emptyList();
private void ensureDeviceIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
deviceIds_ = new java.util.ArrayList(deviceIds_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder> deviceIdsBuilder_;
/**
* repeated .context.DeviceId device_ids = 1;
*/
public java.util.List getDeviceIdsList() {
if (deviceIdsBuilder_ == null) {
return java.util.Collections.unmodifiableList(deviceIds_);
} else {
return deviceIdsBuilder_.getMessageList();
}
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
public int getDeviceIdsCount() {
if (deviceIdsBuilder_ == null) {
return deviceIds_.size();
} else {
return deviceIdsBuilder_.getCount();
}
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
public context.ContextOuterClass.DeviceId getDeviceIds(int index) {
if (deviceIdsBuilder_ == null) {
return deviceIds_.get(index);
} else {
return deviceIdsBuilder_.getMessage(index);
}
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
public Builder setDeviceIds(
int index, context.ContextOuterClass.DeviceId value) {
if (deviceIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceIdsIsMutable();
deviceIds_.set(index, value);
onChanged();
} else {
deviceIdsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
public Builder setDeviceIds(
int index, context.ContextOuterClass.DeviceId.Builder builderForValue) {
if (deviceIdsBuilder_ == null) {
ensureDeviceIdsIsMutable();
deviceIds_.set(index, builderForValue.build());
onChanged();
} else {
deviceIdsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
public Builder addDeviceIds(context.ContextOuterClass.DeviceId value) {
if (deviceIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceIdsIsMutable();
deviceIds_.add(value);
onChanged();
} else {
deviceIdsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
public Builder addDeviceIds(
int index, context.ContextOuterClass.DeviceId value) {
if (deviceIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDeviceIdsIsMutable();
deviceIds_.add(index, value);
onChanged();
} else {
deviceIdsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
public Builder addDeviceIds(
context.ContextOuterClass.DeviceId.Builder builderForValue) {
if (deviceIdsBuilder_ == null) {
ensureDeviceIdsIsMutable();
deviceIds_.add(builderForValue.build());
onChanged();
} else {
deviceIdsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
public Builder addDeviceIds(
int index, context.ContextOuterClass.DeviceId.Builder builderForValue) {
if (deviceIdsBuilder_ == null) {
ensureDeviceIdsIsMutable();
deviceIds_.add(index, builderForValue.build());
onChanged();
} else {
deviceIdsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
public Builder addAllDeviceIds(
java.lang.Iterable extends context.ContextOuterClass.DeviceId> values) {
if (deviceIdsBuilder_ == null) {
ensureDeviceIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, deviceIds_);
onChanged();
} else {
deviceIdsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
public Builder clearDeviceIds() {
if (deviceIdsBuilder_ == null) {
deviceIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
deviceIdsBuilder_.clear();
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
public Builder removeDeviceIds(int index) {
if (deviceIdsBuilder_ == null) {
ensureDeviceIdsIsMutable();
deviceIds_.remove(index);
onChanged();
} else {
deviceIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
public context.ContextOuterClass.DeviceId.Builder getDeviceIdsBuilder(
int index) {
return getDeviceIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
public context.ContextOuterClass.DeviceIdOrBuilder getDeviceIdsOrBuilder(
int index) {
if (deviceIdsBuilder_ == null) {
return deviceIds_.get(index); } else {
return deviceIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
public java.util.List extends context.ContextOuterClass.DeviceIdOrBuilder>
getDeviceIdsOrBuilderList() {
if (deviceIdsBuilder_ != null) {
return deviceIdsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(deviceIds_);
}
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
public context.ContextOuterClass.DeviceId.Builder addDeviceIdsBuilder() {
return getDeviceIdsFieldBuilder().addBuilder(
context.ContextOuterClass.DeviceId.getDefaultInstance());
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
public context.ContextOuterClass.DeviceId.Builder addDeviceIdsBuilder(
int index) {
return getDeviceIdsFieldBuilder().addBuilder(
index, context.ContextOuterClass.DeviceId.getDefaultInstance());
}
/**
* repeated .context.DeviceId device_ids = 1;
*/
public java.util.List
getDeviceIdsBuilderList() {
return getDeviceIdsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder>
getDeviceIdsFieldBuilder() {
if (deviceIdsBuilder_ == null) {
deviceIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder>(
deviceIds_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
deviceIds_ = null;
}
return deviceIdsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.DeviceIdList)
}
// @@protoc_insertion_point(class_scope:context.DeviceIdList)
private static final context.ContextOuterClass.DeviceIdList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.DeviceIdList();
}
public static context.ContextOuterClass.DeviceIdList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeviceIdList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeviceIdList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.DeviceIdList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeviceListOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.DeviceList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .context.Device devices = 1;
*/
java.util.List
getDevicesList();
/**
* repeated .context.Device devices = 1;
*/
context.ContextOuterClass.Device getDevices(int index);
/**
* repeated .context.Device devices = 1;
*/
int getDevicesCount();
/**
* repeated .context.Device devices = 1;
*/
java.util.List extends context.ContextOuterClass.DeviceOrBuilder>
getDevicesOrBuilderList();
/**
* repeated .context.Device devices = 1;
*/
context.ContextOuterClass.DeviceOrBuilder getDevicesOrBuilder(
int index);
}
/**
* Protobuf type {@code context.DeviceList}
*/
public static final class DeviceList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.DeviceList)
DeviceListOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeviceList.newBuilder() to construct.
private DeviceList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeviceList() {
devices_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeviceList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeviceList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
devices_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
devices_.add(
input.readMessage(context.ContextOuterClass.Device.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
devices_ = java.util.Collections.unmodifiableList(devices_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_DeviceList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_DeviceList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.DeviceList.class, context.ContextOuterClass.DeviceList.Builder.class);
}
public static final int DEVICES_FIELD_NUMBER = 1;
private java.util.List devices_;
/**
* repeated .context.Device devices = 1;
*/
@java.lang.Override
public java.util.List getDevicesList() {
return devices_;
}
/**
* repeated .context.Device devices = 1;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.DeviceOrBuilder>
getDevicesOrBuilderList() {
return devices_;
}
/**
* repeated .context.Device devices = 1;
*/
@java.lang.Override
public int getDevicesCount() {
return devices_.size();
}
/**
* repeated .context.Device devices = 1;
*/
@java.lang.Override
public context.ContextOuterClass.Device getDevices(int index) {
return devices_.get(index);
}
/**
* repeated .context.Device devices = 1;
*/
@java.lang.Override
public context.ContextOuterClass.DeviceOrBuilder getDevicesOrBuilder(
int index) {
return devices_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < devices_.size(); i++) {
output.writeMessage(1, devices_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < devices_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, devices_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.DeviceList)) {
return super.equals(obj);
}
context.ContextOuterClass.DeviceList other = (context.ContextOuterClass.DeviceList) obj;
if (!getDevicesList()
.equals(other.getDevicesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getDevicesCount() > 0) {
hash = (37 * hash) + DEVICES_FIELD_NUMBER;
hash = (53 * hash) + getDevicesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.DeviceList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.DeviceList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.DeviceList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.DeviceList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.DeviceList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.DeviceList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.DeviceList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.DeviceList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.DeviceList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.DeviceList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.DeviceList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.DeviceList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.DeviceList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.DeviceList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.DeviceList)
context.ContextOuterClass.DeviceListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_DeviceList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_DeviceList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.DeviceList.class, context.ContextOuterClass.DeviceList.Builder.class);
}
// Construct using context.ContextOuterClass.DeviceList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDevicesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (devicesBuilder_ == null) {
devices_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
devicesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_DeviceList_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.DeviceList getDefaultInstanceForType() {
return context.ContextOuterClass.DeviceList.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.DeviceList build() {
context.ContextOuterClass.DeviceList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.DeviceList buildPartial() {
context.ContextOuterClass.DeviceList result = new context.ContextOuterClass.DeviceList(this);
int from_bitField0_ = bitField0_;
if (devicesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
devices_ = java.util.Collections.unmodifiableList(devices_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.devices_ = devices_;
} else {
result.devices_ = devicesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.DeviceList) {
return mergeFrom((context.ContextOuterClass.DeviceList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.DeviceList other) {
if (other == context.ContextOuterClass.DeviceList.getDefaultInstance()) return this;
if (devicesBuilder_ == null) {
if (!other.devices_.isEmpty()) {
if (devices_.isEmpty()) {
devices_ = other.devices_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDevicesIsMutable();
devices_.addAll(other.devices_);
}
onChanged();
}
} else {
if (!other.devices_.isEmpty()) {
if (devicesBuilder_.isEmpty()) {
devicesBuilder_.dispose();
devicesBuilder_ = null;
devices_ = other.devices_;
bitField0_ = (bitField0_ & ~0x00000001);
devicesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDevicesFieldBuilder() : null;
} else {
devicesBuilder_.addAllMessages(other.devices_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.DeviceList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.DeviceList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List devices_ =
java.util.Collections.emptyList();
private void ensureDevicesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
devices_ = new java.util.ArrayList(devices_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.Device, context.ContextOuterClass.Device.Builder, context.ContextOuterClass.DeviceOrBuilder> devicesBuilder_;
/**
* repeated .context.Device devices = 1;
*/
public java.util.List getDevicesList() {
if (devicesBuilder_ == null) {
return java.util.Collections.unmodifiableList(devices_);
} else {
return devicesBuilder_.getMessageList();
}
}
/**
* repeated .context.Device devices = 1;
*/
public int getDevicesCount() {
if (devicesBuilder_ == null) {
return devices_.size();
} else {
return devicesBuilder_.getCount();
}
}
/**
* repeated .context.Device devices = 1;
*/
public context.ContextOuterClass.Device getDevices(int index) {
if (devicesBuilder_ == null) {
return devices_.get(index);
} else {
return devicesBuilder_.getMessage(index);
}
}
/**
* repeated .context.Device devices = 1;
*/
public Builder setDevices(
int index, context.ContextOuterClass.Device value) {
if (devicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDevicesIsMutable();
devices_.set(index, value);
onChanged();
} else {
devicesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .context.Device devices = 1;
*/
public Builder setDevices(
int index, context.ContextOuterClass.Device.Builder builderForValue) {
if (devicesBuilder_ == null) {
ensureDevicesIsMutable();
devices_.set(index, builderForValue.build());
onChanged();
} else {
devicesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.Device devices = 1;
*/
public Builder addDevices(context.ContextOuterClass.Device value) {
if (devicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDevicesIsMutable();
devices_.add(value);
onChanged();
} else {
devicesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .context.Device devices = 1;
*/
public Builder addDevices(
int index, context.ContextOuterClass.Device value) {
if (devicesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDevicesIsMutable();
devices_.add(index, value);
onChanged();
} else {
devicesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .context.Device devices = 1;
*/
public Builder addDevices(
context.ContextOuterClass.Device.Builder builderForValue) {
if (devicesBuilder_ == null) {
ensureDevicesIsMutable();
devices_.add(builderForValue.build());
onChanged();
} else {
devicesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .context.Device devices = 1;
*/
public Builder addDevices(
int index, context.ContextOuterClass.Device.Builder builderForValue) {
if (devicesBuilder_ == null) {
ensureDevicesIsMutable();
devices_.add(index, builderForValue.build());
onChanged();
} else {
devicesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.Device devices = 1;
*/
public Builder addAllDevices(
java.lang.Iterable extends context.ContextOuterClass.Device> values) {
if (devicesBuilder_ == null) {
ensureDevicesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, devices_);
onChanged();
} else {
devicesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .context.Device devices = 1;
*/
public Builder clearDevices() {
if (devicesBuilder_ == null) {
devices_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
devicesBuilder_.clear();
}
return this;
}
/**
* repeated .context.Device devices = 1;
*/
public Builder removeDevices(int index) {
if (devicesBuilder_ == null) {
ensureDevicesIsMutable();
devices_.remove(index);
onChanged();
} else {
devicesBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.Device devices = 1;
*/
public context.ContextOuterClass.Device.Builder getDevicesBuilder(
int index) {
return getDevicesFieldBuilder().getBuilder(index);
}
/**
* repeated .context.Device devices = 1;
*/
public context.ContextOuterClass.DeviceOrBuilder getDevicesOrBuilder(
int index) {
if (devicesBuilder_ == null) {
return devices_.get(index); } else {
return devicesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.Device devices = 1;
*/
public java.util.List extends context.ContextOuterClass.DeviceOrBuilder>
getDevicesOrBuilderList() {
if (devicesBuilder_ != null) {
return devicesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(devices_);
}
}
/**
* repeated .context.Device devices = 1;
*/
public context.ContextOuterClass.Device.Builder addDevicesBuilder() {
return getDevicesFieldBuilder().addBuilder(
context.ContextOuterClass.Device.getDefaultInstance());
}
/**
* repeated .context.Device devices = 1;
*/
public context.ContextOuterClass.Device.Builder addDevicesBuilder(
int index) {
return getDevicesFieldBuilder().addBuilder(
index, context.ContextOuterClass.Device.getDefaultInstance());
}
/**
* repeated .context.Device devices = 1;
*/
public java.util.List
getDevicesBuilderList() {
return getDevicesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.Device, context.ContextOuterClass.Device.Builder, context.ContextOuterClass.DeviceOrBuilder>
getDevicesFieldBuilder() {
if (devicesBuilder_ == null) {
devicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.Device, context.ContextOuterClass.Device.Builder, context.ContextOuterClass.DeviceOrBuilder>(
devices_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
devices_ = null;
}
return devicesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.DeviceList)
}
// @@protoc_insertion_point(class_scope:context.DeviceList)
private static final context.ContextOuterClass.DeviceList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.DeviceList();
}
public static context.ContextOuterClass.DeviceList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeviceList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeviceList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.DeviceList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeviceEventOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.DeviceEvent)
com.google.protobuf.MessageOrBuilder {
/**
* .context.Event event = 1;
* @return Whether the event field is set.
*/
boolean hasEvent();
/**
* .context.Event event = 1;
* @return The event.
*/
context.ContextOuterClass.Event getEvent();
/**
* .context.Event event = 1;
*/
context.ContextOuterClass.EventOrBuilder getEventOrBuilder();
/**
* .context.DeviceId device_id = 2;
* @return Whether the deviceId field is set.
*/
boolean hasDeviceId();
/**
* .context.DeviceId device_id = 2;
* @return The deviceId.
*/
context.ContextOuterClass.DeviceId getDeviceId();
/**
* .context.DeviceId device_id = 2;
*/
context.ContextOuterClass.DeviceIdOrBuilder getDeviceIdOrBuilder();
}
/**
* Protobuf type {@code context.DeviceEvent}
*/
public static final class DeviceEvent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.DeviceEvent)
DeviceEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeviceEvent.newBuilder() to construct.
private DeviceEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeviceEvent() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeviceEvent();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeviceEvent(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
context.ContextOuterClass.Event.Builder subBuilder = null;
if (event_ != null) {
subBuilder = event_.toBuilder();
}
event_ = input.readMessage(context.ContextOuterClass.Event.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(event_);
event_ = subBuilder.buildPartial();
}
break;
}
case 18: {
context.ContextOuterClass.DeviceId.Builder subBuilder = null;
if (deviceId_ != null) {
subBuilder = deviceId_.toBuilder();
}
deviceId_ = input.readMessage(context.ContextOuterClass.DeviceId.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(deviceId_);
deviceId_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_DeviceEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_DeviceEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.DeviceEvent.class, context.ContextOuterClass.DeviceEvent.Builder.class);
}
public static final int EVENT_FIELD_NUMBER = 1;
private context.ContextOuterClass.Event event_;
/**
* .context.Event event = 1;
* @return Whether the event field is set.
*/
@java.lang.Override
public boolean hasEvent() {
return event_ != null;
}
/**
* .context.Event event = 1;
* @return The event.
*/
@java.lang.Override
public context.ContextOuterClass.Event getEvent() {
return event_ == null ? context.ContextOuterClass.Event.getDefaultInstance() : event_;
}
/**
* .context.Event event = 1;
*/
@java.lang.Override
public context.ContextOuterClass.EventOrBuilder getEventOrBuilder() {
return getEvent();
}
public static final int DEVICE_ID_FIELD_NUMBER = 2;
private context.ContextOuterClass.DeviceId deviceId_;
/**
* .context.DeviceId device_id = 2;
* @return Whether the deviceId field is set.
*/
@java.lang.Override
public boolean hasDeviceId() {
return deviceId_ != null;
}
/**
* .context.DeviceId device_id = 2;
* @return The deviceId.
*/
@java.lang.Override
public context.ContextOuterClass.DeviceId getDeviceId() {
return deviceId_ == null ? context.ContextOuterClass.DeviceId.getDefaultInstance() : deviceId_;
}
/**
* .context.DeviceId device_id = 2;
*/
@java.lang.Override
public context.ContextOuterClass.DeviceIdOrBuilder getDeviceIdOrBuilder() {
return getDeviceId();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (event_ != null) {
output.writeMessage(1, getEvent());
}
if (deviceId_ != null) {
output.writeMessage(2, getDeviceId());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (event_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEvent());
}
if (deviceId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getDeviceId());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.DeviceEvent)) {
return super.equals(obj);
}
context.ContextOuterClass.DeviceEvent other = (context.ContextOuterClass.DeviceEvent) obj;
if (hasEvent() != other.hasEvent()) return false;
if (hasEvent()) {
if (!getEvent()
.equals(other.getEvent())) return false;
}
if (hasDeviceId() != other.hasDeviceId()) return false;
if (hasDeviceId()) {
if (!getDeviceId()
.equals(other.getDeviceId())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasEvent()) {
hash = (37 * hash) + EVENT_FIELD_NUMBER;
hash = (53 * hash) + getEvent().hashCode();
}
if (hasDeviceId()) {
hash = (37 * hash) + DEVICE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDeviceId().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.DeviceEvent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.DeviceEvent parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.DeviceEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.DeviceEvent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.DeviceEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.DeviceEvent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.DeviceEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.DeviceEvent parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.DeviceEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.DeviceEvent parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.DeviceEvent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.DeviceEvent parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.DeviceEvent prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.DeviceEvent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.DeviceEvent)
context.ContextOuterClass.DeviceEventOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_DeviceEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_DeviceEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.DeviceEvent.class, context.ContextOuterClass.DeviceEvent.Builder.class);
}
// Construct using context.ContextOuterClass.DeviceEvent.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (eventBuilder_ == null) {
event_ = null;
} else {
event_ = null;
eventBuilder_ = null;
}
if (deviceIdBuilder_ == null) {
deviceId_ = null;
} else {
deviceId_ = null;
deviceIdBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_DeviceEvent_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.DeviceEvent getDefaultInstanceForType() {
return context.ContextOuterClass.DeviceEvent.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.DeviceEvent build() {
context.ContextOuterClass.DeviceEvent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.DeviceEvent buildPartial() {
context.ContextOuterClass.DeviceEvent result = new context.ContextOuterClass.DeviceEvent(this);
if (eventBuilder_ == null) {
result.event_ = event_;
} else {
result.event_ = eventBuilder_.build();
}
if (deviceIdBuilder_ == null) {
result.deviceId_ = deviceId_;
} else {
result.deviceId_ = deviceIdBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.DeviceEvent) {
return mergeFrom((context.ContextOuterClass.DeviceEvent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.DeviceEvent other) {
if (other == context.ContextOuterClass.DeviceEvent.getDefaultInstance()) return this;
if (other.hasEvent()) {
mergeEvent(other.getEvent());
}
if (other.hasDeviceId()) {
mergeDeviceId(other.getDeviceId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.DeviceEvent parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.DeviceEvent) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private context.ContextOuterClass.Event event_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Event, context.ContextOuterClass.Event.Builder, context.ContextOuterClass.EventOrBuilder> eventBuilder_;
/**
* .context.Event event = 1;
* @return Whether the event field is set.
*/
public boolean hasEvent() {
return eventBuilder_ != null || event_ != null;
}
/**
* .context.Event event = 1;
* @return The event.
*/
public context.ContextOuterClass.Event getEvent() {
if (eventBuilder_ == null) {
return event_ == null ? context.ContextOuterClass.Event.getDefaultInstance() : event_;
} else {
return eventBuilder_.getMessage();
}
}
/**
* .context.Event event = 1;
*/
public Builder setEvent(context.ContextOuterClass.Event value) {
if (eventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
event_ = value;
onChanged();
} else {
eventBuilder_.setMessage(value);
}
return this;
}
/**
* .context.Event event = 1;
*/
public Builder setEvent(
context.ContextOuterClass.Event.Builder builderForValue) {
if (eventBuilder_ == null) {
event_ = builderForValue.build();
onChanged();
} else {
eventBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.Event event = 1;
*/
public Builder mergeEvent(context.ContextOuterClass.Event value) {
if (eventBuilder_ == null) {
if (event_ != null) {
event_ =
context.ContextOuterClass.Event.newBuilder(event_).mergeFrom(value).buildPartial();
} else {
event_ = value;
}
onChanged();
} else {
eventBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.Event event = 1;
*/
public Builder clearEvent() {
if (eventBuilder_ == null) {
event_ = null;
onChanged();
} else {
event_ = null;
eventBuilder_ = null;
}
return this;
}
/**
* .context.Event event = 1;
*/
public context.ContextOuterClass.Event.Builder getEventBuilder() {
onChanged();
return getEventFieldBuilder().getBuilder();
}
/**
* .context.Event event = 1;
*/
public context.ContextOuterClass.EventOrBuilder getEventOrBuilder() {
if (eventBuilder_ != null) {
return eventBuilder_.getMessageOrBuilder();
} else {
return event_ == null ?
context.ContextOuterClass.Event.getDefaultInstance() : event_;
}
}
/**
* .context.Event event = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Event, context.ContextOuterClass.Event.Builder, context.ContextOuterClass.EventOrBuilder>
getEventFieldBuilder() {
if (eventBuilder_ == null) {
eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Event, context.ContextOuterClass.Event.Builder, context.ContextOuterClass.EventOrBuilder>(
getEvent(),
getParentForChildren(),
isClean());
event_ = null;
}
return eventBuilder_;
}
private context.ContextOuterClass.DeviceId deviceId_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder> deviceIdBuilder_;
/**
* .context.DeviceId device_id = 2;
* @return Whether the deviceId field is set.
*/
public boolean hasDeviceId() {
return deviceIdBuilder_ != null || deviceId_ != null;
}
/**
* .context.DeviceId device_id = 2;
* @return The deviceId.
*/
public context.ContextOuterClass.DeviceId getDeviceId() {
if (deviceIdBuilder_ == null) {
return deviceId_ == null ? context.ContextOuterClass.DeviceId.getDefaultInstance() : deviceId_;
} else {
return deviceIdBuilder_.getMessage();
}
}
/**
* .context.DeviceId device_id = 2;
*/
public Builder setDeviceId(context.ContextOuterClass.DeviceId value) {
if (deviceIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deviceId_ = value;
onChanged();
} else {
deviceIdBuilder_.setMessage(value);
}
return this;
}
/**
* .context.DeviceId device_id = 2;
*/
public Builder setDeviceId(
context.ContextOuterClass.DeviceId.Builder builderForValue) {
if (deviceIdBuilder_ == null) {
deviceId_ = builderForValue.build();
onChanged();
} else {
deviceIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.DeviceId device_id = 2;
*/
public Builder mergeDeviceId(context.ContextOuterClass.DeviceId value) {
if (deviceIdBuilder_ == null) {
if (deviceId_ != null) {
deviceId_ =
context.ContextOuterClass.DeviceId.newBuilder(deviceId_).mergeFrom(value).buildPartial();
} else {
deviceId_ = value;
}
onChanged();
} else {
deviceIdBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.DeviceId device_id = 2;
*/
public Builder clearDeviceId() {
if (deviceIdBuilder_ == null) {
deviceId_ = null;
onChanged();
} else {
deviceId_ = null;
deviceIdBuilder_ = null;
}
return this;
}
/**
* .context.DeviceId device_id = 2;
*/
public context.ContextOuterClass.DeviceId.Builder getDeviceIdBuilder() {
onChanged();
return getDeviceIdFieldBuilder().getBuilder();
}
/**
* .context.DeviceId device_id = 2;
*/
public context.ContextOuterClass.DeviceIdOrBuilder getDeviceIdOrBuilder() {
if (deviceIdBuilder_ != null) {
return deviceIdBuilder_.getMessageOrBuilder();
} else {
return deviceId_ == null ?
context.ContextOuterClass.DeviceId.getDefaultInstance() : deviceId_;
}
}
/**
* .context.DeviceId device_id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder>
getDeviceIdFieldBuilder() {
if (deviceIdBuilder_ == null) {
deviceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder>(
getDeviceId(),
getParentForChildren(),
isClean());
deviceId_ = null;
}
return deviceIdBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.DeviceEvent)
}
// @@protoc_insertion_point(class_scope:context.DeviceEvent)
private static final context.ContextOuterClass.DeviceEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.DeviceEvent();
}
public static context.ContextOuterClass.DeviceEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeviceEvent parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeviceEvent(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.DeviceEvent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LinkIdOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.LinkId)
com.google.protobuf.MessageOrBuilder {
/**
* .context.Uuid link_uuid = 1;
* @return Whether the linkUuid field is set.
*/
boolean hasLinkUuid();
/**
* .context.Uuid link_uuid = 1;
* @return The linkUuid.
*/
context.ContextOuterClass.Uuid getLinkUuid();
/**
* .context.Uuid link_uuid = 1;
*/
context.ContextOuterClass.UuidOrBuilder getLinkUuidOrBuilder();
}
/**
*
* ----- Link ----------------------------------------------------------------------------------------------------------
*
*
* Protobuf type {@code context.LinkId}
*/
public static final class LinkId extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.LinkId)
LinkIdOrBuilder {
private static final long serialVersionUID = 0L;
// Use LinkId.newBuilder() to construct.
private LinkId(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LinkId() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LinkId();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LinkId(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
context.ContextOuterClass.Uuid.Builder subBuilder = null;
if (linkUuid_ != null) {
subBuilder = linkUuid_.toBuilder();
}
linkUuid_ = input.readMessage(context.ContextOuterClass.Uuid.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(linkUuid_);
linkUuid_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_LinkId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_LinkId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.LinkId.class, context.ContextOuterClass.LinkId.Builder.class);
}
public static final int LINK_UUID_FIELD_NUMBER = 1;
private context.ContextOuterClass.Uuid linkUuid_;
/**
* .context.Uuid link_uuid = 1;
* @return Whether the linkUuid field is set.
*/
@java.lang.Override
public boolean hasLinkUuid() {
return linkUuid_ != null;
}
/**
* .context.Uuid link_uuid = 1;
* @return The linkUuid.
*/
@java.lang.Override
public context.ContextOuterClass.Uuid getLinkUuid() {
return linkUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : linkUuid_;
}
/**
* .context.Uuid link_uuid = 1;
*/
@java.lang.Override
public context.ContextOuterClass.UuidOrBuilder getLinkUuidOrBuilder() {
return getLinkUuid();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (linkUuid_ != null) {
output.writeMessage(1, getLinkUuid());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (linkUuid_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLinkUuid());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.LinkId)) {
return super.equals(obj);
}
context.ContextOuterClass.LinkId other = (context.ContextOuterClass.LinkId) obj;
if (hasLinkUuid() != other.hasLinkUuid()) return false;
if (hasLinkUuid()) {
if (!getLinkUuid()
.equals(other.getLinkUuid())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasLinkUuid()) {
hash = (37 * hash) + LINK_UUID_FIELD_NUMBER;
hash = (53 * hash) + getLinkUuid().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.LinkId parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.LinkId parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.LinkId parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.LinkId parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.LinkId parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.LinkId parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.LinkId parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.LinkId parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.LinkId parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.LinkId parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.LinkId parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.LinkId parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.LinkId prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ----- Link ----------------------------------------------------------------------------------------------------------
*
*
* Protobuf type {@code context.LinkId}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.LinkId)
context.ContextOuterClass.LinkIdOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_LinkId_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_LinkId_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.LinkId.class, context.ContextOuterClass.LinkId.Builder.class);
}
// Construct using context.ContextOuterClass.LinkId.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (linkUuidBuilder_ == null) {
linkUuid_ = null;
} else {
linkUuid_ = null;
linkUuidBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_LinkId_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.LinkId getDefaultInstanceForType() {
return context.ContextOuterClass.LinkId.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.LinkId build() {
context.ContextOuterClass.LinkId result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.LinkId buildPartial() {
context.ContextOuterClass.LinkId result = new context.ContextOuterClass.LinkId(this);
if (linkUuidBuilder_ == null) {
result.linkUuid_ = linkUuid_;
} else {
result.linkUuid_ = linkUuidBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.LinkId) {
return mergeFrom((context.ContextOuterClass.LinkId)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.LinkId other) {
if (other == context.ContextOuterClass.LinkId.getDefaultInstance()) return this;
if (other.hasLinkUuid()) {
mergeLinkUuid(other.getLinkUuid());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.LinkId parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.LinkId) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private context.ContextOuterClass.Uuid linkUuid_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder> linkUuidBuilder_;
/**
* .context.Uuid link_uuid = 1;
* @return Whether the linkUuid field is set.
*/
public boolean hasLinkUuid() {
return linkUuidBuilder_ != null || linkUuid_ != null;
}
/**
* .context.Uuid link_uuid = 1;
* @return The linkUuid.
*/
public context.ContextOuterClass.Uuid getLinkUuid() {
if (linkUuidBuilder_ == null) {
return linkUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : linkUuid_;
} else {
return linkUuidBuilder_.getMessage();
}
}
/**
* .context.Uuid link_uuid = 1;
*/
public Builder setLinkUuid(context.ContextOuterClass.Uuid value) {
if (linkUuidBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
linkUuid_ = value;
onChanged();
} else {
linkUuidBuilder_.setMessage(value);
}
return this;
}
/**
* .context.Uuid link_uuid = 1;
*/
public Builder setLinkUuid(
context.ContextOuterClass.Uuid.Builder builderForValue) {
if (linkUuidBuilder_ == null) {
linkUuid_ = builderForValue.build();
onChanged();
} else {
linkUuidBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.Uuid link_uuid = 1;
*/
public Builder mergeLinkUuid(context.ContextOuterClass.Uuid value) {
if (linkUuidBuilder_ == null) {
if (linkUuid_ != null) {
linkUuid_ =
context.ContextOuterClass.Uuid.newBuilder(linkUuid_).mergeFrom(value).buildPartial();
} else {
linkUuid_ = value;
}
onChanged();
} else {
linkUuidBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.Uuid link_uuid = 1;
*/
public Builder clearLinkUuid() {
if (linkUuidBuilder_ == null) {
linkUuid_ = null;
onChanged();
} else {
linkUuid_ = null;
linkUuidBuilder_ = null;
}
return this;
}
/**
* .context.Uuid link_uuid = 1;
*/
public context.ContextOuterClass.Uuid.Builder getLinkUuidBuilder() {
onChanged();
return getLinkUuidFieldBuilder().getBuilder();
}
/**
* .context.Uuid link_uuid = 1;
*/
public context.ContextOuterClass.UuidOrBuilder getLinkUuidOrBuilder() {
if (linkUuidBuilder_ != null) {
return linkUuidBuilder_.getMessageOrBuilder();
} else {
return linkUuid_ == null ?
context.ContextOuterClass.Uuid.getDefaultInstance() : linkUuid_;
}
}
/**
* .context.Uuid link_uuid = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder>
getLinkUuidFieldBuilder() {
if (linkUuidBuilder_ == null) {
linkUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder>(
getLinkUuid(),
getParentForChildren(),
isClean());
linkUuid_ = null;
}
return linkUuidBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.LinkId)
}
// @@protoc_insertion_point(class_scope:context.LinkId)
private static final context.ContextOuterClass.LinkId DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.LinkId();
}
public static context.ContextOuterClass.LinkId getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LinkId parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LinkId(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.LinkId getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LinkOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.Link)
com.google.protobuf.MessageOrBuilder {
/**
* .context.LinkId link_id = 1;
* @return Whether the linkId field is set.
*/
boolean hasLinkId();
/**
* .context.LinkId link_id = 1;
* @return The linkId.
*/
context.ContextOuterClass.LinkId getLinkId();
/**
* .context.LinkId link_id = 1;
*/
context.ContextOuterClass.LinkIdOrBuilder getLinkIdOrBuilder();
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
java.util.List
getLinkEndpointIdsList();
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
context.ContextOuterClass.EndPointId getLinkEndpointIds(int index);
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
int getLinkEndpointIdsCount();
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
java.util.List extends context.ContextOuterClass.EndPointIdOrBuilder>
getLinkEndpointIdsOrBuilderList();
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
context.ContextOuterClass.EndPointIdOrBuilder getLinkEndpointIdsOrBuilder(
int index);
}
/**
* Protobuf type {@code context.Link}
*/
public static final class Link extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.Link)
LinkOrBuilder {
private static final long serialVersionUID = 0L;
// Use Link.newBuilder() to construct.
private Link(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Link() {
linkEndpointIds_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Link();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Link(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
context.ContextOuterClass.LinkId.Builder subBuilder = null;
if (linkId_ != null) {
subBuilder = linkId_.toBuilder();
}
linkId_ = input.readMessage(context.ContextOuterClass.LinkId.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(linkId_);
linkId_ = subBuilder.buildPartial();
}
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
linkEndpointIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
linkEndpointIds_.add(
input.readMessage(context.ContextOuterClass.EndPointId.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
linkEndpointIds_ = java.util.Collections.unmodifiableList(linkEndpointIds_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_Link_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_Link_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.Link.class, context.ContextOuterClass.Link.Builder.class);
}
public static final int LINK_ID_FIELD_NUMBER = 1;
private context.ContextOuterClass.LinkId linkId_;
/**
* .context.LinkId link_id = 1;
* @return Whether the linkId field is set.
*/
@java.lang.Override
public boolean hasLinkId() {
return linkId_ != null;
}
/**
* .context.LinkId link_id = 1;
* @return The linkId.
*/
@java.lang.Override
public context.ContextOuterClass.LinkId getLinkId() {
return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_;
}
/**
* .context.LinkId link_id = 1;
*/
@java.lang.Override
public context.ContextOuterClass.LinkIdOrBuilder getLinkIdOrBuilder() {
return getLinkId();
}
public static final int LINK_ENDPOINT_IDS_FIELD_NUMBER = 2;
private java.util.List linkEndpointIds_;
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
@java.lang.Override
public java.util.List getLinkEndpointIdsList() {
return linkEndpointIds_;
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.EndPointIdOrBuilder>
getLinkEndpointIdsOrBuilderList() {
return linkEndpointIds_;
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
@java.lang.Override
public int getLinkEndpointIdsCount() {
return linkEndpointIds_.size();
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
@java.lang.Override
public context.ContextOuterClass.EndPointId getLinkEndpointIds(int index) {
return linkEndpointIds_.get(index);
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
@java.lang.Override
public context.ContextOuterClass.EndPointIdOrBuilder getLinkEndpointIdsOrBuilder(
int index) {
return linkEndpointIds_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (linkId_ != null) {
output.writeMessage(1, getLinkId());
}
for (int i = 0; i < linkEndpointIds_.size(); i++) {
output.writeMessage(2, linkEndpointIds_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (linkId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getLinkId());
}
for (int i = 0; i < linkEndpointIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, linkEndpointIds_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.Link)) {
return super.equals(obj);
}
context.ContextOuterClass.Link other = (context.ContextOuterClass.Link) obj;
if (hasLinkId() != other.hasLinkId()) return false;
if (hasLinkId()) {
if (!getLinkId()
.equals(other.getLinkId())) return false;
}
if (!getLinkEndpointIdsList()
.equals(other.getLinkEndpointIdsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasLinkId()) {
hash = (37 * hash) + LINK_ID_FIELD_NUMBER;
hash = (53 * hash) + getLinkId().hashCode();
}
if (getLinkEndpointIdsCount() > 0) {
hash = (37 * hash) + LINK_ENDPOINT_IDS_FIELD_NUMBER;
hash = (53 * hash) + getLinkEndpointIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.Link parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Link parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Link parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Link parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Link parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Link parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Link parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Link parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.Link parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Link parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.Link parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Link parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.Link prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.Link}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.Link)
context.ContextOuterClass.LinkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_Link_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_Link_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.Link.class, context.ContextOuterClass.Link.Builder.class);
}
// Construct using context.ContextOuterClass.Link.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLinkEndpointIdsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (linkIdBuilder_ == null) {
linkId_ = null;
} else {
linkId_ = null;
linkIdBuilder_ = null;
}
if (linkEndpointIdsBuilder_ == null) {
linkEndpointIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
linkEndpointIdsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_Link_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.Link getDefaultInstanceForType() {
return context.ContextOuterClass.Link.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.Link build() {
context.ContextOuterClass.Link result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.Link buildPartial() {
context.ContextOuterClass.Link result = new context.ContextOuterClass.Link(this);
int from_bitField0_ = bitField0_;
if (linkIdBuilder_ == null) {
result.linkId_ = linkId_;
} else {
result.linkId_ = linkIdBuilder_.build();
}
if (linkEndpointIdsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
linkEndpointIds_ = java.util.Collections.unmodifiableList(linkEndpointIds_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.linkEndpointIds_ = linkEndpointIds_;
} else {
result.linkEndpointIds_ = linkEndpointIdsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.Link) {
return mergeFrom((context.ContextOuterClass.Link)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.Link other) {
if (other == context.ContextOuterClass.Link.getDefaultInstance()) return this;
if (other.hasLinkId()) {
mergeLinkId(other.getLinkId());
}
if (linkEndpointIdsBuilder_ == null) {
if (!other.linkEndpointIds_.isEmpty()) {
if (linkEndpointIds_.isEmpty()) {
linkEndpointIds_ = other.linkEndpointIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLinkEndpointIdsIsMutable();
linkEndpointIds_.addAll(other.linkEndpointIds_);
}
onChanged();
}
} else {
if (!other.linkEndpointIds_.isEmpty()) {
if (linkEndpointIdsBuilder_.isEmpty()) {
linkEndpointIdsBuilder_.dispose();
linkEndpointIdsBuilder_ = null;
linkEndpointIds_ = other.linkEndpointIds_;
bitField0_ = (bitField0_ & ~0x00000001);
linkEndpointIdsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLinkEndpointIdsFieldBuilder() : null;
} else {
linkEndpointIdsBuilder_.addAllMessages(other.linkEndpointIds_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.Link parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.Link) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private context.ContextOuterClass.LinkId linkId_;
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.LinkId, context.ContextOuterClass.LinkId.Builder, context.ContextOuterClass.LinkIdOrBuilder> linkIdBuilder_;
/**
* .context.LinkId link_id = 1;
* @return Whether the linkId field is set.
*/
public boolean hasLinkId() {
return linkIdBuilder_ != null || linkId_ != null;
}
/**
* .context.LinkId link_id = 1;
* @return The linkId.
*/
public context.ContextOuterClass.LinkId getLinkId() {
if (linkIdBuilder_ == null) {
return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_;
} else {
return linkIdBuilder_.getMessage();
}
}
/**
* .context.LinkId link_id = 1;
*/
public Builder setLinkId(context.ContextOuterClass.LinkId value) {
if (linkIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
linkId_ = value;
onChanged();
} else {
linkIdBuilder_.setMessage(value);
}
return this;
}
/**
* .context.LinkId link_id = 1;
*/
public Builder setLinkId(
context.ContextOuterClass.LinkId.Builder builderForValue) {
if (linkIdBuilder_ == null) {
linkId_ = builderForValue.build();
onChanged();
} else {
linkIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .context.LinkId link_id = 1;
*/
public Builder mergeLinkId(context.ContextOuterClass.LinkId value) {
if (linkIdBuilder_ == null) {
if (linkId_ != null) {
linkId_ =
context.ContextOuterClass.LinkId.newBuilder(linkId_).mergeFrom(value).buildPartial();
} else {
linkId_ = value;
}
onChanged();
} else {
linkIdBuilder_.mergeFrom(value);
}
return this;
}
/**
* .context.LinkId link_id = 1;
*/
public Builder clearLinkId() {
if (linkIdBuilder_ == null) {
linkId_ = null;
onChanged();
} else {
linkId_ = null;
linkIdBuilder_ = null;
}
return this;
}
/**
* .context.LinkId link_id = 1;
*/
public context.ContextOuterClass.LinkId.Builder getLinkIdBuilder() {
onChanged();
return getLinkIdFieldBuilder().getBuilder();
}
/**
* .context.LinkId link_id = 1;
*/
public context.ContextOuterClass.LinkIdOrBuilder getLinkIdOrBuilder() {
if (linkIdBuilder_ != null) {
return linkIdBuilder_.getMessageOrBuilder();
} else {
return linkId_ == null ?
context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_;
}
}
/**
* .context.LinkId link_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.LinkId, context.ContextOuterClass.LinkId.Builder, context.ContextOuterClass.LinkIdOrBuilder>
getLinkIdFieldBuilder() {
if (linkIdBuilder_ == null) {
linkIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.LinkId, context.ContextOuterClass.LinkId.Builder, context.ContextOuterClass.LinkIdOrBuilder>(
getLinkId(),
getParentForChildren(),
isClean());
linkId_ = null;
}
return linkIdBuilder_;
}
private java.util.List linkEndpointIds_ =
java.util.Collections.emptyList();
private void ensureLinkEndpointIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
linkEndpointIds_ = new java.util.ArrayList(linkEndpointIds_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.EndPointId, context.ContextOuterClass.EndPointId.Builder, context.ContextOuterClass.EndPointIdOrBuilder> linkEndpointIdsBuilder_;
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public java.util.List getLinkEndpointIdsList() {
if (linkEndpointIdsBuilder_ == null) {
return java.util.Collections.unmodifiableList(linkEndpointIds_);
} else {
return linkEndpointIdsBuilder_.getMessageList();
}
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public int getLinkEndpointIdsCount() {
if (linkEndpointIdsBuilder_ == null) {
return linkEndpointIds_.size();
} else {
return linkEndpointIdsBuilder_.getCount();
}
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public context.ContextOuterClass.EndPointId getLinkEndpointIds(int index) {
if (linkEndpointIdsBuilder_ == null) {
return linkEndpointIds_.get(index);
} else {
return linkEndpointIdsBuilder_.getMessage(index);
}
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public Builder setLinkEndpointIds(
int index, context.ContextOuterClass.EndPointId value) {
if (linkEndpointIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinkEndpointIdsIsMutable();
linkEndpointIds_.set(index, value);
onChanged();
} else {
linkEndpointIdsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public Builder setLinkEndpointIds(
int index, context.ContextOuterClass.EndPointId.Builder builderForValue) {
if (linkEndpointIdsBuilder_ == null) {
ensureLinkEndpointIdsIsMutable();
linkEndpointIds_.set(index, builderForValue.build());
onChanged();
} else {
linkEndpointIdsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public Builder addLinkEndpointIds(context.ContextOuterClass.EndPointId value) {
if (linkEndpointIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinkEndpointIdsIsMutable();
linkEndpointIds_.add(value);
onChanged();
} else {
linkEndpointIdsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public Builder addLinkEndpointIds(
int index, context.ContextOuterClass.EndPointId value) {
if (linkEndpointIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinkEndpointIdsIsMutable();
linkEndpointIds_.add(index, value);
onChanged();
} else {
linkEndpointIdsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public Builder addLinkEndpointIds(
context.ContextOuterClass.EndPointId.Builder builderForValue) {
if (linkEndpointIdsBuilder_ == null) {
ensureLinkEndpointIdsIsMutable();
linkEndpointIds_.add(builderForValue.build());
onChanged();
} else {
linkEndpointIdsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public Builder addLinkEndpointIds(
int index, context.ContextOuterClass.EndPointId.Builder builderForValue) {
if (linkEndpointIdsBuilder_ == null) {
ensureLinkEndpointIdsIsMutable();
linkEndpointIds_.add(index, builderForValue.build());
onChanged();
} else {
linkEndpointIdsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public Builder addAllLinkEndpointIds(
java.lang.Iterable extends context.ContextOuterClass.EndPointId> values) {
if (linkEndpointIdsBuilder_ == null) {
ensureLinkEndpointIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, linkEndpointIds_);
onChanged();
} else {
linkEndpointIdsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public Builder clearLinkEndpointIds() {
if (linkEndpointIdsBuilder_ == null) {
linkEndpointIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
linkEndpointIdsBuilder_.clear();
}
return this;
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public Builder removeLinkEndpointIds(int index) {
if (linkEndpointIdsBuilder_ == null) {
ensureLinkEndpointIdsIsMutable();
linkEndpointIds_.remove(index);
onChanged();
} else {
linkEndpointIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public context.ContextOuterClass.EndPointId.Builder getLinkEndpointIdsBuilder(
int index) {
return getLinkEndpointIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public context.ContextOuterClass.EndPointIdOrBuilder getLinkEndpointIdsOrBuilder(
int index) {
if (linkEndpointIdsBuilder_ == null) {
return linkEndpointIds_.get(index); } else {
return linkEndpointIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public java.util.List extends context.ContextOuterClass.EndPointIdOrBuilder>
getLinkEndpointIdsOrBuilderList() {
if (linkEndpointIdsBuilder_ != null) {
return linkEndpointIdsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(linkEndpointIds_);
}
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public context.ContextOuterClass.EndPointId.Builder addLinkEndpointIdsBuilder() {
return getLinkEndpointIdsFieldBuilder().addBuilder(
context.ContextOuterClass.EndPointId.getDefaultInstance());
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public context.ContextOuterClass.EndPointId.Builder addLinkEndpointIdsBuilder(
int index) {
return getLinkEndpointIdsFieldBuilder().addBuilder(
index, context.ContextOuterClass.EndPointId.getDefaultInstance());
}
/**
* repeated .context.EndPointId link_endpoint_ids = 2;
*/
public java.util.List
getLinkEndpointIdsBuilderList() {
return getLinkEndpointIdsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.EndPointId, context.ContextOuterClass.EndPointId.Builder, context.ContextOuterClass.EndPointIdOrBuilder>
getLinkEndpointIdsFieldBuilder() {
if (linkEndpointIdsBuilder_ == null) {
linkEndpointIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.EndPointId, context.ContextOuterClass.EndPointId.Builder, context.ContextOuterClass.EndPointIdOrBuilder>(
linkEndpointIds_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
linkEndpointIds_ = null;
}
return linkEndpointIdsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.Link)
}
// @@protoc_insertion_point(class_scope:context.Link)
private static final context.ContextOuterClass.Link DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.Link();
}
public static context.ContextOuterClass.Link getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser () {
@java.lang.Override
public Link parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Link(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.Link getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LinkIdListOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.LinkIdList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .context.LinkId link_ids = 1;
*/
java.util.List
getLinkIdsList();
/**
* repeated .context.LinkId link_ids = 1;
*/
context.ContextOuterClass.LinkId getLinkIds(int index);
/**
* repeated .context.LinkId link_ids = 1;
*/
int getLinkIdsCount();
/**
* repeated .context.LinkId link_ids = 1;
*/
java.util.List extends context.ContextOuterClass.LinkIdOrBuilder>
getLinkIdsOrBuilderList();
/**
* repeated .context.LinkId link_ids = 1;
*/
context.ContextOuterClass.LinkIdOrBuilder getLinkIdsOrBuilder(
int index);
}
/**
* Protobuf type {@code context.LinkIdList}
*/
public static final class LinkIdList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.LinkIdList)
LinkIdListOrBuilder {
private static final long serialVersionUID = 0L;
// Use LinkIdList.newBuilder() to construct.
private LinkIdList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LinkIdList() {
linkIds_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LinkIdList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LinkIdList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
linkIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
linkIds_.add(
input.readMessage(context.ContextOuterClass.LinkId.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
linkIds_ = java.util.Collections.unmodifiableList(linkIds_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_LinkIdList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_LinkIdList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.LinkIdList.class, context.ContextOuterClass.LinkIdList.Builder.class);
}
public static final int LINK_IDS_FIELD_NUMBER = 1;
private java.util.List linkIds_;
/**
* repeated .context.LinkId link_ids = 1;
*/
@java.lang.Override
public java.util.List getLinkIdsList() {
return linkIds_;
}
/**
* repeated .context.LinkId link_ids = 1;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.LinkIdOrBuilder>
getLinkIdsOrBuilderList() {
return linkIds_;
}
/**
* repeated .context.LinkId link_ids = 1;
*/
@java.lang.Override
public int getLinkIdsCount() {
return linkIds_.size();
}
/**
* repeated .context.LinkId link_ids = 1;
*/
@java.lang.Override
public context.ContextOuterClass.LinkId getLinkIds(int index) {
return linkIds_.get(index);
}
/**
* repeated .context.LinkId link_ids = 1;
*/
@java.lang.Override
public context.ContextOuterClass.LinkIdOrBuilder getLinkIdsOrBuilder(
int index) {
return linkIds_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < linkIds_.size(); i++) {
output.writeMessage(1, linkIds_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < linkIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, linkIds_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof context.ContextOuterClass.LinkIdList)) {
return super.equals(obj);
}
context.ContextOuterClass.LinkIdList other = (context.ContextOuterClass.LinkIdList) obj;
if (!getLinkIdsList()
.equals(other.getLinkIdsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getLinkIdsCount() > 0) {
hash = (37 * hash) + LINK_IDS_FIELD_NUMBER;
hash = (53 * hash) + getLinkIdsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.LinkIdList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.LinkIdList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.LinkIdList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.LinkIdList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.LinkIdList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.LinkIdList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.LinkIdList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.LinkIdList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.LinkIdList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.LinkIdList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static context.ContextOuterClass.LinkIdList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.LinkIdList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(context.ContextOuterClass.LinkIdList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code context.LinkIdList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:context.LinkIdList)
context.ContextOuterClass.LinkIdListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_LinkIdList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_LinkIdList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.LinkIdList.class, context.ContextOuterClass.LinkIdList.Builder.class);
}
// Construct using context.ContextOuterClass.LinkIdList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLinkIdsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (linkIdsBuilder_ == null) {
linkIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
linkIdsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return context.ContextOuterClass.internal_static_context_LinkIdList_descriptor;
}
@java.lang.Override
public context.ContextOuterClass.LinkIdList getDefaultInstanceForType() {
return context.ContextOuterClass.LinkIdList.getDefaultInstance();
}
@java.lang.Override
public context.ContextOuterClass.LinkIdList build() {
context.ContextOuterClass.LinkIdList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public context.ContextOuterClass.LinkIdList buildPartial() {
context.ContextOuterClass.LinkIdList result = new context.ContextOuterClass.LinkIdList(this);
int from_bitField0_ = bitField0_;
if (linkIdsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
linkIds_ = java.util.Collections.unmodifiableList(linkIds_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.linkIds_ = linkIds_;
} else {
result.linkIds_ = linkIdsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof context.ContextOuterClass.LinkIdList) {
return mergeFrom((context.ContextOuterClass.LinkIdList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(context.ContextOuterClass.LinkIdList other) {
if (other == context.ContextOuterClass.LinkIdList.getDefaultInstance()) return this;
if (linkIdsBuilder_ == null) {
if (!other.linkIds_.isEmpty()) {
if (linkIds_.isEmpty()) {
linkIds_ = other.linkIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLinkIdsIsMutable();
linkIds_.addAll(other.linkIds_);
}
onChanged();
}
} else {
if (!other.linkIds_.isEmpty()) {
if (linkIdsBuilder_.isEmpty()) {
linkIdsBuilder_.dispose();
linkIdsBuilder_ = null;
linkIds_ = other.linkIds_;
bitField0_ = (bitField0_ & ~0x00000001);
linkIdsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLinkIdsFieldBuilder() : null;
} else {
linkIdsBuilder_.addAllMessages(other.linkIds_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
context.ContextOuterClass.LinkIdList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (context.ContextOuterClass.LinkIdList) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List linkIds_ =
java.util.Collections.emptyList();
private void ensureLinkIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
linkIds_ = new java.util.ArrayList(linkIds_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.LinkId, context.ContextOuterClass.LinkId.Builder, context.ContextOuterClass.LinkIdOrBuilder> linkIdsBuilder_;
/**
* repeated .context.LinkId link_ids = 1;
*/
public java.util.List getLinkIdsList() {
if (linkIdsBuilder_ == null) {
return java.util.Collections.unmodifiableList(linkIds_);
} else {
return linkIdsBuilder_.getMessageList();
}
}
/**
* repeated .context.LinkId link_ids = 1;
*/
public int getLinkIdsCount() {
if (linkIdsBuilder_ == null) {
return linkIds_.size();
} else {
return linkIdsBuilder_.getCount();
}
}
/**
* repeated .context.LinkId link_ids = 1;
*/
public context.ContextOuterClass.LinkId getLinkIds(int index) {
if (linkIdsBuilder_ == null) {
return linkIds_.get(index);
} else {
return linkIdsBuilder_.getMessage(index);
}
}
/**
* repeated .context.LinkId link_ids = 1;
*/
public Builder setLinkIds(
int index, context.ContextOuterClass.LinkId value) {
if (linkIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinkIdsIsMutable();
linkIds_.set(index, value);
onChanged();
} else {
linkIdsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .context.LinkId link_ids = 1;
*/
public Builder setLinkIds(
int index, context.ContextOuterClass.LinkId.Builder builderForValue) {
if (linkIdsBuilder_ == null) {
ensureLinkIdsIsMutable();
linkIds_.set(index, builderForValue.build());
onChanged();
} else {
linkIdsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.LinkId link_ids = 1;
*/
public Builder addLinkIds(context.ContextOuterClass.LinkId value) {
if (linkIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinkIdsIsMutable();
linkIds_.add(value);
onChanged();
} else {
linkIdsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .context.LinkId link_ids = 1;
*/
public Builder addLinkIds(
int index, context.ContextOuterClass.LinkId value) {
if (linkIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinkIdsIsMutable();
linkIds_.add(index, value);
onChanged();
} else {
linkIdsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .context.LinkId link_ids = 1;
*/
public Builder addLinkIds(
context.ContextOuterClass.LinkId.Builder builderForValue) {
if (linkIdsBuilder_ == null) {
ensureLinkIdsIsMutable();
linkIds_.add(builderForValue.build());
onChanged();
} else {
linkIdsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .context.LinkId link_ids = 1;
*/
public Builder addLinkIds(
int index, context.ContextOuterClass.LinkId.Builder builderForValue) {
if (linkIdsBuilder_ == null) {
ensureLinkIdsIsMutable();
linkIds_.add(index, builderForValue.build());
onChanged();
} else {
linkIdsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.LinkId link_ids = 1;
*/
public Builder addAllLinkIds(
java.lang.Iterable extends context.ContextOuterClass.LinkId> values) {
if (linkIdsBuilder_ == null) {
ensureLinkIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, linkIds_);
onChanged();
} else {
linkIdsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .context.LinkId link_ids = 1;
*/
public Builder clearLinkIds() {
if (linkIdsBuilder_ == null) {
linkIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
linkIdsBuilder_.clear();
}
return this;
}
/**
* repeated .context.LinkId link_ids = 1;
*/
public Builder removeLinkIds(int index) {
if (linkIdsBuilder_ == null) {
ensureLinkIdsIsMutable();
linkIds_.remove(index);
onChanged();
} else {
linkIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.LinkId link_ids = 1;
*/
public context.ContextOuterClass.LinkId.Builder getLinkIdsBuilder(
int index) {
return getLinkIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .context.LinkId link_ids = 1;
*/
public context.ContextOuterClass.LinkIdOrBuilder getLinkIdsOrBuilder(
int index) {
if (linkIdsBuilder_ == null) {
return linkIds_.get(index); } else {
return linkIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.LinkId link_ids = 1;
*/
public java.util.List extends context.ContextOuterClass.LinkIdOrBuilder>
getLinkIdsOrBuilderList() {
if (linkIdsBuilder_ != null) {
return linkIdsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(linkIds_);
}
}
/**
* repeated .context.LinkId link_ids = 1;
*/
public context.ContextOuterClass.LinkId.Builder addLinkIdsBuilder() {
return getLinkIdsFieldBuilder().addBuilder(
context.ContextOuterClass.LinkId.getDefaultInstance());
}
/**
* repeated .context.LinkId link_ids = 1;
*/
public context.ContextOuterClass.LinkId.Builder addLinkIdsBuilder(
int index) {
return getLinkIdsFieldBuilder().addBuilder(
index, context.ContextOuterClass.LinkId.getDefaultInstance());
}
/**
* repeated .context.LinkId link_ids = 1;
*/
public java.util.List
getLinkIdsBuilderList() {
return getLinkIdsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.LinkId, context.ContextOuterClass.LinkId.Builder, context.ContextOuterClass.LinkIdOrBuilder>
getLinkIdsFieldBuilder() {
if (linkIdsBuilder_ == null) {
linkIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
context.ContextOuterClass.LinkId, context.ContextOuterClass.LinkId.Builder, context.ContextOuterClass.LinkIdOrBuilder>(
linkIds_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
linkIds_ = null;
}
return linkIdsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:context.LinkIdList)
}
// @@protoc_insertion_point(class_scope:context.LinkIdList)
private static final context.ContextOuterClass.LinkIdList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.LinkIdList();
}
public static context.ContextOuterClass.LinkIdList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LinkIdList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LinkIdList(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public context.ContextOuterClass.LinkIdList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LinkListOrBuilder extends
// @@protoc_insertion_point(interface_extends:context.LinkList)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .context.Link links = 1;
*/
java.util.List
getLinksList();
/**
* repeated .context.Link links = 1;
*/
context.ContextOuterClass.Link getLinks(int index);
/**
* repeated .context.Link links = 1;
*/
int getLinksCount();
/**
* repeated .context.Link links = 1;
*/
java.util.List extends context.ContextOuterClass.LinkOrBuilder>
getLinksOrBuilderList();
/**
* repeated .context.Link links = 1;
*/
context.ContextOuterClass.LinkOrBuilder getLinksOrBuilder(
int index);
}
/**
* Protobuf type {@code context.LinkList}
*/
public static final class LinkList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.LinkList)
LinkListOrBuilder {
private static final long serialVersionUID = 0L;
// Use LinkList.newBuilder() to construct.
private LinkList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LinkList() {
links_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LinkList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LinkList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
links_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
links_.add(
input.readMessage(context.ContextOuterClass.Link.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
links_ = java.util.Collections.unmodifiableList(links_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_LinkList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_LinkList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.LinkList.class, context.ContextOuterClass.LinkList.Builder.class);
}
public static final int LINKS_FIELD_NUMBER = 1;
private java.util.List links_;
/**
*