EVENTTYPE_UNDEFINED = 0;
*/
EVENTTYPE_UNDEFINED(0),
/**
* EVENTTYPE_CREATE = 1;
*/
EVENTTYPE_CREATE(1),
/**
* EVENTTYPE_UPDATE = 2;
*/
EVENTTYPE_UPDATE(2),
/**
* EVENTTYPE_REMOVE = 3;
*/
EVENTTYPE_REMOVE(3),
UNRECOGNIZED(-1),
;
/**
* EVENTTYPE_UNDEFINED = 0;
*/
public static final int EVENTTYPE_UNDEFINED_VALUE = 0;
/**
* EVENTTYPE_CREATE = 1;
*/
public static final int EVENTTYPE_CREATE_VALUE = 1;
/**
* EVENTTYPE_UPDATE = 2;
*/
public static final int EVENTTYPE_UPDATE_VALUE = 2;
/**
* EVENTTYPE_REMOVE = 3;
*/
public static final int EVENTTYPE_REMOVE_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EventTypeEnum valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static EventTypeEnum forNumber(int value) {
switch (value) {
case 0: return EVENTTYPE_UNDEFINED;
case 1: return EVENTTYPE_CREATE;
case 2: return EVENTTYPE_UPDATE;
case 3: return EVENTTYPE_REMOVE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap* also used for emulated ** *
DEVICEDRIVER_UNDEFINED = 0;
*/
DEVICEDRIVER_UNDEFINED(0),
/**
* DEVICEDRIVER_OPENCONFIG = 1;
*/
DEVICEDRIVER_OPENCONFIG(1),
/**
* DEVICEDRIVER_TRANSPORT_API = 2;
*/
DEVICEDRIVER_TRANSPORT_API(2),
/**
* DEVICEDRIVER_P4 = 3;
*/
DEVICEDRIVER_P4(3),
/**
* DEVICEDRIVER_IETF_NETWORK_TOPOLOGY = 4;
*/
DEVICEDRIVER_IETF_NETWORK_TOPOLOGY(4),
/**
* DEVICEDRIVER_ONF_TR_352 = 5;
*/
DEVICEDRIVER_ONF_TR_352(5),
/**
* DEVICEDRIVER_XR = 6;
*/
DEVICEDRIVER_XR(6),
/**
* DEVICEDRIVER_IETF_L2VPN = 7;
*/
DEVICEDRIVER_IETF_L2VPN(7),
/**
* DEVICEDRIVER_GNMI_OPENCONFIG = 8;
*/
DEVICEDRIVER_GNMI_OPENCONFIG(8),
UNRECOGNIZED(-1),
;
/**
* * also used for emulated ** *
DEVICEDRIVER_UNDEFINED = 0;
*/
public static final int DEVICEDRIVER_UNDEFINED_VALUE = 0;
/**
* DEVICEDRIVER_OPENCONFIG = 1;
*/
public static final int DEVICEDRIVER_OPENCONFIG_VALUE = 1;
/**
* DEVICEDRIVER_TRANSPORT_API = 2;
*/
public static final int DEVICEDRIVER_TRANSPORT_API_VALUE = 2;
/**
* DEVICEDRIVER_P4 = 3;
*/
public static final int DEVICEDRIVER_P4_VALUE = 3;
/**
* DEVICEDRIVER_IETF_NETWORK_TOPOLOGY = 4;
*/
public static final int DEVICEDRIVER_IETF_NETWORK_TOPOLOGY_VALUE = 4;
/**
* DEVICEDRIVER_ONF_TR_352 = 5;
*/
public static final int DEVICEDRIVER_ONF_TR_352_VALUE = 5;
/**
* DEVICEDRIVER_XR = 6;
*/
public static final int DEVICEDRIVER_XR_VALUE = 6;
/**
* DEVICEDRIVER_IETF_L2VPN = 7;
*/
public static final int DEVICEDRIVER_IETF_L2VPN_VALUE = 7;
/**
* DEVICEDRIVER_GNMI_OPENCONFIG = 8;
*/
public static final int DEVICEDRIVER_GNMI_OPENCONFIG_VALUE = 8;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DeviceDriverEnum valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static DeviceDriverEnum forNumber(int value) {
switch (value) {
case 0: return DEVICEDRIVER_UNDEFINED;
case 1: return DEVICEDRIVER_OPENCONFIG;
case 2: return DEVICEDRIVER_TRANSPORT_API;
case 3: return DEVICEDRIVER_P4;
case 4: return DEVICEDRIVER_IETF_NETWORK_TOPOLOGY;
case 5: return DEVICEDRIVER_ONF_TR_352;
case 6: return DEVICEDRIVER_XR;
case 7: return DEVICEDRIVER_IETF_L2VPN;
case 8: return DEVICEDRIVER_GNMI_OPENCONFIG;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMapDEVICEOPERATIONALSTATUS_UNDEFINED = 0;
*/
DEVICEOPERATIONALSTATUS_UNDEFINED(0),
/**
* DEVICEOPERATIONALSTATUS_DISABLED = 1;
*/
DEVICEOPERATIONALSTATUS_DISABLED(1),
/**
* DEVICEOPERATIONALSTATUS_ENABLED = 2;
*/
DEVICEOPERATIONALSTATUS_ENABLED(2),
UNRECOGNIZED(-1),
;
/**
* DEVICEOPERATIONALSTATUS_UNDEFINED = 0;
*/
public static final int DEVICEOPERATIONALSTATUS_UNDEFINED_VALUE = 0;
/**
* DEVICEOPERATIONALSTATUS_DISABLED = 1;
*/
public static final int DEVICEOPERATIONALSTATUS_DISABLED_VALUE = 1;
/**
* DEVICEOPERATIONALSTATUS_ENABLED = 2;
*/
public static final int DEVICEOPERATIONALSTATUS_ENABLED_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DeviceOperationalStatusEnum valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static DeviceOperationalStatusEnum forNumber(int value) {
switch (value) {
case 0: return DEVICEOPERATIONALSTATUS_UNDEFINED;
case 1: return DEVICEOPERATIONALSTATUS_DISABLED;
case 2: return DEVICEOPERATIONALSTATUS_ENABLED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMapSERVICETYPE_UNKNOWN = 0;
*/
SERVICETYPE_UNKNOWN(0),
/**
* SERVICETYPE_L3NM = 1;
*/
SERVICETYPE_L3NM(1),
/**
* SERVICETYPE_L2NM = 2;
*/
SERVICETYPE_L2NM(2),
/**
* SERVICETYPE_TAPI_CONNECTIVITY_SERVICE = 3;
*/
SERVICETYPE_TAPI_CONNECTIVITY_SERVICE(3),
UNRECOGNIZED(-1),
;
/**
* SERVICETYPE_UNKNOWN = 0;
*/
public static final int SERVICETYPE_UNKNOWN_VALUE = 0;
/**
* SERVICETYPE_L3NM = 1;
*/
public static final int SERVICETYPE_L3NM_VALUE = 1;
/**
* SERVICETYPE_L2NM = 2;
*/
public static final int SERVICETYPE_L2NM_VALUE = 2;
/**
* SERVICETYPE_TAPI_CONNECTIVITY_SERVICE = 3;
*/
public static final int SERVICETYPE_TAPI_CONNECTIVITY_SERVICE_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ServiceTypeEnum valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ServiceTypeEnum forNumber(int value) {
switch (value) {
case 0: return SERVICETYPE_UNKNOWN;
case 1: return SERVICETYPE_L3NM;
case 2: return SERVICETYPE_L2NM;
case 3: return SERVICETYPE_TAPI_CONNECTIVITY_SERVICE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMapSERVICESTATUS_UNDEFINED = 0;
*/
SERVICESTATUS_UNDEFINED(0),
/**
* SERVICESTATUS_PLANNED = 1;
*/
SERVICESTATUS_PLANNED(1),
/**
* SERVICESTATUS_ACTIVE = 2;
*/
SERVICESTATUS_ACTIVE(2),
/**
* SERVICESTATUS_UPDATING = 3;
*/
SERVICESTATUS_UPDATING(3),
/**
* SERVICESTATUS_PENDING_REMOVAL = 4;
*/
SERVICESTATUS_PENDING_REMOVAL(4),
/**
* SERVICESTATUS_SLA_VIOLATED = 5;
*/
SERVICESTATUS_SLA_VIOLATED(5),
UNRECOGNIZED(-1),
;
/**
* SERVICESTATUS_UNDEFINED = 0;
*/
public static final int SERVICESTATUS_UNDEFINED_VALUE = 0;
/**
* SERVICESTATUS_PLANNED = 1;
*/
public static final int SERVICESTATUS_PLANNED_VALUE = 1;
/**
* SERVICESTATUS_ACTIVE = 2;
*/
public static final int SERVICESTATUS_ACTIVE_VALUE = 2;
/**
* SERVICESTATUS_UPDATING = 3;
*/
public static final int SERVICESTATUS_UPDATING_VALUE = 3;
/**
* SERVICESTATUS_PENDING_REMOVAL = 4;
*/
public static final int SERVICESTATUS_PENDING_REMOVAL_VALUE = 4;
/**
* SERVICESTATUS_SLA_VIOLATED = 5;
*/
public static final int SERVICESTATUS_SLA_VIOLATED_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ServiceStatusEnum valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ServiceStatusEnum forNumber(int value) {
switch (value) {
case 0: return SERVICESTATUS_UNDEFINED;
case 1: return SERVICESTATUS_PLANNED;
case 2: return SERVICESTATUS_ACTIVE;
case 3: return SERVICESTATUS_UPDATING;
case 4: return SERVICESTATUS_PENDING_REMOVAL;
case 5: return SERVICESTATUS_SLA_VIOLATED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMapSLICESTATUS_UNDEFINED = 0;
*/
SLICESTATUS_UNDEFINED(0),
/**
* SLICESTATUS_PLANNED = 1;
*/
SLICESTATUS_PLANNED(1),
/**
* SLICESTATUS_INIT = 2;
*/
SLICESTATUS_INIT(2),
/**
* SLICESTATUS_ACTIVE = 3;
*/
SLICESTATUS_ACTIVE(3),
/**
* SLICESTATUS_DEINIT = 4;
*/
SLICESTATUS_DEINIT(4),
/**
* SLICESTATUS_SLA_VIOLATED = 5;
*/
SLICESTATUS_SLA_VIOLATED(5),
UNRECOGNIZED(-1),
;
/**
* SLICESTATUS_UNDEFINED = 0;
*/
public static final int SLICESTATUS_UNDEFINED_VALUE = 0;
/**
* SLICESTATUS_PLANNED = 1;
*/
public static final int SLICESTATUS_PLANNED_VALUE = 1;
/**
* SLICESTATUS_INIT = 2;
*/
public static final int SLICESTATUS_INIT_VALUE = 2;
/**
* SLICESTATUS_ACTIVE = 3;
*/
public static final int SLICESTATUS_ACTIVE_VALUE = 3;
/**
* SLICESTATUS_DEINIT = 4;
*/
public static final int SLICESTATUS_DEINIT_VALUE = 4;
/**
* SLICESTATUS_SLA_VIOLATED = 5;
*/
public static final int SLICESTATUS_SLA_VIOLATED_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SliceStatusEnum valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static SliceStatusEnum forNumber(int value) {
switch (value) {
case 0: return SLICESTATUS_UNDEFINED;
case 1: return SLICESTATUS_PLANNED;
case 2: return SLICESTATUS_INIT;
case 3: return SLICESTATUS_ACTIVE;
case 4: return SLICESTATUS_DEINIT;
case 5: return SLICESTATUS_SLA_VIOLATED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap* ----- Configuration ------------------------------------------------------------------------------------------------- ** * Protobuf enum {@code context.ConfigActionEnum} */ public enum ConfigActionEnum implements com.google.protobuf.ProtocolMessageEnum { /** *
CONFIGACTION_UNDEFINED = 0;
*/
CONFIGACTION_UNDEFINED(0),
/**
* CONFIGACTION_SET = 1;
*/
CONFIGACTION_SET(1),
/**
* CONFIGACTION_DELETE = 2;
*/
CONFIGACTION_DELETE(2),
UNRECOGNIZED(-1),
;
/**
* CONFIGACTION_UNDEFINED = 0;
*/
public static final int CONFIGACTION_UNDEFINED_VALUE = 0;
/**
* CONFIGACTION_SET = 1;
*/
public static final int CONFIGACTION_SET_VALUE = 1;
/**
* CONFIGACTION_DELETE = 2;
*/
public static final int CONFIGACTION_DELETE_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ConfigActionEnum valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ConfigActionEnum forNumber(int value) {
switch (value) {
case 0: return CONFIGACTION_UNDEFINED;
case 1: return CONFIGACTION_SET;
case 2: return CONFIGACTION_DELETE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap* ----- Constraint ---------------------------------------------------------------------------------------------------- ** * Protobuf enum {@code context.ConstraintActionEnum} */ public enum ConstraintActionEnum implements com.google.protobuf.ProtocolMessageEnum { /** *
CONSTRAINTACTION_UNDEFINED = 0;
*/
CONSTRAINTACTION_UNDEFINED(0),
/**
* CONSTRAINTACTION_SET = 1;
*/
CONSTRAINTACTION_SET(1),
/**
* CONSTRAINTACTION_DELETE = 2;
*/
CONSTRAINTACTION_DELETE(2),
UNRECOGNIZED(-1),
;
/**
* CONSTRAINTACTION_UNDEFINED = 0;
*/
public static final int CONSTRAINTACTION_UNDEFINED_VALUE = 0;
/**
* CONSTRAINTACTION_SET = 1;
*/
public static final int CONSTRAINTACTION_SET_VALUE = 1;
/**
* CONSTRAINTACTION_DELETE = 2;
*/
public static final int CONSTRAINTACTION_DELETE_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ConstraintActionEnum valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ConstraintActionEnum forNumber(int value) {
switch (value) {
case 0: return CONSTRAINTACTION_UNDEFINED;
case 1: return CONSTRAINTACTION_SET;
case 2: return CONSTRAINTACTION_DELETE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMapNO_ISOLATION = 0;
*/
NO_ISOLATION(0),
/**
* PHYSICAL_ISOLATION = 1;
*/
PHYSICAL_ISOLATION(1),
/**
* LOGICAL_ISOLATION = 2;
*/
LOGICAL_ISOLATION(2),
/**
* PROCESS_ISOLATION = 3;
*/
PROCESS_ISOLATION(3),
/**
* PHYSICAL_MEMORY_ISOLATION = 4;
*/
PHYSICAL_MEMORY_ISOLATION(4),
/**
* PHYSICAL_NETWORK_ISOLATION = 5;
*/
PHYSICAL_NETWORK_ISOLATION(5),
/**
* VIRTUAL_RESOURCE_ISOLATION = 6;
*/
VIRTUAL_RESOURCE_ISOLATION(6),
/**
* NETWORK_FUNCTIONS_ISOLATION = 7;
*/
NETWORK_FUNCTIONS_ISOLATION(7),
/**
* SERVICE_ISOLATION = 8;
*/
SERVICE_ISOLATION(8),
UNRECOGNIZED(-1),
;
/**
* NO_ISOLATION = 0;
*/
public static final int NO_ISOLATION_VALUE = 0;
/**
* PHYSICAL_ISOLATION = 1;
*/
public static final int PHYSICAL_ISOLATION_VALUE = 1;
/**
* LOGICAL_ISOLATION = 2;
*/
public static final int LOGICAL_ISOLATION_VALUE = 2;
/**
* PROCESS_ISOLATION = 3;
*/
public static final int PROCESS_ISOLATION_VALUE = 3;
/**
* PHYSICAL_MEMORY_ISOLATION = 4;
*/
public static final int PHYSICAL_MEMORY_ISOLATION_VALUE = 4;
/**
* PHYSICAL_NETWORK_ISOLATION = 5;
*/
public static final int PHYSICAL_NETWORK_ISOLATION_VALUE = 5;
/**
* VIRTUAL_RESOURCE_ISOLATION = 6;
*/
public static final int VIRTUAL_RESOURCE_ISOLATION_VALUE = 6;
/**
* NETWORK_FUNCTIONS_ISOLATION = 7;
*/
public static final int NETWORK_FUNCTIONS_ISOLATION_VALUE = 7;
/**
* SERVICE_ISOLATION = 8;
*/
public static final int SERVICE_ISOLATION_VALUE = 8;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static IsolationLevelEnum valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static IsolationLevelEnum forNumber(int value) {
switch (value) {
case 0: return NO_ISOLATION;
case 1: return PHYSICAL_ISOLATION;
case 2: return LOGICAL_ISOLATION;
case 3: return PROCESS_ISOLATION;
case 4: return PHYSICAL_MEMORY_ISOLATION;
case 5: return PHYSICAL_NETWORK_ISOLATION;
case 6: return VIRTUAL_RESOURCE_ISOLATION;
case 7: return NETWORK_FUNCTIONS_ISOLATION;
case 8: return SERVICE_ISOLATION;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap* ----- 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
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.Builderstring 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.Parserdouble 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.Builderdouble 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.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.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.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
.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.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();
/**
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* repeated .context.TopologyId topology_ids = 3;
*/
java.util.Listrepeated .context.TopologyId topology_ids = 3;
*/
context.ContextOuterClass.TopologyId getTopologyIds(int index);
/**
* repeated .context.TopologyId topology_ids = 3;
*/
int getTopologyIdsCount();
/**
* repeated .context.TopologyId topology_ids = 3;
*/
java.util.List extends context.ContextOuterClass.TopologyIdOrBuilder>
getTopologyIdsOrBuilderList();
/**
* repeated .context.TopologyId topology_ids = 3;
*/
context.ContextOuterClass.TopologyIdOrBuilder getTopologyIdsOrBuilder(
int index);
/**
* repeated .context.ServiceId service_ids = 4;
*/
java.util.Listrepeated .context.ServiceId service_ids = 4;
*/
context.ContextOuterClass.ServiceId getServiceIds(int index);
/**
* repeated .context.ServiceId service_ids = 4;
*/
int getServiceIdsCount();
/**
* repeated .context.ServiceId service_ids = 4;
*/
java.util.List extends context.ContextOuterClass.ServiceIdOrBuilder>
getServiceIdsOrBuilderList();
/**
* repeated .context.ServiceId service_ids = 4;
*/
context.ContextOuterClass.ServiceIdOrBuilder getServiceIdsOrBuilder(
int index);
/**
* repeated .context.SliceId slice_ids = 5;
*/
java.util.Listrepeated .context.SliceId slice_ids = 5;
*/
context.ContextOuterClass.SliceId getSliceIds(int index);
/**
* repeated .context.SliceId slice_ids = 5;
*/
int getSliceIdsCount();
/**
* repeated .context.SliceId slice_ids = 5;
*/
java.util.List extends context.ContextOuterClass.SliceIdOrBuilder>
getSliceIdsOrBuilderList();
/**
* repeated .context.SliceId slice_ids = 5;
*/
context.ContextOuterClass.SliceIdOrBuilder getSliceIdsOrBuilder(
int index);
/**
* .context.TeraFlowController controller = 6;
* @return Whether the controller field is set.
*/
boolean hasController();
/**
* .context.TeraFlowController controller = 6;
* @return The controller.
*/
context.ContextOuterClass.TeraFlowController getController();
/**
* .context.TeraFlowController controller = 6;
*/
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() {
name_ = "";
topologyIds_ = java.util.Collections.emptyList();
serviceIds_ = java.util.Collections.emptyList();
sliceIds_ = 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: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
topologyIds_ = new java.util.ArrayList.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 NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TOPOLOGY_IDS_FIELD_NUMBER = 3;
private java.util.Listrepeated .context.TopologyId topology_ids = 3;
*/
@java.lang.Override
public java.util.Listrepeated .context.TopologyId topology_ids = 3;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.TopologyIdOrBuilder>
getTopologyIdsOrBuilderList() {
return topologyIds_;
}
/**
* repeated .context.TopologyId topology_ids = 3;
*/
@java.lang.Override
public int getTopologyIdsCount() {
return topologyIds_.size();
}
/**
* repeated .context.TopologyId topology_ids = 3;
*/
@java.lang.Override
public context.ContextOuterClass.TopologyId getTopologyIds(int index) {
return topologyIds_.get(index);
}
/**
* repeated .context.TopologyId topology_ids = 3;
*/
@java.lang.Override
public context.ContextOuterClass.TopologyIdOrBuilder getTopologyIdsOrBuilder(
int index) {
return topologyIds_.get(index);
}
public static final int SERVICE_IDS_FIELD_NUMBER = 4;
private java.util.Listrepeated .context.ServiceId service_ids = 4;
*/
@java.lang.Override
public java.util.Listrepeated .context.ServiceId service_ids = 4;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.ServiceIdOrBuilder>
getServiceIdsOrBuilderList() {
return serviceIds_;
}
/**
* repeated .context.ServiceId service_ids = 4;
*/
@java.lang.Override
public int getServiceIdsCount() {
return serviceIds_.size();
}
/**
* repeated .context.ServiceId service_ids = 4;
*/
@java.lang.Override
public context.ContextOuterClass.ServiceId getServiceIds(int index) {
return serviceIds_.get(index);
}
/**
* repeated .context.ServiceId service_ids = 4;
*/
@java.lang.Override
public context.ContextOuterClass.ServiceIdOrBuilder getServiceIdsOrBuilder(
int index) {
return serviceIds_.get(index);
}
public static final int SLICE_IDS_FIELD_NUMBER = 5;
private java.util.Listrepeated .context.SliceId slice_ids = 5;
*/
@java.lang.Override
public java.util.Listrepeated .context.SliceId slice_ids = 5;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.SliceIdOrBuilder>
getSliceIdsOrBuilderList() {
return sliceIds_;
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
@java.lang.Override
public int getSliceIdsCount() {
return sliceIds_.size();
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
@java.lang.Override
public context.ContextOuterClass.SliceId getSliceIds(int index) {
return sliceIds_.get(index);
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
@java.lang.Override
public context.ContextOuterClass.SliceIdOrBuilder getSliceIdsOrBuilder(
int index) {
return sliceIds_.get(index);
}
public static final int CONTROLLER_FIELD_NUMBER = 6;
private context.ContextOuterClass.TeraFlowController controller_;
/**
* .context.TeraFlowController controller = 6;
* @return Whether the controller field is set.
*/
@java.lang.Override
public boolean hasController() {
return controller_ != null;
}
/**
* .context.TeraFlowController controller = 6;
* @return The controller.
*/
@java.lang.Override
public context.ContextOuterClass.TeraFlowController getController() {
return controller_ == null ? context.ContextOuterClass.TeraFlowController.getDefaultInstance() : controller_;
}
/**
* .context.TeraFlowController controller = 6;
*/
@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());
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
for (int i = 0; i < topologyIds_.size(); i++) {
output.writeMessage(3, topologyIds_.get(i));
}
for (int i = 0; i < serviceIds_.size(); i++) {
output.writeMessage(4, serviceIds_.get(i));
}
for (int i = 0; i < sliceIds_.size(); i++) {
output.writeMessage(5, sliceIds_.get(i));
}
if (controller_ != null) {
output.writeMessage(6, 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());
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
for (int i = 0; i < topologyIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, topologyIds_.get(i));
}
for (int i = 0; i < serviceIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, serviceIds_.get(i));
}
for (int i = 0; i < sliceIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, sliceIds_.get(i));
}
if (controller_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, 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 (!getName()
.equals(other.getName())) return false;
if (!getTopologyIdsList()
.equals(other.getTopologyIdsList())) return false;
if (!getServiceIdsList()
.equals(other.getServiceIdsList())) return false;
if (!getSliceIdsList()
.equals(other.getSliceIdsList())) 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();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().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 (getSliceIdsCount() > 0) {
hash = (37 * hash) + SLICE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getSliceIdsList().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.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.lang.Object name_ = "";
/**
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.util.Listrepeated .context.TopologyId topology_ids = 3;
*/
public java.util.Listrepeated .context.TopologyId topology_ids = 3;
*/
public int getTopologyIdsCount() {
if (topologyIdsBuilder_ == null) {
return topologyIds_.size();
} else {
return topologyIdsBuilder_.getCount();
}
}
/**
* repeated .context.TopologyId topology_ids = 3;
*/
public context.ContextOuterClass.TopologyId getTopologyIds(int index) {
if (topologyIdsBuilder_ == null) {
return topologyIds_.get(index);
} else {
return topologyIdsBuilder_.getMessage(index);
}
}
/**
* repeated .context.TopologyId topology_ids = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
public Builder removeTopologyIds(int index) {
if (topologyIdsBuilder_ == null) {
ensureTopologyIdsIsMutable();
topologyIds_.remove(index);
onChanged();
} else {
topologyIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.TopologyId topology_ids = 3;
*/
public context.ContextOuterClass.TopologyId.Builder getTopologyIdsBuilder(
int index) {
return getTopologyIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .context.TopologyId topology_ids = 3;
*/
public context.ContextOuterClass.TopologyIdOrBuilder getTopologyIdsOrBuilder(
int index) {
if (topologyIdsBuilder_ == null) {
return topologyIds_.get(index); } else {
return topologyIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.TopologyId topology_ids = 3;
*/
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 = 3;
*/
public context.ContextOuterClass.TopologyId.Builder addTopologyIdsBuilder() {
return getTopologyIdsFieldBuilder().addBuilder(
context.ContextOuterClass.TopologyId.getDefaultInstance());
}
/**
* repeated .context.TopologyId topology_ids = 3;
*/
public context.ContextOuterClass.TopologyId.Builder addTopologyIdsBuilder(
int index) {
return getTopologyIdsFieldBuilder().addBuilder(
index, context.ContextOuterClass.TopologyId.getDefaultInstance());
}
/**
* repeated .context.TopologyId topology_ids = 3;
*/
public java.util.Listrepeated .context.ServiceId service_ids = 4;
*/
public java.util.Listrepeated .context.ServiceId service_ids = 4;
*/
public int getServiceIdsCount() {
if (serviceIdsBuilder_ == null) {
return serviceIds_.size();
} else {
return serviceIdsBuilder_.getCount();
}
}
/**
* repeated .context.ServiceId service_ids = 4;
*/
public context.ContextOuterClass.ServiceId getServiceIds(int index) {
if (serviceIdsBuilder_ == null) {
return serviceIds_.get(index);
} else {
return serviceIdsBuilder_.getMessage(index);
}
}
/**
* repeated .context.ServiceId service_ids = 4;
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
public Builder removeServiceIds(int index) {
if (serviceIdsBuilder_ == null) {
ensureServiceIdsIsMutable();
serviceIds_.remove(index);
onChanged();
} else {
serviceIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.ServiceId service_ids = 4;
*/
public context.ContextOuterClass.ServiceId.Builder getServiceIdsBuilder(
int index) {
return getServiceIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .context.ServiceId service_ids = 4;
*/
public context.ContextOuterClass.ServiceIdOrBuilder getServiceIdsOrBuilder(
int index) {
if (serviceIdsBuilder_ == null) {
return serviceIds_.get(index); } else {
return serviceIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.ServiceId service_ids = 4;
*/
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 = 4;
*/
public context.ContextOuterClass.ServiceId.Builder addServiceIdsBuilder() {
return getServiceIdsFieldBuilder().addBuilder(
context.ContextOuterClass.ServiceId.getDefaultInstance());
}
/**
* repeated .context.ServiceId service_ids = 4;
*/
public context.ContextOuterClass.ServiceId.Builder addServiceIdsBuilder(
int index) {
return getServiceIdsFieldBuilder().addBuilder(
index, context.ContextOuterClass.ServiceId.getDefaultInstance());
}
/**
* repeated .context.ServiceId service_ids = 4;
*/
public java.util.Listrepeated .context.SliceId slice_ids = 5;
*/
public java.util.Listrepeated .context.SliceId slice_ids = 5;
*/
public int getSliceIdsCount() {
if (sliceIdsBuilder_ == null) {
return sliceIds_.size();
} else {
return sliceIdsBuilder_.getCount();
}
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
public context.ContextOuterClass.SliceId getSliceIds(int index) {
if (sliceIdsBuilder_ == null) {
return sliceIds_.get(index);
} else {
return sliceIdsBuilder_.getMessage(index);
}
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
public Builder setSliceIds(
int index, context.ContextOuterClass.SliceId value) {
if (sliceIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSliceIdsIsMutable();
sliceIds_.set(index, value);
onChanged();
} else {
sliceIdsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
public Builder setSliceIds(
int index, context.ContextOuterClass.SliceId.Builder builderForValue) {
if (sliceIdsBuilder_ == null) {
ensureSliceIdsIsMutable();
sliceIds_.set(index, builderForValue.build());
onChanged();
} else {
sliceIdsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
public Builder addSliceIds(context.ContextOuterClass.SliceId value) {
if (sliceIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSliceIdsIsMutable();
sliceIds_.add(value);
onChanged();
} else {
sliceIdsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
public Builder addSliceIds(
int index, context.ContextOuterClass.SliceId value) {
if (sliceIdsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSliceIdsIsMutable();
sliceIds_.add(index, value);
onChanged();
} else {
sliceIdsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
public Builder addSliceIds(
context.ContextOuterClass.SliceId.Builder builderForValue) {
if (sliceIdsBuilder_ == null) {
ensureSliceIdsIsMutable();
sliceIds_.add(builderForValue.build());
onChanged();
} else {
sliceIdsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
public Builder addSliceIds(
int index, context.ContextOuterClass.SliceId.Builder builderForValue) {
if (sliceIdsBuilder_ == null) {
ensureSliceIdsIsMutable();
sliceIds_.add(index, builderForValue.build());
onChanged();
} else {
sliceIdsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
public Builder addAllSliceIds(
java.lang.Iterable extends context.ContextOuterClass.SliceId> values) {
if (sliceIdsBuilder_ == null) {
ensureSliceIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sliceIds_);
onChanged();
} else {
sliceIdsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
public Builder clearSliceIds() {
if (sliceIdsBuilder_ == null) {
sliceIds_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
sliceIdsBuilder_.clear();
}
return this;
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
public Builder removeSliceIds(int index) {
if (sliceIdsBuilder_ == null) {
ensureSliceIdsIsMutable();
sliceIds_.remove(index);
onChanged();
} else {
sliceIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
public context.ContextOuterClass.SliceId.Builder getSliceIdsBuilder(
int index) {
return getSliceIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
public context.ContextOuterClass.SliceIdOrBuilder getSliceIdsOrBuilder(
int index) {
if (sliceIdsBuilder_ == null) {
return sliceIds_.get(index); } else {
return sliceIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
public java.util.List extends context.ContextOuterClass.SliceIdOrBuilder>
getSliceIdsOrBuilderList() {
if (sliceIdsBuilder_ != null) {
return sliceIdsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(sliceIds_);
}
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
public context.ContextOuterClass.SliceId.Builder addSliceIdsBuilder() {
return getSliceIdsFieldBuilder().addBuilder(
context.ContextOuterClass.SliceId.getDefaultInstance());
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
public context.ContextOuterClass.SliceId.Builder addSliceIdsBuilder(
int index) {
return getSliceIdsFieldBuilder().addBuilder(
index, context.ContextOuterClass.SliceId.getDefaultInstance());
}
/**
* repeated .context.SliceId slice_ids = 5;
*/
public java.util.List.context.TeraFlowController controller = 6;
* @return Whether the controller field is set.
*/
public boolean hasController() {
return controllerBuilder_ != null || controller_ != null;
}
/**
* .context.TeraFlowController controller = 6;
* @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 = 6;
*/
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 = 6;
*/
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 = 6;
*/
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 = 6;
*/
public Builder clearController() {
if (controllerBuilder_ == null) {
controller_ = null;
onChanged();
} else {
controller_ = null;
controllerBuilder_ = null;
}
return this;
}
/**
* .context.TeraFlowController controller = 6;
*/
public context.ContextOuterClass.TeraFlowController.Builder getControllerBuilder() {
onChanged();
return getControllerFieldBuilder().getBuilder();
}
/**
* .context.TeraFlowController controller = 6;
*/
public context.ContextOuterClass.TeraFlowControllerOrBuilder getControllerOrBuilder() {
if (controllerBuilder_ != null) {
return controllerBuilder_.getMessageOrBuilder();
} else {
return controller_ == null ?
context.ContextOuterClass.TeraFlowController.getDefaultInstance() : controller_;
}
}
/**
* .context.TeraFlowController controller = 6;
*/
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.Parserrepeated .context.ContextId context_ids = 1;
*/
java.util.Listrepeated .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.ArrayListrepeated .context.ContextId context_ids = 1;
*/
@java.lang.Override
public java.util.Listrepeated .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.Builderrepeated .context.ContextId context_ids = 1;
*/
public java.util.Listrepeated .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.Listrepeated .context.Context contexts = 1;
*/
java.util.Listrepeated .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.ArrayListrepeated .context.Context contexts = 1;
*/
@java.lang.Override
public java.util.Listrepeated .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.Builderrepeated .context.Context contexts = 1;
*/
public java.util.Listrepeated .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.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.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.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
.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.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();
/**
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* repeated .context.DeviceId device_ids = 3;
*/
java.util.Listrepeated .context.DeviceId device_ids = 3;
*/
context.ContextOuterClass.DeviceId getDeviceIds(int index);
/**
* repeated .context.DeviceId device_ids = 3;
*/
int getDeviceIdsCount();
/**
* repeated .context.DeviceId device_ids = 3;
*/
java.util.List extends context.ContextOuterClass.DeviceIdOrBuilder>
getDeviceIdsOrBuilderList();
/**
* repeated .context.DeviceId device_ids = 3;
*/
context.ContextOuterClass.DeviceIdOrBuilder getDeviceIdsOrBuilder(
int index);
/**
* repeated .context.LinkId link_ids = 4;
*/
java.util.Listrepeated .context.LinkId link_ids = 4;
*/
context.ContextOuterClass.LinkId getLinkIds(int index);
/**
* repeated .context.LinkId link_ids = 4;
*/
int getLinkIdsCount();
/**
* repeated .context.LinkId link_ids = 4;
*/
java.util.List extends context.ContextOuterClass.LinkIdOrBuilder>
getLinkIdsOrBuilderList();
/**
* repeated .context.LinkId link_ids = 4;
*/
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() {
name_ = "";
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: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
deviceIds_ = new java.util.ArrayList.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 NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEVICE_IDS_FIELD_NUMBER = 3;
private java.util.Listrepeated .context.DeviceId device_ids = 3;
*/
@java.lang.Override
public java.util.Listrepeated .context.DeviceId device_ids = 3;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.DeviceIdOrBuilder>
getDeviceIdsOrBuilderList() {
return deviceIds_;
}
/**
* repeated .context.DeviceId device_ids = 3;
*/
@java.lang.Override
public int getDeviceIdsCount() {
return deviceIds_.size();
}
/**
* repeated .context.DeviceId device_ids = 3;
*/
@java.lang.Override
public context.ContextOuterClass.DeviceId getDeviceIds(int index) {
return deviceIds_.get(index);
}
/**
* repeated .context.DeviceId device_ids = 3;
*/
@java.lang.Override
public context.ContextOuterClass.DeviceIdOrBuilder getDeviceIdsOrBuilder(
int index) {
return deviceIds_.get(index);
}
public static final int LINK_IDS_FIELD_NUMBER = 4;
private java.util.Listrepeated .context.LinkId link_ids = 4;
*/
@java.lang.Override
public java.util.Listrepeated .context.LinkId link_ids = 4;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.LinkIdOrBuilder>
getLinkIdsOrBuilderList() {
return linkIds_;
}
/**
* repeated .context.LinkId link_ids = 4;
*/
@java.lang.Override
public int getLinkIdsCount() {
return linkIds_.size();
}
/**
* repeated .context.LinkId link_ids = 4;
*/
@java.lang.Override
public context.ContextOuterClass.LinkId getLinkIds(int index) {
return linkIds_.get(index);
}
/**
* repeated .context.LinkId link_ids = 4;
*/
@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());
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
for (int i = 0; i < deviceIds_.size(); i++) {
output.writeMessage(3, deviceIds_.get(i));
}
for (int i = 0; i < linkIds_.size(); i++) {
output.writeMessage(4, 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());
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
for (int i = 0; i < deviceIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, deviceIds_.get(i));
}
for (int i = 0; i < linkIds_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, 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 (!getName()
.equals(other.getName())) 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();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().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.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.lang.Object name_ = "";
/**
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.util.Listrepeated .context.DeviceId device_ids = 3;
*/
public java.util.Listrepeated .context.DeviceId device_ids = 3;
*/
public int getDeviceIdsCount() {
if (deviceIdsBuilder_ == null) {
return deviceIds_.size();
} else {
return deviceIdsBuilder_.getCount();
}
}
/**
* repeated .context.DeviceId device_ids = 3;
*/
public context.ContextOuterClass.DeviceId getDeviceIds(int index) {
if (deviceIdsBuilder_ == null) {
return deviceIds_.get(index);
} else {
return deviceIdsBuilder_.getMessage(index);
}
}
/**
* repeated .context.DeviceId device_ids = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
public Builder removeDeviceIds(int index) {
if (deviceIdsBuilder_ == null) {
ensureDeviceIdsIsMutable();
deviceIds_.remove(index);
onChanged();
} else {
deviceIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.DeviceId device_ids = 3;
*/
public context.ContextOuterClass.DeviceId.Builder getDeviceIdsBuilder(
int index) {
return getDeviceIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .context.DeviceId device_ids = 3;
*/
public context.ContextOuterClass.DeviceIdOrBuilder getDeviceIdsOrBuilder(
int index) {
if (deviceIdsBuilder_ == null) {
return deviceIds_.get(index); } else {
return deviceIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.DeviceId device_ids = 3;
*/
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 = 3;
*/
public context.ContextOuterClass.DeviceId.Builder addDeviceIdsBuilder() {
return getDeviceIdsFieldBuilder().addBuilder(
context.ContextOuterClass.DeviceId.getDefaultInstance());
}
/**
* repeated .context.DeviceId device_ids = 3;
*/
public context.ContextOuterClass.DeviceId.Builder addDeviceIdsBuilder(
int index) {
return getDeviceIdsFieldBuilder().addBuilder(
index, context.ContextOuterClass.DeviceId.getDefaultInstance());
}
/**
* repeated .context.DeviceId device_ids = 3;
*/
public java.util.Listrepeated .context.LinkId link_ids = 4;
*/
public java.util.Listrepeated .context.LinkId link_ids = 4;
*/
public int getLinkIdsCount() {
if (linkIdsBuilder_ == null) {
return linkIds_.size();
} else {
return linkIdsBuilder_.getCount();
}
}
/**
* repeated .context.LinkId link_ids = 4;
*/
public context.ContextOuterClass.LinkId getLinkIds(int index) {
if (linkIdsBuilder_ == null) {
return linkIds_.get(index);
} else {
return linkIdsBuilder_.getMessage(index);
}
}
/**
* repeated .context.LinkId link_ids = 4;
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
public Builder removeLinkIds(int index) {
if (linkIdsBuilder_ == null) {
ensureLinkIdsIsMutable();
linkIds_.remove(index);
onChanged();
} else {
linkIdsBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.LinkId link_ids = 4;
*/
public context.ContextOuterClass.LinkId.Builder getLinkIdsBuilder(
int index) {
return getLinkIdsFieldBuilder().getBuilder(index);
}
/**
* repeated .context.LinkId link_ids = 4;
*/
public context.ContextOuterClass.LinkIdOrBuilder getLinkIdsOrBuilder(
int index) {
if (linkIdsBuilder_ == null) {
return linkIds_.get(index); } else {
return linkIdsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.LinkId link_ids = 4;
*/
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 = 4;
*/
public context.ContextOuterClass.LinkId.Builder addLinkIdsBuilder() {
return getLinkIdsFieldBuilder().addBuilder(
context.ContextOuterClass.LinkId.getDefaultInstance());
}
/**
* repeated .context.LinkId link_ids = 4;
*/
public context.ContextOuterClass.LinkId.Builder addLinkIdsBuilder(
int index) {
return getLinkIdsFieldBuilder().addBuilder(
index, context.ContextOuterClass.LinkId.getDefaultInstance());
}
/**
* repeated .context.LinkId link_ids = 4;
*/
public java.util.List.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();
/**
* string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* repeated .context.Device devices = 3;
*/
java.util.Listrepeated .context.Device devices = 3;
*/
context.ContextOuterClass.Device getDevices(int index);
/**
* repeated .context.Device devices = 3;
*/
int getDevicesCount();
/**
* repeated .context.Device devices = 3;
*/
java.util.List extends context.ContextOuterClass.DeviceOrBuilder>
getDevicesOrBuilderList();
/**
* repeated .context.Device devices = 3;
*/
context.ContextOuterClass.DeviceOrBuilder getDevicesOrBuilder(
int index);
/**
* repeated .context.Link links = 4;
*/
java.util.Listrepeated .context.Link links = 4;
*/
context.ContextOuterClass.Link getLinks(int index);
/**
* repeated .context.Link links = 4;
*/
int getLinksCount();
/**
* repeated .context.Link links = 4;
*/
java.util.List extends context.ContextOuterClass.LinkOrBuilder>
getLinksOrBuilderList();
/**
* repeated .context.Link links = 4;
*/
context.ContextOuterClass.LinkOrBuilder getLinksOrBuilder(
int index);
}
/**
* Protobuf type {@code context.TopologyDetails}
*/
public static final class TopologyDetails extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.TopologyDetails)
TopologyDetailsOrBuilder {
private static final long serialVersionUID = 0L;
// Use TopologyDetails.newBuilder() to construct.
private TopologyDetails(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TopologyDetails() {
name_ = "";
devices_ = java.util.Collections.emptyList();
links_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TopologyDetails();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TopologyDetails(
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: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
devices_ = new java.util.ArrayList.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 NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEVICES_FIELD_NUMBER = 3;
private java.util.Listrepeated .context.Device devices = 3;
*/
@java.lang.Override
public java.util.Listrepeated .context.Device devices = 3;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.DeviceOrBuilder>
getDevicesOrBuilderList() {
return devices_;
}
/**
* repeated .context.Device devices = 3;
*/
@java.lang.Override
public int getDevicesCount() {
return devices_.size();
}
/**
* repeated .context.Device devices = 3;
*/
@java.lang.Override
public context.ContextOuterClass.Device getDevices(int index) {
return devices_.get(index);
}
/**
* repeated .context.Device devices = 3;
*/
@java.lang.Override
public context.ContextOuterClass.DeviceOrBuilder getDevicesOrBuilder(
int index) {
return devices_.get(index);
}
public static final int LINKS_FIELD_NUMBER = 4;
private java.util.Listrepeated .context.Link links = 4;
*/
@java.lang.Override
public java.util.Listrepeated .context.Link links = 4;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.LinkOrBuilder>
getLinksOrBuilderList() {
return links_;
}
/**
* repeated .context.Link links = 4;
*/
@java.lang.Override
public int getLinksCount() {
return links_.size();
}
/**
* repeated .context.Link links = 4;
*/
@java.lang.Override
public context.ContextOuterClass.Link getLinks(int index) {
return links_.get(index);
}
/**
* repeated .context.Link links = 4;
*/
@java.lang.Override
public context.ContextOuterClass.LinkOrBuilder getLinksOrBuilder(
int index) {
return links_.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());
}
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
for (int i = 0; i < devices_.size(); i++) {
output.writeMessage(3, devices_.get(i));
}
for (int i = 0; i < links_.size(); i++) {
output.writeMessage(4, links_.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());
}
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
for (int i = 0; i < devices_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, devices_.get(i));
}
for (int i = 0; i < links_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, links_.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.TopologyDetails)) {
return super.equals(obj);
}
context.ContextOuterClass.TopologyDetails other = (context.ContextOuterClass.TopologyDetails) obj;
if (hasTopologyId() != other.hasTopologyId()) return false;
if (hasTopologyId()) {
if (!getTopologyId()
.equals(other.getTopologyId())) return false;
}
if (!getName()
.equals(other.getName())) return false;
if (!getDevicesList()
.equals(other.getDevicesList())) return false;
if (!getLinksList()
.equals(other.getLinksList())) 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();
}
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (getDevicesCount() > 0) {
hash = (37 * hash) + DEVICES_FIELD_NUMBER;
hash = (53 * hash) + getDevicesList().hashCode();
}
if (getLinksCount() > 0) {
hash = (37 * hash) + LINKS_FIELD_NUMBER;
hash = (53 * hash) + getLinksList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.TopologyDetails parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.TopologyDetails parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.TopologyDetails parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.TopologyDetails 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.TopologyDetails parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.TopologyDetails parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.TopologyDetails parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.TopologyDetails 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.TopologyDetails parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.TopologyDetails 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.TopologyDetails parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.TopologyDetails 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.TopologyDetails 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.TopologyDetails}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder.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.lang.Object name_ = "";
/**
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.util.Listrepeated .context.Device devices = 3;
*/
public java.util.Listrepeated .context.Device devices = 3;
*/
public int getDevicesCount() {
if (devicesBuilder_ == null) {
return devices_.size();
} else {
return devicesBuilder_.getCount();
}
}
/**
* repeated .context.Device devices = 3;
*/
public context.ContextOuterClass.Device getDevices(int index) {
if (devicesBuilder_ == null) {
return devices_.get(index);
} else {
return devicesBuilder_.getMessage(index);
}
}
/**
* repeated .context.Device devices = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
public Builder clearDevices() {
if (devicesBuilder_ == null) {
devices_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
devicesBuilder_.clear();
}
return this;
}
/**
* repeated .context.Device devices = 3;
*/
public Builder removeDevices(int index) {
if (devicesBuilder_ == null) {
ensureDevicesIsMutable();
devices_.remove(index);
onChanged();
} else {
devicesBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.Device devices = 3;
*/
public context.ContextOuterClass.Device.Builder getDevicesBuilder(
int index) {
return getDevicesFieldBuilder().getBuilder(index);
}
/**
* repeated .context.Device devices = 3;
*/
public context.ContextOuterClass.DeviceOrBuilder getDevicesOrBuilder(
int index) {
if (devicesBuilder_ == null) {
return devices_.get(index); } else {
return devicesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.Device devices = 3;
*/
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 = 3;
*/
public context.ContextOuterClass.Device.Builder addDevicesBuilder() {
return getDevicesFieldBuilder().addBuilder(
context.ContextOuterClass.Device.getDefaultInstance());
}
/**
* repeated .context.Device devices = 3;
*/
public context.ContextOuterClass.Device.Builder addDevicesBuilder(
int index) {
return getDevicesFieldBuilder().addBuilder(
index, context.ContextOuterClass.Device.getDefaultInstance());
}
/**
* repeated .context.Device devices = 3;
*/
public java.util.Listrepeated .context.Link links = 4;
*/
public java.util.Listrepeated .context.Link links = 4;
*/
public int getLinksCount() {
if (linksBuilder_ == null) {
return links_.size();
} else {
return linksBuilder_.getCount();
}
}
/**
* repeated .context.Link links = 4;
*/
public context.ContextOuterClass.Link getLinks(int index) {
if (linksBuilder_ == null) {
return links_.get(index);
} else {
return linksBuilder_.getMessage(index);
}
}
/**
* repeated .context.Link links = 4;
*/
public Builder setLinks(
int index, context.ContextOuterClass.Link value) {
if (linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
links_.set(index, value);
onChanged();
} else {
linksBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .context.Link links = 4;
*/
public Builder setLinks(
int index, context.ContextOuterClass.Link.Builder builderForValue) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.set(index, builderForValue.build());
onChanged();
} else {
linksBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.Link links = 4;
*/
public Builder addLinks(context.ContextOuterClass.Link value) {
if (linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
links_.add(value);
onChanged();
} else {
linksBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .context.Link links = 4;
*/
public Builder addLinks(
int index, context.ContextOuterClass.Link value) {
if (linksBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinksIsMutable();
links_.add(index, value);
onChanged();
} else {
linksBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .context.Link links = 4;
*/
public Builder addLinks(
context.ContextOuterClass.Link.Builder builderForValue) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.add(builderForValue.build());
onChanged();
} else {
linksBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .context.Link links = 4;
*/
public Builder addLinks(
int index, context.ContextOuterClass.Link.Builder builderForValue) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.add(index, builderForValue.build());
onChanged();
} else {
linksBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .context.Link links = 4;
*/
public Builder addAllLinks(
java.lang.Iterable extends context.ContextOuterClass.Link> values) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, links_);
onChanged();
} else {
linksBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .context.Link links = 4;
*/
public Builder clearLinks() {
if (linksBuilder_ == null) {
links_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
linksBuilder_.clear();
}
return this;
}
/**
* repeated .context.Link links = 4;
*/
public Builder removeLinks(int index) {
if (linksBuilder_ == null) {
ensureLinksIsMutable();
links_.remove(index);
onChanged();
} else {
linksBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.Link links = 4;
*/
public context.ContextOuterClass.Link.Builder getLinksBuilder(
int index) {
return getLinksFieldBuilder().getBuilder(index);
}
/**
* repeated .context.Link links = 4;
*/
public context.ContextOuterClass.LinkOrBuilder getLinksOrBuilder(
int index) {
if (linksBuilder_ == null) {
return links_.get(index); } else {
return linksBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.Link links = 4;
*/
public java.util.List extends context.ContextOuterClass.LinkOrBuilder>
getLinksOrBuilderList() {
if (linksBuilder_ != null) {
return linksBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(links_);
}
}
/**
* repeated .context.Link links = 4;
*/
public context.ContextOuterClass.Link.Builder addLinksBuilder() {
return getLinksFieldBuilder().addBuilder(
context.ContextOuterClass.Link.getDefaultInstance());
}
/**
* repeated .context.Link links = 4;
*/
public context.ContextOuterClass.Link.Builder addLinksBuilder(
int index) {
return getLinksFieldBuilder().addBuilder(
index, context.ContextOuterClass.Link.getDefaultInstance());
}
/**
* repeated .context.Link links = 4;
*/
public java.util.Listrepeated .context.TopologyId topology_ids = 1;
*/
java.util.Listrepeated .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.ArrayListrepeated .context.TopologyId topology_ids = 1;
*/
@java.lang.Override
public java.util.Listrepeated .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.Builderrepeated .context.TopologyId topology_ids = 1;
*/
public java.util.Listrepeated .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.Listrepeated .context.Topology topologies = 1;
*/
java.util.Listrepeated .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.ArrayListrepeated .context.Topology topologies = 1;
*/
@java.lang.Override
public java.util.Listrepeated .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.Builderrepeated .context.Topology topologies = 1;
*/
public java.util.Listrepeated .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.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.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.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
.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.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 name = 2;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* string device_type = 3;
* @return The deviceType.
*/
java.lang.String getDeviceType();
/**
* string device_type = 3;
* @return The bytes for deviceType.
*/
com.google.protobuf.ByteString
getDeviceTypeBytes();
/**
* .context.DeviceConfig device_config = 4;
* @return Whether the deviceConfig field is set.
*/
boolean hasDeviceConfig();
/**
* .context.DeviceConfig device_config = 4;
* @return The deviceConfig.
*/
context.ContextOuterClass.DeviceConfig getDeviceConfig();
/**
* .context.DeviceConfig device_config = 4;
*/
context.ContextOuterClass.DeviceConfigOrBuilder getDeviceConfigOrBuilder();
/**
* .context.DeviceOperationalStatusEnum device_operational_status = 5;
* @return The enum numeric value on the wire for deviceOperationalStatus.
*/
int getDeviceOperationalStatusValue();
/**
* .context.DeviceOperationalStatusEnum device_operational_status = 5;
* @return The deviceOperationalStatus.
*/
context.ContextOuterClass.DeviceOperationalStatusEnum getDeviceOperationalStatus();
/**
* repeated .context.DeviceDriverEnum device_drivers = 6;
* @return A list containing the deviceDrivers.
*/
java.util.Listrepeated .context.DeviceDriverEnum device_drivers = 6;
* @return The count of deviceDrivers.
*/
int getDeviceDriversCount();
/**
* repeated .context.DeviceDriverEnum device_drivers = 6;
* @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 = 6;
* @return A list containing the enum numeric values on the wire for deviceDrivers.
*/
java.util.Listrepeated .context.DeviceDriverEnum device_drivers = 6;
* @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 = 7;
*/
java.util.Listrepeated .context.EndPoint device_endpoints = 7;
*/
context.ContextOuterClass.EndPoint getDeviceEndpoints(int index);
/**
* repeated .context.EndPoint device_endpoints = 7;
*/
int getDeviceEndpointsCount();
/**
* repeated .context.EndPoint device_endpoints = 7;
*/
java.util.List extends context.ContextOuterClass.EndPointOrBuilder>
getDeviceEndpointsOrBuilderList();
/**
* repeated .context.EndPoint device_endpoints = 7;
*/
context.ContextOuterClass.EndPointOrBuilder getDeviceEndpointsOrBuilder(
int index);
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
java.util.List* Used for inventory ** *
repeated .context.Component component = 8;
*/
context.ContextOuterClass.Component getComponent(int index);
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
int getComponentCount();
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
java.util.List extends context.ContextOuterClass.ComponentOrBuilder>
getComponentOrBuilderList();
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
context.ContextOuterClass.ComponentOrBuilder getComponentOrBuilder(
int index);
/**
* * Identifier of node controlling the actual device ** *
.context.DeviceId controller_id = 9;
* @return Whether the controllerId field is set.
*/
boolean hasControllerId();
/**
* * Identifier of node controlling the actual device ** *
.context.DeviceId controller_id = 9;
* @return The controllerId.
*/
context.ContextOuterClass.DeviceId getControllerId();
/**
* * Identifier of node controlling the actual device ** *
.context.DeviceId controller_id = 9;
*/
context.ContextOuterClass.DeviceIdOrBuilder getControllerIdOrBuilder();
}
/**
* 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() {
name_ = "";
deviceType_ = "";
deviceOperationalStatus_ = 0;
deviceDrivers_ = java.util.Collections.emptyList();
deviceEndpoints_ = java.util.Collections.emptyList();
component_ = 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();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
deviceType_ = s;
break;
}
case 34: {
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 40: {
int rawValue = input.readEnum();
deviceOperationalStatus_ = rawValue;
break;
}
case 48: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
deviceDrivers_ = new java.util.ArrayList.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 NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEVICE_TYPE_FIELD_NUMBER = 3;
private volatile java.lang.Object deviceType_;
/**
* string device_type = 3;
* @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 = 3;
* @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 = 4;
private context.ContextOuterClass.DeviceConfig deviceConfig_;
/**
* .context.DeviceConfig device_config = 4;
* @return Whether the deviceConfig field is set.
*/
@java.lang.Override
public boolean hasDeviceConfig() {
return deviceConfig_ != null;
}
/**
* .context.DeviceConfig device_config = 4;
* @return The deviceConfig.
*/
@java.lang.Override
public context.ContextOuterClass.DeviceConfig getDeviceConfig() {
return deviceConfig_ == null ? context.ContextOuterClass.DeviceConfig.getDefaultInstance() : deviceConfig_;
}
/**
* .context.DeviceConfig device_config = 4;
*/
@java.lang.Override
public context.ContextOuterClass.DeviceConfigOrBuilder getDeviceConfigOrBuilder() {
return getDeviceConfig();
}
public static final int DEVICE_OPERATIONAL_STATUS_FIELD_NUMBER = 5;
private int deviceOperationalStatus_;
/**
* .context.DeviceOperationalStatusEnum device_operational_status = 5;
* @return The enum numeric value on the wire for deviceOperationalStatus.
*/
@java.lang.Override public int getDeviceOperationalStatusValue() {
return deviceOperationalStatus_;
}
/**
* .context.DeviceOperationalStatusEnum device_operational_status = 5;
* @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 = 6;
private java.util.Listrepeated .context.DeviceDriverEnum device_drivers = 6;
* @return A list containing the deviceDrivers.
*/
@java.lang.Override
public java.util.Listrepeated .context.DeviceDriverEnum device_drivers = 6;
* @return The count of deviceDrivers.
*/
@java.lang.Override
public int getDeviceDriversCount() {
return deviceDrivers_.size();
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 6;
* @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 = 6;
* @return A list containing the enum numeric values on the wire for deviceDrivers.
*/
@java.lang.Override
public java.util.Listrepeated .context.DeviceDriverEnum device_drivers = 6;
* @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 = 7;
private java.util.Listrepeated .context.EndPoint device_endpoints = 7;
*/
@java.lang.Override
public java.util.Listrepeated .context.EndPoint device_endpoints = 7;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.EndPointOrBuilder>
getDeviceEndpointsOrBuilderList() {
return deviceEndpoints_;
}
/**
* repeated .context.EndPoint device_endpoints = 7;
*/
@java.lang.Override
public int getDeviceEndpointsCount() {
return deviceEndpoints_.size();
}
/**
* repeated .context.EndPoint device_endpoints = 7;
*/
@java.lang.Override
public context.ContextOuterClass.EndPoint getDeviceEndpoints(int index) {
return deviceEndpoints_.get(index);
}
/**
* repeated .context.EndPoint device_endpoints = 7;
*/
@java.lang.Override
public context.ContextOuterClass.EndPointOrBuilder getDeviceEndpointsOrBuilder(
int index) {
return deviceEndpoints_.get(index);
}
public static final int COMPONENT_FIELD_NUMBER = 8;
private java.util.List* Used for inventory ** *
repeated .context.Component component = 8;
*/
@java.lang.Override
public java.util.List* Used for inventory ** *
repeated .context.Component component = 8;
*/
@java.lang.Override
public java.util.List extends context.ContextOuterClass.ComponentOrBuilder>
getComponentOrBuilderList() {
return component_;
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
@java.lang.Override
public int getComponentCount() {
return component_.size();
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
@java.lang.Override
public context.ContextOuterClass.Component getComponent(int index) {
return component_.get(index);
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
@java.lang.Override
public context.ContextOuterClass.ComponentOrBuilder getComponentOrBuilder(
int index) {
return component_.get(index);
}
public static final int CONTROLLER_ID_FIELD_NUMBER = 9;
private context.ContextOuterClass.DeviceId controllerId_;
/**
* * Identifier of node controlling the actual device ** *
.context.DeviceId controller_id = 9;
* @return Whether the controllerId field is set.
*/
@java.lang.Override
public boolean hasControllerId() {
return controllerId_ != null;
}
/**
* * Identifier of node controlling the actual device ** *
.context.DeviceId controller_id = 9;
* @return The controllerId.
*/
@java.lang.Override
public context.ContextOuterClass.DeviceId getControllerId() {
return controllerId_ == null ? context.ContextOuterClass.DeviceId.getDefaultInstance() : controllerId_;
}
/**
* * Identifier of node controlling the actual device ** *
.context.DeviceId controller_id = 9;
*/
@java.lang.Override
public context.ContextOuterClass.DeviceIdOrBuilder getControllerIdOrBuilder() {
return getControllerId();
}
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 (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (!getDeviceTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deviceType_);
}
if (deviceConfig_ != null) {
output.writeMessage(4, getDeviceConfig());
}
if (deviceOperationalStatus_ != context.ContextOuterClass.DeviceOperationalStatusEnum.DEVICEOPERATIONALSTATUS_UNDEFINED.getNumber()) {
output.writeEnum(5, deviceOperationalStatus_);
}
if (getDeviceDriversList().size() > 0) {
output.writeUInt32NoTag(50);
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(7, deviceEndpoints_.get(i));
}
for (int i = 0; i < component_.size(); i++) {
output.writeMessage(8, component_.get(i));
}
if (controllerId_ != null) {
output.writeMessage(9, getControllerId());
}
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 (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (!getDeviceTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deviceType_);
}
if (deviceConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getDeviceConfig());
}
if (deviceOperationalStatus_ != context.ContextOuterClass.DeviceOperationalStatusEnum.DEVICEOPERATIONALSTATUS_UNDEFINED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, 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(7, deviceEndpoints_.get(i));
}
for (int i = 0; i < component_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, component_.get(i));
}
if (controllerId_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getControllerId());
}
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 (!getName()
.equals(other.getName())) 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 (!getComponentList()
.equals(other.getComponentList())) return false;
if (hasControllerId() != other.hasControllerId()) return false;
if (hasControllerId()) {
if (!getControllerId()
.equals(other.getControllerId())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().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();
}
if (getComponentCount() > 0) {
hash = (37 * hash) + COMPONENT_FIELD_NUMBER;
hash = (53 * hash) + getComponentList().hashCode();
}
if (hasControllerId()) {
hash = (37 * hash) + CONTROLLER_ID_FIELD_NUMBER;
hash = (53 * hash) + getControllerId().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.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 name_ = "";
/**
* string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object deviceType_ = "";
/**
* string device_type = 3;
* @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 = 3;
* @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 = 3;
* @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 = 3;
* @return This builder for chaining.
*/
public Builder clearDeviceType() {
deviceType_ = getDefaultInstance().getDeviceType();
onChanged();
return this;
}
/**
* string device_type = 3;
* @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 = 4;
* @return Whether the deviceConfig field is set.
*/
public boolean hasDeviceConfig() {
return deviceConfigBuilder_ != null || deviceConfig_ != null;
}
/**
* .context.DeviceConfig device_config = 4;
* @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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
public Builder clearDeviceConfig() {
if (deviceConfigBuilder_ == null) {
deviceConfig_ = null;
onChanged();
} else {
deviceConfig_ = null;
deviceConfigBuilder_ = null;
}
return this;
}
/**
* .context.DeviceConfig device_config = 4;
*/
public context.ContextOuterClass.DeviceConfig.Builder getDeviceConfigBuilder() {
onChanged();
return getDeviceConfigFieldBuilder().getBuilder();
}
/**
* .context.DeviceConfig device_config = 4;
*/
public context.ContextOuterClass.DeviceConfigOrBuilder getDeviceConfigOrBuilder() {
if (deviceConfigBuilder_ != null) {
return deviceConfigBuilder_.getMessageOrBuilder();
} else {
return deviceConfig_ == null ?
context.ContextOuterClass.DeviceConfig.getDefaultInstance() : deviceConfig_;
}
}
/**
* .context.DeviceConfig device_config = 4;
*/
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 = 5;
* @return The enum numeric value on the wire for deviceOperationalStatus.
*/
@java.lang.Override public int getDeviceOperationalStatusValue() {
return deviceOperationalStatus_;
}
/**
* .context.DeviceOperationalStatusEnum device_operational_status = 5;
* @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 = 5;
* @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 = 5;
* @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 = 5;
* @return This builder for chaining.
*/
public Builder clearDeviceOperationalStatus() {
deviceOperationalStatus_ = 0;
onChanged();
return this;
}
private java.util.Listrepeated .context.DeviceDriverEnum device_drivers = 6;
* @return A list containing the deviceDrivers.
*/
public java.util.Listrepeated .context.DeviceDriverEnum device_drivers = 6;
* @return The count of deviceDrivers.
*/
public int getDeviceDriversCount() {
return deviceDrivers_.size();
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 6;
* @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 = 6;
* @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 = 6;
* @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 = 6;
* @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 = 6;
* @return This builder for chaining.
*/
public Builder clearDeviceDrivers() {
deviceDrivers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated .context.DeviceDriverEnum device_drivers = 6;
* @return A list containing the enum numeric values on the wire for deviceDrivers.
*/
public java.util.Listrepeated .context.DeviceDriverEnum device_drivers = 6;
* @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 = 6;
* @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 = 6;
* @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 = 6;
* @param values The enum numeric values on the wire for deviceDrivers to add.
* @return This builder for chaining.
*/
public Builder addAllDeviceDriversValue(
java.lang.Iterablerepeated .context.EndPoint device_endpoints = 7;
*/
public java.util.Listrepeated .context.EndPoint device_endpoints = 7;
*/
public int getDeviceEndpointsCount() {
if (deviceEndpointsBuilder_ == null) {
return deviceEndpoints_.size();
} else {
return deviceEndpointsBuilder_.getCount();
}
}
/**
* repeated .context.EndPoint device_endpoints = 7;
*/
public context.ContextOuterClass.EndPoint getDeviceEndpoints(int index) {
if (deviceEndpointsBuilder_ == null) {
return deviceEndpoints_.get(index);
} else {
return deviceEndpointsBuilder_.getMessage(index);
}
}
/**
* repeated .context.EndPoint device_endpoints = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
public Builder removeDeviceEndpoints(int index) {
if (deviceEndpointsBuilder_ == null) {
ensureDeviceEndpointsIsMutable();
deviceEndpoints_.remove(index);
onChanged();
} else {
deviceEndpointsBuilder_.remove(index);
}
return this;
}
/**
* repeated .context.EndPoint device_endpoints = 7;
*/
public context.ContextOuterClass.EndPoint.Builder getDeviceEndpointsBuilder(
int index) {
return getDeviceEndpointsFieldBuilder().getBuilder(index);
}
/**
* repeated .context.EndPoint device_endpoints = 7;
*/
public context.ContextOuterClass.EndPointOrBuilder getDeviceEndpointsOrBuilder(
int index) {
if (deviceEndpointsBuilder_ == null) {
return deviceEndpoints_.get(index); } else {
return deviceEndpointsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .context.EndPoint device_endpoints = 7;
*/
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 = 7;
*/
public context.ContextOuterClass.EndPoint.Builder addDeviceEndpointsBuilder() {
return getDeviceEndpointsFieldBuilder().addBuilder(
context.ContextOuterClass.EndPoint.getDefaultInstance());
}
/**
* repeated .context.EndPoint device_endpoints = 7;
*/
public context.ContextOuterClass.EndPoint.Builder addDeviceEndpointsBuilder(
int index) {
return getDeviceEndpointsFieldBuilder().addBuilder(
index, context.ContextOuterClass.EndPoint.getDefaultInstance());
}
/**
* repeated .context.EndPoint device_endpoints = 7;
*/
public java.util.List* Used for inventory ** *
repeated .context.Component component = 8;
*/
public java.util.List* Used for inventory ** *
repeated .context.Component component = 8;
*/
public int getComponentCount() {
if (componentBuilder_ == null) {
return component_.size();
} else {
return componentBuilder_.getCount();
}
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
public context.ContextOuterClass.Component getComponent(int index) {
if (componentBuilder_ == null) {
return component_.get(index);
} else {
return componentBuilder_.getMessage(index);
}
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
public Builder setComponent(
int index, context.ContextOuterClass.Component value) {
if (componentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComponentIsMutable();
component_.set(index, value);
onChanged();
} else {
componentBuilder_.setMessage(index, value);
}
return this;
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
public Builder setComponent(
int index, context.ContextOuterClass.Component.Builder builderForValue) {
if (componentBuilder_ == null) {
ensureComponentIsMutable();
component_.set(index, builderForValue.build());
onChanged();
} else {
componentBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
public Builder addComponent(context.ContextOuterClass.Component value) {
if (componentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComponentIsMutable();
component_.add(value);
onChanged();
} else {
componentBuilder_.addMessage(value);
}
return this;
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
public Builder addComponent(
int index, context.ContextOuterClass.Component value) {
if (componentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComponentIsMutable();
component_.add(index, value);
onChanged();
} else {
componentBuilder_.addMessage(index, value);
}
return this;
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
public Builder addComponent(
context.ContextOuterClass.Component.Builder builderForValue) {
if (componentBuilder_ == null) {
ensureComponentIsMutable();
component_.add(builderForValue.build());
onChanged();
} else {
componentBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
public Builder addComponent(
int index, context.ContextOuterClass.Component.Builder builderForValue) {
if (componentBuilder_ == null) {
ensureComponentIsMutable();
component_.add(index, builderForValue.build());
onChanged();
} else {
componentBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
public Builder addAllComponent(
java.lang.Iterable extends context.ContextOuterClass.Component> values) {
if (componentBuilder_ == null) {
ensureComponentIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, component_);
onChanged();
} else {
componentBuilder_.addAllMessages(values);
}
return this;
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
public Builder clearComponent() {
if (componentBuilder_ == null) {
component_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
componentBuilder_.clear();
}
return this;
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
public Builder removeComponent(int index) {
if (componentBuilder_ == null) {
ensureComponentIsMutable();
component_.remove(index);
onChanged();
} else {
componentBuilder_.remove(index);
}
return this;
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
public context.ContextOuterClass.Component.Builder getComponentBuilder(
int index) {
return getComponentFieldBuilder().getBuilder(index);
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
public context.ContextOuterClass.ComponentOrBuilder getComponentOrBuilder(
int index) {
if (componentBuilder_ == null) {
return component_.get(index); } else {
return componentBuilder_.getMessageOrBuilder(index);
}
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
public java.util.List extends context.ContextOuterClass.ComponentOrBuilder>
getComponentOrBuilderList() {
if (componentBuilder_ != null) {
return componentBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(component_);
}
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
public context.ContextOuterClass.Component.Builder addComponentBuilder() {
return getComponentFieldBuilder().addBuilder(
context.ContextOuterClass.Component.getDefaultInstance());
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
public context.ContextOuterClass.Component.Builder addComponentBuilder(
int index) {
return getComponentFieldBuilder().addBuilder(
index, context.ContextOuterClass.Component.getDefaultInstance());
}
/**
* * Used for inventory ** *
repeated .context.Component component = 8;
*/
public java.util.List* Identifier of node controlling the actual device ** *
.context.DeviceId controller_id = 9;
* @return Whether the controllerId field is set.
*/
public boolean hasControllerId() {
return controllerIdBuilder_ != null || controllerId_ != null;
}
/**
* * Identifier of node controlling the actual device ** *
.context.DeviceId controller_id = 9;
* @return The controllerId.
*/
public context.ContextOuterClass.DeviceId getControllerId() {
if (controllerIdBuilder_ == null) {
return controllerId_ == null ? context.ContextOuterClass.DeviceId.getDefaultInstance() : controllerId_;
} else {
return controllerIdBuilder_.getMessage();
}
}
/**
* * Identifier of node controlling the actual device ** *
.context.DeviceId controller_id = 9;
*/
public Builder setControllerId(context.ContextOuterClass.DeviceId value) {
if (controllerIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
controllerId_ = value;
onChanged();
} else {
controllerIdBuilder_.setMessage(value);
}
return this;
}
/**
* * Identifier of node controlling the actual device ** *
.context.DeviceId controller_id = 9;
*/
public Builder setControllerId(
context.ContextOuterClass.DeviceId.Builder builderForValue) {
if (controllerIdBuilder_ == null) {
controllerId_ = builderForValue.build();
onChanged();
} else {
controllerIdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* * Identifier of node controlling the actual device ** *
.context.DeviceId controller_id = 9;
*/
public Builder mergeControllerId(context.ContextOuterClass.DeviceId value) {
if (controllerIdBuilder_ == null) {
if (controllerId_ != null) {
controllerId_ =
context.ContextOuterClass.DeviceId.newBuilder(controllerId_).mergeFrom(value).buildPartial();
} else {
controllerId_ = value;
}
onChanged();
} else {
controllerIdBuilder_.mergeFrom(value);
}
return this;
}
/**
* * Identifier of node controlling the actual device ** *
.context.DeviceId controller_id = 9;
*/
public Builder clearControllerId() {
if (controllerIdBuilder_ == null) {
controllerId_ = null;
onChanged();
} else {
controllerId_ = null;
controllerIdBuilder_ = null;
}
return this;
}
/**
* * Identifier of node controlling the actual device ** *
.context.DeviceId controller_id = 9;
*/
public context.ContextOuterClass.DeviceId.Builder getControllerIdBuilder() {
onChanged();
return getControllerIdFieldBuilder().getBuilder();
}
/**
* * Identifier of node controlling the actual device ** *
.context.DeviceId controller_id = 9;
*/
public context.ContextOuterClass.DeviceIdOrBuilder getControllerIdOrBuilder() {
if (controllerIdBuilder_ != null) {
return controllerIdBuilder_.getMessageOrBuilder();
} else {
return controllerId_ == null ?
context.ContextOuterClass.DeviceId.getDefaultInstance() : controllerId_;
}
}
/**
* * Identifier of node controlling the actual device ** *
.context.DeviceId controller_id = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder>
getControllerIdFieldBuilder() {
if (controllerIdBuilder_ == null) {
controllerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder>(
getControllerId(),
getParentForChildren(),
isClean());
controllerId_ = null;
}
return controllerIdBuilder_;
}
@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.Parserrepeated string comp_string = 1;
* @return A list containing the compString.
*/
java.util.Listrepeated string comp_string = 1;
* @return The count of compString.
*/
int getCompStringCount();
/**
* repeated string comp_string = 1;
* @param index The index of the element to return.
* @return The compString at the given index.
*/
java.lang.String getCompString(int index);
/**
* repeated string comp_string = 1;
* @param index The index of the value to return.
* @return The bytes of the compString at the given index.
*/
com.google.protobuf.ByteString
getCompStringBytes(int index);
}
/**
* Protobuf type {@code context.Component}
*/
public static final class Component extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:context.Component)
ComponentOrBuilder {
private static final long serialVersionUID = 0L;
// Use Component.newBuilder() to construct.
private Component(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Component() {
compString_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Component();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Component(
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: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
compString_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
compString_.add(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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
compString_ = compString_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return context.ContextOuterClass.internal_static_context_Component_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return context.ContextOuterClass.internal_static_context_Component_fieldAccessorTable
.ensureFieldAccessorsInitialized(
context.ContextOuterClass.Component.class, context.ContextOuterClass.Component.Builder.class);
}
public static final int COMP_STRING_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList compString_;
/**
* repeated string comp_string = 1;
* @return A list containing the compString.
*/
public com.google.protobuf.ProtocolStringList
getCompStringList() {
return compString_;
}
/**
* repeated string comp_string = 1;
* @return The count of compString.
*/
public int getCompStringCount() {
return compString_.size();
}
/**
* repeated string comp_string = 1;
* @param index The index of the element to return.
* @return The compString at the given index.
*/
public java.lang.String getCompString(int index) {
return compString_.get(index);
}
/**
* repeated string comp_string = 1;
* @param index The index of the value to return.
* @return The bytes of the compString at the given index.
*/
public com.google.protobuf.ByteString
getCompStringBytes(int index) {
return compString_.getByteString(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 < compString_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, compString_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < compString_.size(); i++) {
dataSize += computeStringSizeNoTag(compString_.getRaw(i));
}
size += dataSize;
size += 1 * getCompStringList().size();
}
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.Component)) {
return super.equals(obj);
}
context.ContextOuterClass.Component other = (context.ContextOuterClass.Component) obj;
if (!getCompStringList()
.equals(other.getCompStringList())) 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 (getCompStringCount() > 0) {
hash = (37 * hash) + COMP_STRING_FIELD_NUMBER;
hash = (53 * hash) + getCompStringList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static context.ContextOuterClass.Component parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Component parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Component parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Component 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.Component parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static context.ContextOuterClass.Component parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static context.ContextOuterClass.Component parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Component 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.Component parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Component 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.Component parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static context.ContextOuterClass.Component 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.Component 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.Component}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderrepeated string comp_string = 1;
* @return A list containing the compString.
*/
public com.google.protobuf.ProtocolStringList
getCompStringList() {
return compString_.getUnmodifiableView();
}
/**
* repeated string comp_string = 1;
* @return The count of compString.
*/
public int getCompStringCount() {
return compString_.size();
}
/**
* repeated string comp_string = 1;
* @param index The index of the element to return.
* @return The compString at the given index.
*/
public java.lang.String getCompString(int index) {
return compString_.get(index);
}
/**
* repeated string comp_string = 1;
* @param index The index of the value to return.
* @return The bytes of the compString at the given index.
*/
public com.google.protobuf.ByteString
getCompStringBytes(int index) {
return compString_.getByteString(index);
}
/**
* repeated string comp_string = 1;
* @param index The index to set the value at.
* @param value The compString to set.
* @return This builder for chaining.
*/
public Builder setCompString(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCompStringIsMutable();
compString_.set(index, value);
onChanged();
return this;
}
/**
* repeated string comp_string = 1;
* @param value The compString to add.
* @return This builder for chaining.
*/
public Builder addCompString(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCompStringIsMutable();
compString_.add(value);
onChanged();
return this;
}
/**
* repeated string comp_string = 1;
* @param values The compString to add.
* @return This builder for chaining.
*/
public Builder addAllCompString(
java.lang.Iterablerepeated string comp_string = 1;
* @return This builder for chaining.
*/
public Builder clearCompString() {
compString_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string comp_string = 1;
* @param value The bytes of the compString to add.
* @return This builder for chaining.
*/
public Builder addCompStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureCompStringIsMutable();
compString_.add(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.Component)
}
// @@protoc_insertion_point(class_scope:context.Component)
private static final context.ContextOuterClass.Component DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new context.ContextOuterClass.Component();
}
public static context.ContextOuterClass.Component getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parserrepeated .context.ConfigRule config_rules = 1;
*/
java.util.Listrepeated .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.ArrayListrepeated .context.ConfigRule config_rules = 1;
*/
@java.lang.Override
public java.util.Listrepeated .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.Builderrepeated .context.ConfigRule config_rules = 1;
*/
public java.util.Listrepeated .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.Listrepeated .context.DeviceId device_ids = 1;
*/
java.util.Listrepeated .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.ArrayListrepeated .context.DeviceId device_ids = 1;
*/
@java.lang.Override
public java.util.Listrepeated .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.Builderrepeated .context.DeviceId device_ids = 1;
*/
public java.util.Listrepeated .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.Listrepeated .context.Device devices = 1;
*/
java.util.Listrepeated .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