From 8c3046c583c31a285a5fbbfc323f149960997042 Mon Sep 17 00:00:00 2001 From: gifrerenom Date: Wed, 22 Oct 2025 13:45:44 +0000 Subject: [PATCH 1/6] Policy and ZTP components: - Aligned serializers to new additions in proto desscriptions - Added missing ip_link proto - Regenerated gRPC code --- .../java/org/etsi/tfs/policy/Serializer.java | 36 +- .../policy/context/model/ServiceTypeEnum.java | 10 +- src/policy/src/main/proto/ip_link.proto | 1 + .../grpc/context/ContextOuterClass.java | 8557 +++++++++++++---- .../grpc/context/ContextService.java | 4 + .../grpc/context/ContextServiceBean.java | 18 + .../grpc/context/ContextServiceClient.java | 10 + .../grpc/context/ContextServiceGrpc.java | 94 +- .../context/MutinyContextServiceGrpc.java | 30 +- .../grpc/ip_link/IpLink.java | 830 ++ src/policy/target/kubernetes/kubernetes.yml | 44 +- src/ztp/src/main/proto/ip_link.proto | 1 + .../grpc/context/ContextOuterClass.java | 8546 ++++++++++++---- .../grpc/context/ContextService.java | 4 + .../grpc/context/ContextServiceBean.java | 18 + .../grpc/context/ContextServiceClient.java | 10 + .../grpc/context/ContextServiceGrpc.java | 94 +- .../context/MutinyContextServiceGrpc.java | 30 +- .../grpc/ip_link/IpLink.java | 830 ++ src/ztp/target/kubernetes/kubernetes.yml | 26 +- 20 files changed, 15265 insertions(+), 3928 deletions(-) create mode 120000 src/policy/src/main/proto/ip_link.proto create mode 100644 src/policy/target/generated-sources/grpc/ip_link/IpLink.java create mode 120000 src/ztp/src/main/proto/ip_link.proto create mode 100644 src/ztp/target/generated-sources/grpc/ip_link/IpLink.java diff --git a/src/policy/src/main/java/org/etsi/tfs/policy/Serializer.java b/src/policy/src/main/java/org/etsi/tfs/policy/Serializer.java index 002be3715..e78dce068 100644 --- a/src/policy/src/main/java/org/etsi/tfs/policy/Serializer.java +++ b/src/policy/src/main/java/org/etsi/tfs/policy/Serializer.java @@ -1160,12 +1160,26 @@ public class Serializer { public ContextOuterClass.ServiceTypeEnum serialize(ServiceTypeEnum serviceTypeEnum) { switch (serviceTypeEnum) { - case L2NM: - return ContextOuterClass.ServiceTypeEnum.SERVICETYPE_L2NM; case L3NM: return ContextOuterClass.ServiceTypeEnum.SERVICETYPE_L3NM; + case L2NM: + return ContextOuterClass.ServiceTypeEnum.SERVICETYPE_L2NM; case TAPI_CONNECTIVITY_SERVICE: return ContextOuterClass.ServiceTypeEnum.SERVICETYPE_TAPI_CONNECTIVITY_SERVICE; + case TE: + return ContextOuterClass.ServiceTypeEnum.SERVICETYPE_TE; + case E2E: + return ContextOuterClass.ServiceTypeEnum.SERVICETYPE_E2E; + case OPTICAL_CONNECTIVITY: + return ContextOuterClass.ServiceTypeEnum.SERVICETYPE_OPTICAL_CONNECTIVITY; + case QKD: + return ContextOuterClass.ServiceTypeEnum.SERVICETYPE_QKD; + case L1NM: + return ContextOuterClass.ServiceTypeEnum.SERVICETYPE_L1NM; + case INT: + return ContextOuterClass.ServiceTypeEnum.SERVICETYPE_INT; + case ACL: + return ContextOuterClass.ServiceTypeEnum.SERVICETYPE_ACL; case IP_LINK: return ContextOuterClass.ServiceTypeEnum.SERVICETYPE_IP_LINK; case UNKNOWN: @@ -1177,12 +1191,26 @@ public class Serializer { public ServiceTypeEnum deserialize(ContextOuterClass.ServiceTypeEnum serializedServiceTypeEnum) { switch (serializedServiceTypeEnum) { - case SERVICETYPE_L2NM: - return ServiceTypeEnum.L2NM; case SERVICETYPE_L3NM: return ServiceTypeEnum.L3NM; + case SERVICETYPE_L2NM: + return ServiceTypeEnum.L2NM; case SERVICETYPE_TAPI_CONNECTIVITY_SERVICE: return ServiceTypeEnum.TAPI_CONNECTIVITY_SERVICE; + case SERVICETYPE_TE: + return ServiceTypeEnum.TE; + case SERVICETYPE_E2E: + return ServiceTypeEnum.E2E; + case SERVICETYPE_OPTICAL_CONNECTIVITY: + return ServiceTypeEnum.OPTICAL_CONNECTIVITY; + case SERVICETYPE_QKD: + return ServiceTypeEnum.QKD; + case SERVICETYPE_L1NM: + return ServiceTypeEnum.L1NM; + case SERVICETYPE_INT: + return ServiceTypeEnum.INT; + case SERVICETYPE_ACL: + return ServiceTypeEnum.ACL; case SERVICETYPE_IP_LINK: return ServiceTypeEnum.IP_LINK; case SERVICETYPE_UNKNOWN: diff --git a/src/policy/src/main/java/org/etsi/tfs/policy/context/model/ServiceTypeEnum.java b/src/policy/src/main/java/org/etsi/tfs/policy/context/model/ServiceTypeEnum.java index 6d6a0119b..bed0c47af 100644 --- a/src/policy/src/main/java/org/etsi/tfs/policy/context/model/ServiceTypeEnum.java +++ b/src/policy/src/main/java/org/etsi/tfs/policy/context/model/ServiceTypeEnum.java @@ -20,5 +20,13 @@ public enum ServiceTypeEnum { UNKNOWN, L3NM, L2NM, - TAPI_CONNECTIVITY_SERVICE + TAPI_CONNECTIVITY_SERVICE, + TE, + E2E, + OPTICAL_CONNECTIVITY, + QKD, + L1NM, + INT, + ACL, + IP_LINK } diff --git a/src/policy/src/main/proto/ip_link.proto b/src/policy/src/main/proto/ip_link.proto new file mode 120000 index 000000000..d6e220880 --- /dev/null +++ b/src/policy/src/main/proto/ip_link.proto @@ -0,0 +1 @@ +../../../../../proto/ip_link.proto \ No newline at end of file diff --git a/src/policy/target/generated-sources/grpc/context/ContextOuterClass.java b/src/policy/target/generated-sources/grpc/context/ContextOuterClass.java index 956bf8539..ceec864c6 100644 --- a/src/policy/target/generated-sources/grpc/context/ContextOuterClass.java +++ b/src/policy/target/generated-sources/grpc/context/ContextOuterClass.java @@ -227,6 +227,10 @@ public final class ContextOuterClass { * DEVICEDRIVER_GNMI_NOKIA_SRLINUX = 19; */ DEVICEDRIVER_GNMI_NOKIA_SRLINUX(19), + /** + * DEVICEDRIVER_OPENROADM = 20; + */ + DEVICEDRIVER_OPENROADM(20), UNRECOGNIZED(-1); /** @@ -333,6 +337,11 @@ public final class ContextOuterClass { */ public static final int DEVICEDRIVER_GNMI_NOKIA_SRLINUX_VALUE = 19; + /** + * DEVICEDRIVER_OPENROADM = 20; + */ + public static final int DEVICEDRIVER_OPENROADM_VALUE = 20; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException("Can't get the number of an unknown enum value."); @@ -396,6 +405,8 @@ public final class ContextOuterClass { return DEVICEDRIVER_RYU; case 19: return DEVICEDRIVER_GNMI_NOKIA_SRLINUX; + case 20: + return DEVICEDRIVER_OPENROADM; default: return null; } @@ -773,6 +784,10 @@ public final class ContextOuterClass { * SERVICETYPE_ACL = 10; */ SERVICETYPE_ACL(10), + /** + * SERVICETYPE_IP_LINK = 11; + */ + SERVICETYPE_IP_LINK(11), UNRECOGNIZED(-1); /** @@ -830,6 +845,11 @@ public final class ContextOuterClass { */ public static final int SERVICETYPE_ACL_VALUE = 10; + /** + * SERVICETYPE_IP_LINK = 11; + */ + public static final int SERVICETYPE_IP_LINK_VALUE = 11; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException("Can't get the number of an unknown enum value."); @@ -875,6 +895,8 @@ public final class ContextOuterClass { return SERVICETYPE_INT; case 10: return SERVICETYPE_ACL; + case 11: + return SERVICETYPE_IP_LINK; default: return null; } @@ -60451,226 +60473,133 @@ public final class ContextOuterClass { } } - public interface ConfigRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:context.ConfigRule) + public interface ConfigRule_IP_LINKOrBuilder extends // @@protoc_insertion_point(interface_extends:context.ConfigRule_IP_LINK) com.google.protobuf.MessageOrBuilder { /** - * .context.ConfigActionEnum action = 1; - * @return The enum numeric value on the wire for action. - */ - int getActionValue(); - - /** - * .context.ConfigActionEnum action = 1; - * @return The action. - */ - context.ContextOuterClass.ConfigActionEnum getAction(); - - /** - * .context.ConfigRule_Custom custom = 2; - * @return Whether the custom field is set. + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. */ - boolean hasCustom(); + boolean hasEndpointId(); /** - * .context.ConfigRule_Custom custom = 2; - * @return The custom. + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. */ - context.ContextOuterClass.ConfigRule_Custom getCustom(); + context.ContextOuterClass.EndPointId getEndpointId(); /** - * .context.ConfigRule_Custom custom = 2; + * .context.EndPointId endpoint_id = 1; */ - context.ContextOuterClass.ConfigRule_CustomOrBuilder getCustomOrBuilder(); + context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder(); /** - * .context.ConfigRule_ACL acl = 3; - * @return Whether the acl field is set. + * .ip_link.IpLinkRuleSet rule_set = 2; + * @return Whether the ruleSet field is set. */ - boolean hasAcl(); + boolean hasRuleSet(); /** - * .context.ConfigRule_ACL acl = 3; - * @return The acl. + * .ip_link.IpLinkRuleSet rule_set = 2; + * @return The ruleSet. */ - context.ContextOuterClass.ConfigRule_ACL getAcl(); + ip_link.IpLink.IpLinkRuleSet getRuleSet(); /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ - context.ContextOuterClass.ConfigRule_ACLOrBuilder getAclOrBuilder(); - - context.ContextOuterClass.ConfigRule.ConfigRuleCase getConfigRuleCase(); + ip_link.IpLink.IpLinkRuleSetOrBuilder getRuleSetOrBuilder(); } /** - * Protobuf type {@code context.ConfigRule} + * Protobuf type {@code context.ConfigRule_IP_LINK} */ - public static final class ConfigRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.ConfigRule) - ConfigRuleOrBuilder { + public static final class ConfigRule_IP_LINK extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.ConfigRule_IP_LINK) + ConfigRule_IP_LINKOrBuilder { private static final long serialVersionUID = 0L; - // Use ConfigRule.newBuilder() to construct. - private ConfigRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ConfigRule_IP_LINK.newBuilder() to construct. + private ConfigRule_IP_LINK(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfigRule() { - action_ = 0; + private ConfigRule_IP_LINK() { } @java.lang.Override @SuppressWarnings({ "unused" }) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfigRule(); + return new ConfigRule_IP_LINK(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_ConfigRule_descriptor; + return context.ContextOuterClass.internal_static_context_ConfigRule_IP_LINK_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_ConfigRule_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule.class, context.ContextOuterClass.ConfigRule.Builder.class); - } - - private int configRuleCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object configRule_; - - public enum ConfigRuleCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - - CUSTOM(2), ACL(3), CONFIGRULE_NOT_SET(0); - - private final int value; - - private ConfigRuleCase(int value) { - this.value = value; - } - - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ConfigRuleCase valueOf(int value) { - return forNumber(value); - } - - public static ConfigRuleCase forNumber(int value) { - switch(value) { - case 2: - return CUSTOM; - case 3: - return ACL; - case 0: - return CONFIGRULE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - } - - public ConfigRuleCase getConfigRuleCase() { - return ConfigRuleCase.forNumber(configRuleCase_); + return context.ContextOuterClass.internal_static_context_ConfigRule_IP_LINK_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule_IP_LINK.class, context.ContextOuterClass.ConfigRule_IP_LINK.Builder.class); } - public static final int ACTION_FIELD_NUMBER = 1; - - private int action_ = 0; + public static final int ENDPOINT_ID_FIELD_NUMBER = 1; - /** - * .context.ConfigActionEnum action = 1; - * @return The enum numeric value on the wire for action. - */ - @java.lang.Override - public int getActionValue() { - return action_; - } + private context.ContextOuterClass.EndPointId endpointId_; /** - * .context.ConfigActionEnum action = 1; - * @return The action. + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. */ @java.lang.Override - public context.ContextOuterClass.ConfigActionEnum getAction() { - context.ContextOuterClass.ConfigActionEnum result = context.ContextOuterClass.ConfigActionEnum.forNumber(action_); - return result == null ? context.ContextOuterClass.ConfigActionEnum.UNRECOGNIZED : result; + public boolean hasEndpointId() { + return endpointId_ != null; } - public static final int CUSTOM_FIELD_NUMBER = 2; - /** - * .context.ConfigRule_Custom custom = 2; - * @return Whether the custom field is set. + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. */ @java.lang.Override - public boolean hasCustom() { - return configRuleCase_ == 2; + public context.ContextOuterClass.EndPointId getEndpointId() { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; } /** - * .context.ConfigRule_Custom custom = 2; - * @return The custom. + * .context.EndPointId endpoint_id = 1; */ @java.lang.Override - public context.ContextOuterClass.ConfigRule_Custom getCustom() { - if (configRuleCase_ == 2) { - return (context.ContextOuterClass.ConfigRule_Custom) configRule_; - } - return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); + public context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder() { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; } - /** - * .context.ConfigRule_Custom custom = 2; - */ - @java.lang.Override - public context.ContextOuterClass.ConfigRule_CustomOrBuilder getCustomOrBuilder() { - if (configRuleCase_ == 2) { - return (context.ContextOuterClass.ConfigRule_Custom) configRule_; - } - return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); - } + public static final int RULE_SET_FIELD_NUMBER = 2; - public static final int ACL_FIELD_NUMBER = 3; + private ip_link.IpLink.IpLinkRuleSet ruleSet_; /** - * .context.ConfigRule_ACL acl = 3; - * @return Whether the acl field is set. + * .ip_link.IpLinkRuleSet rule_set = 2; + * @return Whether the ruleSet field is set. */ @java.lang.Override - public boolean hasAcl() { - return configRuleCase_ == 3; + public boolean hasRuleSet() { + return ruleSet_ != null; } /** - * .context.ConfigRule_ACL acl = 3; - * @return The acl. + * .ip_link.IpLinkRuleSet rule_set = 2; + * @return The ruleSet. */ @java.lang.Override - public context.ContextOuterClass.ConfigRule_ACL getAcl() { - if (configRuleCase_ == 3) { - return (context.ContextOuterClass.ConfigRule_ACL) configRule_; - } - return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + public ip_link.IpLink.IpLinkRuleSet getRuleSet() { + return ruleSet_ == null ? ip_link.IpLink.IpLinkRuleSet.getDefaultInstance() : ruleSet_; } /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ @java.lang.Override - public context.ContextOuterClass.ConfigRule_ACLOrBuilder getAclOrBuilder() { - if (configRuleCase_ == 3) { - return (context.ContextOuterClass.ConfigRule_ACL) configRule_; - } - return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + public ip_link.IpLink.IpLinkRuleSetOrBuilder getRuleSetOrBuilder() { + return ruleSet_ == null ? ip_link.IpLink.IpLinkRuleSet.getDefaultInstance() : ruleSet_; } private byte memoizedIsInitialized = -1; @@ -60688,14 +60617,11 @@ public final class ContextOuterClass { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (action_ != context.ContextOuterClass.ConfigActionEnum.CONFIGACTION_UNDEFINED.getNumber()) { - output.writeEnum(1, action_); - } - if (configRuleCase_ == 2) { - output.writeMessage(2, (context.ContextOuterClass.ConfigRule_Custom) configRule_); + if (endpointId_ != null) { + output.writeMessage(1, getEndpointId()); } - if (configRuleCase_ == 3) { - output.writeMessage(3, (context.ContextOuterClass.ConfigRule_ACL) configRule_); + if (ruleSet_ != null) { + output.writeMessage(2, getRuleSet()); } getUnknownFields().writeTo(output); } @@ -60706,14 +60632,11 @@ public final class ContextOuterClass { if (size != -1) return size; size = 0; - if (action_ != context.ContextOuterClass.ConfigActionEnum.CONFIGACTION_UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, action_); - } - if (configRuleCase_ == 2) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, (context.ContextOuterClass.ConfigRule_Custom) configRule_); + if (endpointId_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEndpointId()); } - if (configRuleCase_ == 3) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, (context.ContextOuterClass.ConfigRule_ACL) configRule_); + if (ruleSet_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRuleSet()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -60725,25 +60648,21 @@ public final class ContextOuterClass { if (obj == this) { return true; } - if (!(obj instanceof context.ContextOuterClass.ConfigRule)) { + if (!(obj instanceof context.ContextOuterClass.ConfigRule_IP_LINK)) { return super.equals(obj); } - context.ContextOuterClass.ConfigRule other = (context.ContextOuterClass.ConfigRule) obj; - if (action_ != other.action_) + context.ContextOuterClass.ConfigRule_IP_LINK other = (context.ContextOuterClass.ConfigRule_IP_LINK) obj; + if (hasEndpointId() != other.hasEndpointId()) return false; - if (!getConfigRuleCase().equals(other.getConfigRuleCase())) + if (hasEndpointId()) { + if (!getEndpointId().equals(other.getEndpointId())) + return false; + } + if (hasRuleSet() != other.hasRuleSet()) return false; - switch(configRuleCase_) { - case 2: - if (!getCustom().equals(other.getCustom())) - return false; - break; - case 3: - if (!getAcl().equals(other.getAcl())) - return false; - break; - case 0: - default: + if (hasRuleSet()) { + if (!getRuleSet().equals(other.getRuleSet())) + return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -60757,70 +60676,64 @@ public final class ContextOuterClass { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ACTION_FIELD_NUMBER; - hash = (53 * hash) + action_; - switch(configRuleCase_) { - case 2: - hash = (37 * hash) + CUSTOM_FIELD_NUMBER; - hash = (53 * hash) + getCustom().hashCode(); - break; - case 3: - hash = (37 * hash) + ACL_FIELD_NUMBER; - hash = (53 * hash) + getAcl().hashCode(); - break; - case 0: - default: + if (hasEndpointId()) { + hash = (37 * hash) + ENDPOINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEndpointId().hashCode(); + } + if (hasRuleSet()) { + hash = (37 * hash) + RULE_SET_FIELD_NUMBER; + hash = (53 * hash) + getRuleSet().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static context.ContextOuterClass.ConfigRule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.ConfigRule parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.ConfigRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.ConfigRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.ConfigRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.ConfigRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.ConfigRule parseFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.ConfigRule parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } - public static context.ContextOuterClass.ConfigRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static context.ContextOuterClass.ConfigRule parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static context.ContextOuterClass.ConfigRule parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.ConfigRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } @@ -60833,7 +60746,7 @@ public final class ContextOuterClass { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(context.ContextOuterClass.ConfigRule prototype) { + public static Builder newBuilder(context.ContextOuterClass.ConfigRule_IP_LINK prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -60849,21 +60762,21 @@ public final class ContextOuterClass { } /** - * Protobuf type {@code context.ConfigRule} + * Protobuf type {@code context.ConfigRule_IP_LINK} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.ConfigRule) - context.ContextOuterClass.ConfigRuleOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.ConfigRule_IP_LINK) + context.ContextOuterClass.ConfigRule_IP_LINKOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_ConfigRule_descriptor; + return context.ContextOuterClass.internal_static_context_ConfigRule_IP_LINK_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_ConfigRule_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule.class, context.ContextOuterClass.ConfigRule.Builder.class); + return context.ContextOuterClass.internal_static_context_ConfigRule_IP_LINK_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule_IP_LINK.class, context.ContextOuterClass.ConfigRule_IP_LINK.Builder.class); } - // Construct using context.ContextOuterClass.ConfigRule.newBuilder() + // Construct using context.ContextOuterClass.ConfigRule_IP_LINK.newBuilder() private Builder() { } @@ -60875,31 +60788,32 @@ public final class ContextOuterClass { public Builder clear() { super.clear(); bitField0_ = 0; - action_ = 0; - if (customBuilder_ != null) { - customBuilder_.clear(); + endpointId_ = null; + if (endpointIdBuilder_ != null) { + endpointIdBuilder_.dispose(); + endpointIdBuilder_ = null; } - if (aclBuilder_ != null) { - aclBuilder_.clear(); + ruleSet_ = null; + if (ruleSetBuilder_ != null) { + ruleSetBuilder_.dispose(); + ruleSetBuilder_ = null; } - configRuleCase_ = 0; - configRule_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return context.ContextOuterClass.internal_static_context_ConfigRule_descriptor; + return context.ContextOuterClass.internal_static_context_ConfigRule_IP_LINK_descriptor; } @java.lang.Override - public context.ContextOuterClass.ConfigRule getDefaultInstanceForType() { - return context.ContextOuterClass.ConfigRule.getDefaultInstance(); + public context.ContextOuterClass.ConfigRule_IP_LINK getDefaultInstanceForType() { + return context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance(); } @java.lang.Override - public context.ContextOuterClass.ConfigRule build() { - context.ContextOuterClass.ConfigRule result = buildPartial(); + public context.ContextOuterClass.ConfigRule_IP_LINK build() { + context.ContextOuterClass.ConfigRule_IP_LINK result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -60907,65 +60821,43 @@ public final class ContextOuterClass { } @java.lang.Override - public context.ContextOuterClass.ConfigRule buildPartial() { - context.ContextOuterClass.ConfigRule result = new context.ContextOuterClass.ConfigRule(this); + public context.ContextOuterClass.ConfigRule_IP_LINK buildPartial() { + context.ContextOuterClass.ConfigRule_IP_LINK result = new context.ContextOuterClass.ConfigRule_IP_LINK(this); if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(context.ContextOuterClass.ConfigRule result) { + private void buildPartial0(context.ContextOuterClass.ConfigRule_IP_LINK result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.action_ = action_; - } - } - - private void buildPartialOneofs(context.ContextOuterClass.ConfigRule result) { - result.configRuleCase_ = configRuleCase_; - result.configRule_ = this.configRule_; - if (configRuleCase_ == 2 && customBuilder_ != null) { - result.configRule_ = customBuilder_.build(); + result.endpointId_ = endpointIdBuilder_ == null ? endpointId_ : endpointIdBuilder_.build(); } - if (configRuleCase_ == 3 && aclBuilder_ != null) { - result.configRule_ = aclBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ruleSet_ = ruleSetBuilder_ == null ? ruleSet_ : ruleSetBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof context.ContextOuterClass.ConfigRule) { - return mergeFrom((context.ContextOuterClass.ConfigRule) other); + if (other instanceof context.ContextOuterClass.ConfigRule_IP_LINK) { + return mergeFrom((context.ContextOuterClass.ConfigRule_IP_LINK) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(context.ContextOuterClass.ConfigRule other) { - if (other == context.ContextOuterClass.ConfigRule.getDefaultInstance()) + public Builder mergeFrom(context.ContextOuterClass.ConfigRule_IP_LINK other) { + if (other == context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance()) return this; - if (other.action_ != 0) { - setActionValue(other.getActionValue()); + if (other.hasEndpointId()) { + mergeEndpointId(other.getEndpointId()); } - switch(other.getConfigRuleCase()) { - case CUSTOM: - { - mergeCustom(other.getCustom()); - break; - } - case ACL: - { - mergeAcl(other.getAcl()); - break; - } - case CONFIGRULE_NOT_SET: - { - break; - } + if (other.hasRuleSet()) { + mergeRuleSet(other.getRuleSet()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -60990,27 +60882,20 @@ public final class ContextOuterClass { case 0: done = true; break; - case 8: + case 10: { - action_ = input.readEnum(); + input.readMessage(getEndpointIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } - // case 8 + // case 10 case 18: { - input.readMessage(getCustomFieldBuilder().getBuilder(), extensionRegistry); - configRuleCase_ = 2; + input.readMessage(getRuleSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; break; } // case 18 - case 26: - { - input.readMessage(getAclFieldBuilder().getBuilder(), extensionRegistry); - configRuleCase_ = 3; - break; - } - // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -61032,362 +60917,242 @@ public final class ContextOuterClass { return this; } - private int configRuleCase_ = 0; - - private java.lang.Object configRule_; - - public ConfigRuleCase getConfigRuleCase() { - return ConfigRuleCase.forNumber(configRuleCase_); - } - - public Builder clearConfigRule() { - configRuleCase_ = 0; - configRule_ = null; - onChanged(); - return this; - } - private int bitField0_; - private int action_ = 0; - - /** - * .context.ConfigActionEnum action = 1; - * @return The enum numeric value on the wire for action. - */ - @java.lang.Override - public int getActionValue() { - return action_; - } - - /** - * .context.ConfigActionEnum action = 1; - * @param value The enum numeric value on the wire for action to set. - * @return This builder for chaining. - */ - public Builder setActionValue(int value) { - action_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * .context.ConfigActionEnum action = 1; - * @return The action. - */ - @java.lang.Override - public context.ContextOuterClass.ConfigActionEnum getAction() { - context.ContextOuterClass.ConfigActionEnum result = context.ContextOuterClass.ConfigActionEnum.forNumber(action_); - return result == null ? context.ContextOuterClass.ConfigActionEnum.UNRECOGNIZED : result; - } - - /** - * .context.ConfigActionEnum action = 1; - * @param value The action to set. - * @return This builder for chaining. - */ - public Builder setAction(context.ContextOuterClass.ConfigActionEnum value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - action_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * .context.ConfigActionEnum action = 1; - * @return This builder for chaining. - */ - public Builder clearAction() { - bitField0_ = (bitField0_ & ~0x00000001); - action_ = 0; - onChanged(); - return this; - } + private context.ContextOuterClass.EndPointId endpointId_; - private com.google.protobuf.SingleFieldBuilderV3 customBuilder_; + private com.google.protobuf.SingleFieldBuilderV3 endpointIdBuilder_; /** - * .context.ConfigRule_Custom custom = 2; - * @return Whether the custom field is set. + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. */ - @java.lang.Override - public boolean hasCustom() { - return configRuleCase_ == 2; + public boolean hasEndpointId() { + return ((bitField0_ & 0x00000001) != 0); } /** - * .context.ConfigRule_Custom custom = 2; - * @return The custom. + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. */ - @java.lang.Override - public context.ContextOuterClass.ConfigRule_Custom getCustom() { - if (customBuilder_ == null) { - if (configRuleCase_ == 2) { - return (context.ContextOuterClass.ConfigRule_Custom) configRule_; - } - return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); + public context.ContextOuterClass.EndPointId getEndpointId() { + if (endpointIdBuilder_ == null) { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; } else { - if (configRuleCase_ == 2) { - return customBuilder_.getMessage(); - } - return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); + return endpointIdBuilder_.getMessage(); } } /** - * .context.ConfigRule_Custom custom = 2; + * .context.EndPointId endpoint_id = 1; */ - public Builder setCustom(context.ContextOuterClass.ConfigRule_Custom value) { - if (customBuilder_ == null) { + public Builder setEndpointId(context.ContextOuterClass.EndPointId value) { + if (endpointIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - configRule_ = value; - onChanged(); + endpointId_ = value; } else { - customBuilder_.setMessage(value); + endpointIdBuilder_.setMessage(value); } - configRuleCase_ = 2; + bitField0_ |= 0x00000001; + onChanged(); return this; } /** - * .context.ConfigRule_Custom custom = 2; + * .context.EndPointId endpoint_id = 1; */ - public Builder setCustom(context.ContextOuterClass.ConfigRule_Custom.Builder builderForValue) { - if (customBuilder_ == null) { - configRule_ = builderForValue.build(); - onChanged(); + public Builder setEndpointId(context.ContextOuterClass.EndPointId.Builder builderForValue) { + if (endpointIdBuilder_ == null) { + endpointId_ = builderForValue.build(); } else { - customBuilder_.setMessage(builderForValue.build()); + endpointIdBuilder_.setMessage(builderForValue.build()); } - configRuleCase_ = 2; + bitField0_ |= 0x00000001; + onChanged(); return this; } /** - * .context.ConfigRule_Custom custom = 2; + * .context.EndPointId endpoint_id = 1; */ - public Builder mergeCustom(context.ContextOuterClass.ConfigRule_Custom value) { - if (customBuilder_ == null) { - if (configRuleCase_ == 2 && configRule_ != context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance()) { - configRule_ = context.ContextOuterClass.ConfigRule_Custom.newBuilder((context.ContextOuterClass.ConfigRule_Custom) configRule_).mergeFrom(value).buildPartial(); + public Builder mergeEndpointId(context.ContextOuterClass.EndPointId value) { + if (endpointIdBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && endpointId_ != null && endpointId_ != context.ContextOuterClass.EndPointId.getDefaultInstance()) { + getEndpointIdBuilder().mergeFrom(value); } else { - configRule_ = value; + endpointId_ = value; } - onChanged(); } else { - if (configRuleCase_ == 2) { - customBuilder_.mergeFrom(value); - } else { - customBuilder_.setMessage(value); - } + endpointIdBuilder_.mergeFrom(value); } - configRuleCase_ = 2; + bitField0_ |= 0x00000001; + onChanged(); return this; } /** - * .context.ConfigRule_Custom custom = 2; + * .context.EndPointId endpoint_id = 1; */ - public Builder clearCustom() { - if (customBuilder_ == null) { - if (configRuleCase_ == 2) { - configRuleCase_ = 0; - configRule_ = null; - onChanged(); - } - } else { - if (configRuleCase_ == 2) { - configRuleCase_ = 0; - configRule_ = null; - } - customBuilder_.clear(); + public Builder clearEndpointId() { + bitField0_ = (bitField0_ & ~0x00000001); + endpointId_ = null; + if (endpointIdBuilder_ != null) { + endpointIdBuilder_.dispose(); + endpointIdBuilder_ = null; } + onChanged(); return this; } /** - * .context.ConfigRule_Custom custom = 2; + * .context.EndPointId endpoint_id = 1; */ - public context.ContextOuterClass.ConfigRule_Custom.Builder getCustomBuilder() { - return getCustomFieldBuilder().getBuilder(); + public context.ContextOuterClass.EndPointId.Builder getEndpointIdBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEndpointIdFieldBuilder().getBuilder(); } /** - * .context.ConfigRule_Custom custom = 2; + * .context.EndPointId endpoint_id = 1; */ - @java.lang.Override - public context.ContextOuterClass.ConfigRule_CustomOrBuilder getCustomOrBuilder() { - if ((configRuleCase_ == 2) && (customBuilder_ != null)) { - return customBuilder_.getMessageOrBuilder(); + public context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder() { + if (endpointIdBuilder_ != null) { + return endpointIdBuilder_.getMessageOrBuilder(); } else { - if (configRuleCase_ == 2) { - return (context.ContextOuterClass.ConfigRule_Custom) configRule_; - } - return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; } } /** - * .context.ConfigRule_Custom custom = 2; + * .context.EndPointId endpoint_id = 1; */ - private com.google.protobuf.SingleFieldBuilderV3 getCustomFieldBuilder() { - if (customBuilder_ == null) { - if (!(configRuleCase_ == 2)) { - configRule_ = context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); - } - customBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.ConfigRule_Custom) configRule_, getParentForChildren(), isClean()); - configRule_ = null; + private com.google.protobuf.SingleFieldBuilderV3 getEndpointIdFieldBuilder() { + if (endpointIdBuilder_ == null) { + endpointIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getEndpointId(), getParentForChildren(), isClean()); + endpointId_ = null; } - configRuleCase_ = 2; - onChanged(); - return customBuilder_; + return endpointIdBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3 aclBuilder_; + private ip_link.IpLink.IpLinkRuleSet ruleSet_; + + private com.google.protobuf.SingleFieldBuilderV3 ruleSetBuilder_; /** - * .context.ConfigRule_ACL acl = 3; - * @return Whether the acl field is set. + * .ip_link.IpLinkRuleSet rule_set = 2; + * @return Whether the ruleSet field is set. */ - @java.lang.Override - public boolean hasAcl() { - return configRuleCase_ == 3; + public boolean hasRuleSet() { + return ((bitField0_ & 0x00000002) != 0); } /** - * .context.ConfigRule_ACL acl = 3; - * @return The acl. + * .ip_link.IpLinkRuleSet rule_set = 2; + * @return The ruleSet. */ - @java.lang.Override - public context.ContextOuterClass.ConfigRule_ACL getAcl() { - if (aclBuilder_ == null) { - if (configRuleCase_ == 3) { - return (context.ContextOuterClass.ConfigRule_ACL) configRule_; - } - return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + public ip_link.IpLink.IpLinkRuleSet getRuleSet() { + if (ruleSetBuilder_ == null) { + return ruleSet_ == null ? ip_link.IpLink.IpLinkRuleSet.getDefaultInstance() : ruleSet_; } else { - if (configRuleCase_ == 3) { - return aclBuilder_.getMessage(); - } - return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + return ruleSetBuilder_.getMessage(); } } /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ - public Builder setAcl(context.ContextOuterClass.ConfigRule_ACL value) { - if (aclBuilder_ == null) { + public Builder setRuleSet(ip_link.IpLink.IpLinkRuleSet value) { + if (ruleSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - configRule_ = value; - onChanged(); + ruleSet_ = value; } else { - aclBuilder_.setMessage(value); + ruleSetBuilder_.setMessage(value); } - configRuleCase_ = 3; + bitField0_ |= 0x00000002; + onChanged(); return this; } /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ - public Builder setAcl(context.ContextOuterClass.ConfigRule_ACL.Builder builderForValue) { - if (aclBuilder_ == null) { - configRule_ = builderForValue.build(); - onChanged(); + public Builder setRuleSet(ip_link.IpLink.IpLinkRuleSet.Builder builderForValue) { + if (ruleSetBuilder_ == null) { + ruleSet_ = builderForValue.build(); } else { - aclBuilder_.setMessage(builderForValue.build()); + ruleSetBuilder_.setMessage(builderForValue.build()); } - configRuleCase_ = 3; + bitField0_ |= 0x00000002; + onChanged(); return this; } /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ - public Builder mergeAcl(context.ContextOuterClass.ConfigRule_ACL value) { - if (aclBuilder_ == null) { - if (configRuleCase_ == 3 && configRule_ != context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance()) { - configRule_ = context.ContextOuterClass.ConfigRule_ACL.newBuilder((context.ContextOuterClass.ConfigRule_ACL) configRule_).mergeFrom(value).buildPartial(); + public Builder mergeRuleSet(ip_link.IpLink.IpLinkRuleSet value) { + if (ruleSetBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && ruleSet_ != null && ruleSet_ != ip_link.IpLink.IpLinkRuleSet.getDefaultInstance()) { + getRuleSetBuilder().mergeFrom(value); } else { - configRule_ = value; + ruleSet_ = value; } - onChanged(); } else { - if (configRuleCase_ == 3) { - aclBuilder_.mergeFrom(value); - } else { - aclBuilder_.setMessage(value); - } + ruleSetBuilder_.mergeFrom(value); } - configRuleCase_ = 3; + bitField0_ |= 0x00000002; + onChanged(); return this; } /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ - public Builder clearAcl() { - if (aclBuilder_ == null) { - if (configRuleCase_ == 3) { - configRuleCase_ = 0; - configRule_ = null; - onChanged(); - } - } else { - if (configRuleCase_ == 3) { - configRuleCase_ = 0; - configRule_ = null; - } - aclBuilder_.clear(); + public Builder clearRuleSet() { + bitField0_ = (bitField0_ & ~0x00000002); + ruleSet_ = null; + if (ruleSetBuilder_ != null) { + ruleSetBuilder_.dispose(); + ruleSetBuilder_ = null; } + onChanged(); return this; } /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ - public context.ContextOuterClass.ConfigRule_ACL.Builder getAclBuilder() { - return getAclFieldBuilder().getBuilder(); + public ip_link.IpLink.IpLinkRuleSet.Builder getRuleSetBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRuleSetFieldBuilder().getBuilder(); } /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ - @java.lang.Override - public context.ContextOuterClass.ConfigRule_ACLOrBuilder getAclOrBuilder() { - if ((configRuleCase_ == 3) && (aclBuilder_ != null)) { - return aclBuilder_.getMessageOrBuilder(); + public ip_link.IpLink.IpLinkRuleSetOrBuilder getRuleSetOrBuilder() { + if (ruleSetBuilder_ != null) { + return ruleSetBuilder_.getMessageOrBuilder(); } else { - if (configRuleCase_ == 3) { - return (context.ContextOuterClass.ConfigRule_ACL) configRule_; - } - return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + return ruleSet_ == null ? ip_link.IpLink.IpLinkRuleSet.getDefaultInstance() : ruleSet_; } } /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ - private com.google.protobuf.SingleFieldBuilderV3 getAclFieldBuilder() { - if (aclBuilder_ == null) { - if (!(configRuleCase_ == 3)) { - configRule_ = context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); - } - aclBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.ConfigRule_ACL) configRule_, getParentForChildren(), isClean()); - configRule_ = null; + private com.google.protobuf.SingleFieldBuilderV3 getRuleSetFieldBuilder() { + if (ruleSetBuilder_ == null) { + ruleSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getRuleSet(), getParentForChildren(), isClean()); + ruleSet_ = null; } - configRuleCase_ = 3; - onChanged(); - return aclBuilder_; + return ruleSetBuilder_; } @java.lang.Override @@ -61399,24 +61164,24 @@ public final class ContextOuterClass { public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:context.ConfigRule) + // @@protoc_insertion_point(builder_scope:context.ConfigRule_IP_LINK) } - // @@protoc_insertion_point(class_scope:context.ConfigRule) - private static final context.ContextOuterClass.ConfigRule DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:context.ConfigRule_IP_LINK) + private static final context.ContextOuterClass.ConfigRule_IP_LINK DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new context.ContextOuterClass.ConfigRule(); + DEFAULT_INSTANCE = new context.ContextOuterClass.ConfigRule_IP_LINK(); } - public static context.ContextOuterClass.ConfigRule getDefaultInstance() { + public static context.ContextOuterClass.ConfigRule_IP_LINK getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ConfigRule parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public ConfigRule_IP_LINK parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); @@ -61431,156 +61196,294 @@ public final class ContextOuterClass { } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public context.ContextOuterClass.ConfigRule getDefaultInstanceForType() { + public context.ContextOuterClass.ConfigRule_IP_LINK getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface Constraint_CustomOrBuilder extends // @@protoc_insertion_point(interface_extends:context.Constraint_Custom) + public interface ConfigRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:context.ConfigRule) com.google.protobuf.MessageOrBuilder { /** - * string constraint_type = 1; - * @return The constraintType. + * .context.ConfigActionEnum action = 1; + * @return The enum numeric value on the wire for action. */ - java.lang.String getConstraintType(); + int getActionValue(); /** - * string constraint_type = 1; - * @return The bytes for constraintType. + * .context.ConfigActionEnum action = 1; + * @return The action. */ - com.google.protobuf.ByteString getConstraintTypeBytes(); + context.ContextOuterClass.ConfigActionEnum getAction(); /** - * string constraint_value = 2; - * @return The constraintValue. + * .context.ConfigRule_Custom custom = 2; + * @return Whether the custom field is set. */ - java.lang.String getConstraintValue(); + boolean hasCustom(); /** - * string constraint_value = 2; - * @return The bytes for constraintValue. + * .context.ConfigRule_Custom custom = 2; + * @return The custom. */ - com.google.protobuf.ByteString getConstraintValueBytes(); + context.ContextOuterClass.ConfigRule_Custom getCustom(); + + /** + * .context.ConfigRule_Custom custom = 2; + */ + context.ContextOuterClass.ConfigRule_CustomOrBuilder getCustomOrBuilder(); + + /** + * .context.ConfigRule_ACL acl = 3; + * @return Whether the acl field is set. + */ + boolean hasAcl(); + + /** + * .context.ConfigRule_ACL acl = 3; + * @return The acl. + */ + context.ContextOuterClass.ConfigRule_ACL getAcl(); + + /** + * .context.ConfigRule_ACL acl = 3; + */ + context.ContextOuterClass.ConfigRule_ACLOrBuilder getAclOrBuilder(); + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + * @return Whether the ipLink field is set. + */ + boolean hasIpLink(); + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + * @return The ipLink. + */ + context.ContextOuterClass.ConfigRule_IP_LINK getIpLink(); + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + context.ContextOuterClass.ConfigRule_IP_LINKOrBuilder getIpLinkOrBuilder(); + + context.ContextOuterClass.ConfigRule.ConfigRuleCase getConfigRuleCase(); } /** - * Protobuf type {@code context.Constraint_Custom} + * Protobuf type {@code context.ConfigRule} */ - public static final class Constraint_Custom extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.Constraint_Custom) - Constraint_CustomOrBuilder { + public static final class ConfigRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.ConfigRule) + ConfigRuleOrBuilder { private static final long serialVersionUID = 0L; - // Use Constraint_Custom.newBuilder() to construct. - private Constraint_Custom(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ConfigRule.newBuilder() to construct. + private ConfigRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Constraint_Custom() { - constraintType_ = ""; - constraintValue_ = ""; + private ConfigRule() { + action_ = 0; } @java.lang.Override @SuppressWarnings({ "unused" }) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Constraint_Custom(); + return new ConfigRule(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_Constraint_Custom_descriptor; + return context.ContextOuterClass.internal_static_context_ConfigRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_Constraint_Custom_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.Constraint_Custom.class, context.ContextOuterClass.Constraint_Custom.Builder.class); + return context.ContextOuterClass.internal_static_context_ConfigRule_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule.class, context.ContextOuterClass.ConfigRule.Builder.class); } - public static final int CONSTRAINT_TYPE_FIELD_NUMBER = 1; + private int configRuleCase_ = 0; @SuppressWarnings("serial") - private volatile java.lang.Object constraintType_ = ""; + private java.lang.Object configRule_; - /** - * string constraint_type = 1; - * @return The constraintType. - */ - @java.lang.Override - public java.lang.String getConstraintType() { - java.lang.Object ref = constraintType_; - 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(); - constraintType_ = s; - return s; - } - } + public enum ConfigRuleCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - /** - * string constraint_type = 1; - * @return The bytes for constraintType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getConstraintTypeBytes() { - java.lang.Object ref = constraintType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - constraintType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + CUSTOM(2), ACL(3), IP_LINK(4), CONFIGRULE_NOT_SET(0); - public static final int CONSTRAINT_VALUE_FIELD_NUMBER = 2; + private final int value; - @SuppressWarnings("serial") - private volatile java.lang.Object constraintValue_ = ""; + private ConfigRuleCase(int value) { + this.value = value; + } - /** - * string constraint_value = 2; - * @return The constraintValue. - */ - @java.lang.Override - public java.lang.String getConstraintValue() { - java.lang.Object ref = constraintValue_; - 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(); - constraintValue_ = s; - return s; + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConfigRuleCase valueOf(int value) { + return forNumber(value); } - } - /** - * string constraint_value = 2; - * @return The bytes for constraintValue. + public static ConfigRuleCase forNumber(int value) { + switch(value) { + case 2: + return CUSTOM; + case 3: + return ACL; + case 4: + return IP_LINK; + case 0: + return CONFIGRULE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + } + + public ConfigRuleCase getConfigRuleCase() { + return ConfigRuleCase.forNumber(configRuleCase_); + } + + public static final int ACTION_FIELD_NUMBER = 1; + + private int action_ = 0; + + /** + * .context.ConfigActionEnum action = 1; + * @return The enum numeric value on the wire for action. */ @java.lang.Override - public com.google.protobuf.ByteString getConstraintValueBytes() { - java.lang.Object ref = constraintValue_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - constraintValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public int getActionValue() { + return action_; + } + + /** + * .context.ConfigActionEnum action = 1; + * @return The action. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigActionEnum getAction() { + context.ContextOuterClass.ConfigActionEnum result = context.ContextOuterClass.ConfigActionEnum.forNumber(action_); + return result == null ? context.ContextOuterClass.ConfigActionEnum.UNRECOGNIZED : result; + } + + public static final int CUSTOM_FIELD_NUMBER = 2; + + /** + * .context.ConfigRule_Custom custom = 2; + * @return Whether the custom field is set. + */ + @java.lang.Override + public boolean hasCustom() { + return configRuleCase_ == 2; + } + + /** + * .context.ConfigRule_Custom custom = 2; + * @return The custom. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_Custom getCustom() { + if (configRuleCase_ == 2) { + return (context.ContextOuterClass.ConfigRule_Custom) configRule_; + } + return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); + } + + /** + * .context.ConfigRule_Custom custom = 2; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_CustomOrBuilder getCustomOrBuilder() { + if (configRuleCase_ == 2) { + return (context.ContextOuterClass.ConfigRule_Custom) configRule_; + } + return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); + } + + public static final int ACL_FIELD_NUMBER = 3; + + /** + * .context.ConfigRule_ACL acl = 3; + * @return Whether the acl field is set. + */ + @java.lang.Override + public boolean hasAcl() { + return configRuleCase_ == 3; + } + + /** + * .context.ConfigRule_ACL acl = 3; + * @return The acl. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_ACL getAcl() { + if (configRuleCase_ == 3) { + return (context.ContextOuterClass.ConfigRule_ACL) configRule_; + } + return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + } + + /** + * .context.ConfigRule_ACL acl = 3; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_ACLOrBuilder getAclOrBuilder() { + if (configRuleCase_ == 3) { + return (context.ContextOuterClass.ConfigRule_ACL) configRule_; + } + return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + } + + public static final int IP_LINK_FIELD_NUMBER = 4; + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + * @return Whether the ipLink field is set. + */ + @java.lang.Override + public boolean hasIpLink() { + return configRuleCase_ == 4; + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + * @return The ipLink. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IP_LINK getIpLink() { + if (configRuleCase_ == 4) { + return (context.ContextOuterClass.ConfigRule_IP_LINK) configRule_; + } + return context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance(); + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IP_LINKOrBuilder getIpLinkOrBuilder() { + if (configRuleCase_ == 4) { + return (context.ContextOuterClass.ConfigRule_IP_LINK) configRule_; } + return context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -61598,11 +61501,17 @@ public final class ContextOuterClass { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, constraintType_); + if (action_ != context.ContextOuterClass.ConfigActionEnum.CONFIGACTION_UNDEFINED.getNumber()) { + output.writeEnum(1, action_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintValue_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, constraintValue_); + if (configRuleCase_ == 2) { + output.writeMessage(2, (context.ContextOuterClass.ConfigRule_Custom) configRule_); + } + if (configRuleCase_ == 3) { + output.writeMessage(3, (context.ContextOuterClass.ConfigRule_ACL) configRule_); + } + if (configRuleCase_ == 4) { + output.writeMessage(4, (context.ContextOuterClass.ConfigRule_IP_LINK) configRule_); } getUnknownFields().writeTo(output); } @@ -61613,11 +61522,17 @@ public final class ContextOuterClass { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, constraintType_); + if (action_ != context.ContextOuterClass.ConfigActionEnum.CONFIGACTION_UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, action_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintValue_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, constraintValue_); + if (configRuleCase_ == 2) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, (context.ContextOuterClass.ConfigRule_Custom) configRule_); + } + if (configRuleCase_ == 3) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, (context.ContextOuterClass.ConfigRule_ACL) configRule_); + } + if (configRuleCase_ == 4) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, (context.ContextOuterClass.ConfigRule_IP_LINK) configRule_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -61629,14 +61544,30 @@ public final class ContextOuterClass { if (obj == this) { return true; } - if (!(obj instanceof context.ContextOuterClass.Constraint_Custom)) { + if (!(obj instanceof context.ContextOuterClass.ConfigRule)) { return super.equals(obj); } - context.ContextOuterClass.Constraint_Custom other = (context.ContextOuterClass.Constraint_Custom) obj; - if (!getConstraintType().equals(other.getConstraintType())) + context.ContextOuterClass.ConfigRule other = (context.ContextOuterClass.ConfigRule) obj; + if (action_ != other.action_) return false; - if (!getConstraintValue().equals(other.getConstraintValue())) + if (!getConfigRuleCase().equals(other.getConfigRuleCase())) return false; + switch(configRuleCase_) { + case 2: + if (!getCustom().equals(other.getCustom())) + return false; + break; + case 3: + if (!getAcl().equals(other.getAcl())) + return false; + break; + case 4: + if (!getIpLink().equals(other.getIpLink())) + return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -61649,60 +61580,74 @@ public final class ContextOuterClass { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONSTRAINT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getConstraintType().hashCode(); - hash = (37 * hash) + CONSTRAINT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getConstraintValue().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + switch(configRuleCase_) { + case 2: + hash = (37 * hash) + CUSTOM_FIELD_NUMBER; + hash = (53 * hash) + getCustom().hashCode(); + break; + case 3: + hash = (37 * hash) + ACL_FIELD_NUMBER; + hash = (53 * hash) + getAcl().hashCode(); + break; + case 4: + hash = (37 * hash) + IP_LINK_FIELD_NUMBER; + hash = (53 * hash) + getIpLink().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static context.ContextOuterClass.Constraint_Custom parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.Constraint_Custom parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.Constraint_Custom parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.Constraint_Custom parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule 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.Constraint_Custom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.Constraint_Custom parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.Constraint_Custom parseFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.Constraint_Custom parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule 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.Constraint_Custom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static context.ContextOuterClass.Constraint_Custom parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule 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.Constraint_Custom parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.Constraint_Custom parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } @@ -61715,7 +61660,7 @@ public final class ContextOuterClass { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(context.ContextOuterClass.Constraint_Custom prototype) { + public static Builder newBuilder(context.ContextOuterClass.ConfigRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -61731,21 +61676,21 @@ public final class ContextOuterClass { } /** - * Protobuf type {@code context.Constraint_Custom} + * Protobuf type {@code context.ConfigRule} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.Constraint_Custom) - context.ContextOuterClass.Constraint_CustomOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.ConfigRule) + context.ContextOuterClass.ConfigRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_Constraint_Custom_descriptor; + return context.ContextOuterClass.internal_static_context_ConfigRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_Constraint_Custom_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.Constraint_Custom.class, context.ContextOuterClass.Constraint_Custom.Builder.class); + return context.ContextOuterClass.internal_static_context_ConfigRule_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule.class, context.ContextOuterClass.ConfigRule.Builder.class); } - // Construct using context.ContextOuterClass.Constraint_Custom.newBuilder() + // Construct using context.ContextOuterClass.ConfigRule.newBuilder() private Builder() { } @@ -61757,24 +61702,34 @@ public final class ContextOuterClass { public Builder clear() { super.clear(); bitField0_ = 0; - constraintType_ = ""; - constraintValue_ = ""; + action_ = 0; + if (customBuilder_ != null) { + customBuilder_.clear(); + } + if (aclBuilder_ != null) { + aclBuilder_.clear(); + } + if (ipLinkBuilder_ != null) { + ipLinkBuilder_.clear(); + } + configRuleCase_ = 0; + configRule_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return context.ContextOuterClass.internal_static_context_Constraint_Custom_descriptor; + return context.ContextOuterClass.internal_static_context_ConfigRule_descriptor; } @java.lang.Override - public context.ContextOuterClass.Constraint_Custom getDefaultInstanceForType() { - return context.ContextOuterClass.Constraint_Custom.getDefaultInstance(); + public context.ContextOuterClass.ConfigRule getDefaultInstanceForType() { + return context.ContextOuterClass.ConfigRule.getDefaultInstance(); } @java.lang.Override - public context.ContextOuterClass.Constraint_Custom build() { - context.ContextOuterClass.Constraint_Custom result = buildPartial(); + public context.ContextOuterClass.ConfigRule build() { + context.ContextOuterClass.ConfigRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -61782,47 +61737,73 @@ public final class ContextOuterClass { } @java.lang.Override - public context.ContextOuterClass.Constraint_Custom buildPartial() { - context.ContextOuterClass.Constraint_Custom result = new context.ContextOuterClass.Constraint_Custom(this); + public context.ContextOuterClass.ConfigRule buildPartial() { + context.ContextOuterClass.ConfigRule result = new context.ContextOuterClass.ConfigRule(this); if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(context.ContextOuterClass.Constraint_Custom result) { + private void buildPartial0(context.ContextOuterClass.ConfigRule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.constraintType_ = constraintType_; + result.action_ = action_; } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.constraintValue_ = constraintValue_; + } + + private void buildPartialOneofs(context.ContextOuterClass.ConfigRule result) { + result.configRuleCase_ = configRuleCase_; + result.configRule_ = this.configRule_; + if (configRuleCase_ == 2 && customBuilder_ != null) { + result.configRule_ = customBuilder_.build(); + } + if (configRuleCase_ == 3 && aclBuilder_ != null) { + result.configRule_ = aclBuilder_.build(); + } + if (configRuleCase_ == 4 && ipLinkBuilder_ != null) { + result.configRule_ = ipLinkBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof context.ContextOuterClass.Constraint_Custom) { - return mergeFrom((context.ContextOuterClass.Constraint_Custom) other); + if (other instanceof context.ContextOuterClass.ConfigRule) { + return mergeFrom((context.ContextOuterClass.ConfigRule) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(context.ContextOuterClass.Constraint_Custom other) { - if (other == context.ContextOuterClass.Constraint_Custom.getDefaultInstance()) + public Builder mergeFrom(context.ContextOuterClass.ConfigRule other) { + if (other == context.ContextOuterClass.ConfigRule.getDefaultInstance()) return this; - if (!other.getConstraintType().isEmpty()) { - constraintType_ = other.constraintType_; - bitField0_ |= 0x00000001; - onChanged(); + if (other.action_ != 0) { + setActionValue(other.getActionValue()); } - if (!other.getConstraintValue().isEmpty()) { - constraintValue_ = other.constraintValue_; - bitField0_ |= 0x00000002; - onChanged(); + switch(other.getConfigRuleCase()) { + case CUSTOM: + { + mergeCustom(other.getCustom()); + break; + } + case ACL: + { + mergeAcl(other.getAcl()); + break; + } + case IP_LINK: + { + mergeIpLink(other.getIpLink()); + break; + } + case CONFIGRULE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -61847,20 +61828,34 @@ public final class ContextOuterClass { case 0: done = true; break; - case 10: + case 8: { - constraintType_ = input.readStringRequireUtf8(); + action_ = input.readEnum(); bitField0_ |= 0x00000001; break; } - // case 10 + // case 8 case 18: { - constraintValue_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + input.readMessage(getCustomFieldBuilder().getBuilder(), extensionRegistry); + configRuleCase_ = 2; break; } // case 18 + case 26: + { + input.readMessage(getAclFieldBuilder().getBuilder(), extensionRegistry); + configRuleCase_ = 3; + break; + } + // case 26 + case 34: + { + input.readMessage(getIpLinkFieldBuilder().getBuilder(), extensionRegistry); + configRuleCase_ = 4; + break; + } + // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -61882,158 +61877,505 @@ public final class ContextOuterClass { return this; } - private int bitField0_; + private int configRuleCase_ = 0; - private java.lang.Object constraintType_ = ""; + private java.lang.Object configRule_; - /** - * string constraint_type = 1; - * @return The constraintType. - */ - public java.lang.String getConstraintType() { - java.lang.Object ref = constraintType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - constraintType_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public ConfigRuleCase getConfigRuleCase() { + return ConfigRuleCase.forNumber(configRuleCase_); + } + + public Builder clearConfigRule() { + configRuleCase_ = 0; + configRule_ = null; + onChanged(); + return this; } + private int bitField0_; + + private int action_ = 0; + /** - * string constraint_type = 1; - * @return The bytes for constraintType. + * .context.ConfigActionEnum action = 1; + * @return The enum numeric value on the wire for action. */ - public com.google.protobuf.ByteString getConstraintTypeBytes() { - java.lang.Object ref = constraintType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - constraintType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public int getActionValue() { + return action_; } /** - * string constraint_type = 1; - * @param value The constraintType to set. + * .context.ConfigActionEnum action = 1; + * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ - public Builder setConstraintType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - constraintType_ = value; + public Builder setActionValue(int value) { + action_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string constraint_type = 1; - * @return This builder for chaining. + * .context.ConfigActionEnum action = 1; + * @return The action. */ - public Builder clearConstraintType() { - constraintType_ = getDefaultInstance().getConstraintType(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + @java.lang.Override + public context.ContextOuterClass.ConfigActionEnum getAction() { + context.ContextOuterClass.ConfigActionEnum result = context.ContextOuterClass.ConfigActionEnum.forNumber(action_); + return result == null ? context.ContextOuterClass.ConfigActionEnum.UNRECOGNIZED : result; } /** - * string constraint_type = 1; - * @param value The bytes for constraintType to set. + * .context.ConfigActionEnum action = 1; + * @param value The action to set. * @return This builder for chaining. */ - public Builder setConstraintTypeBytes(com.google.protobuf.ByteString value) { + public Builder setAction(context.ContextOuterClass.ConfigActionEnum value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - constraintType_ = value; bitField0_ |= 0x00000001; + action_ = value.getNumber(); onChanged(); return this; } - private java.lang.Object constraintValue_ = ""; + /** + * .context.ConfigActionEnum action = 1; + * @return This builder for chaining. + */ + public Builder clearAction() { + bitField0_ = (bitField0_ & ~0x00000001); + action_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3 customBuilder_; /** - * string constraint_value = 2; - * @return The constraintValue. + * .context.ConfigRule_Custom custom = 2; + * @return Whether the custom field is set. */ - public java.lang.String getConstraintValue() { - java.lang.Object ref = constraintValue_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - constraintValue_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public boolean hasCustom() { + return configRuleCase_ == 2; } /** - * string constraint_value = 2; - * @return The bytes for constraintValue. + * .context.ConfigRule_Custom custom = 2; + * @return The custom. */ - public com.google.protobuf.ByteString getConstraintValueBytes() { - java.lang.Object ref = constraintValue_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - constraintValue_ = b; - return b; + @java.lang.Override + public context.ContextOuterClass.ConfigRule_Custom getCustom() { + if (customBuilder_ == null) { + if (configRuleCase_ == 2) { + return (context.ContextOuterClass.ConfigRule_Custom) configRule_; + } + return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); } else { - return (com.google.protobuf.ByteString) ref; + if (configRuleCase_ == 2) { + return customBuilder_.getMessage(); + } + return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); } } /** - * string constraint_value = 2; - * @param value The constraintValue to set. - * @return This builder for chaining. + * .context.ConfigRule_Custom custom = 2; */ - public Builder setConstraintValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setCustom(context.ContextOuterClass.ConfigRule_Custom value) { + if (customBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configRule_ = value; + onChanged(); + } else { + customBuilder_.setMessage(value); } - constraintValue_ = value; - bitField0_ |= 0x00000002; - onChanged(); + configRuleCase_ = 2; return this; } /** - * string constraint_value = 2; - * @return This builder for chaining. + * .context.ConfigRule_Custom custom = 2; */ - public Builder clearConstraintValue() { - constraintValue_ = getDefaultInstance().getConstraintValue(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); + public Builder setCustom(context.ContextOuterClass.ConfigRule_Custom.Builder builderForValue) { + if (customBuilder_ == null) { + configRule_ = builderForValue.build(); + onChanged(); + } else { + customBuilder_.setMessage(builderForValue.build()); + } + configRuleCase_ = 2; return this; } /** - * string constraint_value = 2; - * @param value The bytes for constraintValue to set. - * @return This builder for chaining. + * .context.ConfigRule_Custom custom = 2; */ - public Builder setConstraintValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeCustom(context.ContextOuterClass.ConfigRule_Custom value) { + if (customBuilder_ == null) { + if (configRuleCase_ == 2 && configRule_ != context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance()) { + configRule_ = context.ContextOuterClass.ConfigRule_Custom.newBuilder((context.ContextOuterClass.ConfigRule_Custom) configRule_).mergeFrom(value).buildPartial(); + } else { + configRule_ = value; + } + onChanged(); + } else { + if (configRuleCase_ == 2) { + customBuilder_.mergeFrom(value); + } else { + customBuilder_.setMessage(value); + } } - checkByteStringIsUtf8(value); - constraintValue_ = value; - bitField0_ |= 0x00000002; + configRuleCase_ = 2; + return this; + } + + /** + * .context.ConfigRule_Custom custom = 2; + */ + public Builder clearCustom() { + if (customBuilder_ == null) { + if (configRuleCase_ == 2) { + configRuleCase_ = 0; + configRule_ = null; + onChanged(); + } + } else { + if (configRuleCase_ == 2) { + configRuleCase_ = 0; + configRule_ = null; + } + customBuilder_.clear(); + } + return this; + } + + /** + * .context.ConfigRule_Custom custom = 2; + */ + public context.ContextOuterClass.ConfigRule_Custom.Builder getCustomBuilder() { + return getCustomFieldBuilder().getBuilder(); + } + + /** + * .context.ConfigRule_Custom custom = 2; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_CustomOrBuilder getCustomOrBuilder() { + if ((configRuleCase_ == 2) && (customBuilder_ != null)) { + return customBuilder_.getMessageOrBuilder(); + } else { + if (configRuleCase_ == 2) { + return (context.ContextOuterClass.ConfigRule_Custom) configRule_; + } + return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_Custom custom = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getCustomFieldBuilder() { + if (customBuilder_ == null) { + if (!(configRuleCase_ == 2)) { + configRule_ = context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); + } + customBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.ConfigRule_Custom) configRule_, getParentForChildren(), isClean()); + configRule_ = null; + } + configRuleCase_ = 2; + onChanged(); + return customBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 aclBuilder_; + + /** + * .context.ConfigRule_ACL acl = 3; + * @return Whether the acl field is set. + */ + @java.lang.Override + public boolean hasAcl() { + return configRuleCase_ == 3; + } + + /** + * .context.ConfigRule_ACL acl = 3; + * @return The acl. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_ACL getAcl() { + if (aclBuilder_ == null) { + if (configRuleCase_ == 3) { + return (context.ContextOuterClass.ConfigRule_ACL) configRule_; + } + return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + } else { + if (configRuleCase_ == 3) { + return aclBuilder_.getMessage(); + } + return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_ACL acl = 3; + */ + public Builder setAcl(context.ContextOuterClass.ConfigRule_ACL value) { + if (aclBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configRule_ = value; + onChanged(); + } else { + aclBuilder_.setMessage(value); + } + configRuleCase_ = 3; + return this; + } + + /** + * .context.ConfigRule_ACL acl = 3; + */ + public Builder setAcl(context.ContextOuterClass.ConfigRule_ACL.Builder builderForValue) { + if (aclBuilder_ == null) { + configRule_ = builderForValue.build(); + onChanged(); + } else { + aclBuilder_.setMessage(builderForValue.build()); + } + configRuleCase_ = 3; + return this; + } + + /** + * .context.ConfigRule_ACL acl = 3; + */ + public Builder mergeAcl(context.ContextOuterClass.ConfigRule_ACL value) { + if (aclBuilder_ == null) { + if (configRuleCase_ == 3 && configRule_ != context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance()) { + configRule_ = context.ContextOuterClass.ConfigRule_ACL.newBuilder((context.ContextOuterClass.ConfigRule_ACL) configRule_).mergeFrom(value).buildPartial(); + } else { + configRule_ = value; + } + onChanged(); + } else { + if (configRuleCase_ == 3) { + aclBuilder_.mergeFrom(value); + } else { + aclBuilder_.setMessage(value); + } + } + configRuleCase_ = 3; + return this; + } + + /** + * .context.ConfigRule_ACL acl = 3; + */ + public Builder clearAcl() { + if (aclBuilder_ == null) { + if (configRuleCase_ == 3) { + configRuleCase_ = 0; + configRule_ = null; + onChanged(); + } + } else { + if (configRuleCase_ == 3) { + configRuleCase_ = 0; + configRule_ = null; + } + aclBuilder_.clear(); + } + return this; + } + + /** + * .context.ConfigRule_ACL acl = 3; + */ + public context.ContextOuterClass.ConfigRule_ACL.Builder getAclBuilder() { + return getAclFieldBuilder().getBuilder(); + } + + /** + * .context.ConfigRule_ACL acl = 3; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_ACLOrBuilder getAclOrBuilder() { + if ((configRuleCase_ == 3) && (aclBuilder_ != null)) { + return aclBuilder_.getMessageOrBuilder(); + } else { + if (configRuleCase_ == 3) { + return (context.ContextOuterClass.ConfigRule_ACL) configRule_; + } + return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_ACL acl = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getAclFieldBuilder() { + if (aclBuilder_ == null) { + if (!(configRuleCase_ == 3)) { + configRule_ = context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + } + aclBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.ConfigRule_ACL) configRule_, getParentForChildren(), isClean()); + configRule_ = null; + } + configRuleCase_ = 3; onChanged(); + return aclBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 ipLinkBuilder_; + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + * @return Whether the ipLink field is set. + */ + @java.lang.Override + public boolean hasIpLink() { + return configRuleCase_ == 4; + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + * @return The ipLink. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IP_LINK getIpLink() { + if (ipLinkBuilder_ == null) { + if (configRuleCase_ == 4) { + return (context.ContextOuterClass.ConfigRule_IP_LINK) configRule_; + } + return context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance(); + } else { + if (configRuleCase_ == 4) { + return ipLinkBuilder_.getMessage(); + } + return context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + public Builder setIpLink(context.ContextOuterClass.ConfigRule_IP_LINK value) { + if (ipLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configRule_ = value; + onChanged(); + } else { + ipLinkBuilder_.setMessage(value); + } + configRuleCase_ = 4; + return this; + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + public Builder setIpLink(context.ContextOuterClass.ConfigRule_IP_LINK.Builder builderForValue) { + if (ipLinkBuilder_ == null) { + configRule_ = builderForValue.build(); + onChanged(); + } else { + ipLinkBuilder_.setMessage(builderForValue.build()); + } + configRuleCase_ = 4; return this; } + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + public Builder mergeIpLink(context.ContextOuterClass.ConfigRule_IP_LINK value) { + if (ipLinkBuilder_ == null) { + if (configRuleCase_ == 4 && configRule_ != context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance()) { + configRule_ = context.ContextOuterClass.ConfigRule_IP_LINK.newBuilder((context.ContextOuterClass.ConfigRule_IP_LINK) configRule_).mergeFrom(value).buildPartial(); + } else { + configRule_ = value; + } + onChanged(); + } else { + if (configRuleCase_ == 4) { + ipLinkBuilder_.mergeFrom(value); + } else { + ipLinkBuilder_.setMessage(value); + } + } + configRuleCase_ = 4; + return this; + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + public Builder clearIpLink() { + if (ipLinkBuilder_ == null) { + if (configRuleCase_ == 4) { + configRuleCase_ = 0; + configRule_ = null; + onChanged(); + } + } else { + if (configRuleCase_ == 4) { + configRuleCase_ = 0; + configRule_ = null; + } + ipLinkBuilder_.clear(); + } + return this; + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + public context.ContextOuterClass.ConfigRule_IP_LINK.Builder getIpLinkBuilder() { + return getIpLinkFieldBuilder().getBuilder(); + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IP_LINKOrBuilder getIpLinkOrBuilder() { + if ((configRuleCase_ == 4) && (ipLinkBuilder_ != null)) { + return ipLinkBuilder_.getMessageOrBuilder(); + } else { + if (configRuleCase_ == 4) { + return (context.ContextOuterClass.ConfigRule_IP_LINK) configRule_; + } + return context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3 getIpLinkFieldBuilder() { + if (ipLinkBuilder_ == null) { + if (!(configRuleCase_ == 4)) { + configRule_ = context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance(); + } + ipLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.ConfigRule_IP_LINK) configRule_, getParentForChildren(), isClean()); + configRule_ = null; + } + configRuleCase_ = 4; + onChanged(); + return ipLinkBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); @@ -62043,24 +62385,24 @@ public final class ContextOuterClass { public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:context.Constraint_Custom) + // @@protoc_insertion_point(builder_scope:context.ConfigRule) } - // @@protoc_insertion_point(class_scope:context.Constraint_Custom) - private static final context.ContextOuterClass.Constraint_Custom DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:context.ConfigRule) + private static final context.ContextOuterClass.ConfigRule DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new context.ContextOuterClass.Constraint_Custom(); + DEFAULT_INSTANCE = new context.ContextOuterClass.ConfigRule(); } - public static context.ContextOuterClass.Constraint_Custom getDefaultInstance() { + public static context.ContextOuterClass.ConfigRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Constraint_Custom parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public ConfigRule parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); @@ -62075,92 +62417,156 @@ public final class ContextOuterClass { } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public context.ContextOuterClass.Constraint_Custom getDefaultInstanceForType() { + public context.ContextOuterClass.ConfigRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface Constraint_ScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:context.Constraint_Schedule) + public interface Constraint_CustomOrBuilder extends // @@protoc_insertion_point(interface_extends:context.Constraint_Custom) com.google.protobuf.MessageOrBuilder { /** - * double start_timestamp = 1; - * @return The startTimestamp. + * string constraint_type = 1; + * @return The constraintType. */ - double getStartTimestamp(); + java.lang.String getConstraintType(); /** - * float duration_days = 2; - * @return The durationDays. + * string constraint_type = 1; + * @return The bytes for constraintType. */ - float getDurationDays(); + com.google.protobuf.ByteString getConstraintTypeBytes(); + + /** + * string constraint_value = 2; + * @return The constraintValue. + */ + java.lang.String getConstraintValue(); + + /** + * string constraint_value = 2; + * @return The bytes for constraintValue. + */ + com.google.protobuf.ByteString getConstraintValueBytes(); } /** - * Protobuf type {@code context.Constraint_Schedule} + * Protobuf type {@code context.Constraint_Custom} */ - public static final class Constraint_Schedule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.Constraint_Schedule) - Constraint_ScheduleOrBuilder { + public static final class Constraint_Custom extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.Constraint_Custom) + Constraint_CustomOrBuilder { private static final long serialVersionUID = 0L; - // Use Constraint_Schedule.newBuilder() to construct. - private Constraint_Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Constraint_Custom.newBuilder() to construct. + private Constraint_Custom(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Constraint_Schedule() { + private Constraint_Custom() { + constraintType_ = ""; + constraintValue_ = ""; } @java.lang.Override @SuppressWarnings({ "unused" }) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Constraint_Schedule(); + return new Constraint_Custom(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_Constraint_Schedule_descriptor; + return context.ContextOuterClass.internal_static_context_Constraint_Custom_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_Constraint_Schedule_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.Constraint_Schedule.class, context.ContextOuterClass.Constraint_Schedule.Builder.class); + return context.ContextOuterClass.internal_static_context_Constraint_Custom_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.Constraint_Custom.class, context.ContextOuterClass.Constraint_Custom.Builder.class); } - public static final int START_TIMESTAMP_FIELD_NUMBER = 1; + public static final int CONSTRAINT_TYPE_FIELD_NUMBER = 1; - private double startTimestamp_ = 0D; + @SuppressWarnings("serial") + private volatile java.lang.Object constraintType_ = ""; /** - * double start_timestamp = 1; - * @return The startTimestamp. + * string constraint_type = 1; + * @return The constraintType. */ @java.lang.Override - public double getStartTimestamp() { - return startTimestamp_; + public java.lang.String getConstraintType() { + java.lang.Object ref = constraintType_; + 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(); + constraintType_ = s; + return s; + } } - public static final int DURATION_DAYS_FIELD_NUMBER = 2; + /** + * string constraint_type = 1; + * @return The bytes for constraintType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConstraintTypeBytes() { + java.lang.Object ref = constraintType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + constraintType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private float durationDays_ = 0F; + public static final int CONSTRAINT_VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object constraintValue_ = ""; /** - * float duration_days = 2; - * @return The durationDays. + * string constraint_value = 2; + * @return The constraintValue. */ @java.lang.Override - public float getDurationDays() { - return durationDays_; + public java.lang.String getConstraintValue() { + java.lang.Object ref = constraintValue_; + 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(); + constraintValue_ = s; + return s; + } + } + + /** + * string constraint_value = 2; + * @return The bytes for constraintValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConstraintValueBytes() { + java.lang.Object ref = constraintValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + constraintValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -62178,11 +62584,11 @@ public final class ContextOuterClass { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (java.lang.Double.doubleToRawLongBits(startTimestamp_) != 0) { - output.writeDouble(1, startTimestamp_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, constraintType_); } - if (java.lang.Float.floatToRawIntBits(durationDays_) != 0) { - output.writeFloat(2, durationDays_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, constraintValue_); } getUnknownFields().writeTo(output); } @@ -62193,11 +62599,11 @@ public final class ContextOuterClass { if (size != -1) return size; size = 0; - if (java.lang.Double.doubleToRawLongBits(startTimestamp_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, startTimestamp_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, constraintType_); } - if (java.lang.Float.floatToRawIntBits(durationDays_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, durationDays_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, constraintValue_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -62209,13 +62615,13 @@ public final class ContextOuterClass { if (obj == this) { return true; } - if (!(obj instanceof context.ContextOuterClass.Constraint_Schedule)) { + if (!(obj instanceof context.ContextOuterClass.Constraint_Custom)) { return super.equals(obj); } - context.ContextOuterClass.Constraint_Schedule other = (context.ContextOuterClass.Constraint_Schedule) obj; - if (java.lang.Double.doubleToLongBits(getStartTimestamp()) != java.lang.Double.doubleToLongBits(other.getStartTimestamp())) + context.ContextOuterClass.Constraint_Custom other = (context.ContextOuterClass.Constraint_Custom) obj; + if (!getConstraintType().equals(other.getConstraintType())) return false; - if (java.lang.Float.floatToIntBits(getDurationDays()) != java.lang.Float.floatToIntBits(other.getDurationDays())) + if (!getConstraintValue().equals(other.getConstraintValue())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -62229,60 +62635,60 @@ public final class ContextOuterClass { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + START_TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getStartTimestamp())); - hash = (37 * hash) + DURATION_DAYS_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getDurationDays()); + hash = (37 * hash) + CONSTRAINT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getConstraintType().hashCode(); + hash = (37 * hash) + CONSTRAINT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getConstraintValue().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static context.ContextOuterClass.Constraint_Schedule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Custom parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.Constraint_Schedule parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Custom parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.Constraint_Schedule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Custom parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.Constraint_Schedule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Custom 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.Constraint_Schedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Custom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.Constraint_Schedule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Custom parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.Constraint_Schedule parseFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Custom parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.Constraint_Schedule parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Custom 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.Constraint_Schedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Custom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static context.ContextOuterClass.Constraint_Schedule parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Custom 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.Constraint_Schedule parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Custom parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.Constraint_Schedule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Custom parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } @@ -62295,7 +62701,7 @@ public final class ContextOuterClass { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(context.ContextOuterClass.Constraint_Schedule prototype) { + public static Builder newBuilder(context.ContextOuterClass.Constraint_Custom prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -62311,21 +62717,21 @@ public final class ContextOuterClass { } /** - * Protobuf type {@code context.Constraint_Schedule} + * Protobuf type {@code context.Constraint_Custom} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.Constraint_Schedule) - context.ContextOuterClass.Constraint_ScheduleOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.Constraint_Custom) + context.ContextOuterClass.Constraint_CustomOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_Constraint_Schedule_descriptor; + return context.ContextOuterClass.internal_static_context_Constraint_Custom_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_Constraint_Schedule_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.Constraint_Schedule.class, context.ContextOuterClass.Constraint_Schedule.Builder.class); + return context.ContextOuterClass.internal_static_context_Constraint_Custom_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.Constraint_Custom.class, context.ContextOuterClass.Constraint_Custom.Builder.class); } - // Construct using context.ContextOuterClass.Constraint_Schedule.newBuilder() + // Construct using context.ContextOuterClass.Constraint_Custom.newBuilder() private Builder() { } @@ -62337,24 +62743,24 @@ public final class ContextOuterClass { public Builder clear() { super.clear(); bitField0_ = 0; - startTimestamp_ = 0D; - durationDays_ = 0F; + constraintType_ = ""; + constraintValue_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return context.ContextOuterClass.internal_static_context_Constraint_Schedule_descriptor; + return context.ContextOuterClass.internal_static_context_Constraint_Custom_descriptor; } @java.lang.Override - public context.ContextOuterClass.Constraint_Schedule getDefaultInstanceForType() { - return context.ContextOuterClass.Constraint_Schedule.getDefaultInstance(); + public context.ContextOuterClass.Constraint_Custom getDefaultInstanceForType() { + return context.ContextOuterClass.Constraint_Custom.getDefaultInstance(); } @java.lang.Override - public context.ContextOuterClass.Constraint_Schedule build() { - context.ContextOuterClass.Constraint_Schedule result = buildPartial(); + public context.ContextOuterClass.Constraint_Custom build() { + context.ContextOuterClass.Constraint_Custom result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -62362,8 +62768,8 @@ public final class ContextOuterClass { } @java.lang.Override - public context.ContextOuterClass.Constraint_Schedule buildPartial() { - context.ContextOuterClass.Constraint_Schedule result = new context.ContextOuterClass.Constraint_Schedule(this); + public context.ContextOuterClass.Constraint_Custom buildPartial() { + context.ContextOuterClass.Constraint_Custom result = new context.ContextOuterClass.Constraint_Custom(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -62371,34 +62777,38 @@ public final class ContextOuterClass { return result; } - private void buildPartial0(context.ContextOuterClass.Constraint_Schedule result) { + private void buildPartial0(context.ContextOuterClass.Constraint_Custom result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTimestamp_ = startTimestamp_; + result.constraintType_ = constraintType_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.durationDays_ = durationDays_; + result.constraintValue_ = constraintValue_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof context.ContextOuterClass.Constraint_Schedule) { - return mergeFrom((context.ContextOuterClass.Constraint_Schedule) other); + if (other instanceof context.ContextOuterClass.Constraint_Custom) { + return mergeFrom((context.ContextOuterClass.Constraint_Custom) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(context.ContextOuterClass.Constraint_Schedule other) { - if (other == context.ContextOuterClass.Constraint_Schedule.getDefaultInstance()) + public Builder mergeFrom(context.ContextOuterClass.Constraint_Custom other) { + if (other == context.ContextOuterClass.Constraint_Custom.getDefaultInstance()) return this; - if (other.getStartTimestamp() != 0D) { - setStartTimestamp(other.getStartTimestamp()); + if (!other.getConstraintType().isEmpty()) { + constraintType_ = other.constraintType_; + bitField0_ |= 0x00000001; + onChanged(); } - if (other.getDurationDays() != 0F) { - setDurationDays(other.getDurationDays()); + if (!other.getConstraintValue().isEmpty()) { + constraintValue_ = other.constraintValue_; + bitField0_ |= 0x00000002; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -62423,20 +62833,20 @@ public final class ContextOuterClass { case 0: done = true; break; - case 9: + case 10: { - startTimestamp_ = input.readDouble(); + constraintType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } - // case 9 - case 21: + // case 10 + case 18: { - durationDays_ = input.readFloat(); + constraintValue_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } - // case 21 + // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -62460,70 +62870,152 @@ public final class ContextOuterClass { private int bitField0_; - private double startTimestamp_; + private java.lang.Object constraintType_ = ""; /** - * double start_timestamp = 1; - * @return The startTimestamp. + * string constraint_type = 1; + * @return The constraintType. */ - @java.lang.Override - public double getStartTimestamp() { - return startTimestamp_; + public java.lang.String getConstraintType() { + java.lang.Object ref = constraintType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + constraintType_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * double start_timestamp = 1; - * @param value The startTimestamp to set. + * string constraint_type = 1; + * @return The bytes for constraintType. + */ + public com.google.protobuf.ByteString getConstraintTypeBytes() { + java.lang.Object ref = constraintType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + constraintType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string constraint_type = 1; + * @param value The constraintType to set. * @return This builder for chaining. */ - public Builder setStartTimestamp(double value) { - startTimestamp_ = value; + public Builder setConstraintType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + constraintType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * double start_timestamp = 1; + * string constraint_type = 1; * @return This builder for chaining. */ - public Builder clearStartTimestamp() { + public Builder clearConstraintType() { + constraintType_ = getDefaultInstance().getConstraintType(); bitField0_ = (bitField0_ & ~0x00000001); - startTimestamp_ = 0D; onChanged(); return this; } - private float durationDays_; + /** + * string constraint_type = 1; + * @param value The bytes for constraintType to set. + * @return This builder for chaining. + */ + public Builder setConstraintTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + constraintType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object constraintValue_ = ""; /** - * float duration_days = 2; - * @return The durationDays. + * string constraint_value = 2; + * @return The constraintValue. */ - @java.lang.Override - public float getDurationDays() { - return durationDays_; + public java.lang.String getConstraintValue() { + java.lang.Object ref = constraintValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + constraintValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * float duration_days = 2; - * @param value The durationDays to set. + * string constraint_value = 2; + * @return The bytes for constraintValue. + */ + public com.google.protobuf.ByteString getConstraintValueBytes() { + java.lang.Object ref = constraintValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + constraintValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string constraint_value = 2; + * @param value The constraintValue to set. * @return This builder for chaining. */ - public Builder setDurationDays(float value) { - durationDays_ = value; + public Builder setConstraintValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + constraintValue_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * float duration_days = 2; + * string constraint_value = 2; * @return This builder for chaining. */ - public Builder clearDurationDays() { + public Builder clearConstraintValue() { + constraintValue_ = getDefaultInstance().getConstraintValue(); bitField0_ = (bitField0_ & ~0x00000002); - durationDays_ = 0F; + onChanged(); + return this; + } + + /** + * string constraint_value = 2; + * @param value The bytes for constraintValue to set. + * @return This builder for chaining. + */ + public Builder setConstraintValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + constraintValue_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -62537,24 +63029,24 @@ public final class ContextOuterClass { public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:context.Constraint_Schedule) + // @@protoc_insertion_point(builder_scope:context.Constraint_Custom) } - // @@protoc_insertion_point(class_scope:context.Constraint_Schedule) - private static final context.ContextOuterClass.Constraint_Schedule DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:context.Constraint_Custom) + private static final context.ContextOuterClass.Constraint_Custom DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new context.ContextOuterClass.Constraint_Schedule(); + DEFAULT_INSTANCE = new context.ContextOuterClass.Constraint_Custom(); } - public static context.ContextOuterClass.Constraint_Schedule getDefaultInstance() { + public static context.ContextOuterClass.Constraint_Custom getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Constraint_Schedule parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public Constraint_Custom parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); @@ -62569,92 +63061,92 @@ public final class ContextOuterClass { } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public context.ContextOuterClass.Constraint_Schedule getDefaultInstanceForType() { + public context.ContextOuterClass.Constraint_Custom getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface GPS_PositionOrBuilder extends // @@protoc_insertion_point(interface_extends:context.GPS_Position) + public interface Constraint_ScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:context.Constraint_Schedule) com.google.protobuf.MessageOrBuilder { /** - * float latitude = 1; - * @return The latitude. + * double start_timestamp = 1; + * @return The startTimestamp. */ - float getLatitude(); + double getStartTimestamp(); /** - * float longitude = 2; - * @return The longitude. + * float duration_days = 2; + * @return The durationDays. */ - float getLongitude(); + float getDurationDays(); } /** - * Protobuf type {@code context.GPS_Position} + * Protobuf type {@code context.Constraint_Schedule} */ - public static final class GPS_Position extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.GPS_Position) - GPS_PositionOrBuilder { + public static final class Constraint_Schedule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.Constraint_Schedule) + Constraint_ScheduleOrBuilder { private static final long serialVersionUID = 0L; - // Use GPS_Position.newBuilder() to construct. - private GPS_Position(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Constraint_Schedule.newBuilder() to construct. + private Constraint_Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GPS_Position() { + private Constraint_Schedule() { } @java.lang.Override @SuppressWarnings({ "unused" }) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GPS_Position(); + return new Constraint_Schedule(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_GPS_Position_descriptor; + return context.ContextOuterClass.internal_static_context_Constraint_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_GPS_Position_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.GPS_Position.class, context.ContextOuterClass.GPS_Position.Builder.class); + return context.ContextOuterClass.internal_static_context_Constraint_Schedule_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.Constraint_Schedule.class, context.ContextOuterClass.Constraint_Schedule.Builder.class); } - public static final int LATITUDE_FIELD_NUMBER = 1; + public static final int START_TIMESTAMP_FIELD_NUMBER = 1; - private float latitude_ = 0F; + private double startTimestamp_ = 0D; /** - * float latitude = 1; - * @return The latitude. + * double start_timestamp = 1; + * @return The startTimestamp. */ @java.lang.Override - public float getLatitude() { - return latitude_; + public double getStartTimestamp() { + return startTimestamp_; } - public static final int LONGITUDE_FIELD_NUMBER = 2; + public static final int DURATION_DAYS_FIELD_NUMBER = 2; - private float longitude_ = 0F; + private float durationDays_ = 0F; /** - * float longitude = 2; - * @return The longitude. + * float duration_days = 2; + * @return The durationDays. */ @java.lang.Override - public float getLongitude() { - return longitude_; + public float getDurationDays() { + return durationDays_; } private byte memoizedIsInitialized = -1; @@ -62672,11 +63164,11 @@ public final class ContextOuterClass { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (java.lang.Float.floatToRawIntBits(latitude_) != 0) { - output.writeFloat(1, latitude_); + if (java.lang.Double.doubleToRawLongBits(startTimestamp_) != 0) { + output.writeDouble(1, startTimestamp_); } - if (java.lang.Float.floatToRawIntBits(longitude_) != 0) { - output.writeFloat(2, longitude_); + if (java.lang.Float.floatToRawIntBits(durationDays_) != 0) { + output.writeFloat(2, durationDays_); } getUnknownFields().writeTo(output); } @@ -62687,11 +63179,11 @@ public final class ContextOuterClass { if (size != -1) return size; size = 0; - if (java.lang.Float.floatToRawIntBits(latitude_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, latitude_); + if (java.lang.Double.doubleToRawLongBits(startTimestamp_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, startTimestamp_); } - if (java.lang.Float.floatToRawIntBits(longitude_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, longitude_); + if (java.lang.Float.floatToRawIntBits(durationDays_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, durationDays_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -62703,13 +63195,13 @@ public final class ContextOuterClass { if (obj == this) { return true; } - if (!(obj instanceof context.ContextOuterClass.GPS_Position)) { + if (!(obj instanceof context.ContextOuterClass.Constraint_Schedule)) { return super.equals(obj); } - context.ContextOuterClass.GPS_Position other = (context.ContextOuterClass.GPS_Position) obj; - if (java.lang.Float.floatToIntBits(getLatitude()) != java.lang.Float.floatToIntBits(other.getLatitude())) + context.ContextOuterClass.Constraint_Schedule other = (context.ContextOuterClass.Constraint_Schedule) obj; + if (java.lang.Double.doubleToLongBits(getStartTimestamp()) != java.lang.Double.doubleToLongBits(other.getStartTimestamp())) return false; - if (java.lang.Float.floatToIntBits(getLongitude()) != java.lang.Float.floatToIntBits(other.getLongitude())) + if (java.lang.Float.floatToIntBits(getDurationDays()) != java.lang.Float.floatToIntBits(other.getDurationDays())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -62723,60 +63215,60 @@ public final class ContextOuterClass { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LATITUDE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getLatitude()); - hash = (37 * hash) + LONGITUDE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getLongitude()); + hash = (37 * hash) + START_TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getStartTimestamp())); + hash = (37 * hash) + DURATION_DAYS_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getDurationDays()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static context.ContextOuterClass.GPS_Position parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Schedule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.GPS_Position parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Schedule parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.GPS_Position parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Schedule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.GPS_Position parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Schedule 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.GPS_Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Schedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.GPS_Position parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Schedule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.GPS_Position parseFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Schedule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.GPS_Position parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Schedule 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.GPS_Position parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Schedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static context.ContextOuterClass.GPS_Position parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Schedule 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.GPS_Position parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Schedule parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.GPS_Position parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Schedule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } @@ -62789,7 +63281,7 @@ public final class ContextOuterClass { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(context.ContextOuterClass.GPS_Position prototype) { + public static Builder newBuilder(context.ContextOuterClass.Constraint_Schedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -62805,21 +63297,21 @@ public final class ContextOuterClass { } /** - * Protobuf type {@code context.GPS_Position} + * Protobuf type {@code context.Constraint_Schedule} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.GPS_Position) - context.ContextOuterClass.GPS_PositionOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.Constraint_Schedule) + context.ContextOuterClass.Constraint_ScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_GPS_Position_descriptor; + return context.ContextOuterClass.internal_static_context_Constraint_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_GPS_Position_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.GPS_Position.class, context.ContextOuterClass.GPS_Position.Builder.class); + return context.ContextOuterClass.internal_static_context_Constraint_Schedule_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.Constraint_Schedule.class, context.ContextOuterClass.Constraint_Schedule.Builder.class); } - // Construct using context.ContextOuterClass.GPS_Position.newBuilder() + // Construct using context.ContextOuterClass.Constraint_Schedule.newBuilder() private Builder() { } @@ -62831,24 +63323,24 @@ public final class ContextOuterClass { public Builder clear() { super.clear(); bitField0_ = 0; - latitude_ = 0F; - longitude_ = 0F; + startTimestamp_ = 0D; + durationDays_ = 0F; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return context.ContextOuterClass.internal_static_context_GPS_Position_descriptor; + return context.ContextOuterClass.internal_static_context_Constraint_Schedule_descriptor; } @java.lang.Override - public context.ContextOuterClass.GPS_Position getDefaultInstanceForType() { - return context.ContextOuterClass.GPS_Position.getDefaultInstance(); + public context.ContextOuterClass.Constraint_Schedule getDefaultInstanceForType() { + return context.ContextOuterClass.Constraint_Schedule.getDefaultInstance(); } @java.lang.Override - public context.ContextOuterClass.GPS_Position build() { - context.ContextOuterClass.GPS_Position result = buildPartial(); + public context.ContextOuterClass.Constraint_Schedule build() { + context.ContextOuterClass.Constraint_Schedule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -62856,8 +63348,8 @@ public final class ContextOuterClass { } @java.lang.Override - public context.ContextOuterClass.GPS_Position buildPartial() { - context.ContextOuterClass.GPS_Position result = new context.ContextOuterClass.GPS_Position(this); + public context.ContextOuterClass.Constraint_Schedule buildPartial() { + context.ContextOuterClass.Constraint_Schedule result = new context.ContextOuterClass.Constraint_Schedule(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -62865,34 +63357,34 @@ public final class ContextOuterClass { return result; } - private void buildPartial0(context.ContextOuterClass.GPS_Position result) { + private void buildPartial0(context.ContextOuterClass.Constraint_Schedule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.latitude_ = latitude_; + result.startTimestamp_ = startTimestamp_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.longitude_ = longitude_; + result.durationDays_ = durationDays_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof context.ContextOuterClass.GPS_Position) { - return mergeFrom((context.ContextOuterClass.GPS_Position) other); + if (other instanceof context.ContextOuterClass.Constraint_Schedule) { + return mergeFrom((context.ContextOuterClass.Constraint_Schedule) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(context.ContextOuterClass.GPS_Position other) { - if (other == context.ContextOuterClass.GPS_Position.getDefaultInstance()) + public Builder mergeFrom(context.ContextOuterClass.Constraint_Schedule other) { + if (other == context.ContextOuterClass.Constraint_Schedule.getDefaultInstance()) return this; - if (other.getLatitude() != 0F) { - setLatitude(other.getLatitude()); + if (other.getStartTimestamp() != 0D) { + setStartTimestamp(other.getStartTimestamp()); } - if (other.getLongitude() != 0F) { - setLongitude(other.getLongitude()); + if (other.getDurationDays() != 0F) { + setDurationDays(other.getDurationDays()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -62917,16 +63409,16 @@ public final class ContextOuterClass { case 0: done = true; break; - case 13: + case 9: { - latitude_ = input.readFloat(); + startTimestamp_ = input.readDouble(); bitField0_ |= 0x00000001; break; } - // case 13 + // case 9 case 21: { - longitude_ = input.readFloat(); + durationDays_ = input.readFloat(); bitField0_ |= 0x00000002; break; } @@ -62954,70 +63446,70 @@ public final class ContextOuterClass { private int bitField0_; - private float latitude_; + private double startTimestamp_; /** - * float latitude = 1; - * @return The latitude. + * double start_timestamp = 1; + * @return The startTimestamp. */ @java.lang.Override - public float getLatitude() { - return latitude_; + public double getStartTimestamp() { + return startTimestamp_; } /** - * float latitude = 1; - * @param value The latitude to set. + * double start_timestamp = 1; + * @param value The startTimestamp to set. * @return This builder for chaining. */ - public Builder setLatitude(float value) { - latitude_ = value; + public Builder setStartTimestamp(double value) { + startTimestamp_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * float latitude = 1; + * double start_timestamp = 1; * @return This builder for chaining. */ - public Builder clearLatitude() { + public Builder clearStartTimestamp() { bitField0_ = (bitField0_ & ~0x00000001); - latitude_ = 0F; + startTimestamp_ = 0D; onChanged(); return this; } - private float longitude_; + private float durationDays_; /** - * float longitude = 2; - * @return The longitude. + * float duration_days = 2; + * @return The durationDays. */ @java.lang.Override - public float getLongitude() { - return longitude_; + public float getDurationDays() { + return durationDays_; } /** - * float longitude = 2; - * @param value The longitude to set. + * float duration_days = 2; + * @param value The durationDays to set. * @return This builder for chaining. */ - public Builder setLongitude(float value) { - longitude_ = value; + public Builder setDurationDays(float value) { + durationDays_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * float longitude = 2; + * float duration_days = 2; * @return This builder for chaining. */ - public Builder clearLongitude() { + public Builder clearDurationDays() { bitField0_ = (bitField0_ & ~0x00000002); - longitude_ = 0F; + durationDays_ = 0F; onChanged(); return this; } @@ -63031,24 +63523,24 @@ public final class ContextOuterClass { public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:context.GPS_Position) + // @@protoc_insertion_point(builder_scope:context.Constraint_Schedule) } - // @@protoc_insertion_point(class_scope:context.GPS_Position) - private static final context.ContextOuterClass.GPS_Position DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:context.Constraint_Schedule) + private static final context.ContextOuterClass.Constraint_Schedule DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new context.ContextOuterClass.GPS_Position(); + DEFAULT_INSTANCE = new context.ContextOuterClass.Constraint_Schedule(); } - public static context.ContextOuterClass.GPS_Position getDefaultInstance() { + public static context.ContextOuterClass.Constraint_Schedule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public GPS_Position parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public Constraint_Schedule parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); @@ -63063,68 +63555,562 @@ public final class ContextOuterClass { } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public context.ContextOuterClass.GPS_Position getDefaultInstanceForType() { + public context.ContextOuterClass.Constraint_Schedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface LocationOrBuilder extends // @@protoc_insertion_point(interface_extends:context.Location) + public interface GPS_PositionOrBuilder extends // @@protoc_insertion_point(interface_extends:context.GPS_Position) com.google.protobuf.MessageOrBuilder { /** - * string region = 1; - * @return Whether the region field is set. + * float latitude = 1; + * @return The latitude. */ - boolean hasRegion(); + float getLatitude(); /** - * string region = 1; - * @return The region. + * float longitude = 2; + * @return The longitude. */ - java.lang.String getRegion(); + float getLongitude(); + } - /** - * string region = 1; - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); + /** + * Protobuf type {@code context.GPS_Position} + */ + public static final class GPS_Position extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.GPS_Position) + GPS_PositionOrBuilder { - /** - * .context.GPS_Position gps_position = 2; - * @return Whether the gpsPosition field is set. - */ - boolean hasGpsPosition(); + private static final long serialVersionUID = 0L; - /** - * .context.GPS_Position gps_position = 2; - * @return The gpsPosition. - */ - context.ContextOuterClass.GPS_Position getGpsPosition(); + // Use GPS_Position.newBuilder() to construct. + private GPS_Position(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - /** - * .context.GPS_Position gps_position = 2; - */ - context.ContextOuterClass.GPS_PositionOrBuilder getGpsPositionOrBuilder(); + private GPS_Position() { + } - /** - * string interface = 3; - * @return Whether the interface field is set. - */ - boolean hasInterface(); + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GPS_Position(); + } - /** - * string interface = 3; - * @return The interface. + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_GPS_Position_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_GPS_Position_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.GPS_Position.class, context.ContextOuterClass.GPS_Position.Builder.class); + } + + public static final int LATITUDE_FIELD_NUMBER = 1; + + private float latitude_ = 0F; + + /** + * float latitude = 1; + * @return The latitude. + */ + @java.lang.Override + public float getLatitude() { + return latitude_; + } + + public static final int LONGITUDE_FIELD_NUMBER = 2; + + private float longitude_ = 0F; + + /** + * float longitude = 2; + * @return The longitude. + */ + @java.lang.Override + public float getLongitude() { + return longitude_; + } + + 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 (java.lang.Float.floatToRawIntBits(latitude_) != 0) { + output.writeFloat(1, latitude_); + } + if (java.lang.Float.floatToRawIntBits(longitude_) != 0) { + output.writeFloat(2, longitude_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (java.lang.Float.floatToRawIntBits(latitude_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, latitude_); + } + if (java.lang.Float.floatToRawIntBits(longitude_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, longitude_); + } + size += getUnknownFields().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.GPS_Position)) { + return super.equals(obj); + } + context.ContextOuterClass.GPS_Position other = (context.ContextOuterClass.GPS_Position) obj; + if (java.lang.Float.floatToIntBits(getLatitude()) != java.lang.Float.floatToIntBits(other.getLatitude())) + return false; + if (java.lang.Float.floatToIntBits(getLongitude()) != java.lang.Float.floatToIntBits(other.getLongitude())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + 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) + LATITUDE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLatitude()); + hash = (37 * hash) + LONGITUDE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLongitude()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static context.ContextOuterClass.GPS_Position parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.GPS_Position parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.GPS_Position parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.GPS_Position 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.GPS_Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.GPS_Position parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.GPS_Position parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.GPS_Position 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.GPS_Position parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.GPS_Position 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.GPS_Position parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.GPS_Position 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.GPS_Position 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.GPS_Position} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.GPS_Position) + context.ContextOuterClass.GPS_PositionOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_GPS_Position_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_GPS_Position_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.GPS_Position.class, context.ContextOuterClass.GPS_Position.Builder.class); + } + + // Construct using context.ContextOuterClass.GPS_Position.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + latitude_ = 0F; + longitude_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return context.ContextOuterClass.internal_static_context_GPS_Position_descriptor; + } + + @java.lang.Override + public context.ContextOuterClass.GPS_Position getDefaultInstanceForType() { + return context.ContextOuterClass.GPS_Position.getDefaultInstance(); + } + + @java.lang.Override + public context.ContextOuterClass.GPS_Position build() { + context.ContextOuterClass.GPS_Position result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public context.ContextOuterClass.GPS_Position buildPartial() { + context.ContextOuterClass.GPS_Position result = new context.ContextOuterClass.GPS_Position(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(context.ContextOuterClass.GPS_Position result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.latitude_ = latitude_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.longitude_ = longitude_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof context.ContextOuterClass.GPS_Position) { + return mergeFrom((context.ContextOuterClass.GPS_Position) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(context.ContextOuterClass.GPS_Position other) { + if (other == context.ContextOuterClass.GPS_Position.getDefaultInstance()) + return this; + if (other.getLatitude() != 0F) { + setLatitude(other.getLatitude()); + } + if (other.getLongitude() != 0F) { + setLongitude(other.getLongitude()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 13: + { + latitude_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } + // case 13 + case 21: + { + longitude_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } + // case 21 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private float latitude_; + + /** + * float latitude = 1; + * @return The latitude. + */ + @java.lang.Override + public float getLatitude() { + return latitude_; + } + + /** + * float latitude = 1; + * @param value The latitude to set. + * @return This builder for chaining. + */ + public Builder setLatitude(float value) { + latitude_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * float latitude = 1; + * @return This builder for chaining. + */ + public Builder clearLatitude() { + bitField0_ = (bitField0_ & ~0x00000001); + latitude_ = 0F; + onChanged(); + return this; + } + + private float longitude_; + + /** + * float longitude = 2; + * @return The longitude. + */ + @java.lang.Override + public float getLongitude() { + return longitude_; + } + + /** + * float longitude = 2; + * @param value The longitude to set. + * @return This builder for chaining. + */ + public Builder setLongitude(float value) { + longitude_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * float longitude = 2; + * @return This builder for chaining. + */ + public Builder clearLongitude() { + bitField0_ = (bitField0_ & ~0x00000002); + longitude_ = 0F; + 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.GPS_Position) + } + + // @@protoc_insertion_point(class_scope:context.GPS_Position) + private static final context.ContextOuterClass.GPS_Position DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new context.ContextOuterClass.GPS_Position(); + } + + public static context.ContextOuterClass.GPS_Position getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public GPS_Position parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public context.ContextOuterClass.GPS_Position getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LocationOrBuilder extends // @@protoc_insertion_point(interface_extends:context.Location) + com.google.protobuf.MessageOrBuilder { + + /** + * string region = 1; + * @return Whether the region field is set. + */ + boolean hasRegion(); + + /** + * string region = 1; + * @return The region. + */ + java.lang.String getRegion(); + + /** + * string region = 1; + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * .context.GPS_Position gps_position = 2; + * @return Whether the gpsPosition field is set. + */ + boolean hasGpsPosition(); + + /** + * .context.GPS_Position gps_position = 2; + * @return The gpsPosition. + */ + context.ContextOuterClass.GPS_Position getGpsPosition(); + + /** + * .context.GPS_Position gps_position = 2; + */ + context.ContextOuterClass.GPS_PositionOrBuilder getGpsPositionOrBuilder(); + + /** + * string interface = 3; + * @return Whether the interface field is set. + */ + boolean hasInterface(); + + /** + * string interface = 3; + * @return The interface. */ java.lang.String getInterface(); @@ -80748,138 +81734,4350 @@ public final class ContextOuterClass { } /** - * map<string, int32> l_slots = 8; + * map<string, int32> l_slots = 8; + */ + public Builder putAllLSlots(java.util.Map values) { + internalGetMutableLSlots().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; + return this; + } + + private com.google.protobuf.MapField sSlots_; + + private com.google.protobuf.MapField internalGetSSlots() { + if (sSlots_ == null) { + return com.google.protobuf.MapField.emptyMapField(SSlotsDefaultEntryHolder.defaultEntry); + } + return sSlots_; + } + + private com.google.protobuf.MapField internalGetMutableSSlots() { + if (sSlots_ == null) { + sSlots_ = com.google.protobuf.MapField.newMapField(SSlotsDefaultEntryHolder.defaultEntry); + } + if (!sSlots_.isMutable()) { + sSlots_ = sSlots_.copy(); + } + bitField0_ |= 0x00000100; + onChanged(); + return sSlots_; + } + + public int getSSlotsCount() { + return internalGetSSlots().getMap().size(); + } + + /** + * map<string, int32> s_slots = 9; + */ + @java.lang.Override + public boolean containsSSlots(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetSSlots().getMap().containsKey(key); + } + + /** + * Use {@link #getSSlotsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSSlots() { + return getSSlotsMap(); + } + + /** + * map<string, int32> s_slots = 9; + */ + @java.lang.Override + public java.util.Map getSSlotsMap() { + return internalGetSSlots().getMap(); + } + + /** + * map<string, int32> s_slots = 9; + */ + @java.lang.Override + public int getSSlotsOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSSlots().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * map<string, int32> s_slots = 9; + */ + @java.lang.Override + public int getSSlotsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSSlots().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSSlots() { + bitField0_ = (bitField0_ & ~0x00000100); + internalGetMutableSSlots().getMutableMap().clear(); + return this; + } + + /** + * map<string, int32> s_slots = 9; + */ + public Builder removeSSlots(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableSSlots().getMutableMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutableSSlots() { + bitField0_ |= 0x00000100; + return internalGetMutableSSlots().getMutableMap(); + } + + /** + * map<string, int32> s_slots = 9; + */ + public Builder putSSlots(java.lang.String key, int value) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableSSlots().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; + return this; + } + + /** + * map<string, int32> s_slots = 9; + */ + public Builder putAllSSlots(java.util.Map values) { + internalGetMutableSSlots().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; + 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.OpticalLinkDetails) + } + + // @@protoc_insertion_point(class_scope:context.OpticalLinkDetails) + private static final context.ContextOuterClass.OpticalLinkDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new context.ContextOuterClass.OpticalLinkDetails(); + } + + public static context.ContextOuterClass.OpticalLinkDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public OpticalLinkDetails parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalLinkDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OpticalLinkOrBuilder extends // @@protoc_insertion_point(interface_extends:context.OpticalLink) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * .context.OpticalLinkDetails optical_details = 2; + * @return Whether the opticalDetails field is set. + */ + boolean hasOpticalDetails(); + + /** + * .context.OpticalLinkDetails optical_details = 2; + * @return The opticalDetails. + */ + context.ContextOuterClass.OpticalLinkDetails getOpticalDetails(); + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + context.ContextOuterClass.OpticalLinkDetailsOrBuilder getOpticalDetailsOrBuilder(); + + /** + * .context.LinkId link_id = 3; + * @return Whether the linkId field is set. + */ + boolean hasLinkId(); + + /** + * .context.LinkId link_id = 3; + * @return The linkId. + */ + context.ContextOuterClass.LinkId getLinkId(); + + /** + * .context.LinkId link_id = 3; + */ + context.ContextOuterClass.LinkIdOrBuilder getLinkIdOrBuilder(); + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + java.util.List getLinkEndpointIdsList(); + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + context.ContextOuterClass.EndPointId getLinkEndpointIds(int index); + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + int getLinkEndpointIdsCount(); + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + java.util.List getLinkEndpointIdsOrBuilderList(); + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + context.ContextOuterClass.EndPointIdOrBuilder getLinkEndpointIdsOrBuilder(int index); + } + + /** + * Protobuf type {@code context.OpticalLink} + */ + public static final class OpticalLink extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.OpticalLink) + OpticalLinkOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use OpticalLink.newBuilder() to construct. + private OpticalLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OpticalLink() { + name_ = ""; + linkEndpointIds_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OpticalLink(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_OpticalLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_OpticalLink_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalLink.class, context.ContextOuterClass.OpticalLink.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * string name = 1; + * @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 = 1; + * @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 OPTICAL_DETAILS_FIELD_NUMBER = 2; + + private context.ContextOuterClass.OpticalLinkDetails opticalDetails_; + + /** + * .context.OpticalLinkDetails optical_details = 2; + * @return Whether the opticalDetails field is set. + */ + @java.lang.Override + public boolean hasOpticalDetails() { + return opticalDetails_ != null; + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + * @return The opticalDetails. + */ + @java.lang.Override + public context.ContextOuterClass.OpticalLinkDetails getOpticalDetails() { + return opticalDetails_ == null ? context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance() : opticalDetails_; + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + @java.lang.Override + public context.ContextOuterClass.OpticalLinkDetailsOrBuilder getOpticalDetailsOrBuilder() { + return opticalDetails_ == null ? context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance() : opticalDetails_; + } + + public static final int LINK_ID_FIELD_NUMBER = 3; + + private context.ContextOuterClass.LinkId linkId_; + + /** + * .context.LinkId link_id = 3; + * @return Whether the linkId field is set. + */ + @java.lang.Override + public boolean hasLinkId() { + return linkId_ != null; + } + + /** + * .context.LinkId link_id = 3; + * @return The linkId. + */ + @java.lang.Override + public context.ContextOuterClass.LinkId getLinkId() { + return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_; + } + + /** + * .context.LinkId link_id = 3; + */ + @java.lang.Override + public context.ContextOuterClass.LinkIdOrBuilder getLinkIdOrBuilder() { + return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_; + } + + public static final int LINK_ENDPOINT_IDS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List linkEndpointIds_; + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + @java.lang.Override + public java.util.List getLinkEndpointIdsList() { + return linkEndpointIds_; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + @java.lang.Override + public java.util.List getLinkEndpointIdsOrBuilderList() { + return linkEndpointIds_; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + @java.lang.Override + public int getLinkEndpointIdsCount() { + return linkEndpointIds_.size(); + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + @java.lang.Override + public context.ContextOuterClass.EndPointId getLinkEndpointIds(int index) { + return linkEndpointIds_.get(index); + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + @java.lang.Override + public context.ContextOuterClass.EndPointIdOrBuilder getLinkEndpointIdsOrBuilder(int index) { + return linkEndpointIds_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (opticalDetails_ != null) { + output.writeMessage(2, getOpticalDetails()); + } + if (linkId_ != null) { + output.writeMessage(3, getLinkId()); + } + for (int i = 0; i < linkEndpointIds_.size(); i++) { + output.writeMessage(4, linkEndpointIds_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (opticalDetails_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOpticalDetails()); + } + if (linkId_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLinkId()); + } + for (int i = 0; i < linkEndpointIds_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, linkEndpointIds_.get(i)); + } + size += getUnknownFields().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.OpticalLink)) { + return super.equals(obj); + } + context.ContextOuterClass.OpticalLink other = (context.ContextOuterClass.OpticalLink) obj; + if (!getName().equals(other.getName())) + return false; + if (hasOpticalDetails() != other.hasOpticalDetails()) + return false; + if (hasOpticalDetails()) { + if (!getOpticalDetails().equals(other.getOpticalDetails())) + return false; + } + if (hasLinkId() != other.hasLinkId()) + return false; + if (hasLinkId()) { + if (!getLinkId().equals(other.getLinkId())) + return false; + } + if (!getLinkEndpointIdsList().equals(other.getLinkEndpointIdsList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasOpticalDetails()) { + hash = (37 * hash) + OPTICAL_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getOpticalDetails().hashCode(); + } + if (hasLinkId()) { + hash = (37 * hash) + LINK_ID_FIELD_NUMBER; + hash = (53 * hash) + getLinkId().hashCode(); + } + if (getLinkEndpointIdsCount() > 0) { + hash = (37 * hash) + LINK_ENDPOINT_IDS_FIELD_NUMBER; + hash = (53 * hash) + getLinkEndpointIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static context.ContextOuterClass.OpticalLink parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalLink parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.OpticalLink parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalLink 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.OpticalLink parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalLink parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.OpticalLink parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalLink 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.OpticalLink parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalLink 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.OpticalLink parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalLink 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.OpticalLink 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.OpticalLink} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.OpticalLink) + context.ContextOuterClass.OpticalLinkOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_OpticalLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_OpticalLink_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalLink.class, context.ContextOuterClass.OpticalLink.Builder.class); + } + + // Construct using context.ContextOuterClass.OpticalLink.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + opticalDetails_ = null; + if (opticalDetailsBuilder_ != null) { + opticalDetailsBuilder_.dispose(); + opticalDetailsBuilder_ = null; + } + linkId_ = null; + if (linkIdBuilder_ != null) { + linkIdBuilder_.dispose(); + linkIdBuilder_ = null; + } + if (linkEndpointIdsBuilder_ == null) { + linkEndpointIds_ = java.util.Collections.emptyList(); + } else { + linkEndpointIds_ = null; + linkEndpointIdsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return context.ContextOuterClass.internal_static_context_OpticalLink_descriptor; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalLink getDefaultInstanceForType() { + return context.ContextOuterClass.OpticalLink.getDefaultInstance(); + } + + @java.lang.Override + public context.ContextOuterClass.OpticalLink build() { + context.ContextOuterClass.OpticalLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalLink buildPartial() { + context.ContextOuterClass.OpticalLink result = new context.ContextOuterClass.OpticalLink(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(context.ContextOuterClass.OpticalLink result) { + if (linkEndpointIdsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + linkEndpointIds_ = java.util.Collections.unmodifiableList(linkEndpointIds_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.linkEndpointIds_ = linkEndpointIds_; + } else { + result.linkEndpointIds_ = linkEndpointIdsBuilder_.build(); + } + } + + private void buildPartial0(context.ContextOuterClass.OpticalLink result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.opticalDetails_ = opticalDetailsBuilder_ == null ? opticalDetails_ : opticalDetailsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.linkId_ = linkIdBuilder_ == null ? linkId_ : linkIdBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof context.ContextOuterClass.OpticalLink) { + return mergeFrom((context.ContextOuterClass.OpticalLink) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(context.ContextOuterClass.OpticalLink other) { + if (other == context.ContextOuterClass.OpticalLink.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasOpticalDetails()) { + mergeOpticalDetails(other.getOpticalDetails()); + } + if (other.hasLinkId()) { + mergeLinkId(other.getLinkId()); + } + if (linkEndpointIdsBuilder_ == null) { + if (!other.linkEndpointIds_.isEmpty()) { + if (linkEndpointIds_.isEmpty()) { + linkEndpointIds_ = other.linkEndpointIds_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.addAll(other.linkEndpointIds_); + } + onChanged(); + } + } else { + if (!other.linkEndpointIds_.isEmpty()) { + if (linkEndpointIdsBuilder_.isEmpty()) { + linkEndpointIdsBuilder_.dispose(); + linkEndpointIdsBuilder_ = null; + linkEndpointIds_ = other.linkEndpointIds_; + bitField0_ = (bitField0_ & ~0x00000008); + linkEndpointIdsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLinkEndpointIdsFieldBuilder() : null; + } else { + linkEndpointIdsBuilder_.addAllMessages(other.linkEndpointIds_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } + // case 10 + case 18: + { + input.readMessage(getOpticalDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } + // case 18 + case 26: + { + input.readMessage(getLinkIdFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } + // case 26 + case 34: + { + context.ContextOuterClass.EndPointId m = input.readMessage(context.ContextOuterClass.EndPointId.parser(), extensionRegistry); + if (linkEndpointIdsBuilder_ == null) { + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.add(m); + } else { + linkEndpointIdsBuilder_.addMessage(m); + } + break; + } + // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * string name = 1; + * @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 = 1; + * @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 = 1; + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * string name = 1; + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private context.ContextOuterClass.OpticalLinkDetails opticalDetails_; + + private com.google.protobuf.SingleFieldBuilderV3 opticalDetailsBuilder_; + + /** + * .context.OpticalLinkDetails optical_details = 2; + * @return Whether the opticalDetails field is set. + */ + public boolean hasOpticalDetails() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + * @return The opticalDetails. + */ + public context.ContextOuterClass.OpticalLinkDetails getOpticalDetails() { + if (opticalDetailsBuilder_ == null) { + return opticalDetails_ == null ? context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance() : opticalDetails_; + } else { + return opticalDetailsBuilder_.getMessage(); + } + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + public Builder setOpticalDetails(context.ContextOuterClass.OpticalLinkDetails value) { + if (opticalDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + opticalDetails_ = value; + } else { + opticalDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + public Builder setOpticalDetails(context.ContextOuterClass.OpticalLinkDetails.Builder builderForValue) { + if (opticalDetailsBuilder_ == null) { + opticalDetails_ = builderForValue.build(); + } else { + opticalDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + public Builder mergeOpticalDetails(context.ContextOuterClass.OpticalLinkDetails value) { + if (opticalDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && opticalDetails_ != null && opticalDetails_ != context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance()) { + getOpticalDetailsBuilder().mergeFrom(value); + } else { + opticalDetails_ = value; + } + } else { + opticalDetailsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + public Builder clearOpticalDetails() { + bitField0_ = (bitField0_ & ~0x00000002); + opticalDetails_ = null; + if (opticalDetailsBuilder_ != null) { + opticalDetailsBuilder_.dispose(); + opticalDetailsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + public context.ContextOuterClass.OpticalLinkDetails.Builder getOpticalDetailsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getOpticalDetailsFieldBuilder().getBuilder(); + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + public context.ContextOuterClass.OpticalLinkDetailsOrBuilder getOpticalDetailsOrBuilder() { + if (opticalDetailsBuilder_ != null) { + return opticalDetailsBuilder_.getMessageOrBuilder(); + } else { + return opticalDetails_ == null ? context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance() : opticalDetails_; + } + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getOpticalDetailsFieldBuilder() { + if (opticalDetailsBuilder_ == null) { + opticalDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getOpticalDetails(), getParentForChildren(), isClean()); + opticalDetails_ = null; + } + return opticalDetailsBuilder_; + } + + private context.ContextOuterClass.LinkId linkId_; + + private com.google.protobuf.SingleFieldBuilderV3 linkIdBuilder_; + + /** + * .context.LinkId link_id = 3; + * @return Whether the linkId field is set. + */ + public boolean hasLinkId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * .context.LinkId link_id = 3; + * @return The linkId. + */ + public context.ContextOuterClass.LinkId getLinkId() { + if (linkIdBuilder_ == null) { + return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_; + } else { + return linkIdBuilder_.getMessage(); + } + } + + /** + * .context.LinkId link_id = 3; + */ + public Builder setLinkId(context.ContextOuterClass.LinkId value) { + if (linkIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + linkId_ = value; + } else { + linkIdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * .context.LinkId link_id = 3; + */ + public Builder setLinkId(context.ContextOuterClass.LinkId.Builder builderForValue) { + if (linkIdBuilder_ == null) { + linkId_ = builderForValue.build(); + } else { + linkIdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * .context.LinkId link_id = 3; + */ + public Builder mergeLinkId(context.ContextOuterClass.LinkId value) { + if (linkIdBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && linkId_ != null && linkId_ != context.ContextOuterClass.LinkId.getDefaultInstance()) { + getLinkIdBuilder().mergeFrom(value); + } else { + linkId_ = value; + } + } else { + linkIdBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * .context.LinkId link_id = 3; + */ + public Builder clearLinkId() { + bitField0_ = (bitField0_ & ~0x00000004); + linkId_ = null; + if (linkIdBuilder_ != null) { + linkIdBuilder_.dispose(); + linkIdBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.LinkId link_id = 3; + */ + public context.ContextOuterClass.LinkId.Builder getLinkIdBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getLinkIdFieldBuilder().getBuilder(); + } + + /** + * .context.LinkId link_id = 3; + */ + public context.ContextOuterClass.LinkIdOrBuilder getLinkIdOrBuilder() { + if (linkIdBuilder_ != null) { + return linkIdBuilder_.getMessageOrBuilder(); + } else { + return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_; + } + } + + /** + * .context.LinkId link_id = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getLinkIdFieldBuilder() { + if (linkIdBuilder_ == null) { + linkIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getLinkId(), getParentForChildren(), isClean()); + linkId_ = null; + } + return linkIdBuilder_; + } + + private java.util.List linkEndpointIds_ = java.util.Collections.emptyList(); + + private void ensureLinkEndpointIdsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + linkEndpointIds_ = new java.util.ArrayList(linkEndpointIds_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 linkEndpointIdsBuilder_; + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public java.util.List getLinkEndpointIdsList() { + if (linkEndpointIdsBuilder_ == null) { + return java.util.Collections.unmodifiableList(linkEndpointIds_); + } else { + return linkEndpointIdsBuilder_.getMessageList(); + } + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public int getLinkEndpointIdsCount() { + if (linkEndpointIdsBuilder_ == null) { + return linkEndpointIds_.size(); + } else { + return linkEndpointIdsBuilder_.getCount(); + } + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public context.ContextOuterClass.EndPointId getLinkEndpointIds(int index) { + if (linkEndpointIdsBuilder_ == null) { + return linkEndpointIds_.get(index); + } else { + return linkEndpointIdsBuilder_.getMessage(index); + } + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder setLinkEndpointIds(int index, context.ContextOuterClass.EndPointId value) { + if (linkEndpointIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.set(index, value); + onChanged(); + } else { + linkEndpointIdsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder setLinkEndpointIds(int index, context.ContextOuterClass.EndPointId.Builder builderForValue) { + if (linkEndpointIdsBuilder_ == null) { + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.set(index, builderForValue.build()); + onChanged(); + } else { + linkEndpointIdsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder addLinkEndpointIds(context.ContextOuterClass.EndPointId value) { + if (linkEndpointIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.add(value); + onChanged(); + } else { + linkEndpointIdsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder addLinkEndpointIds(int index, context.ContextOuterClass.EndPointId value) { + if (linkEndpointIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.add(index, value); + onChanged(); + } else { + linkEndpointIdsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder addLinkEndpointIds(context.ContextOuterClass.EndPointId.Builder builderForValue) { + if (linkEndpointIdsBuilder_ == null) { + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.add(builderForValue.build()); + onChanged(); + } else { + linkEndpointIdsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder addLinkEndpointIds(int index, context.ContextOuterClass.EndPointId.Builder builderForValue) { + if (linkEndpointIdsBuilder_ == null) { + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.add(index, builderForValue.build()); + onChanged(); + } else { + linkEndpointIdsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder addAllLinkEndpointIds(java.lang.Iterable values) { + if (linkEndpointIdsBuilder_ == null) { + ensureLinkEndpointIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, linkEndpointIds_); + onChanged(); + } else { + linkEndpointIdsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder clearLinkEndpointIds() { + if (linkEndpointIdsBuilder_ == null) { + linkEndpointIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + linkEndpointIdsBuilder_.clear(); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder removeLinkEndpointIds(int index) { + if (linkEndpointIdsBuilder_ == null) { + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.remove(index); + onChanged(); + } else { + linkEndpointIdsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public context.ContextOuterClass.EndPointId.Builder getLinkEndpointIdsBuilder(int index) { + return getLinkEndpointIdsFieldBuilder().getBuilder(index); + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public context.ContextOuterClass.EndPointIdOrBuilder getLinkEndpointIdsOrBuilder(int index) { + if (linkEndpointIdsBuilder_ == null) { + return linkEndpointIds_.get(index); + } else { + return linkEndpointIdsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public java.util.List getLinkEndpointIdsOrBuilderList() { + if (linkEndpointIdsBuilder_ != null) { + return linkEndpointIdsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(linkEndpointIds_); + } + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public context.ContextOuterClass.EndPointId.Builder addLinkEndpointIdsBuilder() { + return getLinkEndpointIdsFieldBuilder().addBuilder(context.ContextOuterClass.EndPointId.getDefaultInstance()); + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public context.ContextOuterClass.EndPointId.Builder addLinkEndpointIdsBuilder(int index) { + return getLinkEndpointIdsFieldBuilder().addBuilder(index, context.ContextOuterClass.EndPointId.getDefaultInstance()); + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public java.util.List getLinkEndpointIdsBuilderList() { + return getLinkEndpointIdsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getLinkEndpointIdsFieldBuilder() { + if (linkEndpointIdsBuilder_ == null) { + linkEndpointIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(linkEndpointIds_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + linkEndpointIds_ = null; + } + return linkEndpointIdsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:context.OpticalLink) + } + + // @@protoc_insertion_point(class_scope:context.OpticalLink) + private static final context.ContextOuterClass.OpticalLink DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new context.ContextOuterClass.OpticalLink(); + } + + public static context.ContextOuterClass.OpticalLink getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public OpticalLink parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalLink getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ChannelIdOrBuilder extends // @@protoc_insertion_point(interface_extends:context.ChannelId) + com.google.protobuf.MessageOrBuilder { + + /** + * .context.Uuid channel_uuid = 1; + * @return Whether the channelUuid field is set. + */ + boolean hasChannelUuid(); + + /** + * .context.Uuid channel_uuid = 1; + * @return The channelUuid. + */ + context.ContextOuterClass.Uuid getChannelUuid(); + + /** + * .context.Uuid channel_uuid = 1; + */ + context.ContextOuterClass.UuidOrBuilder getChannelUuidOrBuilder(); + } + + /** + * Protobuf type {@code context.ChannelId} + */ + public static final class ChannelId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.ChannelId) + ChannelIdOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use ChannelId.newBuilder() to construct. + private ChannelId(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChannelId() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChannelId(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_ChannelId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_ChannelId_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ChannelId.class, context.ContextOuterClass.ChannelId.Builder.class); + } + + public static final int CHANNEL_UUID_FIELD_NUMBER = 1; + + private context.ContextOuterClass.Uuid channelUuid_; + + /** + * .context.Uuid channel_uuid = 1; + * @return Whether the channelUuid field is set. + */ + @java.lang.Override + public boolean hasChannelUuid() { + return channelUuid_ != null; + } + + /** + * .context.Uuid channel_uuid = 1; + * @return The channelUuid. + */ + @java.lang.Override + public context.ContextOuterClass.Uuid getChannelUuid() { + return channelUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : channelUuid_; + } + + /** + * .context.Uuid channel_uuid = 1; + */ + @java.lang.Override + public context.ContextOuterClass.UuidOrBuilder getChannelUuidOrBuilder() { + return channelUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : channelUuid_; + } + + 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 (channelUuid_ != null) { + output.writeMessage(1, getChannelUuid()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (channelUuid_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getChannelUuid()); + } + size += getUnknownFields().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.ChannelId)) { + return super.equals(obj); + } + context.ContextOuterClass.ChannelId other = (context.ContextOuterClass.ChannelId) obj; + if (hasChannelUuid() != other.hasChannelUuid()) + return false; + if (hasChannelUuid()) { + if (!getChannelUuid().equals(other.getChannelUuid())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasChannelUuid()) { + hash = (37 * hash) + CHANNEL_UUID_FIELD_NUMBER; + hash = (53 * hash) + getChannelUuid().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static context.ContextOuterClass.ChannelId parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ChannelId parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.ChannelId parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ChannelId 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.ChannelId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ChannelId parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.ChannelId parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ChannelId 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.ChannelId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ChannelId 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.ChannelId parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ChannelId 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.ChannelId 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.ChannelId} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.ChannelId) + context.ContextOuterClass.ChannelIdOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_ChannelId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_ChannelId_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ChannelId.class, context.ContextOuterClass.ChannelId.Builder.class); + } + + // Construct using context.ContextOuterClass.ChannelId.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + channelUuid_ = null; + if (channelUuidBuilder_ != null) { + channelUuidBuilder_.dispose(); + channelUuidBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return context.ContextOuterClass.internal_static_context_ChannelId_descriptor; + } + + @java.lang.Override + public context.ContextOuterClass.ChannelId getDefaultInstanceForType() { + return context.ContextOuterClass.ChannelId.getDefaultInstance(); + } + + @java.lang.Override + public context.ContextOuterClass.ChannelId build() { + context.ContextOuterClass.ChannelId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public context.ContextOuterClass.ChannelId buildPartial() { + context.ContextOuterClass.ChannelId result = new context.ContextOuterClass.ChannelId(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(context.ContextOuterClass.ChannelId result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.channelUuid_ = channelUuidBuilder_ == null ? channelUuid_ : channelUuidBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof context.ContextOuterClass.ChannelId) { + return mergeFrom((context.ContextOuterClass.ChannelId) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(context.ContextOuterClass.ChannelId other) { + if (other == context.ContextOuterClass.ChannelId.getDefaultInstance()) + return this; + if (other.hasChannelUuid()) { + mergeChannelUuid(other.getChannelUuid()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getChannelUuidFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } + // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private context.ContextOuterClass.Uuid channelUuid_; + + private com.google.protobuf.SingleFieldBuilderV3 channelUuidBuilder_; + + /** + * .context.Uuid channel_uuid = 1; + * @return Whether the channelUuid field is set. + */ + public boolean hasChannelUuid() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * .context.Uuid channel_uuid = 1; + * @return The channelUuid. + */ + public context.ContextOuterClass.Uuid getChannelUuid() { + if (channelUuidBuilder_ == null) { + return channelUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : channelUuid_; + } else { + return channelUuidBuilder_.getMessage(); + } + } + + /** + * .context.Uuid channel_uuid = 1; + */ + public Builder setChannelUuid(context.ContextOuterClass.Uuid value) { + if (channelUuidBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + channelUuid_ = value; + } else { + channelUuidBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.Uuid channel_uuid = 1; + */ + public Builder setChannelUuid(context.ContextOuterClass.Uuid.Builder builderForValue) { + if (channelUuidBuilder_ == null) { + channelUuid_ = builderForValue.build(); + } else { + channelUuidBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.Uuid channel_uuid = 1; + */ + public Builder mergeChannelUuid(context.ContextOuterClass.Uuid value) { + if (channelUuidBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && channelUuid_ != null && channelUuid_ != context.ContextOuterClass.Uuid.getDefaultInstance()) { + getChannelUuidBuilder().mergeFrom(value); + } else { + channelUuid_ = value; + } + } else { + channelUuidBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.Uuid channel_uuid = 1; + */ + public Builder clearChannelUuid() { + bitField0_ = (bitField0_ & ~0x00000001); + channelUuid_ = null; + if (channelUuidBuilder_ != null) { + channelUuidBuilder_.dispose(); + channelUuidBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.Uuid channel_uuid = 1; + */ + public context.ContextOuterClass.Uuid.Builder getChannelUuidBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getChannelUuidFieldBuilder().getBuilder(); + } + + /** + * .context.Uuid channel_uuid = 1; + */ + public context.ContextOuterClass.UuidOrBuilder getChannelUuidOrBuilder() { + if (channelUuidBuilder_ != null) { + return channelUuidBuilder_.getMessageOrBuilder(); + } else { + return channelUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : channelUuid_; + } + } + + /** + * .context.Uuid channel_uuid = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getChannelUuidFieldBuilder() { + if (channelUuidBuilder_ == null) { + channelUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getChannelUuid(), getParentForChildren(), isClean()); + channelUuid_ = null; + } + return channelUuidBuilder_; + } + + @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.ChannelId) + } + + // @@protoc_insertion_point(class_scope:context.ChannelId) + private static final context.ContextOuterClass.ChannelId DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new context.ContextOuterClass.ChannelId(); + } + + public static context.ContextOuterClass.ChannelId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public ChannelId parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public context.ContextOuterClass.ChannelId getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OpticalBandIdOrBuilder extends // @@protoc_insertion_point(interface_extends:context.OpticalBandId) + com.google.protobuf.MessageOrBuilder { + + /** + * .context.Uuid opticalband_uuid = 1; + * @return Whether the opticalbandUuid field is set. + */ + boolean hasOpticalbandUuid(); + + /** + * .context.Uuid opticalband_uuid = 1; + * @return The opticalbandUuid. + */ + context.ContextOuterClass.Uuid getOpticalbandUuid(); + + /** + * .context.Uuid opticalband_uuid = 1; + */ + context.ContextOuterClass.UuidOrBuilder getOpticalbandUuidOrBuilder(); + } + + /** + * Protobuf type {@code context.OpticalBandId} + */ + public static final class OpticalBandId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.OpticalBandId) + OpticalBandIdOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use OpticalBandId.newBuilder() to construct. + private OpticalBandId(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OpticalBandId() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OpticalBandId(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_OpticalBandId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_OpticalBandId_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalBandId.class, context.ContextOuterClass.OpticalBandId.Builder.class); + } + + public static final int OPTICALBAND_UUID_FIELD_NUMBER = 1; + + private context.ContextOuterClass.Uuid opticalbandUuid_; + + /** + * .context.Uuid opticalband_uuid = 1; + * @return Whether the opticalbandUuid field is set. + */ + @java.lang.Override + public boolean hasOpticalbandUuid() { + return opticalbandUuid_ != null; + } + + /** + * .context.Uuid opticalband_uuid = 1; + * @return The opticalbandUuid. + */ + @java.lang.Override + public context.ContextOuterClass.Uuid getOpticalbandUuid() { + return opticalbandUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : opticalbandUuid_; + } + + /** + * .context.Uuid opticalband_uuid = 1; + */ + @java.lang.Override + public context.ContextOuterClass.UuidOrBuilder getOpticalbandUuidOrBuilder() { + return opticalbandUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : opticalbandUuid_; + } + + 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 (opticalbandUuid_ != null) { + output.writeMessage(1, getOpticalbandUuid()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (opticalbandUuid_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOpticalbandUuid()); + } + size += getUnknownFields().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.OpticalBandId)) { + return super.equals(obj); + } + context.ContextOuterClass.OpticalBandId other = (context.ContextOuterClass.OpticalBandId) obj; + if (hasOpticalbandUuid() != other.hasOpticalbandUuid()) + return false; + if (hasOpticalbandUuid()) { + if (!getOpticalbandUuid().equals(other.getOpticalbandUuid())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOpticalbandUuid()) { + hash = (37 * hash) + OPTICALBAND_UUID_FIELD_NUMBER; + hash = (53 * hash) + getOpticalbandUuid().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static context.ContextOuterClass.OpticalBandId parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalBandId parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.OpticalBandId parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalBandId 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.OpticalBandId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalBandId parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.OpticalBandId parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalBandId 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.OpticalBandId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalBandId 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.OpticalBandId parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalBandId 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.OpticalBandId 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.OpticalBandId} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.OpticalBandId) + context.ContextOuterClass.OpticalBandIdOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_OpticalBandId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_OpticalBandId_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalBandId.class, context.ContextOuterClass.OpticalBandId.Builder.class); + } + + // Construct using context.ContextOuterClass.OpticalBandId.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + opticalbandUuid_ = null; + if (opticalbandUuidBuilder_ != null) { + opticalbandUuidBuilder_.dispose(); + opticalbandUuidBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return context.ContextOuterClass.internal_static_context_OpticalBandId_descriptor; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalBandId getDefaultInstanceForType() { + return context.ContextOuterClass.OpticalBandId.getDefaultInstance(); + } + + @java.lang.Override + public context.ContextOuterClass.OpticalBandId build() { + context.ContextOuterClass.OpticalBandId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalBandId buildPartial() { + context.ContextOuterClass.OpticalBandId result = new context.ContextOuterClass.OpticalBandId(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(context.ContextOuterClass.OpticalBandId result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.opticalbandUuid_ = opticalbandUuidBuilder_ == null ? opticalbandUuid_ : opticalbandUuidBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof context.ContextOuterClass.OpticalBandId) { + return mergeFrom((context.ContextOuterClass.OpticalBandId) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(context.ContextOuterClass.OpticalBandId other) { + if (other == context.ContextOuterClass.OpticalBandId.getDefaultInstance()) + return this; + if (other.hasOpticalbandUuid()) { + mergeOpticalbandUuid(other.getOpticalbandUuid()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getOpticalbandUuidFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } + // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private context.ContextOuterClass.Uuid opticalbandUuid_; + + private com.google.protobuf.SingleFieldBuilderV3 opticalbandUuidBuilder_; + + /** + * .context.Uuid opticalband_uuid = 1; + * @return Whether the opticalbandUuid field is set. + */ + public boolean hasOpticalbandUuid() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * .context.Uuid opticalband_uuid = 1; + * @return The opticalbandUuid. + */ + public context.ContextOuterClass.Uuid getOpticalbandUuid() { + if (opticalbandUuidBuilder_ == null) { + return opticalbandUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : opticalbandUuid_; + } else { + return opticalbandUuidBuilder_.getMessage(); + } + } + + /** + * .context.Uuid opticalband_uuid = 1; + */ + public Builder setOpticalbandUuid(context.ContextOuterClass.Uuid value) { + if (opticalbandUuidBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + opticalbandUuid_ = value; + } else { + opticalbandUuidBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.Uuid opticalband_uuid = 1; + */ + public Builder setOpticalbandUuid(context.ContextOuterClass.Uuid.Builder builderForValue) { + if (opticalbandUuidBuilder_ == null) { + opticalbandUuid_ = builderForValue.build(); + } else { + opticalbandUuidBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.Uuid opticalband_uuid = 1; + */ + public Builder mergeOpticalbandUuid(context.ContextOuterClass.Uuid value) { + if (opticalbandUuidBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && opticalbandUuid_ != null && opticalbandUuid_ != context.ContextOuterClass.Uuid.getDefaultInstance()) { + getOpticalbandUuidBuilder().mergeFrom(value); + } else { + opticalbandUuid_ = value; + } + } else { + opticalbandUuidBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.Uuid opticalband_uuid = 1; + */ + public Builder clearOpticalbandUuid() { + bitField0_ = (bitField0_ & ~0x00000001); + opticalbandUuid_ = null; + if (opticalbandUuidBuilder_ != null) { + opticalbandUuidBuilder_.dispose(); + opticalbandUuidBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.Uuid opticalband_uuid = 1; + */ + public context.ContextOuterClass.Uuid.Builder getOpticalbandUuidBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOpticalbandUuidFieldBuilder().getBuilder(); + } + + /** + * .context.Uuid opticalband_uuid = 1; + */ + public context.ContextOuterClass.UuidOrBuilder getOpticalbandUuidOrBuilder() { + if (opticalbandUuidBuilder_ != null) { + return opticalbandUuidBuilder_.getMessageOrBuilder(); + } else { + return opticalbandUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : opticalbandUuid_; + } + } + + /** + * .context.Uuid opticalband_uuid = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getOpticalbandUuidFieldBuilder() { + if (opticalbandUuidBuilder_ == null) { + opticalbandUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getOpticalbandUuid(), getParentForChildren(), isClean()); + opticalbandUuid_ = null; + } + return opticalbandUuidBuilder_; + } + + @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.OpticalBandId) + } + + // @@protoc_insertion_point(class_scope:context.OpticalBandId) + private static final context.ContextOuterClass.OpticalBandId DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new context.ContextOuterClass.OpticalBandId(); + } + + public static context.ContextOuterClass.OpticalBandId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public OpticalBandId parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalBandId getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OpticalBandOrBuilder extends // @@protoc_insertion_point(interface_extends:context.OpticalBand) + com.google.protobuf.MessageOrBuilder { + + /** + * .context.OpticalBandId opticalband_id = 1; + * @return Whether the opticalbandId field is set. + */ + boolean hasOpticalbandId(); + + /** + * .context.OpticalBandId opticalband_id = 1; + * @return The opticalbandId. + */ + context.ContextOuterClass.OpticalBandId getOpticalbandId(); + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + context.ContextOuterClass.OpticalBandIdOrBuilder getOpticalbandIdOrBuilder(); + + /** + * .context.ConnectionId connection_id = 2; + * @return Whether the connectionId field is set. + */ + boolean hasConnectionId(); + + /** + * .context.ConnectionId connection_id = 2; + * @return The connectionId. + */ + context.ContextOuterClass.ConnectionId getConnectionId(); + + /** + * .context.ConnectionId connection_id = 2; + */ + context.ContextOuterClass.ConnectionIdOrBuilder getConnectionIdOrBuilder(); + + /** + * .context.ChannelId channel_id = 3; + * @return Whether the channelId field is set. + */ + boolean hasChannelId(); + + /** + * .context.ChannelId channel_id = 3; + * @return The channelId. + */ + context.ContextOuterClass.ChannelId getChannelId(); + + /** + * .context.ChannelId channel_id = 3; + */ + context.ContextOuterClass.ChannelIdOrBuilder getChannelIdOrBuilder(); + + /** + * .context.ServiceId service_id = 4; + * @return Whether the serviceId field is set. + */ + boolean hasServiceId(); + + /** + * .context.ServiceId service_id = 4; + * @return The serviceId. + */ + context.ContextOuterClass.ServiceId getServiceId(); + + /** + * .context.ServiceId service_id = 4; + */ + context.ContextOuterClass.ServiceIdOrBuilder getServiceIdOrBuilder(); + + /** + * .context.Service service = 5; + * @return Whether the service field is set. + */ + boolean hasService(); + + /** + * .context.Service service = 5; + * @return The service. + */ + context.ContextOuterClass.Service getService(); + + /** + * .context.Service service = 5; + */ + context.ContextOuterClass.ServiceOrBuilder getServiceOrBuilder(); + + /** + * .context.Connection connection = 6; + * @return Whether the connection field is set. + */ + boolean hasConnection(); + + /** + * .context.Connection connection = 6; + * @return The connection. + */ + context.ContextOuterClass.Connection getConnection(); + + /** + * .context.Connection connection = 6; + */ + context.ContextOuterClass.ConnectionOrBuilder getConnectionOrBuilder(); + + /** + * string channel = 7; + * @return Whether the channel field is set. + */ + boolean hasChannel(); + + /** + * string channel = 7; + * @return The channel. + */ + java.lang.String getChannel(); + + /** + * string channel = 7; + * @return The bytes for channel. + */ + com.google.protobuf.ByteString getChannelBytes(); + + context.ContextOuterClass.OpticalBand.FieldCase getFieldCase(); + } + + /** + * Protobuf type {@code context.OpticalBand} + */ + public static final class OpticalBand extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.OpticalBand) + OpticalBandOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use OpticalBand.newBuilder() to construct. + private OpticalBand(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OpticalBand() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OpticalBand(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_OpticalBand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_OpticalBand_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalBand.class, context.ContextOuterClass.OpticalBand.Builder.class); + } + + private int fieldCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object field_; + + public enum FieldCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { + + SERVICE(5), CONNECTION(6), CHANNEL(7), FIELD_NOT_SET(0); + + private final int value; + + private FieldCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FieldCase valueOf(int value) { + return forNumber(value); + } + + public static FieldCase forNumber(int value) { + switch(value) { + case 5: + return SERVICE; + case 6: + return CONNECTION; + case 7: + return CHANNEL; + case 0: + return FIELD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + } + + public FieldCase getFieldCase() { + return FieldCase.forNumber(fieldCase_); + } + + public static final int OPTICALBAND_ID_FIELD_NUMBER = 1; + + private context.ContextOuterClass.OpticalBandId opticalbandId_; + + /** + * .context.OpticalBandId opticalband_id = 1; + * @return Whether the opticalbandId field is set. + */ + @java.lang.Override + public boolean hasOpticalbandId() { + return opticalbandId_ != null; + } + + /** + * .context.OpticalBandId opticalband_id = 1; + * @return The opticalbandId. + */ + @java.lang.Override + public context.ContextOuterClass.OpticalBandId getOpticalbandId() { + return opticalbandId_ == null ? context.ContextOuterClass.OpticalBandId.getDefaultInstance() : opticalbandId_; + } + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + @java.lang.Override + public context.ContextOuterClass.OpticalBandIdOrBuilder getOpticalbandIdOrBuilder() { + return opticalbandId_ == null ? context.ContextOuterClass.OpticalBandId.getDefaultInstance() : opticalbandId_; + } + + public static final int CONNECTION_ID_FIELD_NUMBER = 2; + + private context.ContextOuterClass.ConnectionId connectionId_; + + /** + * .context.ConnectionId connection_id = 2; + * @return Whether the connectionId field is set. + */ + @java.lang.Override + public boolean hasConnectionId() { + return connectionId_ != null; + } + + /** + * .context.ConnectionId connection_id = 2; + * @return The connectionId. + */ + @java.lang.Override + public context.ContextOuterClass.ConnectionId getConnectionId() { + return connectionId_ == null ? context.ContextOuterClass.ConnectionId.getDefaultInstance() : connectionId_; + } + + /** + * .context.ConnectionId connection_id = 2; + */ + @java.lang.Override + public context.ContextOuterClass.ConnectionIdOrBuilder getConnectionIdOrBuilder() { + return connectionId_ == null ? context.ContextOuterClass.ConnectionId.getDefaultInstance() : connectionId_; + } + + public static final int CHANNEL_ID_FIELD_NUMBER = 3; + + private context.ContextOuterClass.ChannelId channelId_; + + /** + * .context.ChannelId channel_id = 3; + * @return Whether the channelId field is set. + */ + @java.lang.Override + public boolean hasChannelId() { + return channelId_ != null; + } + + /** + * .context.ChannelId channel_id = 3; + * @return The channelId. + */ + @java.lang.Override + public context.ContextOuterClass.ChannelId getChannelId() { + return channelId_ == null ? context.ContextOuterClass.ChannelId.getDefaultInstance() : channelId_; + } + + /** + * .context.ChannelId channel_id = 3; + */ + @java.lang.Override + public context.ContextOuterClass.ChannelIdOrBuilder getChannelIdOrBuilder() { + return channelId_ == null ? context.ContextOuterClass.ChannelId.getDefaultInstance() : channelId_; + } + + public static final int SERVICE_ID_FIELD_NUMBER = 4; + + private context.ContextOuterClass.ServiceId serviceId_; + + /** + * .context.ServiceId service_id = 4; + * @return Whether the serviceId field is set. + */ + @java.lang.Override + public boolean hasServiceId() { + return serviceId_ != null; + } + + /** + * .context.ServiceId service_id = 4; + * @return The serviceId. + */ + @java.lang.Override + public context.ContextOuterClass.ServiceId getServiceId() { + return serviceId_ == null ? context.ContextOuterClass.ServiceId.getDefaultInstance() : serviceId_; + } + + /** + * .context.ServiceId service_id = 4; + */ + @java.lang.Override + public context.ContextOuterClass.ServiceIdOrBuilder getServiceIdOrBuilder() { + return serviceId_ == null ? context.ContextOuterClass.ServiceId.getDefaultInstance() : serviceId_; + } + + public static final int SERVICE_FIELD_NUMBER = 5; + + /** + * .context.Service service = 5; + * @return Whether the service field is set. + */ + @java.lang.Override + public boolean hasService() { + return fieldCase_ == 5; + } + + /** + * .context.Service service = 5; + * @return The service. + */ + @java.lang.Override + public context.ContextOuterClass.Service getService() { + if (fieldCase_ == 5) { + return (context.ContextOuterClass.Service) field_; + } + return context.ContextOuterClass.Service.getDefaultInstance(); + } + + /** + * .context.Service service = 5; + */ + @java.lang.Override + public context.ContextOuterClass.ServiceOrBuilder getServiceOrBuilder() { + if (fieldCase_ == 5) { + return (context.ContextOuterClass.Service) field_; + } + return context.ContextOuterClass.Service.getDefaultInstance(); + } + + public static final int CONNECTION_FIELD_NUMBER = 6; + + /** + * .context.Connection connection = 6; + * @return Whether the connection field is set. + */ + @java.lang.Override + public boolean hasConnection() { + return fieldCase_ == 6; + } + + /** + * .context.Connection connection = 6; + * @return The connection. + */ + @java.lang.Override + public context.ContextOuterClass.Connection getConnection() { + if (fieldCase_ == 6) { + return (context.ContextOuterClass.Connection) field_; + } + return context.ContextOuterClass.Connection.getDefaultInstance(); + } + + /** + * .context.Connection connection = 6; + */ + @java.lang.Override + public context.ContextOuterClass.ConnectionOrBuilder getConnectionOrBuilder() { + if (fieldCase_ == 6) { + return (context.ContextOuterClass.Connection) field_; + } + return context.ContextOuterClass.Connection.getDefaultInstance(); + } + + public static final int CHANNEL_FIELD_NUMBER = 7; + + /** + * string channel = 7; + * @return Whether the channel field is set. + */ + public boolean hasChannel() { + return fieldCase_ == 7; + } + + /** + * string channel = 7; + * @return The channel. + */ + public java.lang.String getChannel() { + java.lang.Object ref = ""; + if (fieldCase_ == 7) { + ref = field_; + } + 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(); + if (fieldCase_ == 7) { + field_ = s; + } + return s; + } + } + + /** + * string channel = 7; + * @return The bytes for channel. + */ + public com.google.protobuf.ByteString getChannelBytes() { + java.lang.Object ref = ""; + if (fieldCase_ == 7) { + ref = field_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (fieldCase_ == 7) { + field_ = 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 (opticalbandId_ != null) { + output.writeMessage(1, getOpticalbandId()); + } + if (connectionId_ != null) { + output.writeMessage(2, getConnectionId()); + } + if (channelId_ != null) { + output.writeMessage(3, getChannelId()); + } + if (serviceId_ != null) { + output.writeMessage(4, getServiceId()); + } + if (fieldCase_ == 5) { + output.writeMessage(5, (context.ContextOuterClass.Service) field_); + } + if (fieldCase_ == 6) { + output.writeMessage(6, (context.ContextOuterClass.Connection) field_); + } + if (fieldCase_ == 7) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, field_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (opticalbandId_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOpticalbandId()); + } + if (connectionId_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnectionId()); + } + if (channelId_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getChannelId()); + } + if (serviceId_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getServiceId()); + } + if (fieldCase_ == 5) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, (context.ContextOuterClass.Service) field_); + } + if (fieldCase_ == 6) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, (context.ContextOuterClass.Connection) field_); + } + if (fieldCase_ == 7) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, field_); + } + size += getUnknownFields().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.OpticalBand)) { + return super.equals(obj); + } + context.ContextOuterClass.OpticalBand other = (context.ContextOuterClass.OpticalBand) obj; + if (hasOpticalbandId() != other.hasOpticalbandId()) + return false; + if (hasOpticalbandId()) { + if (!getOpticalbandId().equals(other.getOpticalbandId())) + return false; + } + if (hasConnectionId() != other.hasConnectionId()) + return false; + if (hasConnectionId()) { + if (!getConnectionId().equals(other.getConnectionId())) + return false; + } + if (hasChannelId() != other.hasChannelId()) + return false; + if (hasChannelId()) { + if (!getChannelId().equals(other.getChannelId())) + return false; + } + if (hasServiceId() != other.hasServiceId()) + return false; + if (hasServiceId()) { + if (!getServiceId().equals(other.getServiceId())) + return false; + } + if (!getFieldCase().equals(other.getFieldCase())) + return false; + switch(fieldCase_) { + case 5: + if (!getService().equals(other.getService())) + return false; + break; + case 6: + if (!getConnection().equals(other.getConnection())) + return false; + break; + case 7: + if (!getChannel().equals(other.getChannel())) + return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOpticalbandId()) { + hash = (37 * hash) + OPTICALBAND_ID_FIELD_NUMBER; + hash = (53 * hash) + getOpticalbandId().hashCode(); + } + if (hasConnectionId()) { + hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConnectionId().hashCode(); + } + if (hasChannelId()) { + hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getChannelId().hashCode(); + } + if (hasServiceId()) { + hash = (37 * hash) + SERVICE_ID_FIELD_NUMBER; + hash = (53 * hash) + getServiceId().hashCode(); + } + switch(fieldCase_) { + case 5: + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().hashCode(); + break; + case 6: + hash = (37 * hash) + CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getConnection().hashCode(); + break; + case 7: + hash = (37 * hash) + CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getChannel().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static context.ContextOuterClass.OpticalBand parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalBand parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.OpticalBand parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalBand 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.OpticalBand parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalBand parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.OpticalBand parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalBand 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.OpticalBand parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalBand 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.OpticalBand parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalBand 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.OpticalBand 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.OpticalBand} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.OpticalBand) + context.ContextOuterClass.OpticalBandOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_OpticalBand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_OpticalBand_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalBand.class, context.ContextOuterClass.OpticalBand.Builder.class); + } + + // Construct using context.ContextOuterClass.OpticalBand.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + opticalbandId_ = null; + if (opticalbandIdBuilder_ != null) { + opticalbandIdBuilder_.dispose(); + opticalbandIdBuilder_ = null; + } + connectionId_ = null; + if (connectionIdBuilder_ != null) { + connectionIdBuilder_.dispose(); + connectionIdBuilder_ = null; + } + channelId_ = null; + if (channelIdBuilder_ != null) { + channelIdBuilder_.dispose(); + channelIdBuilder_ = null; + } + serviceId_ = null; + if (serviceIdBuilder_ != null) { + serviceIdBuilder_.dispose(); + serviceIdBuilder_ = null; + } + if (serviceBuilder_ != null) { + serviceBuilder_.clear(); + } + if (connectionBuilder_ != null) { + connectionBuilder_.clear(); + } + fieldCase_ = 0; + field_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return context.ContextOuterClass.internal_static_context_OpticalBand_descriptor; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalBand getDefaultInstanceForType() { + return context.ContextOuterClass.OpticalBand.getDefaultInstance(); + } + + @java.lang.Override + public context.ContextOuterClass.OpticalBand build() { + context.ContextOuterClass.OpticalBand result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalBand buildPartial() { + context.ContextOuterClass.OpticalBand result = new context.ContextOuterClass.OpticalBand(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(context.ContextOuterClass.OpticalBand result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.opticalbandId_ = opticalbandIdBuilder_ == null ? opticalbandId_ : opticalbandIdBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.connectionId_ = connectionIdBuilder_ == null ? connectionId_ : connectionIdBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.channelId_ = channelIdBuilder_ == null ? channelId_ : channelIdBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceId_ = serviceIdBuilder_ == null ? serviceId_ : serviceIdBuilder_.build(); + } + } + + private void buildPartialOneofs(context.ContextOuterClass.OpticalBand result) { + result.fieldCase_ = fieldCase_; + result.field_ = this.field_; + if (fieldCase_ == 5 && serviceBuilder_ != null) { + result.field_ = serviceBuilder_.build(); + } + if (fieldCase_ == 6 && connectionBuilder_ != null) { + result.field_ = connectionBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof context.ContextOuterClass.OpticalBand) { + return mergeFrom((context.ContextOuterClass.OpticalBand) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(context.ContextOuterClass.OpticalBand other) { + if (other == context.ContextOuterClass.OpticalBand.getDefaultInstance()) + return this; + if (other.hasOpticalbandId()) { + mergeOpticalbandId(other.getOpticalbandId()); + } + if (other.hasConnectionId()) { + mergeConnectionId(other.getConnectionId()); + } + if (other.hasChannelId()) { + mergeChannelId(other.getChannelId()); + } + if (other.hasServiceId()) { + mergeServiceId(other.getServiceId()); + } + switch(other.getFieldCase()) { + case SERVICE: + { + mergeService(other.getService()); + break; + } + case CONNECTION: + { + mergeConnection(other.getConnection()); + break; + } + case CHANNEL: + { + fieldCase_ = 7; + field_ = other.field_; + onChanged(); + break; + } + case FIELD_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getOpticalbandIdFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } + // case 10 + case 18: + { + input.readMessage(getConnectionIdFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } + // case 18 + case 26: + { + input.readMessage(getChannelIdFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } + // case 26 + case 34: + { + input.readMessage(getServiceIdFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } + // case 34 + case 42: + { + input.readMessage(getServiceFieldBuilder().getBuilder(), extensionRegistry); + fieldCase_ = 5; + break; + } + // case 42 + case 50: + { + input.readMessage(getConnectionFieldBuilder().getBuilder(), extensionRegistry); + fieldCase_ = 6; + break; + } + // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + fieldCase_ = 7; + field_ = s; + break; + } + // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int fieldCase_ = 0; + + private java.lang.Object field_; + + public FieldCase getFieldCase() { + return FieldCase.forNumber(fieldCase_); + } + + public Builder clearField() { + fieldCase_ = 0; + field_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private context.ContextOuterClass.OpticalBandId opticalbandId_; + + private com.google.protobuf.SingleFieldBuilderV3 opticalbandIdBuilder_; + + /** + * .context.OpticalBandId opticalband_id = 1; + * @return Whether the opticalbandId field is set. + */ + public boolean hasOpticalbandId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * .context.OpticalBandId opticalband_id = 1; + * @return The opticalbandId. + */ + public context.ContextOuterClass.OpticalBandId getOpticalbandId() { + if (opticalbandIdBuilder_ == null) { + return opticalbandId_ == null ? context.ContextOuterClass.OpticalBandId.getDefaultInstance() : opticalbandId_; + } else { + return opticalbandIdBuilder_.getMessage(); + } + } + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + public Builder setOpticalbandId(context.ContextOuterClass.OpticalBandId value) { + if (opticalbandIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + opticalbandId_ = value; + } else { + opticalbandIdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + public Builder setOpticalbandId(context.ContextOuterClass.OpticalBandId.Builder builderForValue) { + if (opticalbandIdBuilder_ == null) { + opticalbandId_ = builderForValue.build(); + } else { + opticalbandIdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + public Builder mergeOpticalbandId(context.ContextOuterClass.OpticalBandId value) { + if (opticalbandIdBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && opticalbandId_ != null && opticalbandId_ != context.ContextOuterClass.OpticalBandId.getDefaultInstance()) { + getOpticalbandIdBuilder().mergeFrom(value); + } else { + opticalbandId_ = value; + } + } else { + opticalbandIdBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + public Builder clearOpticalbandId() { + bitField0_ = (bitField0_ & ~0x00000001); + opticalbandId_ = null; + if (opticalbandIdBuilder_ != null) { + opticalbandIdBuilder_.dispose(); + opticalbandIdBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + public context.ContextOuterClass.OpticalBandId.Builder getOpticalbandIdBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOpticalbandIdFieldBuilder().getBuilder(); + } + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + public context.ContextOuterClass.OpticalBandIdOrBuilder getOpticalbandIdOrBuilder() { + if (opticalbandIdBuilder_ != null) { + return opticalbandIdBuilder_.getMessageOrBuilder(); + } else { + return opticalbandId_ == null ? context.ContextOuterClass.OpticalBandId.getDefaultInstance() : opticalbandId_; + } + } + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getOpticalbandIdFieldBuilder() { + if (opticalbandIdBuilder_ == null) { + opticalbandIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getOpticalbandId(), getParentForChildren(), isClean()); + opticalbandId_ = null; + } + return opticalbandIdBuilder_; + } + + private context.ContextOuterClass.ConnectionId connectionId_; + + private com.google.protobuf.SingleFieldBuilderV3 connectionIdBuilder_; + + /** + * .context.ConnectionId connection_id = 2; + * @return Whether the connectionId field is set. + */ + public boolean hasConnectionId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * .context.ConnectionId connection_id = 2; + * @return The connectionId. + */ + public context.ContextOuterClass.ConnectionId getConnectionId() { + if (connectionIdBuilder_ == null) { + return connectionId_ == null ? context.ContextOuterClass.ConnectionId.getDefaultInstance() : connectionId_; + } else { + return connectionIdBuilder_.getMessage(); + } + } + + /** + * .context.ConnectionId connection_id = 2; + */ + public Builder setConnectionId(context.ContextOuterClass.ConnectionId value) { + if (connectionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectionId_ = value; + } else { + connectionIdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .context.ConnectionId connection_id = 2; + */ + public Builder setConnectionId(context.ContextOuterClass.ConnectionId.Builder builderForValue) { + if (connectionIdBuilder_ == null) { + connectionId_ = builderForValue.build(); + } else { + connectionIdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .context.ConnectionId connection_id = 2; + */ + public Builder mergeConnectionId(context.ContextOuterClass.ConnectionId value) { + if (connectionIdBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && connectionId_ != null && connectionId_ != context.ContextOuterClass.ConnectionId.getDefaultInstance()) { + getConnectionIdBuilder().mergeFrom(value); + } else { + connectionId_ = value; + } + } else { + connectionIdBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .context.ConnectionId connection_id = 2; + */ + public Builder clearConnectionId() { + bitField0_ = (bitField0_ & ~0x00000002); + connectionId_ = null; + if (connectionIdBuilder_ != null) { + connectionIdBuilder_.dispose(); + connectionIdBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.ConnectionId connection_id = 2; + */ + public context.ContextOuterClass.ConnectionId.Builder getConnectionIdBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getConnectionIdFieldBuilder().getBuilder(); + } + + /** + * .context.ConnectionId connection_id = 2; + */ + public context.ContextOuterClass.ConnectionIdOrBuilder getConnectionIdOrBuilder() { + if (connectionIdBuilder_ != null) { + return connectionIdBuilder_.getMessageOrBuilder(); + } else { + return connectionId_ == null ? context.ContextOuterClass.ConnectionId.getDefaultInstance() : connectionId_; + } + } + + /** + * .context.ConnectionId connection_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getConnectionIdFieldBuilder() { + if (connectionIdBuilder_ == null) { + connectionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getConnectionId(), getParentForChildren(), isClean()); + connectionId_ = null; + } + return connectionIdBuilder_; + } + + private context.ContextOuterClass.ChannelId channelId_; + + private com.google.protobuf.SingleFieldBuilderV3 channelIdBuilder_; + + /** + * .context.ChannelId channel_id = 3; + * @return Whether the channelId field is set. + */ + public boolean hasChannelId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * .context.ChannelId channel_id = 3; + * @return The channelId. + */ + public context.ContextOuterClass.ChannelId getChannelId() { + if (channelIdBuilder_ == null) { + return channelId_ == null ? context.ContextOuterClass.ChannelId.getDefaultInstance() : channelId_; + } else { + return channelIdBuilder_.getMessage(); + } + } + + /** + * .context.ChannelId channel_id = 3; + */ + public Builder setChannelId(context.ContextOuterClass.ChannelId value) { + if (channelIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + channelId_ = value; + } else { + channelIdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * .context.ChannelId channel_id = 3; + */ + public Builder setChannelId(context.ContextOuterClass.ChannelId.Builder builderForValue) { + if (channelIdBuilder_ == null) { + channelId_ = builderForValue.build(); + } else { + channelIdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * .context.ChannelId channel_id = 3; + */ + public Builder mergeChannelId(context.ContextOuterClass.ChannelId value) { + if (channelIdBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && channelId_ != null && channelId_ != context.ContextOuterClass.ChannelId.getDefaultInstance()) { + getChannelIdBuilder().mergeFrom(value); + } else { + channelId_ = value; + } + } else { + channelIdBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * .context.ChannelId channel_id = 3; + */ + public Builder clearChannelId() { + bitField0_ = (bitField0_ & ~0x00000004); + channelId_ = null; + if (channelIdBuilder_ != null) { + channelIdBuilder_.dispose(); + channelIdBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.ChannelId channel_id = 3; + */ + public context.ContextOuterClass.ChannelId.Builder getChannelIdBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getChannelIdFieldBuilder().getBuilder(); + } + + /** + * .context.ChannelId channel_id = 3; + */ + public context.ContextOuterClass.ChannelIdOrBuilder getChannelIdOrBuilder() { + if (channelIdBuilder_ != null) { + return channelIdBuilder_.getMessageOrBuilder(); + } else { + return channelId_ == null ? context.ContextOuterClass.ChannelId.getDefaultInstance() : channelId_; + } + } + + /** + * .context.ChannelId channel_id = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getChannelIdFieldBuilder() { + if (channelIdBuilder_ == null) { + channelIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getChannelId(), getParentForChildren(), isClean()); + channelId_ = null; + } + return channelIdBuilder_; + } + + private context.ContextOuterClass.ServiceId serviceId_; + + private com.google.protobuf.SingleFieldBuilderV3 serviceIdBuilder_; + + /** + * .context.ServiceId service_id = 4; + * @return Whether the serviceId field is set. + */ + public boolean hasServiceId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * .context.ServiceId service_id = 4; + * @return The serviceId. + */ + public context.ContextOuterClass.ServiceId getServiceId() { + if (serviceIdBuilder_ == null) { + return serviceId_ == null ? context.ContextOuterClass.ServiceId.getDefaultInstance() : serviceId_; + } else { + return serviceIdBuilder_.getMessage(); + } + } + + /** + * .context.ServiceId service_id = 4; + */ + public Builder setServiceId(context.ContextOuterClass.ServiceId value) { + if (serviceIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceId_ = value; + } else { + serviceIdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * .context.ServiceId service_id = 4; + */ + public Builder setServiceId(context.ContextOuterClass.ServiceId.Builder builderForValue) { + if (serviceIdBuilder_ == null) { + serviceId_ = builderForValue.build(); + } else { + serviceIdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * .context.ServiceId service_id = 4; + */ + public Builder mergeServiceId(context.ContextOuterClass.ServiceId value) { + if (serviceIdBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && serviceId_ != null && serviceId_ != context.ContextOuterClass.ServiceId.getDefaultInstance()) { + getServiceIdBuilder().mergeFrom(value); + } else { + serviceId_ = value; + } + } else { + serviceIdBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * .context.ServiceId service_id = 4; + */ + public Builder clearServiceId() { + bitField0_ = (bitField0_ & ~0x00000008); + serviceId_ = null; + if (serviceIdBuilder_ != null) { + serviceIdBuilder_.dispose(); + serviceIdBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.ServiceId service_id = 4; + */ + public context.ContextOuterClass.ServiceId.Builder getServiceIdBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getServiceIdFieldBuilder().getBuilder(); + } + + /** + * .context.ServiceId service_id = 4; + */ + public context.ContextOuterClass.ServiceIdOrBuilder getServiceIdOrBuilder() { + if (serviceIdBuilder_ != null) { + return serviceIdBuilder_.getMessageOrBuilder(); + } else { + return serviceId_ == null ? context.ContextOuterClass.ServiceId.getDefaultInstance() : serviceId_; + } + } + + /** + * .context.ServiceId service_id = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3 getServiceIdFieldBuilder() { + if (serviceIdBuilder_ == null) { + serviceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getServiceId(), getParentForChildren(), isClean()); + serviceId_ = null; + } + return serviceIdBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 serviceBuilder_; + + /** + * .context.Service service = 5; + * @return Whether the service field is set. + */ + @java.lang.Override + public boolean hasService() { + return fieldCase_ == 5; + } + + /** + * .context.Service service = 5; + * @return The service. + */ + @java.lang.Override + public context.ContextOuterClass.Service getService() { + if (serviceBuilder_ == null) { + if (fieldCase_ == 5) { + return (context.ContextOuterClass.Service) field_; + } + return context.ContextOuterClass.Service.getDefaultInstance(); + } else { + if (fieldCase_ == 5) { + return serviceBuilder_.getMessage(); + } + return context.ContextOuterClass.Service.getDefaultInstance(); + } + } + + /** + * .context.Service service = 5; + */ + public Builder setService(context.ContextOuterClass.Service value) { + if (serviceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; + onChanged(); + } else { + serviceBuilder_.setMessage(value); + } + fieldCase_ = 5; + return this; + } + + /** + * .context.Service service = 5; + */ + public Builder setService(context.ContextOuterClass.Service.Builder builderForValue) { + if (serviceBuilder_ == null) { + field_ = builderForValue.build(); + onChanged(); + } else { + serviceBuilder_.setMessage(builderForValue.build()); + } + fieldCase_ = 5; + return this; + } + + /** + * .context.Service service = 5; + */ + public Builder mergeService(context.ContextOuterClass.Service value) { + if (serviceBuilder_ == null) { + if (fieldCase_ == 5 && field_ != context.ContextOuterClass.Service.getDefaultInstance()) { + field_ = context.ContextOuterClass.Service.newBuilder((context.ContextOuterClass.Service) field_).mergeFrom(value).buildPartial(); + } else { + field_ = value; + } + onChanged(); + } else { + if (fieldCase_ == 5) { + serviceBuilder_.mergeFrom(value); + } else { + serviceBuilder_.setMessage(value); + } + } + fieldCase_ = 5; + return this; + } + + /** + * .context.Service service = 5; + */ + public Builder clearService() { + if (serviceBuilder_ == null) { + if (fieldCase_ == 5) { + fieldCase_ = 0; + field_ = null; + onChanged(); + } + } else { + if (fieldCase_ == 5) { + fieldCase_ = 0; + field_ = null; + } + serviceBuilder_.clear(); + } + return this; + } + + /** + * .context.Service service = 5; + */ + public context.ContextOuterClass.Service.Builder getServiceBuilder() { + return getServiceFieldBuilder().getBuilder(); + } + + /** + * .context.Service service = 5; + */ + @java.lang.Override + public context.ContextOuterClass.ServiceOrBuilder getServiceOrBuilder() { + if ((fieldCase_ == 5) && (serviceBuilder_ != null)) { + return serviceBuilder_.getMessageOrBuilder(); + } else { + if (fieldCase_ == 5) { + return (context.ContextOuterClass.Service) field_; + } + return context.ContextOuterClass.Service.getDefaultInstance(); + } + } + + /** + * .context.Service service = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3 getServiceFieldBuilder() { + if (serviceBuilder_ == null) { + if (!(fieldCase_ == 5)) { + field_ = context.ContextOuterClass.Service.getDefaultInstance(); + } + serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.Service) field_, getParentForChildren(), isClean()); + field_ = null; + } + fieldCase_ = 5; + onChanged(); + return serviceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 connectionBuilder_; + + /** + * .context.Connection connection = 6; + * @return Whether the connection field is set. + */ + @java.lang.Override + public boolean hasConnection() { + return fieldCase_ == 6; + } + + /** + * .context.Connection connection = 6; + * @return The connection. + */ + @java.lang.Override + public context.ContextOuterClass.Connection getConnection() { + if (connectionBuilder_ == null) { + if (fieldCase_ == 6) { + return (context.ContextOuterClass.Connection) field_; + } + return context.ContextOuterClass.Connection.getDefaultInstance(); + } else { + if (fieldCase_ == 6) { + return connectionBuilder_.getMessage(); + } + return context.ContextOuterClass.Connection.getDefaultInstance(); + } + } + + /** + * .context.Connection connection = 6; + */ + public Builder setConnection(context.ContextOuterClass.Connection value) { + if (connectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; + onChanged(); + } else { + connectionBuilder_.setMessage(value); + } + fieldCase_ = 6; + return this; + } + + /** + * .context.Connection connection = 6; */ - public Builder putAllLSlots(java.util.Map values) { - internalGetMutableLSlots().getMutableMap().putAll(values); - bitField0_ |= 0x00000080; + public Builder setConnection(context.ContextOuterClass.Connection.Builder builderForValue) { + if (connectionBuilder_ == null) { + field_ = builderForValue.build(); + onChanged(); + } else { + connectionBuilder_.setMessage(builderForValue.build()); + } + fieldCase_ = 6; return this; } - private com.google.protobuf.MapField sSlots_; - - private com.google.protobuf.MapField internalGetSSlots() { - if (sSlots_ == null) { - return com.google.protobuf.MapField.emptyMapField(SSlotsDefaultEntryHolder.defaultEntry); + /** + * .context.Connection connection = 6; + */ + public Builder mergeConnection(context.ContextOuterClass.Connection value) { + if (connectionBuilder_ == null) { + if (fieldCase_ == 6 && field_ != context.ContextOuterClass.Connection.getDefaultInstance()) { + field_ = context.ContextOuterClass.Connection.newBuilder((context.ContextOuterClass.Connection) field_).mergeFrom(value).buildPartial(); + } else { + field_ = value; + } + onChanged(); + } else { + if (fieldCase_ == 6) { + connectionBuilder_.mergeFrom(value); + } else { + connectionBuilder_.setMessage(value); + } } - return sSlots_; + fieldCase_ = 6; + return this; } - private com.google.protobuf.MapField internalGetMutableSSlots() { - if (sSlots_ == null) { - sSlots_ = com.google.protobuf.MapField.newMapField(SSlotsDefaultEntryHolder.defaultEntry); - } - if (!sSlots_.isMutable()) { - sSlots_ = sSlots_.copy(); + /** + * .context.Connection connection = 6; + */ + public Builder clearConnection() { + if (connectionBuilder_ == null) { + if (fieldCase_ == 6) { + fieldCase_ = 0; + field_ = null; + onChanged(); + } + } else { + if (fieldCase_ == 6) { + fieldCase_ = 0; + field_ = null; + } + connectionBuilder_.clear(); } - bitField0_ |= 0x00000100; - onChanged(); - return sSlots_; + return this; } - public int getSSlotsCount() { - return internalGetSSlots().getMap().size(); + /** + * .context.Connection connection = 6; + */ + public context.ContextOuterClass.Connection.Builder getConnectionBuilder() { + return getConnectionFieldBuilder().getBuilder(); } /** - * map<string, int32> s_slots = 9; + * .context.Connection connection = 6; */ @java.lang.Override - public boolean containsSSlots(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public context.ContextOuterClass.ConnectionOrBuilder getConnectionOrBuilder() { + if ((fieldCase_ == 6) && (connectionBuilder_ != null)) { + return connectionBuilder_.getMessageOrBuilder(); + } else { + if (fieldCase_ == 6) { + return (context.ContextOuterClass.Connection) field_; + } + return context.ContextOuterClass.Connection.getDefaultInstance(); } - return internalGetSSlots().getMap().containsKey(key); } /** - * Use {@link #getSSlotsMap()} instead. + * .context.Connection connection = 6; */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getSSlots() { - return getSSlotsMap(); + private com.google.protobuf.SingleFieldBuilderV3 getConnectionFieldBuilder() { + if (connectionBuilder_ == null) { + if (!(fieldCase_ == 6)) { + field_ = context.ContextOuterClass.Connection.getDefaultInstance(); + } + connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.Connection) field_, getParentForChildren(), isClean()); + field_ = null; + } + fieldCase_ = 6; + onChanged(); + return connectionBuilder_; } /** - * map<string, int32> s_slots = 9; + * string channel = 7; + * @return Whether the channel field is set. */ @java.lang.Override - public java.util.Map getSSlotsMap() { - return internalGetSSlots().getMap(); + public boolean hasChannel() { + return fieldCase_ == 7; } /** - * map<string, int32> s_slots = 9; + * string channel = 7; + * @return The channel. */ @java.lang.Override - public int getSSlotsOrDefault(java.lang.String key, int defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public java.lang.String getChannel() { + java.lang.Object ref = ""; + if (fieldCase_ == 7) { + ref = field_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (fieldCase_ == 7) { + field_ = s; + } + return s; + } else { + return (java.lang.String) ref; } - java.util.Map map = internalGetSSlots().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * map<string, int32> s_slots = 9; + * string channel = 7; + * @return The bytes for channel. */ @java.lang.Override - public int getSSlotsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.protobuf.ByteString getChannelBytes() { + java.lang.Object ref = ""; + if (fieldCase_ == 7) { + ref = field_; } - java.util.Map map = internalGetSSlots().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (fieldCase_ == 7) { + field_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return map.get(key); - } - - public Builder clearSSlots() { - bitField0_ = (bitField0_ & ~0x00000100); - internalGetMutableSSlots().getMutableMap().clear(); - return this; } /** - * map<string, int32> s_slots = 9; + * string channel = 7; + * @param value The channel to set. + * @return This builder for chaining. */ - public Builder removeSSlots(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setChannel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - internalGetMutableSSlots().getMutableMap().remove(key); + fieldCase_ = 7; + field_ = value; + onChanged(); return this; } /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map getMutableSSlots() { - bitField0_ |= 0x00000100; - return internalGetMutableSSlots().getMutableMap(); - } - - /** - * map<string, int32> s_slots = 9; + * string channel = 7; + * @return This builder for chaining. */ - public Builder putSSlots(java.lang.String key, int value) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder clearChannel() { + if (fieldCase_ == 7) { + fieldCase_ = 0; + field_ = null; + onChanged(); } - internalGetMutableSSlots().getMutableMap().put(key, value); - bitField0_ |= 0x00000100; return this; } /** - * map<string, int32> s_slots = 9; + * string channel = 7; + * @param value The bytes for channel to set. + * @return This builder for chaining. */ - public Builder putAllSSlots(java.util.Map values) { - internalGetMutableSSlots().getMutableMap().putAll(values); - bitField0_ |= 0x00000100; + public Builder setChannelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldCase_ = 7; + field_ = value; + onChanged(); return this; } @@ -80892,24 +86090,24 @@ public final class ContextOuterClass { public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:context.OpticalLinkDetails) + // @@protoc_insertion_point(builder_scope:context.OpticalBand) } - // @@protoc_insertion_point(class_scope:context.OpticalLinkDetails) - private static final context.ContextOuterClass.OpticalLinkDetails DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:context.OpticalBand) + private static final context.ContextOuterClass.OpticalBand DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new context.ContextOuterClass.OpticalLinkDetails(); + DEFAULT_INSTANCE = new context.ContextOuterClass.OpticalBand(); } - public static context.ContextOuterClass.OpticalLinkDetails getDefaultInstance() { + public static context.ContextOuterClass.OpticalBand getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public OpticalLinkDetails parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public OpticalBand parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); @@ -80924,270 +86122,125 @@ public final class ContextOuterClass { } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public context.ContextOuterClass.OpticalLinkDetails getDefaultInstanceForType() { + public context.ContextOuterClass.OpticalBand getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface OpticalLinkOrBuilder extends // @@protoc_insertion_point(interface_extends:context.OpticalLink) + public interface OpticalBandListOrBuilder extends // @@protoc_insertion_point(interface_extends:context.OpticalBandList) com.google.protobuf.MessageOrBuilder { /** - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - - /** - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * .context.OpticalLinkDetails optical_details = 2; - * @return Whether the opticalDetails field is set. - */ - boolean hasOpticalDetails(); - - /** - * .context.OpticalLinkDetails optical_details = 2; - * @return The opticalDetails. - */ - context.ContextOuterClass.OpticalLinkDetails getOpticalDetails(); - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - context.ContextOuterClass.OpticalLinkDetailsOrBuilder getOpticalDetailsOrBuilder(); - - /** - * .context.LinkId link_id = 3; - * @return Whether the linkId field is set. - */ - boolean hasLinkId(); - - /** - * .context.LinkId link_id = 3; - * @return The linkId. - */ - context.ContextOuterClass.LinkId getLinkId(); - - /** - * .context.LinkId link_id = 3; - */ - context.ContextOuterClass.LinkIdOrBuilder getLinkIdOrBuilder(); - - /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - java.util.List getLinkEndpointIdsList(); + java.util.List getOpticalbandsList(); /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - context.ContextOuterClass.EndPointId getLinkEndpointIds(int index); + context.ContextOuterClass.OpticalBand getOpticalbands(int index); /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - int getLinkEndpointIdsCount(); + int getOpticalbandsCount(); /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - java.util.List getLinkEndpointIdsOrBuilderList(); + java.util.List getOpticalbandsOrBuilderList(); /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - context.ContextOuterClass.EndPointIdOrBuilder getLinkEndpointIdsOrBuilder(int index); + context.ContextOuterClass.OpticalBandOrBuilder getOpticalbandsOrBuilder(int index); } /** - * Protobuf type {@code context.OpticalLink} + * Protobuf type {@code context.OpticalBandList} */ - public static final class OpticalLink extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.OpticalLink) - OpticalLinkOrBuilder { + public static final class OpticalBandList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.OpticalBandList) + OpticalBandListOrBuilder { private static final long serialVersionUID = 0L; - // Use OpticalLink.newBuilder() to construct. - private OpticalLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use OpticalBandList.newBuilder() to construct. + private OpticalBandList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OpticalLink() { - name_ = ""; - linkEndpointIds_ = java.util.Collections.emptyList(); + private OpticalBandList() { + opticalbands_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({ "unused" }) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OpticalLink(); + return new OpticalBandList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_OpticalLink_descriptor; + return context.ContextOuterClass.internal_static_context_OpticalBandList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_OpticalLink_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalLink.class, context.ContextOuterClass.OpticalLink.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * string name = 1; - * @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 = 1; - * @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 OPTICAL_DETAILS_FIELD_NUMBER = 2; - - private context.ContextOuterClass.OpticalLinkDetails opticalDetails_; - - /** - * .context.OpticalLinkDetails optical_details = 2; - * @return Whether the opticalDetails field is set. - */ - @java.lang.Override - public boolean hasOpticalDetails() { - return opticalDetails_ != null; - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - * @return The opticalDetails. - */ - @java.lang.Override - public context.ContextOuterClass.OpticalLinkDetails getOpticalDetails() { - return opticalDetails_ == null ? context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance() : opticalDetails_; - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - @java.lang.Override - public context.ContextOuterClass.OpticalLinkDetailsOrBuilder getOpticalDetailsOrBuilder() { - return opticalDetails_ == null ? context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance() : opticalDetails_; - } - - public static final int LINK_ID_FIELD_NUMBER = 3; - - private context.ContextOuterClass.LinkId linkId_; - - /** - * .context.LinkId link_id = 3; - * @return Whether the linkId field is set. - */ - @java.lang.Override - public boolean hasLinkId() { - return linkId_ != null; - } - - /** - * .context.LinkId link_id = 3; - * @return The linkId. - */ - @java.lang.Override - public context.ContextOuterClass.LinkId getLinkId() { - return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_; - } - - /** - * .context.LinkId link_id = 3; - */ - @java.lang.Override - public context.ContextOuterClass.LinkIdOrBuilder getLinkIdOrBuilder() { - return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_; + return context.ContextOuterClass.internal_static_context_OpticalBandList_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalBandList.class, context.ContextOuterClass.OpticalBandList.Builder.class); } - public static final int LINK_ENDPOINT_IDS_FIELD_NUMBER = 4; + public static final int OPTICALBANDS_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private java.util.List linkEndpointIds_; + private java.util.List opticalbands_; /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ @java.lang.Override - public java.util.List getLinkEndpointIdsList() { - return linkEndpointIds_; + public java.util.List getOpticalbandsList() { + return opticalbands_; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ @java.lang.Override - public java.util.List getLinkEndpointIdsOrBuilderList() { - return linkEndpointIds_; + public java.util.List getOpticalbandsOrBuilderList() { + return opticalbands_; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ @java.lang.Override - public int getLinkEndpointIdsCount() { - return linkEndpointIds_.size(); + public int getOpticalbandsCount() { + return opticalbands_.size(); } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ @java.lang.Override - public context.ContextOuterClass.EndPointId getLinkEndpointIds(int index) { - return linkEndpointIds_.get(index); + public context.ContextOuterClass.OpticalBand getOpticalbands(int index) { + return opticalbands_.get(index); } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ @java.lang.Override - public context.ContextOuterClass.EndPointIdOrBuilder getLinkEndpointIdsOrBuilder(int index) { - return linkEndpointIds_.get(index); + public context.ContextOuterClass.OpticalBandOrBuilder getOpticalbandsOrBuilder(int index) { + return opticalbands_.get(index); } private byte memoizedIsInitialized = -1; @@ -81205,17 +86258,8 @@ public final class ContextOuterClass { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (opticalDetails_ != null) { - output.writeMessage(2, getOpticalDetails()); - } - if (linkId_ != null) { - output.writeMessage(3, getLinkId()); - } - for (int i = 0; i < linkEndpointIds_.size(); i++) { - output.writeMessage(4, linkEndpointIds_.get(i)); + for (int i = 0; i < opticalbands_.size(); i++) { + output.writeMessage(1, opticalbands_.get(i)); } getUnknownFields().writeTo(output); } @@ -81226,17 +86270,8 @@ public final class ContextOuterClass { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (opticalDetails_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOpticalDetails()); - } - if (linkId_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLinkId()); - } - for (int i = 0; i < linkEndpointIds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, linkEndpointIds_.get(i)); + for (int i = 0; i < opticalbands_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, opticalbands_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -81248,25 +86283,11 @@ public final class ContextOuterClass { if (obj == this) { return true; } - if (!(obj instanceof context.ContextOuterClass.OpticalLink)) { + if (!(obj instanceof context.ContextOuterClass.OpticalBandList)) { return super.equals(obj); } - context.ContextOuterClass.OpticalLink other = (context.ContextOuterClass.OpticalLink) obj; - if (!getName().equals(other.getName())) - return false; - if (hasOpticalDetails() != other.hasOpticalDetails()) - return false; - if (hasOpticalDetails()) { - if (!getOpticalDetails().equals(other.getOpticalDetails())) - return false; - } - if (hasLinkId() != other.hasLinkId()) - return false; - if (hasLinkId()) { - if (!getLinkId().equals(other.getLinkId())) - return false; - } - if (!getLinkEndpointIdsList().equals(other.getLinkEndpointIdsList())) + context.ContextOuterClass.OpticalBandList other = (context.ContextOuterClass.OpticalBandList) obj; + if (!getOpticalbandsList().equals(other.getOpticalbandsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -81280,70 +86301,60 @@ public final class ContextOuterClass { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasOpticalDetails()) { - hash = (37 * hash) + OPTICAL_DETAILS_FIELD_NUMBER; - hash = (53 * hash) + getOpticalDetails().hashCode(); - } - if (hasLinkId()) { - hash = (37 * hash) + LINK_ID_FIELD_NUMBER; - hash = (53 * hash) + getLinkId().hashCode(); - } - if (getLinkEndpointIdsCount() > 0) { - hash = (37 * hash) + LINK_ENDPOINT_IDS_FIELD_NUMBER; - hash = (53 * hash) + getLinkEndpointIdsList().hashCode(); + if (getOpticalbandsCount() > 0) { + hash = (37 * hash) + OPTICALBANDS_FIELD_NUMBER; + hash = (53 * hash) + getOpticalbandsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static context.ContextOuterClass.OpticalLink parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.OpticalBandList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.OpticalLink parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.OpticalBandList parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.OpticalLink parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.OpticalBandList parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.OpticalLink parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.OpticalBandList 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.OpticalLink parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.OpticalBandList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.OpticalLink parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.OpticalBandList parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.OpticalLink parseFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.OpticalBandList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.OpticalLink parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.OpticalBandList 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.OpticalLink parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.OpticalBandList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static context.ContextOuterClass.OpticalLink parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.OpticalBandList 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.OpticalLink parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static context.ContextOuterClass.OpticalBandList parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.OpticalLink parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.OpticalBandList parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } @@ -81356,7 +86367,7 @@ public final class ContextOuterClass { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(context.ContextOuterClass.OpticalLink prototype) { + public static Builder newBuilder(context.ContextOuterClass.OpticalBandList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -81372,21 +86383,21 @@ public final class ContextOuterClass { } /** - * Protobuf type {@code context.OpticalLink} + * Protobuf type {@code context.OpticalBandList} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.OpticalLink) - context.ContextOuterClass.OpticalLinkOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.OpticalBandList) + context.ContextOuterClass.OpticalBandListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_OpticalLink_descriptor; + return context.ContextOuterClass.internal_static_context_OpticalBandList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_OpticalLink_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalLink.class, context.ContextOuterClass.OpticalLink.Builder.class); + return context.ContextOuterClass.internal_static_context_OpticalBandList_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalBandList.class, context.ContextOuterClass.OpticalBandList.Builder.class); } - // Construct using context.ContextOuterClass.OpticalLink.newBuilder() + // Construct using context.ContextOuterClass.OpticalBandList.newBuilder() private Builder() { } @@ -81398,40 +86409,29 @@ public final class ContextOuterClass { public Builder clear() { super.clear(); bitField0_ = 0; - name_ = ""; - opticalDetails_ = null; - if (opticalDetailsBuilder_ != null) { - opticalDetailsBuilder_.dispose(); - opticalDetailsBuilder_ = null; - } - linkId_ = null; - if (linkIdBuilder_ != null) { - linkIdBuilder_.dispose(); - linkIdBuilder_ = null; - } - if (linkEndpointIdsBuilder_ == null) { - linkEndpointIds_ = java.util.Collections.emptyList(); + if (opticalbandsBuilder_ == null) { + opticalbands_ = java.util.Collections.emptyList(); } else { - linkEndpointIds_ = null; - linkEndpointIdsBuilder_.clear(); + opticalbands_ = null; + opticalbandsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return context.ContextOuterClass.internal_static_context_OpticalLink_descriptor; + return context.ContextOuterClass.internal_static_context_OpticalBandList_descriptor; } @java.lang.Override - public context.ContextOuterClass.OpticalLink getDefaultInstanceForType() { - return context.ContextOuterClass.OpticalLink.getDefaultInstance(); + public context.ContextOuterClass.OpticalBandList getDefaultInstanceForType() { + return context.ContextOuterClass.OpticalBandList.getDefaultInstance(); } @java.lang.Override - public context.ContextOuterClass.OpticalLink build() { - context.ContextOuterClass.OpticalLink result = buildPartial(); + public context.ContextOuterClass.OpticalBandList build() { + context.ContextOuterClass.OpticalBandList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -81439,8 +86439,8 @@ public final class ContextOuterClass { } @java.lang.Override - public context.ContextOuterClass.OpticalLink buildPartial() { - context.ContextOuterClass.OpticalLink result = new context.ContextOuterClass.OpticalLink(this); + public context.ContextOuterClass.OpticalBandList buildPartial() { + context.ContextOuterClass.OpticalBandList result = new context.ContextOuterClass.OpticalBandList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); @@ -81449,76 +86449,56 @@ public final class ContextOuterClass { return result; } - private void buildPartialRepeatedFields(context.ContextOuterClass.OpticalLink result) { - if (linkEndpointIdsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - linkEndpointIds_ = java.util.Collections.unmodifiableList(linkEndpointIds_); - bitField0_ = (bitField0_ & ~0x00000008); + private void buildPartialRepeatedFields(context.ContextOuterClass.OpticalBandList result) { + if (opticalbandsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + opticalbands_ = java.util.Collections.unmodifiableList(opticalbands_); + bitField0_ = (bitField0_ & ~0x00000001); } - result.linkEndpointIds_ = linkEndpointIds_; + result.opticalbands_ = opticalbands_; } else { - result.linkEndpointIds_ = linkEndpointIdsBuilder_.build(); + result.opticalbands_ = opticalbandsBuilder_.build(); } } - private void buildPartial0(context.ContextOuterClass.OpticalLink result) { + private void buildPartial0(context.ContextOuterClass.OpticalBandList result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.opticalDetails_ = opticalDetailsBuilder_ == null ? opticalDetails_ : opticalDetailsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.linkId_ = linkIdBuilder_ == null ? linkId_ : linkIdBuilder_.build(); - } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof context.ContextOuterClass.OpticalLink) { - return mergeFrom((context.ContextOuterClass.OpticalLink) other); + if (other instanceof context.ContextOuterClass.OpticalBandList) { + return mergeFrom((context.ContextOuterClass.OpticalBandList) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(context.ContextOuterClass.OpticalLink other) { - if (other == context.ContextOuterClass.OpticalLink.getDefaultInstance()) + public Builder mergeFrom(context.ContextOuterClass.OpticalBandList other) { + if (other == context.ContextOuterClass.OpticalBandList.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasOpticalDetails()) { - mergeOpticalDetails(other.getOpticalDetails()); - } - if (other.hasLinkId()) { - mergeLinkId(other.getLinkId()); - } - if (linkEndpointIdsBuilder_ == null) { - if (!other.linkEndpointIds_.isEmpty()) { - if (linkEndpointIds_.isEmpty()) { - linkEndpointIds_ = other.linkEndpointIds_; - bitField0_ = (bitField0_ & ~0x00000008); + if (opticalbandsBuilder_ == null) { + if (!other.opticalbands_.isEmpty()) { + if (opticalbands_.isEmpty()) { + opticalbands_ = other.opticalbands_; + bitField0_ = (bitField0_ & ~0x00000001); } else { - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.addAll(other.linkEndpointIds_); + ensureOpticalbandsIsMutable(); + opticalbands_.addAll(other.opticalbands_); } onChanged(); } } else { - if (!other.linkEndpointIds_.isEmpty()) { - if (linkEndpointIdsBuilder_.isEmpty()) { - linkEndpointIdsBuilder_.dispose(); - linkEndpointIdsBuilder_ = null; - linkEndpointIds_ = other.linkEndpointIds_; - bitField0_ = (bitField0_ & ~0x00000008); - linkEndpointIdsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLinkEndpointIdsFieldBuilder() : null; + if (!other.opticalbands_.isEmpty()) { + if (opticalbandsBuilder_.isEmpty()) { + opticalbandsBuilder_.dispose(); + opticalbandsBuilder_ = null; + opticalbands_ = other.opticalbands_; + bitField0_ = (bitField0_ & ~0x00000001); + opticalbandsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOpticalbandsFieldBuilder() : null; } else { - linkEndpointIdsBuilder_.addAllMessages(other.linkEndpointIds_); + opticalbandsBuilder_.addAllMessages(other.opticalbands_); } } } @@ -81547,37 +86527,16 @@ public final class ContextOuterClass { break; case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } - // case 10 - case 18: - { - input.readMessage(getOpticalDetailsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } - // case 18 - case 26: - { - input.readMessage(getLinkIdFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } - // case 26 - case 34: - { - context.ContextOuterClass.EndPointId m = input.readMessage(context.ContextOuterClass.EndPointId.parser(), extensionRegistry); - if (linkEndpointIdsBuilder_ == null) { - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.add(m); + context.ContextOuterClass.OpticalBand m = input.readMessage(context.ContextOuterClass.OpticalBand.parser(), extensionRegistry); + if (opticalbandsBuilder_ == null) { + ensureOpticalbandsIsMutable(); + opticalbands_.add(m); } else { - linkEndpointIdsBuilder_.addMessage(m); + opticalbandsBuilder_.addMessage(m); } break; } - // case 34 + // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -81601,552 +86560,241 @@ public final class ContextOuterClass { private int bitField0_; - private java.lang.Object name_ = ""; - - /** - * string name = 1; - * @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 = 1; - * @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 = 1; - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * string name = 1; - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private context.ContextOuterClass.OpticalLinkDetails opticalDetails_; - - private com.google.protobuf.SingleFieldBuilderV3 opticalDetailsBuilder_; - - /** - * .context.OpticalLinkDetails optical_details = 2; - * @return Whether the opticalDetails field is set. - */ - public boolean hasOpticalDetails() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - * @return The opticalDetails. - */ - public context.ContextOuterClass.OpticalLinkDetails getOpticalDetails() { - if (opticalDetailsBuilder_ == null) { - return opticalDetails_ == null ? context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance() : opticalDetails_; - } else { - return opticalDetailsBuilder_.getMessage(); - } - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - public Builder setOpticalDetails(context.ContextOuterClass.OpticalLinkDetails value) { - if (opticalDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - opticalDetails_ = value; - } else { - opticalDetailsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - public Builder setOpticalDetails(context.ContextOuterClass.OpticalLinkDetails.Builder builderForValue) { - if (opticalDetailsBuilder_ == null) { - opticalDetails_ = builderForValue.build(); - } else { - opticalDetailsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - public Builder mergeOpticalDetails(context.ContextOuterClass.OpticalLinkDetails value) { - if (opticalDetailsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && opticalDetails_ != null && opticalDetails_ != context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance()) { - getOpticalDetailsBuilder().mergeFrom(value); - } else { - opticalDetails_ = value; - } - } else { - opticalDetailsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - public Builder clearOpticalDetails() { - bitField0_ = (bitField0_ & ~0x00000002); - opticalDetails_ = null; - if (opticalDetailsBuilder_ != null) { - opticalDetailsBuilder_.dispose(); - opticalDetailsBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - public context.ContextOuterClass.OpticalLinkDetails.Builder getOpticalDetailsBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getOpticalDetailsFieldBuilder().getBuilder(); - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - public context.ContextOuterClass.OpticalLinkDetailsOrBuilder getOpticalDetailsOrBuilder() { - if (opticalDetailsBuilder_ != null) { - return opticalDetailsBuilder_.getMessageOrBuilder(); - } else { - return opticalDetails_ == null ? context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance() : opticalDetails_; - } - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3 getOpticalDetailsFieldBuilder() { - if (opticalDetailsBuilder_ == null) { - opticalDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getOpticalDetails(), getParentForChildren(), isClean()); - opticalDetails_ = null; - } - return opticalDetailsBuilder_; - } - - private context.ContextOuterClass.LinkId linkId_; - - private com.google.protobuf.SingleFieldBuilderV3 linkIdBuilder_; - - /** - * .context.LinkId link_id = 3; - * @return Whether the linkId field is set. - */ - public boolean hasLinkId() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * .context.LinkId link_id = 3; - * @return The linkId. - */ - public context.ContextOuterClass.LinkId getLinkId() { - if (linkIdBuilder_ == null) { - return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_; - } else { - return linkIdBuilder_.getMessage(); - } - } - - /** - * .context.LinkId link_id = 3; - */ - public Builder setLinkId(context.ContextOuterClass.LinkId value) { - if (linkIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - linkId_ = value; - } else { - linkIdBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } + private java.util.List opticalbands_ = java.util.Collections.emptyList(); - /** - * .context.LinkId link_id = 3; - */ - public Builder setLinkId(context.ContextOuterClass.LinkId.Builder builderForValue) { - if (linkIdBuilder_ == null) { - linkId_ = builderForValue.build(); - } else { - linkIdBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * .context.LinkId link_id = 3; - */ - public Builder mergeLinkId(context.ContextOuterClass.LinkId value) { - if (linkIdBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && linkId_ != null && linkId_ != context.ContextOuterClass.LinkId.getDefaultInstance()) { - getLinkIdBuilder().mergeFrom(value); - } else { - linkId_ = value; - } - } else { - linkIdBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * .context.LinkId link_id = 3; - */ - public Builder clearLinkId() { - bitField0_ = (bitField0_ & ~0x00000004); - linkId_ = null; - if (linkIdBuilder_ != null) { - linkIdBuilder_.dispose(); - linkIdBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * .context.LinkId link_id = 3; - */ - public context.ContextOuterClass.LinkId.Builder getLinkIdBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getLinkIdFieldBuilder().getBuilder(); - } - - /** - * .context.LinkId link_id = 3; - */ - public context.ContextOuterClass.LinkIdOrBuilder getLinkIdOrBuilder() { - if (linkIdBuilder_ != null) { - return linkIdBuilder_.getMessageOrBuilder(); - } else { - return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_; - } - } - - /** - * .context.LinkId link_id = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3 getLinkIdFieldBuilder() { - if (linkIdBuilder_ == null) { - linkIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getLinkId(), getParentForChildren(), isClean()); - linkId_ = null; - } - return linkIdBuilder_; - } - - private java.util.List linkEndpointIds_ = java.util.Collections.emptyList(); - - private void ensureLinkEndpointIdsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - linkEndpointIds_ = new java.util.ArrayList(linkEndpointIds_); - bitField0_ |= 0x00000008; + private void ensureOpticalbandsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + opticalbands_ = new java.util.ArrayList(opticalbands_); + bitField0_ |= 0x00000001; } } - private com.google.protobuf.RepeatedFieldBuilderV3 linkEndpointIdsBuilder_; + private com.google.protobuf.RepeatedFieldBuilderV3 opticalbandsBuilder_; /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public java.util.List getLinkEndpointIdsList() { - if (linkEndpointIdsBuilder_ == null) { - return java.util.Collections.unmodifiableList(linkEndpointIds_); + public java.util.List getOpticalbandsList() { + if (opticalbandsBuilder_ == null) { + return java.util.Collections.unmodifiableList(opticalbands_); } else { - return linkEndpointIdsBuilder_.getMessageList(); + return opticalbandsBuilder_.getMessageList(); } } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public int getLinkEndpointIdsCount() { - if (linkEndpointIdsBuilder_ == null) { - return linkEndpointIds_.size(); + public int getOpticalbandsCount() { + if (opticalbandsBuilder_ == null) { + return opticalbands_.size(); } else { - return linkEndpointIdsBuilder_.getCount(); + return opticalbandsBuilder_.getCount(); } } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public context.ContextOuterClass.EndPointId getLinkEndpointIds(int index) { - if (linkEndpointIdsBuilder_ == null) { - return linkEndpointIds_.get(index); + public context.ContextOuterClass.OpticalBand getOpticalbands(int index) { + if (opticalbandsBuilder_ == null) { + return opticalbands_.get(index); } else { - return linkEndpointIdsBuilder_.getMessage(index); + return opticalbandsBuilder_.getMessage(index); } } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder setLinkEndpointIds(int index, context.ContextOuterClass.EndPointId value) { - if (linkEndpointIdsBuilder_ == null) { + public Builder setOpticalbands(int index, context.ContextOuterClass.OpticalBand value) { + if (opticalbandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.set(index, value); + ensureOpticalbandsIsMutable(); + opticalbands_.set(index, value); onChanged(); } else { - linkEndpointIdsBuilder_.setMessage(index, value); + opticalbandsBuilder_.setMessage(index, value); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder setLinkEndpointIds(int index, context.ContextOuterClass.EndPointId.Builder builderForValue) { - if (linkEndpointIdsBuilder_ == null) { - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.set(index, builderForValue.build()); + public Builder setOpticalbands(int index, context.ContextOuterClass.OpticalBand.Builder builderForValue) { + if (opticalbandsBuilder_ == null) { + ensureOpticalbandsIsMutable(); + opticalbands_.set(index, builderForValue.build()); onChanged(); } else { - linkEndpointIdsBuilder_.setMessage(index, builderForValue.build()); + opticalbandsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder addLinkEndpointIds(context.ContextOuterClass.EndPointId value) { - if (linkEndpointIdsBuilder_ == null) { + public Builder addOpticalbands(context.ContextOuterClass.OpticalBand value) { + if (opticalbandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.add(value); + ensureOpticalbandsIsMutable(); + opticalbands_.add(value); onChanged(); } else { - linkEndpointIdsBuilder_.addMessage(value); + opticalbandsBuilder_.addMessage(value); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder addLinkEndpointIds(int index, context.ContextOuterClass.EndPointId value) { - if (linkEndpointIdsBuilder_ == null) { + public Builder addOpticalbands(int index, context.ContextOuterClass.OpticalBand value) { + if (opticalbandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.add(index, value); + ensureOpticalbandsIsMutable(); + opticalbands_.add(index, value); onChanged(); } else { - linkEndpointIdsBuilder_.addMessage(index, value); + opticalbandsBuilder_.addMessage(index, value); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder addLinkEndpointIds(context.ContextOuterClass.EndPointId.Builder builderForValue) { - if (linkEndpointIdsBuilder_ == null) { - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.add(builderForValue.build()); + public Builder addOpticalbands(context.ContextOuterClass.OpticalBand.Builder builderForValue) { + if (opticalbandsBuilder_ == null) { + ensureOpticalbandsIsMutable(); + opticalbands_.add(builderForValue.build()); onChanged(); } else { - linkEndpointIdsBuilder_.addMessage(builderForValue.build()); + opticalbandsBuilder_.addMessage(builderForValue.build()); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder addLinkEndpointIds(int index, context.ContextOuterClass.EndPointId.Builder builderForValue) { - if (linkEndpointIdsBuilder_ == null) { - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.add(index, builderForValue.build()); + public Builder addOpticalbands(int index, context.ContextOuterClass.OpticalBand.Builder builderForValue) { + if (opticalbandsBuilder_ == null) { + ensureOpticalbandsIsMutable(); + opticalbands_.add(index, builderForValue.build()); onChanged(); } else { - linkEndpointIdsBuilder_.addMessage(index, builderForValue.build()); + opticalbandsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder addAllLinkEndpointIds(java.lang.Iterable values) { - if (linkEndpointIdsBuilder_ == null) { - ensureLinkEndpointIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, linkEndpointIds_); + public Builder addAllOpticalbands(java.lang.Iterable values) { + if (opticalbandsBuilder_ == null) { + ensureOpticalbandsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, opticalbands_); onChanged(); } else { - linkEndpointIdsBuilder_.addAllMessages(values); + opticalbandsBuilder_.addAllMessages(values); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder clearLinkEndpointIds() { - if (linkEndpointIdsBuilder_ == null) { - linkEndpointIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearOpticalbands() { + if (opticalbandsBuilder_ == null) { + opticalbands_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { - linkEndpointIdsBuilder_.clear(); + opticalbandsBuilder_.clear(); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder removeLinkEndpointIds(int index) { - if (linkEndpointIdsBuilder_ == null) { - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.remove(index); + public Builder removeOpticalbands(int index) { + if (opticalbandsBuilder_ == null) { + ensureOpticalbandsIsMutable(); + opticalbands_.remove(index); onChanged(); } else { - linkEndpointIdsBuilder_.remove(index); + opticalbandsBuilder_.remove(index); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public context.ContextOuterClass.EndPointId.Builder getLinkEndpointIdsBuilder(int index) { - return getLinkEndpointIdsFieldBuilder().getBuilder(index); + public context.ContextOuterClass.OpticalBand.Builder getOpticalbandsBuilder(int index) { + return getOpticalbandsFieldBuilder().getBuilder(index); } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public context.ContextOuterClass.EndPointIdOrBuilder getLinkEndpointIdsOrBuilder(int index) { - if (linkEndpointIdsBuilder_ == null) { - return linkEndpointIds_.get(index); + public context.ContextOuterClass.OpticalBandOrBuilder getOpticalbandsOrBuilder(int index) { + if (opticalbandsBuilder_ == null) { + return opticalbands_.get(index); } else { - return linkEndpointIdsBuilder_.getMessageOrBuilder(index); + return opticalbandsBuilder_.getMessageOrBuilder(index); } } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public java.util.List getLinkEndpointIdsOrBuilderList() { - if (linkEndpointIdsBuilder_ != null) { - return linkEndpointIdsBuilder_.getMessageOrBuilderList(); + public java.util.List getOpticalbandsOrBuilderList() { + if (opticalbandsBuilder_ != null) { + return opticalbandsBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(linkEndpointIds_); + return java.util.Collections.unmodifiableList(opticalbands_); } } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public context.ContextOuterClass.EndPointId.Builder addLinkEndpointIdsBuilder() { - return getLinkEndpointIdsFieldBuilder().addBuilder(context.ContextOuterClass.EndPointId.getDefaultInstance()); + public context.ContextOuterClass.OpticalBand.Builder addOpticalbandsBuilder() { + return getOpticalbandsFieldBuilder().addBuilder(context.ContextOuterClass.OpticalBand.getDefaultInstance()); } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public context.ContextOuterClass.EndPointId.Builder addLinkEndpointIdsBuilder(int index) { - return getLinkEndpointIdsFieldBuilder().addBuilder(index, context.ContextOuterClass.EndPointId.getDefaultInstance()); + public context.ContextOuterClass.OpticalBand.Builder addOpticalbandsBuilder(int index) { + return getOpticalbandsFieldBuilder().addBuilder(index, context.ContextOuterClass.OpticalBand.getDefaultInstance()); } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public java.util.List getLinkEndpointIdsBuilderList() { - return getLinkEndpointIdsFieldBuilder().getBuilderList(); + public java.util.List getOpticalbandsBuilderList() { + return getOpticalbandsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3 getLinkEndpointIdsFieldBuilder() { - if (linkEndpointIdsBuilder_ == null) { - linkEndpointIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(linkEndpointIds_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - linkEndpointIds_ = null; + private com.google.protobuf.RepeatedFieldBuilderV3 getOpticalbandsFieldBuilder() { + if (opticalbandsBuilder_ == null) { + opticalbandsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(opticalbands_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + opticalbands_ = null; } - return linkEndpointIdsBuilder_; + return opticalbandsBuilder_; } @java.lang.Override @@ -82158,24 +86806,24 @@ public final class ContextOuterClass { public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:context.OpticalLink) + // @@protoc_insertion_point(builder_scope:context.OpticalBandList) } - // @@protoc_insertion_point(class_scope:context.OpticalLink) - private static final context.ContextOuterClass.OpticalLink DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:context.OpticalBandList) + private static final context.ContextOuterClass.OpticalBandList DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new context.ContextOuterClass.OpticalLink(); + DEFAULT_INSTANCE = new context.ContextOuterClass.OpticalBandList(); } - public static context.ContextOuterClass.OpticalLink getDefaultInstance() { + public static context.ContextOuterClass.OpticalBandList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public OpticalLink parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public OpticalBandList parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); @@ -82190,17 +86838,17 @@ public final class ContextOuterClass { } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public context.ContextOuterClass.OpticalLink getDefaultInstanceForType() { + public context.ContextOuterClass.OpticalBandList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -83207,6 +87855,10 @@ public final class ContextOuterClass { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ConfigRule_ACL_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_ConfigRule_IP_LINK_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ConfigRule_IP_LINK_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_ConfigRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ConfigRule_fieldAccessorTable; @@ -83319,6 +87971,22 @@ public final class ContextOuterClass { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_OpticalLink_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_ChannelId_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ChannelId_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_OpticalBandId_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_OpticalBandId_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_OpticalBand_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_OpticalBand_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_OpticalBandList_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_OpticalBandList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_ServiceConfigRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ServiceConfigRule_fieldAccessorTable; @@ -83330,8 +87998,8 @@ public final class ContextOuterClass { private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { - java.lang.String[] descriptorData = { "\n\rcontext.proto\022\007context\032\031google/protobu" + "f/any.proto\032\tacl.proto\032\026kpi_sample_types" + ".proto\"\007\n\005Empty\"\024\n\004Uuid\022\014\n\004uuid\030\001 \001(\t\"\036\n" + "\tTimestamp\022\021\n\ttimestamp\030\001 \001(\001\"Z\n\005Event\022%" + "\n\ttimestamp\030\001 \001(\0132\022.context.Timestamp\022*\n" + "\nevent_type\030\002 \001(\0162\026.context.EventTypeEnu" + "m\"\265\002\n\010AnyEvent\022(\n\007context\030\001 \001(\0132\025.contex" + "t.ContextEventH\000\022*\n\010topology\030\002 \001(\0132\026.con" + "text.TopologyEventH\000\022&\n\006device\030\003 \001(\0132\024.c" + "ontext.DeviceEventH\000\022\"\n\004link\030\004 \001(\0132\022.con" + "text.LinkEventH\000\022(\n\007service\030\005 \001(\0132\025.cont" + "ext.ServiceEventH\000\022$\n\005slice\030\006 \001(\0132\023.cont" + "ext.SliceEventH\000\022.\n\nconnection\030\007 \001(\0132\030.c" + "ontext.ConnectionEventH\000B\007\n\005event\"0\n\tCon" + "textId\022#\n\014context_uuid\030\001 \001(\0132\r.context.U" + "uid\"\351\001\n\007Context\022&\n\ncontext_id\030\001 \001(\0132\022.co" + "ntext.ContextId\022\014\n\004name\030\002 \001(\t\022)\n\014topolog" + "y_ids\030\003 \003(\0132\023.context.TopologyId\022\'\n\013serv" + "ice_ids\030\004 \003(\0132\022.context.ServiceId\022#\n\tsli" + "ce_ids\030\005 \003(\0132\020.context.SliceId\022/\n\ncontro" + "ller\030\006 \001(\0132\033.context.TeraFlowController\"" + "8\n\rContextIdList\022\'\n\013context_ids\030\001 \003(\0132\022." + "context.ContextId\"1\n\013ContextList\022\"\n\010cont" + "exts\030\001 \003(\0132\020.context.Context\"U\n\014ContextE" + "vent\022\035\n\005event\030\001 \001(\0132\016.context.Event\022&\n\nc" + "ontext_id\030\002 \001(\0132\022.context.ContextId\"Z\n\nT" + "opologyId\022&\n\ncontext_id\030\001 \001(\0132\022.context." + "ContextId\022$\n\rtopology_uuid\030\002 \001(\0132\r.conte" + "xt.Uuid\"\267\001\n\010Topology\022(\n\013topology_id\030\001 \001(" + "\0132\023.context.TopologyId\022\014\n\004name\030\002 \001(\t\022%\n\n" + "device_ids\030\003 \003(\0132\021.context.DeviceId\022!\n\010l" + "ink_ids\030\004 \003(\0132\017.context.LinkId\022)\n\020optica" + "l_link_ids\030\005 \003(\0132\017.context.LinkId\"\266\001\n\017To" + "pologyDetails\022(\n\013topology_id\030\001 \001(\0132\023.con" + "text.TopologyId\022\014\n\004name\030\002 \001(\t\022 \n\007devices" + "\030\003 \003(\0132\017.context.Device\022\034\n\005links\030\004 \003(\0132\r" + ".context.Link\022+\n\roptical_links\030\005 \003(\0132\024.c" + "ontext.OpticalLink\";\n\016TopologyIdList\022)\n\014" + "topology_ids\030\001 \003(\0132\023.context.TopologyId\"" + "5\n\014TopologyList\022%\n\ntopologies\030\001 \003(\0132\021.co" + "ntext.Topology\"X\n\rTopologyEvent\022\035\n\005event" + "\030\001 \001(\0132\016.context.Event\022(\n\013topology_id\030\002 " + "\001(\0132\023.context.TopologyId\".\n\010DeviceId\022\"\n\013" + "device_uuid\030\001 \001(\0132\r.context.Uuid\"\372\002\n\006Dev" + "ice\022$\n\tdevice_id\030\001 \001(\0132\021.context.DeviceI" + "d\022\014\n\004name\030\002 \001(\t\022\023\n\013device_type\030\003 \001(\t\022,\n\r" + "device_config\030\004 \001(\0132\025.context.DeviceConf" + "ig\022G\n\031device_operational_status\030\005 \001(\0162$." + "context.DeviceOperationalStatusEnum\0221\n\016d" + "evice_drivers\030\006 \003(\0162\031.context.DeviceDriv" + "erEnum\022+\n\020device_endpoints\030\007 \003(\0132\021.conte" + "xt.EndPoint\022&\n\ncomponents\030\010 \003(\0132\022.contex" + "t.Component\022(\n\rcontroller_id\030\t \001(\0132\021.con" + "text.DeviceId\"\311\001\n\tComponent\022%\n\016component" + "_uuid\030\001 \001(\0132\r.context.Uuid\022\014\n\004name\030\002 \001(\t" + "\022\014\n\004type\030\003 \001(\t\0226\n\nattributes\030\004 \003(\0132\".con" + "text.Component.AttributesEntry\022\016\n\006parent" + "\030\005 \001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r" + "\n\005value\030\002 \001(\t:\0028\001\"9\n\014DeviceConfig\022)\n\014con" + "fig_rules\030\001 \003(\0132\023.context.ConfigRule\"5\n\014" + "DeviceIdList\022%\n\ndevice_ids\030\001 \003(\0132\021.conte" + "xt.DeviceId\".\n\nDeviceList\022 \n\007devices\030\001 \003" + "(\0132\017.context.Device\"\216\001\n\014DeviceFilter\022)\n\n" + "device_ids\030\001 \001(\0132\025.context.DeviceIdList\022" + "\031\n\021include_endpoints\030\002 \001(\010\022\034\n\024include_co" + "nfig_rules\030\003 \001(\010\022\032\n\022include_components\030\004" + " \001(\010\"\200\001\n\013DeviceEvent\022\035\n\005event\030\001 \001(\0132\016.co" + "ntext.Event\022$\n\tdevice_id\030\002 \001(\0132\021.context" + ".DeviceId\022,\n\rdevice_config\030\003 \001(\0132\025.conte" + "xt.DeviceConfig\"*\n\006LinkId\022 \n\tlink_uuid\030\001" + " \001(\0132\r.context.Uuid\"c\n\016LinkAttributes\022\030\n" + "\020is_bidirectional\030\001 \001(\010\022\033\n\023total_capacit" + "y_gbps\030\002 \001(\002\022\032\n\022used_capacity_gbps\030\003 \001(\002" + "\"\275\001\n\004Link\022 \n\007link_id\030\001 \001(\0132\017.context.Lin" + "kId\022\014\n\004name\030\002 \001(\t\022(\n\tlink_type\030\003 \001(\0162\025.c" + "ontext.LinkTypeEnum\022.\n\021link_endpoint_ids" + "\030\004 \003(\0132\023.context.EndPointId\022+\n\nattribute" + "s\030\005 \001(\0132\027.context.LinkAttributes\"/\n\nLink" + "IdList\022!\n\010link_ids\030\001 \003(\0132\017.context.LinkI" + "d\"(\n\010LinkList\022\034\n\005links\030\001 \003(\0132\r.context.L" + "ink\"L\n\tLinkEvent\022\035\n\005event\030\001 \001(\0132\016.contex" + "t.Event\022 \n\007link_id\030\002 \001(\0132\017.context.LinkI" + "d\"X\n\tServiceId\022&\n\ncontext_id\030\001 \001(\0132\022.con" + "text.ContextId\022#\n\014service_uuid\030\002 \001(\0132\r.c" + "ontext.Uuid\"\333\002\n\007Service\022&\n\nservice_id\030\001 " + "\001(\0132\022.context.ServiceId\022\014\n\004name\030\002 \001(\t\022.\n" + "\014service_type\030\003 \001(\0162\030.context.ServiceTyp" + "eEnum\0221\n\024service_endpoint_ids\030\004 \003(\0132\023.co" + "ntext.EndPointId\0220\n\023service_constraints\030" + "\005 \003(\0132\023.context.Constraint\022.\n\016service_st" + "atus\030\006 \001(\0132\026.context.ServiceStatus\022.\n\016se" + "rvice_config\030\007 \001(\0132\026.context.ServiceConf" + "ig\022%\n\ttimestamp\030\010 \001(\0132\022.context.Timestam" + "p\"C\n\rServiceStatus\0222\n\016service_status\030\001 \001" + "(\0162\032.context.ServiceStatusEnum\":\n\rServic" + "eConfig\022)\n\014config_rules\030\001 \003(\0132\023.context." + "ConfigRule\"8\n\rServiceIdList\022\'\n\013service_i" + "ds\030\001 \003(\0132\022.context.ServiceId\"1\n\013ServiceL" + "ist\022\"\n\010services\030\001 \003(\0132\020.context.Service\"" + "\225\001\n\rServiceFilter\022+\n\013service_ids\030\001 \001(\0132\026" + ".context.ServiceIdList\022\034\n\024include_endpoi" + "nt_ids\030\002 \001(\010\022\033\n\023include_constraints\030\003 \001(" + "\010\022\034\n\024include_config_rules\030\004 \001(\010\"U\n\014Servi" + "ceEvent\022\035\n\005event\030\001 \001(\0132\016.context.Event\022&" + "\n\nservice_id\030\002 \001(\0132\022.context.ServiceId\"T" + "\n\007SliceId\022&\n\ncontext_id\030\001 \001(\0132\022.context." + "ContextId\022!\n\nslice_uuid\030\002 \001(\0132\r.context." + "Uuid\"\240\003\n\005Slice\022\"\n\010slice_id\030\001 \001(\0132\020.conte" + "xt.SliceId\022\014\n\004name\030\002 \001(\t\022/\n\022slice_endpoi" + "nt_ids\030\003 \003(\0132\023.context.EndPointId\022.\n\021sli" + "ce_constraints\030\004 \003(\0132\023.context.Constrain" + "t\022-\n\021slice_service_ids\030\005 \003(\0132\022.context.S" + "erviceId\022,\n\022slice_subslice_ids\030\006 \003(\0132\020.c" + "ontext.SliceId\022*\n\014slice_status\030\007 \001(\0132\024.c" + "ontext.SliceStatus\022*\n\014slice_config\030\010 \001(\013" + "2\024.context.SliceConfig\022(\n\013slice_owner\030\t " + "\001(\0132\023.context.SliceOwner\022%\n\ttimestamp\030\n " + "\001(\0132\022.context.Timestamp\"E\n\nSliceOwner\022!\n" + "\nowner_uuid\030\001 \001(\0132\r.context.Uuid\022\024\n\014owne" + "r_string\030\002 \001(\t\"=\n\013SliceStatus\022.\n\014slice_s" + "tatus\030\001 \001(\0162\030.context.SliceStatusEnum\"8\n" + "\013SliceConfig\022)\n\014config_rules\030\001 \003(\0132\023.con" + "text.ConfigRule\"2\n\013SliceIdList\022#\n\tslice_" + "ids\030\001 \003(\0132\020.context.SliceId\"+\n\tSliceList" + "\022\036\n\006slices\030\001 \003(\0132\016.context.Slice\"\312\001\n\013Sli" + "ceFilter\022\'\n\tslice_ids\030\001 \001(\0132\024.context.Sl" + "iceIdList\022\034\n\024include_endpoint_ids\030\002 \001(\010\022" + "\033\n\023include_constraints\030\003 \001(\010\022\033\n\023include_" + "service_ids\030\004 \001(\010\022\034\n\024include_subslice_id" + "s\030\005 \001(\010\022\034\n\024include_config_rules\030\006 \001(\010\"O\n" + "\nSliceEvent\022\035\n\005event\030\001 \001(\0132\016.context.Eve" + "nt\022\"\n\010slice_id\030\002 \001(\0132\020.context.SliceId\"6" + "\n\014ConnectionId\022&\n\017connection_uuid\030\001 \001(\0132" + "\r.context.Uuid\"2\n\025ConnectionSettings_L0\022" + "\031\n\021lsp_symbolic_name\030\001 \001(\t\"\236\001\n\025Connectio" + "nSettings_L2\022\027\n\017src_mac_address\030\001 \001(\t\022\027\n" + "\017dst_mac_address\030\002 \001(\t\022\022\n\nether_type\030\003 \001" + "(\r\022\017\n\007vlan_id\030\004 \001(\r\022\022\n\nmpls_label\030\005 \001(\r\022" + "\032\n\022mpls_traffic_class\030\006 \001(\r\"t\n\025Connectio" + "nSettings_L3\022\026\n\016src_ip_address\030\001 \001(\t\022\026\n\016" + "dst_ip_address\030\002 \001(\t\022\014\n\004dscp\030\003 \001(\r\022\020\n\010pr" + "otocol\030\004 \001(\r\022\013\n\003ttl\030\005 \001(\r\"[\n\025ConnectionS" + "ettings_L4\022\020\n\010src_port\030\001 \001(\r\022\020\n\010dst_port" + "\030\002 \001(\r\022\021\n\ttcp_flags\030\003 \001(\r\022\013\n\003ttl\030\004 \001(\r\"\304" + "\001\n\022ConnectionSettings\022*\n\002l0\030\001 \001(\0132\036.cont" + "ext.ConnectionSettings_L0\022*\n\002l2\030\002 \001(\0132\036." + "context.ConnectionSettings_L2\022*\n\002l3\030\003 \001(" + "\0132\036.context.ConnectionSettings_L3\022*\n\002l4\030" + "\004 \001(\0132\036.context.ConnectionSettings_L4\"\363\001" + "\n\nConnection\022,\n\rconnection_id\030\001 \001(\0132\025.co" + "ntext.ConnectionId\022&\n\nservice_id\030\002 \001(\0132\022" + ".context.ServiceId\0223\n\026path_hops_endpoint" + "_ids\030\003 \003(\0132\023.context.EndPointId\022+\n\017sub_s" + "ervice_ids\030\004 \003(\0132\022.context.ServiceId\022-\n\010" + "settings\030\005 \001(\0132\033.context.ConnectionSetti" + "ngs\"A\n\020ConnectionIdList\022-\n\016connection_id" + "s\030\001 \003(\0132\025.context.ConnectionId\":\n\016Connec" + "tionList\022(\n\013connections\030\001 \003(\0132\023.context." + "Connection\"^\n\017ConnectionEvent\022\035\n\005event\030\001" + " \001(\0132\016.context.Event\022,\n\rconnection_id\030\002 " + "\001(\0132\025.context.ConnectionId\"\202\001\n\nEndPointI" + "d\022(\n\013topology_id\030\001 \001(\0132\023.context.Topolog" + "yId\022$\n\tdevice_id\030\002 \001(\0132\021.context.DeviceI" + "d\022$\n\rendpoint_uuid\030\003 \001(\0132\r.context.Uuid\"" + "\310\002\n\010EndPoint\022(\n\013endpoint_id\030\001 \001(\0132\023.cont" + "ext.EndPointId\022\014\n\004name\030\002 \001(\t\022\025\n\rendpoint" + "_type\030\003 \001(\t\0229\n\020kpi_sample_types\030\004 \003(\0162\037." + "kpi_sample_types.KpiSampleType\022,\n\021endpoi" + "nt_location\030\005 \001(\0132\021.context.Location\0229\n\014" + "capabilities\030\006 \003(\0132#.context.EndPoint.Ca" + "pabilitiesEntry\032I\n\021CapabilitiesEntry\022\013\n\003" + "key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.google.protob" + "uf.Any:\0028\001\"{\n\014EndPointName\022(\n\013endpoint_i" + "d\030\001 \001(\0132\023.context.EndPointId\022\023\n\013device_n" + "ame\030\002 \001(\t\022\025\n\rendpoint_name\030\003 \001(\t\022\025\n\rendp" + "oint_type\030\004 \001(\t\";\n\016EndPointIdList\022)\n\014end" + "point_ids\030\001 \003(\0132\023.context.EndPointId\"A\n\020" + "EndPointNameList\022-\n\016endpoint_names\030\001 \003(\013" + "2\025.context.EndPointName\"A\n\021ConfigRule_Cu" + "stom\022\024\n\014resource_key\030\001 \001(\t\022\026\n\016resource_v" + "alue\030\002 \001(\t\"]\n\016ConfigRule_ACL\022(\n\013endpoint" + "_id\030\001 \001(\0132\023.context.EndPointId\022!\n\010rule_s" + "et\030\002 \001(\0132\017.acl.AclRuleSet\"\234\001\n\nConfigRule" + "\022)\n\006action\030\001 \001(\0162\031.context.ConfigActionE" + "num\022,\n\006custom\030\002 \001(\0132\032.context.ConfigRule" + "_CustomH\000\022&\n\003acl\030\003 \001(\0132\027.context.ConfigR" + "ule_ACLH\000B\r\n\013config_rule\"F\n\021Constraint_C" + "ustom\022\027\n\017constraint_type\030\001 \001(\t\022\030\n\020constr" + "aint_value\030\002 \001(\t\"E\n\023Constraint_Schedule\022" + "\027\n\017start_timestamp\030\001 \001(\001\022\025\n\rduration_day" + "s\030\002 \001(\002\"3\n\014GPS_Position\022\020\n\010latitude\030\001 \001(" + "\002\022\021\n\tlongitude\030\002 \001(\002\"\204\001\n\010Location\022\020\n\006reg" + "ion\030\001 \001(\tH\000\022-\n\014gps_position\030\002 \001(\0132\025.cont" + "ext.GPS_PositionH\000\022\023\n\tinterface\030\003 \001(\tH\000\022" + "\026\n\014circuit_pack\030\004 \001(\tH\000B\n\n\010location\"l\n\033C" + "onstraint_EndPointLocation\022(\n\013endpoint_i" + "d\030\001 \001(\0132\023.context.EndPointId\022#\n\010location" + "\030\002 \001(\0132\021.context.Location\"Y\n\033Constraint_" + "EndPointPriority\022(\n\013endpoint_id\030\001 \001(\0132\023." + "context.EndPointId\022\020\n\010priority\030\002 \001(\r\"0\n\026" + "Constraint_SLA_Latency\022\026\n\016e2e_latency_ms" + "\030\001 \001(\002\"0\n\027Constraint_SLA_Capacity\022\025\n\rcap" + "acity_gbps\030\001 \001(\002\"c\n\033Constraint_SLA_Avail" + "ability\022\032\n\022num_disjoint_paths\030\001 \001(\r\022\022\n\na" + "ll_active\030\002 \001(\010\022\024\n\014availability\030\003 \001(\002\"V\n" + "\036Constraint_SLA_Isolation_level\0224\n\017isola" + "tion_level\030\001 \003(\0162\033.context.IsolationLeve" + "lEnum\"\242\001\n\025Constraint_Exclusions\022\024\n\014is_pe" + "rmanent\030\001 \001(\010\022%\n\ndevice_ids\030\002 \003(\0132\021.cont" + "ext.DeviceId\022)\n\014endpoint_ids\030\003 \003(\0132\023.con" + "text.EndPointId\022!\n\010link_ids\030\004 \003(\0132\017.cont" + "ext.LinkId\"5\n\014QoSProfileId\022%\n\016qos_profil" + "e_id\030\001 \001(\0132\r.context.Uuid\"`\n\025Constraint_" + "QoSProfile\022-\n\016qos_profile_id\030\001 \001(\0132\025.con" + "text.QoSProfileId\022\030\n\020qos_profile_name\030\002 " + "\001(\t\"\222\005\n\nConstraint\022-\n\006action\030\001 \001(\0162\035.con" + "text.ConstraintActionEnum\022,\n\006custom\030\002 \001(" + "\0132\032.context.Constraint_CustomH\000\0220\n\010sched" + "ule\030\003 \001(\0132\034.context.Constraint_ScheduleH" + "\000\022A\n\021endpoint_location\030\004 \001(\0132$.context.C" + "onstraint_EndPointLocationH\000\022A\n\021endpoint" + "_priority\030\005 \001(\0132$.context.Constraint_End" + "PointPriorityH\000\0228\n\014sla_capacity\030\006 \001(\0132 ." + "context.Constraint_SLA_CapacityH\000\0226\n\013sla" + "_latency\030\007 \001(\0132\037.context.Constraint_SLA_" + "LatencyH\000\022@\n\020sla_availability\030\010 \001(\0132$.co" + "ntext.Constraint_SLA_AvailabilityH\000\022@\n\rs" + "la_isolation\030\t \001(\0132\'.context.Constraint_" + "SLA_Isolation_levelH\000\0224\n\nexclusions\030\n \001(" + "\0132\036.context.Constraint_ExclusionsH\000\0225\n\013q" + "os_profile\030\013 \001(\0132\036.context.Constraint_Qo" + "SProfileH\000B\014\n\nconstraint\"^\n\022TeraFlowCont" + "roller\022&\n\ncontext_id\030\001 \001(\0132\022.context.Con" + "textId\022\022\n\nip_address\030\002 \001(\t\022\014\n\004port\030\003 \001(\r" + "\"U\n\024AuthenticationResult\022&\n\ncontext_id\030\001" + " \001(\0132\022.context.ContextId\022\025\n\rauthenticate" + "d\030\002 \001(\010\"-\n\017OpticalConfigId\022\032\n\022opticalcon" + "fig_uuid\030\001 \001(\t\"y\n\rOpticalConfig\0222\n\020optic" + "alconfig_id\030\001 \001(\0132\030.context.OpticalConfi" + "gId\022\016\n\006config\030\002 \001(\t\022$\n\tdevice_id\030\003 \001(\0132\021" + ".context.DeviceId\"C\n\021OpticalConfigList\022." + "\n\016opticalconfigs\030\001 \003(\0132\026.context.Optical" + "Config\"g\n\022OpticalConfigEvent\022\035\n\005event\030\001 " + "\001(\0132\016.context.Event\0222\n\020opticalconfig_id\030" + "\002 \001(\0132\030.context.OpticalConfigId\"_\n\021Optic" + "alEndPointId\022$\n\tdevice_id\030\002 \001(\0132\021.contex" + "t.DeviceId\022$\n\rendpoint_uuid\030\003 \001(\0132\r.cont" + "ext.Uuid\">\n\017OpticalLinkList\022+\n\roptical_l" + "inks\030\001 \003(\0132\024.context.OpticalLink\"\304\003\n\022Opt" + "icalLinkDetails\022\016\n\006length\030\001 \001(\002\022\020\n\010src_p" + "ort\030\002 \001(\t\022\020\n\010dst_port\030\003 \001(\t\022\027\n\017local_pee" + "r_port\030\004 \001(\t\022\030\n\020remote_peer_port\030\005 \001(\t\022\014" + "\n\004used\030\006 \001(\010\0228\n\007c_slots\030\007 \003(\0132\'.context." + "OpticalLinkDetails.CSlotsEntry\0228\n\007l_slot" + "s\030\010 \003(\0132\'.context.OpticalLinkDetails.LSl" + "otsEntry\0228\n\007s_slots\030\t \003(\0132\'.context.Opti" + "calLinkDetails.SSlotsEntry\032-\n\013CSlotsEntr" + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\032-\n\013LSl" + "otsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001" + "\032-\n\013SSlotsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + "\001(\005:\0028\001\"\243\001\n\013OpticalLink\022\014\n\004name\030\001 \001(\t\0224\n" + "\017optical_details\030\002 \001(\0132\033.context.Optical" + "LinkDetails\022 \n\007link_id\030\003 \001(\0132\017.context.L" + "inkId\022.\n\021link_endpoint_ids\030\004 \003(\0132\023.conte" + "xt.EndPointId\"r\n\021ServiceConfigRule\022&\n\nse" + "rvice_id\030\001 \001(\0132\022.context.ServiceId\0225\n\021co" + "nfigrule_custom\030\002 \001(\0132\032.context.ConfigRu" + "le_Custom*j\n\rEventTypeEnum\022\027\n\023EVENTTYPE_" + "UNDEFINED\020\000\022\024\n\020EVENTTYPE_CREATE\020\001\022\024\n\020EVE" + "NTTYPE_UPDATE\020\002\022\024\n\020EVENTTYPE_REMOVE\020\003*\277\004" + "\n\020DeviceDriverEnum\022\032\n\026DEVICEDRIVER_UNDEF" + "INED\020\000\022\033\n\027DEVICEDRIVER_OPENCONFIG\020\001\022\036\n\032D" + "EVICEDRIVER_TRANSPORT_API\020\002\022\023\n\017DEVICEDRI" + "VER_P4\020\003\022&\n\"DEVICEDRIVER_IETF_NETWORK_TO" + "POLOGY\020\004\022\033\n\027DEVICEDRIVER_ONF_TR_532\020\005\022\023\n" + "\017DEVICEDRIVER_XR\020\006\022\033\n\027DEVICEDRIVER_IETF_" + "L2VPN\020\007\022 \n\034DEVICEDRIVER_GNMI_OPENCONFIG\020" + "\010\022\034\n\030DEVICEDRIVER_OPTICAL_TFS\020\t\022\032\n\026DEVIC" + "EDRIVER_IETF_ACTN\020\n\022\023\n\017DEVICEDRIVER_OC\020\013" + "\022\024\n\020DEVICEDRIVER_QKD\020\014\022\033\n\027DEVICEDRIVER_I" + "ETF_L3VPN\020\r\022\033\n\027DEVICEDRIVER_IETF_SLICE\020\016" + "\022\024\n\020DEVICEDRIVER_NCE\020\017\022\031\n\025DEVICEDRIVER_S" + "MARTNIC\020\020\022\031\n\025DEVICEDRIVER_MORPHEUS\020\021\022\024\n\020" + "DEVICEDRIVER_RYU\020\022\022#\n\037DEVICEDRIVER_GNMI_" + "NOKIA_SRLINUX\020\023*\217\001\n\033DeviceOperationalSta" + "tusEnum\022%\n!DEVICEOPERATIONALSTATUS_UNDEF" + "INED\020\000\022$\n DEVICEOPERATIONALSTATUS_DISABL" + "ED\020\001\022#\n\037DEVICEOPERATIONALSTATUS_ENABLED\020" + "\002*\245\001\n\014LinkTypeEnum\022\024\n\020LINKTYPE_UNKNOWN\020\000" + "\022\023\n\017LINKTYPE_COPPER\020\001\022\022\n\016LINKTYPE_FIBER\020" + "\002\022\022\n\016LINKTYPE_RADIO\020\003\022\024\n\020LINKTYPE_VIRTUA" + "L\020\004\022\027\n\023LINKTYPE_MANAGEMENT\020\005\022\023\n\017LINKTYPE" + "_REMOTE\020\006*\245\002\n\017ServiceTypeEnum\022\027\n\023SERVICE" + "TYPE_UNKNOWN\020\000\022\024\n\020SERVICETYPE_L3NM\020\001\022\024\n\020" + "SERVICETYPE_L2NM\020\002\022)\n%SERVICETYPE_TAPI_C" + "ONNECTIVITY_SERVICE\020\003\022\022\n\016SERVICETYPE_TE\020" + "\004\022\023\n\017SERVICETYPE_E2E\020\005\022$\n SERVICETYPE_OP" + "TICAL_CONNECTIVITY\020\006\022\023\n\017SERVICETYPE_QKD\020" + "\007\022\024\n\020SERVICETYPE_L1NM\020\010\022\023\n\017SERVICETYPE_I" + "NT\020\t\022\023\n\017SERVICETYPE_ACL\020\n*\304\001\n\021ServiceSta" + "tusEnum\022\033\n\027SERVICESTATUS_UNDEFINED\020\000\022\031\n\025" + "SERVICESTATUS_PLANNED\020\001\022\030\n\024SERVICESTATUS" + "_ACTIVE\020\002\022\032\n\026SERVICESTATUS_UPDATING\020\003\022!\n" + "\035SERVICESTATUS_PENDING_REMOVAL\020\004\022\036\n\032SERV" + "ICESTATUS_SLA_VIOLATED\020\005*\251\001\n\017SliceStatus" + "Enum\022\031\n\025SLICESTATUS_UNDEFINED\020\000\022\027\n\023SLICE" + "STATUS_PLANNED\020\001\022\024\n\020SLICESTATUS_INIT\020\002\022\026" + "\n\022SLICESTATUS_ACTIVE\020\003\022\026\n\022SLICESTATUS_DE" + "INIT\020\004\022\034\n\030SLICESTATUS_SLA_VIOLATED\020\005*]\n\020" + "ConfigActionEnum\022\032\n\026CONFIGACTION_UNDEFIN" + "ED\020\000\022\024\n\020CONFIGACTION_SET\020\001\022\027\n\023CONFIGACTI" + "ON_DELETE\020\002*m\n\024ConstraintActionEnum\022\036\n\032C" + "ONSTRAINTACTION_UNDEFINED\020\000\022\030\n\024CONSTRAIN" + "TACTION_SET\020\001\022\033\n\027CONSTRAINTACTION_DELETE" + "\020\002*\203\002\n\022IsolationLevelEnum\022\020\n\014NO_ISOLATIO" + "N\020\000\022\026\n\022PHYSICAL_ISOLATION\020\001\022\025\n\021LOGICAL_I" + "SOLATION\020\002\022\025\n\021PROCESS_ISOLATION\020\003\022\035\n\031PHY" + "SICAL_MEMORY_ISOLATION\020\004\022\036\n\032PHYSICAL_NET" + "WORK_ISOLATION\020\005\022\036\n\032VIRTUAL_RESOURCE_ISO" + "LATION\020\006\022\037\n\033NETWORK_FUNCTIONS_ISOLATION\020" + "\007\022\025\n\021SERVICE_ISOLATION\020\0102\271\034\n\016ContextServ" + "ice\022:\n\016ListContextIds\022\016.context.Empty\032\026." + "context.ContextIdList\"\000\0226\n\014ListContexts\022" + "\016.context.Empty\032\024.context.ContextList\"\000\022" + "4\n\nGetContext\022\022.context.ContextId\032\020.cont" + "ext.Context\"\000\0224\n\nSetContext\022\020.context.Co" + "ntext\032\022.context.ContextId\"\000\0225\n\rRemoveCon" + "text\022\022.context.ContextId\032\016.context.Empty" + "\"\000\022=\n\020GetContextEvents\022\016.context.Empty\032\025" + ".context.ContextEvent\"\0000\001\022@\n\017ListTopolog" + "yIds\022\022.context.ContextId\032\027.context.Topol" + "ogyIdList\"\000\022=\n\016ListTopologies\022\022.context." + "ContextId\032\025.context.TopologyList\"\000\0227\n\013Ge" + "tTopology\022\023.context.TopologyId\032\021.context" + ".Topology\"\000\022E\n\022GetTopologyDetails\022\023.cont" + "ext.TopologyId\032\030.context.TopologyDetails" + "\"\000\0227\n\013SetTopology\022\021.context.Topology\032\023.c" + "ontext.TopologyId\"\000\0227\n\016RemoveTopology\022\023." + "context.TopologyId\032\016.context.Empty\"\000\022?\n\021" + "GetTopologyEvents\022\016.context.Empty\032\026.cont" + "ext.TopologyEvent\"\0000\001\0228\n\rListDeviceIds\022\016" + ".context.Empty\032\025.context.DeviceIdList\"\000\022" + "4\n\013ListDevices\022\016.context.Empty\032\023.context" + ".DeviceList\"\000\0221\n\tGetDevice\022\021.context.Dev" + "iceId\032\017.context.Device\"\000\0221\n\tSetDevice\022\017." + "context.Device\032\021.context.DeviceId\"\000\0223\n\014R" + "emoveDevice\022\021.context.DeviceId\032\016.context" + ".Empty\"\000\022;\n\017GetDeviceEvents\022\016.context.Em" + "pty\032\024.context.DeviceEvent\"\0000\001\022<\n\014SelectD" + "evice\022\025.context.DeviceFilter\032\023.context.D" + "eviceList\"\000\022I\n\021ListEndPointNames\022\027.conte" + "xt.EndPointIdList\032\031.context.EndPointName" + "List\"\000\0224\n\013ListLinkIds\022\016.context.Empty\032\023." + "context.LinkIdList\"\000\0220\n\tListLinks\022\016.cont" + "ext.Empty\032\021.context.LinkList\"\000\022+\n\007GetLin" + "k\022\017.context.LinkId\032\r.context.Link\"\000\022+\n\007S" + "etLink\022\r.context.Link\032\017.context.LinkId\"\000" + "\022/\n\nRemoveLink\022\017.context.LinkId\032\016.contex" + "t.Empty\"\000\0227\n\rGetLinkEvents\022\016.context.Emp" + "ty\032\022.context.LinkEvent\"\0000\001\022>\n\016ListServic" + "eIds\022\022.context.ContextId\032\026.context.Servi" + "ceIdList\"\000\022:\n\014ListServices\022\022.context.Con" + "textId\032\024.context.ServiceList\"\000\0224\n\nGetSer" + "vice\022\022.context.ServiceId\032\020.context.Servi" + "ce\"\000\0224\n\nSetService\022\020.context.Service\032\022.c" + "ontext.ServiceId\"\000\0226\n\014UnsetService\022\020.con" + "text.Service\032\022.context.ServiceId\"\000\0225\n\rRe" + "moveService\022\022.context.ServiceId\032\016.contex" + "t.Empty\"\000\022=\n\020GetServiceEvents\022\016.context." + "Empty\032\025.context.ServiceEvent\"\0000\001\022?\n\rSele" + "ctService\022\026.context.ServiceFilter\032\024.cont" + "ext.ServiceList\"\000\022:\n\014ListSliceIds\022\022.cont" + "ext.ContextId\032\024.context.SliceIdList\"\000\0226\n" + "\nListSlices\022\022.context.ContextId\032\022.contex" + "t.SliceList\"\000\022.\n\010GetSlice\022\020.context.Slic" + "eId\032\016.context.Slice\"\000\022.\n\010SetSlice\022\016.cont" + "ext.Slice\032\020.context.SliceId\"\000\0220\n\nUnsetSl" + "ice\022\016.context.Slice\032\020.context.SliceId\"\000\022" + "1\n\013RemoveSlice\022\020.context.SliceId\032\016.conte" + "xt.Empty\"\000\0229\n\016GetSliceEvents\022\016.context.E" + "mpty\032\023.context.SliceEvent\"\0000\001\0229\n\013SelectS" + "lice\022\024.context.SliceFilter\032\022.context.Sli" + "ceList\"\000\022D\n\021ListConnectionIds\022\022.context." + "ServiceId\032\031.context.ConnectionIdList\"\000\022@" + "\n\017ListConnections\022\022.context.ServiceId\032\027." + "context.ConnectionList\"\000\022=\n\rGetConnectio" + "n\022\025.context.ConnectionId\032\023.context.Conne" + "ction\"\000\022=\n\rSetConnection\022\023.context.Conne" + "ction\032\025.context.ConnectionId\"\000\022;\n\020Remove" + "Connection\022\025.context.ConnectionId\032\016.cont" + "ext.Empty\"\000\022C\n\023GetConnectionEvents\022\016.con" + "text.Empty\032\030.context.ConnectionEvent\"\0000\001" + "\0225\n\014GetAllEvents\022\016.context.Empty\032\021.conte" + "xt.AnyEvent\"\0000\001\022@\n\020GetOpticalConfig\022\016.co" + "ntext.Empty\032\032.context.OpticalConfigList\"" + "\000\022F\n\020SetOpticalConfig\022\026.context.OpticalC" + "onfig\032\030.context.OpticalConfigId\"\000\022I\n\023Upd" + "ateOpticalConfig\022\026.context.OpticalConfig" + "\032\030.context.OpticalConfigId\"\000\022I\n\023SelectOp" + "ticalConfig\022\030.context.OpticalConfigId\032\026.", "context.OpticalConfig\"\000\022A\n\023DeleteOptical" + "Config\022\030.context.OpticalConfigId\032\016.conte" + "xt.Empty\"\000\022@\n\024DeleteOpticalChannel\022\026.con" + "text.OpticalConfig\032\016.context.Empty\"\000\0228\n\016" + "SetOpticalLink\022\024.context.OpticalLink\032\016.c" + "ontext.Empty\"\000\0229\n\016GetOpticalLink\022\017.conte" + "xt.LinkId\032\024.context.OpticalLink\"\000\0226\n\021Del" + "eteOpticalLink\022\017.context.LinkId\032\016.contex" + "t.Empty\"\000\022@\n\022GetOpticalLinkList\022\016.contex" + "t.Empty\032\030.context.OpticalLinkList\"\000\022G\n\027D" + "eleteServiceConfigRule\022\032.context.Service" + "ConfigRule\032\016.context.Empty\"\000b\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), acl.Acl.getDescriptor(), kpi_sample_types.KpiSampleTypes.getDescriptor() }); + java.lang.String[] descriptorData = { "\n\rcontext.proto\022\007context\032\031google/protobu" + "f/any.proto\032\tacl.proto\032\rip_link.proto\032\026k" + "pi_sample_types.proto\"\007\n\005Empty\"\024\n\004Uuid\022\014" + "\n\004uuid\030\001 \001(\t\"\036\n\tTimestamp\022\021\n\ttimestamp\030\001" + " \001(\001\"Z\n\005Event\022%\n\ttimestamp\030\001 \001(\0132\022.conte" + "xt.Timestamp\022*\n\nevent_type\030\002 \001(\0162\026.conte" + "xt.EventTypeEnum\"\265\002\n\010AnyEvent\022(\n\007context" + "\030\001 \001(\0132\025.context.ContextEventH\000\022*\n\010topol" + "ogy\030\002 \001(\0132\026.context.TopologyEventH\000\022&\n\006d" + "evice\030\003 \001(\0132\024.context.DeviceEventH\000\022\"\n\004l" + "ink\030\004 \001(\0132\022.context.LinkEventH\000\022(\n\007servi" + "ce\030\005 \001(\0132\025.context.ServiceEventH\000\022$\n\005sli" + "ce\030\006 \001(\0132\023.context.SliceEventH\000\022.\n\nconne" + "ction\030\007 \001(\0132\030.context.ConnectionEventH\000B" + "\007\n\005event\"0\n\tContextId\022#\n\014context_uuid\030\001 " + "\001(\0132\r.context.Uuid\"\351\001\n\007Context\022&\n\ncontex" + "t_id\030\001 \001(\0132\022.context.ContextId\022\014\n\004name\030\002" + " \001(\t\022)\n\014topology_ids\030\003 \003(\0132\023.context.Top" + "ologyId\022\'\n\013service_ids\030\004 \003(\0132\022.context.S" + "erviceId\022#\n\tslice_ids\030\005 \003(\0132\020.context.Sl" + "iceId\022/\n\ncontroller\030\006 \001(\0132\033.context.Tera" + "FlowController\"8\n\rContextIdList\022\'\n\013conte" + "xt_ids\030\001 \003(\0132\022.context.ContextId\"1\n\013Cont" + "extList\022\"\n\010contexts\030\001 \003(\0132\020.context.Cont" + "ext\"U\n\014ContextEvent\022\035\n\005event\030\001 \001(\0132\016.con" + "text.Event\022&\n\ncontext_id\030\002 \001(\0132\022.context" + ".ContextId\"Z\n\nTopologyId\022&\n\ncontext_id\030\001" + " \001(\0132\022.context.ContextId\022$\n\rtopology_uui" + "d\030\002 \001(\0132\r.context.Uuid\"\267\001\n\010Topology\022(\n\013t" + "opology_id\030\001 \001(\0132\023.context.TopologyId\022\014\n" + "\004name\030\002 \001(\t\022%\n\ndevice_ids\030\003 \003(\0132\021.contex" + "t.DeviceId\022!\n\010link_ids\030\004 \003(\0132\017.context.L" + "inkId\022)\n\020optical_link_ids\030\005 \003(\0132\017.contex" + "t.LinkId\"\266\001\n\017TopologyDetails\022(\n\013topology" + "_id\030\001 \001(\0132\023.context.TopologyId\022\014\n\004name\030\002" + " \001(\t\022 \n\007devices\030\003 \003(\0132\017.context.Device\022\034" + "\n\005links\030\004 \003(\0132\r.context.Link\022+\n\roptical_" + "links\030\005 \003(\0132\024.context.OpticalLink\";\n\016Top" + "ologyIdList\022)\n\014topology_ids\030\001 \003(\0132\023.cont" + "ext.TopologyId\"5\n\014TopologyList\022%\n\ntopolo" + "gies\030\001 \003(\0132\021.context.Topology\"X\n\rTopolog" + "yEvent\022\035\n\005event\030\001 \001(\0132\016.context.Event\022(\n" + "\013topology_id\030\002 \001(\0132\023.context.TopologyId\"" + ".\n\010DeviceId\022\"\n\013device_uuid\030\001 \001(\0132\r.conte" + "xt.Uuid\"\372\002\n\006Device\022$\n\tdevice_id\030\001 \001(\0132\021." + "context.DeviceId\022\014\n\004name\030\002 \001(\t\022\023\n\013device" + "_type\030\003 \001(\t\022,\n\rdevice_config\030\004 \001(\0132\025.con" + "text.DeviceConfig\022G\n\031device_operational_" + "status\030\005 \001(\0162$.context.DeviceOperational" + "StatusEnum\0221\n\016device_drivers\030\006 \003(\0162\031.con" + "text.DeviceDriverEnum\022+\n\020device_endpoint" + "s\030\007 \003(\0132\021.context.EndPoint\022&\n\ncomponents" + "\030\010 \003(\0132\022.context.Component\022(\n\rcontroller" + "_id\030\t \001(\0132\021.context.DeviceId\"\311\001\n\tCompone" + "nt\022%\n\016component_uuid\030\001 \001(\0132\r.context.Uui" + "d\022\014\n\004name\030\002 \001(\t\022\014\n\004type\030\003 \001(\t\0226\n\nattribu" + "tes\030\004 \003(\0132\".context.Component.Attributes" + "Entry\022\016\n\006parent\030\005 \001(\t\0321\n\017AttributesEntry" + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"9\n\014Devi" + "ceConfig\022)\n\014config_rules\030\001 \003(\0132\023.context" + ".ConfigRule\"5\n\014DeviceIdList\022%\n\ndevice_id" + "s\030\001 \003(\0132\021.context.DeviceId\".\n\nDeviceList" + "\022 \n\007devices\030\001 \003(\0132\017.context.Device\"\216\001\n\014D" + "eviceFilter\022)\n\ndevice_ids\030\001 \001(\0132\025.contex" + "t.DeviceIdList\022\031\n\021include_endpoints\030\002 \001(" + "\010\022\034\n\024include_config_rules\030\003 \001(\010\022\032\n\022inclu" + "de_components\030\004 \001(\010\"\200\001\n\013DeviceEvent\022\035\n\005e" + "vent\030\001 \001(\0132\016.context.Event\022$\n\tdevice_id\030" + "\002 \001(\0132\021.context.DeviceId\022,\n\rdevice_confi" + "g\030\003 \001(\0132\025.context.DeviceConfig\"*\n\006LinkId" + "\022 \n\tlink_uuid\030\001 \001(\0132\r.context.Uuid\"c\n\016Li" + "nkAttributes\022\030\n\020is_bidirectional\030\001 \001(\010\022\033" + "\n\023total_capacity_gbps\030\002 \001(\002\022\032\n\022used_capa" + "city_gbps\030\003 \001(\002\"\275\001\n\004Link\022 \n\007link_id\030\001 \001(" + "\0132\017.context.LinkId\022\014\n\004name\030\002 \001(\t\022(\n\tlink" + "_type\030\003 \001(\0162\025.context.LinkTypeEnum\022.\n\021li" + "nk_endpoint_ids\030\004 \003(\0132\023.context.EndPoint" + "Id\022+\n\nattributes\030\005 \001(\0132\027.context.LinkAtt" + "ributes\"/\n\nLinkIdList\022!\n\010link_ids\030\001 \003(\0132" + "\017.context.LinkId\"(\n\010LinkList\022\034\n\005links\030\001 " + "\003(\0132\r.context.Link\"L\n\tLinkEvent\022\035\n\005event" + "\030\001 \001(\0132\016.context.Event\022 \n\007link_id\030\002 \001(\0132" + "\017.context.LinkId\"X\n\tServiceId\022&\n\ncontext" + "_id\030\001 \001(\0132\022.context.ContextId\022#\n\014service" + "_uuid\030\002 \001(\0132\r.context.Uuid\"\333\002\n\007Service\022&" + "\n\nservice_id\030\001 \001(\0132\022.context.ServiceId\022\014" + "\n\004name\030\002 \001(\t\022.\n\014service_type\030\003 \001(\0162\030.con" + "text.ServiceTypeEnum\0221\n\024service_endpoint" + "_ids\030\004 \003(\0132\023.context.EndPointId\0220\n\023servi" + "ce_constraints\030\005 \003(\0132\023.context.Constrain" + "t\022.\n\016service_status\030\006 \001(\0132\026.context.Serv" + "iceStatus\022.\n\016service_config\030\007 \001(\0132\026.cont" + "ext.ServiceConfig\022%\n\ttimestamp\030\010 \001(\0132\022.c" + "ontext.Timestamp\"C\n\rServiceStatus\0222\n\016ser" + "vice_status\030\001 \001(\0162\032.context.ServiceStatu" + "sEnum\":\n\rServiceConfig\022)\n\014config_rules\030\001" + " \003(\0132\023.context.ConfigRule\"8\n\rServiceIdLi" + "st\022\'\n\013service_ids\030\001 \003(\0132\022.context.Servic" + "eId\"1\n\013ServiceList\022\"\n\010services\030\001 \003(\0132\020.c" + "ontext.Service\"\225\001\n\rServiceFilter\022+\n\013serv" + "ice_ids\030\001 \001(\0132\026.context.ServiceIdList\022\034\n" + "\024include_endpoint_ids\030\002 \001(\010\022\033\n\023include_c" + "onstraints\030\003 \001(\010\022\034\n\024include_config_rules" + "\030\004 \001(\010\"U\n\014ServiceEvent\022\035\n\005event\030\001 \001(\0132\016." + "context.Event\022&\n\nservice_id\030\002 \001(\0132\022.cont" + "ext.ServiceId\"T\n\007SliceId\022&\n\ncontext_id\030\001" + " \001(\0132\022.context.ContextId\022!\n\nslice_uuid\030\002" + " \001(\0132\r.context.Uuid\"\240\003\n\005Slice\022\"\n\010slice_i" + "d\030\001 \001(\0132\020.context.SliceId\022\014\n\004name\030\002 \001(\t\022" + "/\n\022slice_endpoint_ids\030\003 \003(\0132\023.context.En" + "dPointId\022.\n\021slice_constraints\030\004 \003(\0132\023.co" + "ntext.Constraint\022-\n\021slice_service_ids\030\005 " + "\003(\0132\022.context.ServiceId\022,\n\022slice_subslic" + "e_ids\030\006 \003(\0132\020.context.SliceId\022*\n\014slice_s" + "tatus\030\007 \001(\0132\024.context.SliceStatus\022*\n\014sli" + "ce_config\030\010 \001(\0132\024.context.SliceConfig\022(\n" + "\013slice_owner\030\t \001(\0132\023.context.SliceOwner\022" + "%\n\ttimestamp\030\n \001(\0132\022.context.Timestamp\"E" + "\n\nSliceOwner\022!\n\nowner_uuid\030\001 \001(\0132\r.conte" + "xt.Uuid\022\024\n\014owner_string\030\002 \001(\t\"=\n\013SliceSt" + "atus\022.\n\014slice_status\030\001 \001(\0162\030.context.Sli" + "ceStatusEnum\"8\n\013SliceConfig\022)\n\014config_ru" + "les\030\001 \003(\0132\023.context.ConfigRule\"2\n\013SliceI" + "dList\022#\n\tslice_ids\030\001 \003(\0132\020.context.Slice" + "Id\"+\n\tSliceList\022\036\n\006slices\030\001 \003(\0132\016.contex" + "t.Slice\"\312\001\n\013SliceFilter\022\'\n\tslice_ids\030\001 \001" + "(\0132\024.context.SliceIdList\022\034\n\024include_endp" + "oint_ids\030\002 \001(\010\022\033\n\023include_constraints\030\003 " + "\001(\010\022\033\n\023include_service_ids\030\004 \001(\010\022\034\n\024incl" + "ude_subslice_ids\030\005 \001(\010\022\034\n\024include_config" + "_rules\030\006 \001(\010\"O\n\nSliceEvent\022\035\n\005event\030\001 \001(" + "\0132\016.context.Event\022\"\n\010slice_id\030\002 \001(\0132\020.co" + "ntext.SliceId\"6\n\014ConnectionId\022&\n\017connect" + "ion_uuid\030\001 \001(\0132\r.context.Uuid\"2\n\025Connect" + "ionSettings_L0\022\031\n\021lsp_symbolic_name\030\001 \001(" + "\t\"\236\001\n\025ConnectionSettings_L2\022\027\n\017src_mac_a" + "ddress\030\001 \001(\t\022\027\n\017dst_mac_address\030\002 \001(\t\022\022\n" + "\nether_type\030\003 \001(\r\022\017\n\007vlan_id\030\004 \001(\r\022\022\n\nmp" + "ls_label\030\005 \001(\r\022\032\n\022mpls_traffic_class\030\006 \001" + "(\r\"t\n\025ConnectionSettings_L3\022\026\n\016src_ip_ad" + "dress\030\001 \001(\t\022\026\n\016dst_ip_address\030\002 \001(\t\022\014\n\004d" + "scp\030\003 \001(\r\022\020\n\010protocol\030\004 \001(\r\022\013\n\003ttl\030\005 \001(\r" + "\"[\n\025ConnectionSettings_L4\022\020\n\010src_port\030\001 " + "\001(\r\022\020\n\010dst_port\030\002 \001(\r\022\021\n\ttcp_flags\030\003 \001(\r" + "\022\013\n\003ttl\030\004 \001(\r\"\304\001\n\022ConnectionSettings\022*\n\002" + "l0\030\001 \001(\0132\036.context.ConnectionSettings_L0" + "\022*\n\002l2\030\002 \001(\0132\036.context.ConnectionSetting" + "s_L2\022*\n\002l3\030\003 \001(\0132\036.context.ConnectionSet" + "tings_L3\022*\n\002l4\030\004 \001(\0132\036.context.Connectio" + "nSettings_L4\"\363\001\n\nConnection\022,\n\rconnectio" + "n_id\030\001 \001(\0132\025.context.ConnectionId\022&\n\nser" + "vice_id\030\002 \001(\0132\022.context.ServiceId\0223\n\026pat" + "h_hops_endpoint_ids\030\003 \003(\0132\023.context.EndP" + "ointId\022+\n\017sub_service_ids\030\004 \003(\0132\022.contex" + "t.ServiceId\022-\n\010settings\030\005 \001(\0132\033.context." + "ConnectionSettings\"A\n\020ConnectionIdList\022-" + "\n\016connection_ids\030\001 \003(\0132\025.context.Connect" + "ionId\":\n\016ConnectionList\022(\n\013connections\030\001" + " \003(\0132\023.context.Connection\"^\n\017ConnectionE" + "vent\022\035\n\005event\030\001 \001(\0132\016.context.Event\022,\n\rc" + "onnection_id\030\002 \001(\0132\025.context.ConnectionI" + "d\"\202\001\n\nEndPointId\022(\n\013topology_id\030\001 \001(\0132\023." + "context.TopologyId\022$\n\tdevice_id\030\002 \001(\0132\021." + "context.DeviceId\022$\n\rendpoint_uuid\030\003 \001(\0132" + "\r.context.Uuid\"\310\002\n\010EndPoint\022(\n\013endpoint_" + "id\030\001 \001(\0132\023.context.EndPointId\022\014\n\004name\030\002 " + "\001(\t\022\025\n\rendpoint_type\030\003 \001(\t\0229\n\020kpi_sample" + "_types\030\004 \003(\0162\037.kpi_sample_types.KpiSampl" + "eType\022,\n\021endpoint_location\030\005 \001(\0132\021.conte" + "xt.Location\0229\n\014capabilities\030\006 \003(\0132#.cont" + "ext.EndPoint.CapabilitiesEntry\032I\n\021Capabi" + "litiesEntry\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132" + "\024.google.protobuf.Any:\0028\001\"{\n\014EndPointNam" + "e\022(\n\013endpoint_id\030\001 \001(\0132\023.context.EndPoin" + "tId\022\023\n\013device_name\030\002 \001(\t\022\025\n\rendpoint_nam" + "e\030\003 \001(\t\022\025\n\rendpoint_type\030\004 \001(\t\";\n\016EndPoi" + "ntIdList\022)\n\014endpoint_ids\030\001 \003(\0132\023.context" + ".EndPointId\"A\n\020EndPointNameList\022-\n\016endpo" + "int_names\030\001 \003(\0132\025.context.EndPointName\"A" + "\n\021ConfigRule_Custom\022\024\n\014resource_key\030\001 \001(" + "\t\022\026\n\016resource_value\030\002 \001(\t\"]\n\016ConfigRule_" + "ACL\022(\n\013endpoint_id\030\001 \001(\0132\023.context.EndPo" + "intId\022!\n\010rule_set\030\002 \001(\0132\017.acl.AclRuleSet" + "\"h\n\022ConfigRule_IP_LINK\022(\n\013endpoint_id\030\001 " + "\001(\0132\023.context.EndPointId\022(\n\010rule_set\030\002 \001" + "(\0132\026.ip_link.IpLinkRuleSet\"\314\001\n\nConfigRul" + "e\022)\n\006action\030\001 \001(\0162\031.context.ConfigAction" + "Enum\022,\n\006custom\030\002 \001(\0132\032.context.ConfigRul" + "e_CustomH\000\022&\n\003acl\030\003 \001(\0132\027.context.Config" + "Rule_ACLH\000\022.\n\007ip_link\030\004 \001(\0132\033.context.Co" + "nfigRule_IP_LINKH\000B\r\n\013config_rule\"F\n\021Con" + "straint_Custom\022\027\n\017constraint_type\030\001 \001(\t\022" + "\030\n\020constraint_value\030\002 \001(\t\"E\n\023Constraint_" + "Schedule\022\027\n\017start_timestamp\030\001 \001(\001\022\025\n\rdur" + "ation_days\030\002 \001(\002\"3\n\014GPS_Position\022\020\n\010lati" + "tude\030\001 \001(\002\022\021\n\tlongitude\030\002 \001(\002\"\204\001\n\010Locati" + "on\022\020\n\006region\030\001 \001(\tH\000\022-\n\014gps_position\030\002 \001" + "(\0132\025.context.GPS_PositionH\000\022\023\n\tinterface" + "\030\003 \001(\tH\000\022\026\n\014circuit_pack\030\004 \001(\tH\000B\n\n\010loca" + "tion\"l\n\033Constraint_EndPointLocation\022(\n\013e" + "ndpoint_id\030\001 \001(\0132\023.context.EndPointId\022#\n" + "\010location\030\002 \001(\0132\021.context.Location\"Y\n\033Co" + "nstraint_EndPointPriority\022(\n\013endpoint_id" + "\030\001 \001(\0132\023.context.EndPointId\022\020\n\010priority\030" + "\002 \001(\r\"0\n\026Constraint_SLA_Latency\022\026\n\016e2e_l" + "atency_ms\030\001 \001(\002\"0\n\027Constraint_SLA_Capaci" + "ty\022\025\n\rcapacity_gbps\030\001 \001(\002\"c\n\033Constraint_" + "SLA_Availability\022\032\n\022num_disjoint_paths\030\001" + " \001(\r\022\022\n\nall_active\030\002 \001(\010\022\024\n\014availability" + "\030\003 \001(\002\"V\n\036Constraint_SLA_Isolation_level" + "\0224\n\017isolation_level\030\001 \003(\0162\033.context.Isol" + "ationLevelEnum\"\242\001\n\025Constraint_Exclusions" + "\022\024\n\014is_permanent\030\001 \001(\010\022%\n\ndevice_ids\030\002 \003" + "(\0132\021.context.DeviceId\022)\n\014endpoint_ids\030\003 " + "\003(\0132\023.context.EndPointId\022!\n\010link_ids\030\004 \003" + "(\0132\017.context.LinkId\"5\n\014QoSProfileId\022%\n\016q" + "os_profile_id\030\001 \001(\0132\r.context.Uuid\"`\n\025Co" + "nstraint_QoSProfile\022-\n\016qos_profile_id\030\001 " + "\001(\0132\025.context.QoSProfileId\022\030\n\020qos_profil" + "e_name\030\002 \001(\t\"\222\005\n\nConstraint\022-\n\006action\030\001 " + "\001(\0162\035.context.ConstraintActionEnum\022,\n\006cu" + "stom\030\002 \001(\0132\032.context.Constraint_CustomH\000" + "\0220\n\010schedule\030\003 \001(\0132\034.context.Constraint_" + "ScheduleH\000\022A\n\021endpoint_location\030\004 \001(\0132$." + "context.Constraint_EndPointLocationH\000\022A\n" + "\021endpoint_priority\030\005 \001(\0132$.context.Const" + "raint_EndPointPriorityH\000\0228\n\014sla_capacity" + "\030\006 \001(\0132 .context.Constraint_SLA_Capacity" + "H\000\0226\n\013sla_latency\030\007 \001(\0132\037.context.Constr" + "aint_SLA_LatencyH\000\022@\n\020sla_availability\030\010" + " \001(\0132$.context.Constraint_SLA_Availabili" + "tyH\000\022@\n\rsla_isolation\030\t \001(\0132\'.context.Co" + "nstraint_SLA_Isolation_levelH\000\0224\n\nexclus" + "ions\030\n \001(\0132\036.context.Constraint_Exclusio" + "nsH\000\0225\n\013qos_profile\030\013 \001(\0132\036.context.Cons" + "traint_QoSProfileH\000B\014\n\nconstraint\"^\n\022Ter" + "aFlowController\022&\n\ncontext_id\030\001 \001(\0132\022.co" + "ntext.ContextId\022\022\n\nip_address\030\002 \001(\t\022\014\n\004p" + "ort\030\003 \001(\r\"U\n\024AuthenticationResult\022&\n\ncon" + "text_id\030\001 \001(\0132\022.context.ContextId\022\025\n\raut" + "henticated\030\002 \001(\010\"-\n\017OpticalConfigId\022\032\n\022o" + "pticalconfig_uuid\030\001 \001(\t\"y\n\rOpticalConfig" + "\0222\n\020opticalconfig_id\030\001 \001(\0132\030.context.Opt" + "icalConfigId\022\016\n\006config\030\002 \001(\t\022$\n\tdevice_i" + "d\030\003 \001(\0132\021.context.DeviceId\"C\n\021OpticalCon" + "figList\022.\n\016opticalconfigs\030\001 \003(\0132\026.contex" + "t.OpticalConfig\"g\n\022OpticalConfigEvent\022\035\n" + "\005event\030\001 \001(\0132\016.context.Event\0222\n\020opticalc" + "onfig_id\030\002 \001(\0132\030.context.OpticalConfigId" + "\"_\n\021OpticalEndPointId\022$\n\tdevice_id\030\002 \001(\013" + "2\021.context.DeviceId\022$\n\rendpoint_uuid\030\003 \001" + "(\0132\r.context.Uuid\">\n\017OpticalLinkList\022+\n\r" + "optical_links\030\001 \003(\0132\024.context.OpticalLin" + "k\"\304\003\n\022OpticalLinkDetails\022\016\n\006length\030\001 \001(\002" + "\022\020\n\010src_port\030\002 \001(\t\022\020\n\010dst_port\030\003 \001(\t\022\027\n\017" + "local_peer_port\030\004 \001(\t\022\030\n\020remote_peer_por" + "t\030\005 \001(\t\022\014\n\004used\030\006 \001(\010\0228\n\007c_slots\030\007 \003(\0132\'" + ".context.OpticalLinkDetails.CSlotsEntry\022" + "8\n\007l_slots\030\010 \003(\0132\'.context.OpticalLinkDe" + "tails.LSlotsEntry\0228\n\007s_slots\030\t \003(\0132\'.con" + "text.OpticalLinkDetails.SSlotsEntry\032-\n\013C" + "SlotsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\002" + "8\001\032-\n\013LSlotsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\005:\0028\001\032-\n\013SSlotsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\005:\0028\001\"\243\001\n\013OpticalLink\022\014\n\004name" + "\030\001 \001(\t\0224\n\017optical_details\030\002 \001(\0132\033.contex" + "t.OpticalLinkDetails\022 \n\007link_id\030\003 \001(\0132\017." + "context.LinkId\022.\n\021link_endpoint_ids\030\004 \003(" + "\0132\023.context.EndPointId\"0\n\tChannelId\022#\n\014c" + "hannel_uuid\030\001 \001(\0132\r.context.Uuid\"8\n\rOpti" + "calBandId\022\'\n\020opticalband_uuid\030\001 \001(\0132\r.co" + "ntext.Uuid\"\247\002\n\013OpticalBand\022.\n\016opticalban" + "d_id\030\001 \001(\0132\026.context.OpticalBandId\022,\n\rco" + "nnection_id\030\002 \001(\0132\025.context.ConnectionId" + "\022&\n\nchannel_id\030\003 \001(\0132\022.context.ChannelId" + "\022&\n\nservice_id\030\004 \001(\0132\022.context.ServiceId" + "\022#\n\007service\030\005 \001(\0132\020.context.ServiceH\000\022)\n" + "\nconnection\030\006 \001(\0132\023.context.ConnectionH\000" + "\022\021\n\007channel\030\007 \001(\tH\000B\007\n\005field\"=\n\017OpticalB" + "andList\022*\n\014opticalbands\030\001 \003(\0132\024.context." + "OpticalBand\"r\n\021ServiceConfigRule\022&\n\nserv" + "ice_id\030\001 \001(\0132\022.context.ServiceId\0225\n\021conf" + "igrule_custom\030\002 \001(\0132\032.context.ConfigRule" + "_Custom*j\n\rEventTypeEnum\022\027\n\023EVENTTYPE_UN" + "DEFINED\020\000\022\024\n\020EVENTTYPE_CREATE\020\001\022\024\n\020EVENT" + "TYPE_UPDATE\020\002\022\024\n\020EVENTTYPE_REMOVE\020\003*\333\004\n\020" + "DeviceDriverEnum\022\032\n\026DEVICEDRIVER_UNDEFIN" + "ED\020\000\022\033\n\027DEVICEDRIVER_OPENCONFIG\020\001\022\036\n\032DEV" + "ICEDRIVER_TRANSPORT_API\020\002\022\023\n\017DEVICEDRIVE" + "R_P4\020\003\022&\n\"DEVICEDRIVER_IETF_NETWORK_TOPO" + "LOGY\020\004\022\033\n\027DEVICEDRIVER_ONF_TR_532\020\005\022\023\n\017D" + "EVICEDRIVER_XR\020\006\022\033\n\027DEVICEDRIVER_IETF_L2" + "VPN\020\007\022 \n\034DEVICEDRIVER_GNMI_OPENCONFIG\020\010\022" + "\034\n\030DEVICEDRIVER_OPTICAL_TFS\020\t\022\032\n\026DEVICED" + "RIVER_IETF_ACTN\020\n\022\023\n\017DEVICEDRIVER_OC\020\013\022\024" + "\n\020DEVICEDRIVER_QKD\020\014\022\033\n\027DEVICEDRIVER_IET" + "F_L3VPN\020\r\022\033\n\027DEVICEDRIVER_IETF_SLICE\020\016\022\024" + "\n\020DEVICEDRIVER_NCE\020\017\022\031\n\025DEVICEDRIVER_SMA" + "RTNIC\020\020\022\031\n\025DEVICEDRIVER_MORPHEUS\020\021\022\024\n\020DE" + "VICEDRIVER_RYU\020\022\022#\n\037DEVICEDRIVER_GNMI_NO" + "KIA_SRLINUX\020\023\022\032\n\026DEVICEDRIVER_OPENROADM\020" + "\024*\217\001\n\033DeviceOperationalStatusEnum\022%\n!DEV" + "ICEOPERATIONALSTATUS_UNDEFINED\020\000\022$\n DEVI" + "CEOPERATIONALSTATUS_DISABLED\020\001\022#\n\037DEVICE" + "OPERATIONALSTATUS_ENABLED\020\002*\245\001\n\014LinkType" + "Enum\022\024\n\020LINKTYPE_UNKNOWN\020\000\022\023\n\017LINKTYPE_C" + "OPPER\020\001\022\022\n\016LINKTYPE_FIBER\020\002\022\022\n\016LINKTYPE_" + "RADIO\020\003\022\024\n\020LINKTYPE_VIRTUAL\020\004\022\027\n\023LINKTYP" + "E_MANAGEMENT\020\005\022\023\n\017LINKTYPE_REMOTE\020\006*\276\002\n\017" + "ServiceTypeEnum\022\027\n\023SERVICETYPE_UNKNOWN\020\000" + "\022\024\n\020SERVICETYPE_L3NM\020\001\022\024\n\020SERVICETYPE_L2" + "NM\020\002\022)\n%SERVICETYPE_TAPI_CONNECTIVITY_SE" + "RVICE\020\003\022\022\n\016SERVICETYPE_TE\020\004\022\023\n\017SERVICETY" + "PE_E2E\020\005\022$\n SERVICETYPE_OPTICAL_CONNECTI" + "VITY\020\006\022\023\n\017SERVICETYPE_QKD\020\007\022\024\n\020SERVICETY" + "PE_L1NM\020\010\022\023\n\017SERVICETYPE_INT\020\t\022\023\n\017SERVIC" + "ETYPE_ACL\020\n\022\027\n\023SERVICETYPE_IP_LINK\020\013*\304\001\n" + "\021ServiceStatusEnum\022\033\n\027SERVICESTATUS_UNDE" + "FINED\020\000\022\031\n\025SERVICESTATUS_PLANNED\020\001\022\030\n\024SE" + "RVICESTATUS_ACTIVE\020\002\022\032\n\026SERVICESTATUS_UP" + "DATING\020\003\022!\n\035SERVICESTATUS_PENDING_REMOVA" + "L\020\004\022\036\n\032SERVICESTATUS_SLA_VIOLATED\020\005*\251\001\n\017" + "SliceStatusEnum\022\031\n\025SLICESTATUS_UNDEFINED" + "\020\000\022\027\n\023SLICESTATUS_PLANNED\020\001\022\024\n\020SLICESTAT" + "US_INIT\020\002\022\026\n\022SLICESTATUS_ACTIVE\020\003\022\026\n\022SLI" + "CESTATUS_DEINIT\020\004\022\034\n\030SLICESTATUS_SLA_VIO" + "LATED\020\005*]\n\020ConfigActionEnum\022\032\n\026CONFIGACT" + "ION_UNDEFINED\020\000\022\024\n\020CONFIGACTION_SET\020\001\022\027\n" + "\023CONFIGACTION_DELETE\020\002*m\n\024ConstraintActi" + "onEnum\022\036\n\032CONSTRAINTACTION_UNDEFINED\020\000\022\030" + "\n\024CONSTRAINTACTION_SET\020\001\022\033\n\027CONSTRAINTAC" + "TION_DELETE\020\002*\203\002\n\022IsolationLevelEnum\022\020\n\014" + "NO_ISOLATION\020\000\022\026\n\022PHYSICAL_ISOLATION\020\001\022\025" + "\n\021LOGICAL_ISOLATION\020\002\022\025\n\021PROCESS_ISOLATI" + "ON\020\003\022\035\n\031PHYSICAL_MEMORY_ISOLATION\020\004\022\036\n\032P" + "HYSICAL_NETWORK_ISOLATION\020\005\022\036\n\032VIRTUAL_R" + "ESOURCE_ISOLATION\020\006\022\037\n\033NETWORK_FUNCTIONS" + "_ISOLATION\020\007\022\025\n\021SERVICE_ISOLATION\020\0102\274\035\n\016" + "ContextService\022:\n\016ListContextIds\022\016.conte" + "xt.Empty\032\026.context.ContextIdList\"\000\0226\n\014Li" + "stContexts\022\016.context.Empty\032\024.context.Con" + "textList\"\000\0224\n\nGetContext\022\022.context.Conte" + "xtId\032\020.context.Context\"\000\0224\n\nSetContext\022\020" + ".context.Context\032\022.context.ContextId\"\000\0225" + "\n\rRemoveContext\022\022.context.ContextId\032\016.co" + "ntext.Empty\"\000\022=\n\020GetContextEvents\022\016.cont" + "ext.Empty\032\025.context.ContextEvent\"\0000\001\022@\n\017" + "ListTopologyIds\022\022.context.ContextId\032\027.co" + "ntext.TopologyIdList\"\000\022=\n\016ListTopologies" + "\022\022.context.ContextId\032\025.context.TopologyL" + "ist\"\000\0227\n\013GetTopology\022\023.context.TopologyI" + "d\032\021.context.Topology\"\000\022E\n\022GetTopologyDet" + "ails\022\023.context.TopologyId\032\030.context.Topo" + "logyDetails\"\000\0227\n\013SetTopology\022\021.context.T" + "opology\032\023.context.TopologyId\"\000\0227\n\016Remove" + "Topology\022\023.context.TopologyId\032\016.context." + "Empty\"\000\022?\n\021GetTopologyEvents\022\016.context.E" + "mpty\032\026.context.TopologyEvent\"\0000\001\0228\n\rList" + "DeviceIds\022\016.context.Empty\032\025.context.Devi" + "ceIdList\"\000\0224\n\013ListDevices\022\016.context.Empt" + "y\032\023.context.DeviceList\"\000\0221\n\tGetDevice\022\021." + "context.DeviceId\032\017.context.Device\"\000\0221\n\tS" + "etDevice\022\017.context.Device\032\021.context.Devi" + "ceId\"\000\0223\n\014RemoveDevice\022\021.context.DeviceI" + "d\032\016.context.Empty\"\000\022;\n\017GetDeviceEvents\022\016" + ".context.Empty\032\024.context.DeviceEvent\"\0000\001" + "\022<\n\014SelectDevice\022\025.context.DeviceFilter\032" + "\023.context.DeviceList\"\000\022I\n\021ListEndPointNa" + "mes\022\027.context.EndPointIdList\032\031.context.E" + "ndPointNameList\"\000\0224\n\013ListLinkIds\022\016.conte" + "xt.Empty\032\023.context.LinkIdList\"\000\0220\n\tListL" + "inks\022\016.context.Empty\032\021.context.LinkList\"" + "\000\022+\n\007GetLink\022\017.context.LinkId\032\r.context." + "Link\"\000\022+\n\007SetLink\022\r.context.Link\032\017.conte" + "xt.LinkId\"\000\022/\n\nRemoveLink\022\017.context.Link" + "Id\032\016.context.Empty\"\000\0227\n\rGetLinkEvents\022\016." + "context.Empty\032\022.context.LinkEvent\"\0000\001\022>\n" + "\016ListServiceIds\022\022.context.ContextId\032\026.co" + "ntext.ServiceIdList\"\000\022:\n\014ListServices\022\022." + "context.ContextId\032\024.context.ServiceList\"" + "\000\0224\n\nGetService\022\022.context.ServiceId\032\020.co" + "ntext.Service\"\000\0224\n\nSetService\022\020.context." + "Service\032\022.context.ServiceId\"\000\0226\n\014UnsetSe" + "rvice\022\020.context.Service\032\022.context.Servic" + "eId\"\000\0225\n\rRemoveService\022\022.context.Service" + "Id\032\016.context.Empty\"\000\022=\n\020GetServiceEvents" + "\022\016.context.Empty\032\025.context.ServiceEvent\"" + "\0000\001\022?\n\rSelectService\022\026.context.ServiceFi" + "lter\032\024.context.ServiceList\"\000\022:\n\014ListSlic" + "eIds\022\022.context.ContextId\032\024.context.Slice" + "IdList\"\000\0226\n\nListSlices\022\022.context.Context" + "Id\032\022.context.SliceList\"\000\022.\n\010GetSlice\022\020.c" + "ontext.SliceId\032\016.context.Slice\"\000\022.\n\010SetS" + "lice\022\016.context.Slice\032\020.context.SliceId\"\000" + "\0220\n\nUnsetSlice\022\016.context.Slice\032\020.context" + ".SliceId\"\000\0221\n\013RemoveSlice\022\020.context.Slic" + "eId\032\016.context.Empty\"\000\0229\n\016GetSliceEvents\022" + "\016.context.Empty\032\023.context.SliceEvent\"\0000\001" + "\0229\n\013SelectSlice\022\024.context.SliceFilter\032\022." + "context.SliceList\"\000\022D\n\021ListConnectionIds", "\022\022.context.ServiceId\032\031.context.Connectio" + "nIdList\"\000\022@\n\017ListConnections\022\022.context.S" + "erviceId\032\027.context.ConnectionList\"\000\022=\n\rG" + "etConnection\022\025.context.ConnectionId\032\023.co" + "ntext.Connection\"\000\022=\n\rSetConnection\022\023.co" + "ntext.Connection\032\025.context.ConnectionId\"" + "\000\022;\n\020RemoveConnection\022\025.context.Connecti" + "onId\032\016.context.Empty\"\000\022C\n\023GetConnectionE" + "vents\022\016.context.Empty\032\030.context.Connecti" + "onEvent\"\0000\001\0225\n\014GetAllEvents\022\016.context.Em" + "pty\032\021.context.AnyEvent\"\0000\001\022@\n\020GetOptical" + "Config\022\016.context.Empty\032\032.context.Optical" + "ConfigList\"\000\022F\n\020SetOpticalConfig\022\026.conte" + "xt.OpticalConfig\032\030.context.OpticalConfig" + "Id\"\000\022I\n\023UpdateOpticalConfig\022\026.context.Op" + "ticalConfig\032\030.context.OpticalConfigId\"\000\022" + "I\n\023SelectOpticalConfig\022\030.context.Optical" + "ConfigId\032\026.context.OpticalConfig\"\000\022A\n\023De" + "leteOpticalConfig\022\030.context.OpticalConfi" + "gId\032\016.context.Empty\"\000\022@\n\024DeleteOpticalCh" + "annel\022\026.context.OpticalConfig\032\016.context." + "Empty\"\000\0228\n\016SetOpticalLink\022\024.context.Opti" + "calLink\032\016.context.Empty\"\000\0229\n\016GetOpticalL" + "ink\022\017.context.LinkId\032\024.context.OpticalLi" + "nk\"\000\0226\n\021DeleteOpticalLink\022\017.context.Link" + "Id\032\016.context.Empty\"\000\022@\n\022GetOpticalLinkLi" + "st\022\016.context.Empty\032\030.context.OpticalLink" + "List\"\000\022<\n\016GetOpticalBand\022\016.context.Empty" + "\032\030.context.OpticalBandList\"\000\022C\n\021SelectOp" + "ticalBand\022\026.context.OpticalBandId\032\024.cont" + "ext.OpticalBand\"\000\022G\n\027DeleteServiceConfig" + "Rule\022\032.context.ServiceConfigRule\032\016.conte" + "xt.Empty\"\000b\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), acl.Acl.getDescriptor(), ip_link.IpLink.getDescriptor(), kpi_sample_types.KpiSampleTypes.getDescriptor() }); internal_static_context_Empty_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_context_Empty_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Empty_descriptor, new java.lang.String[] {}); internal_static_context_Uuid_descriptor = getDescriptor().getMessageTypes().get(1); @@ -83464,53 +88132,55 @@ public final class ContextOuterClass { internal_static_context_ConfigRule_Custom_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_Custom_descriptor, new java.lang.String[] { "ResourceKey", "ResourceValue" }); internal_static_context_ConfigRule_ACL_descriptor = getDescriptor().getMessageTypes().get(63); internal_static_context_ConfigRule_ACL_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_ACL_descriptor, new java.lang.String[] { "EndpointId", "RuleSet" }); - internal_static_context_ConfigRule_descriptor = getDescriptor().getMessageTypes().get(64); - internal_static_context_ConfigRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_descriptor, new java.lang.String[] { "Action", "Custom", "Acl", "ConfigRule" }); - internal_static_context_Constraint_Custom_descriptor = getDescriptor().getMessageTypes().get(65); + internal_static_context_ConfigRule_IP_LINK_descriptor = getDescriptor().getMessageTypes().get(64); + internal_static_context_ConfigRule_IP_LINK_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_IP_LINK_descriptor, new java.lang.String[] { "EndpointId", "RuleSet" }); + internal_static_context_ConfigRule_descriptor = getDescriptor().getMessageTypes().get(65); + internal_static_context_ConfigRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_descriptor, new java.lang.String[] { "Action", "Custom", "Acl", "IpLink", "ConfigRule" }); + internal_static_context_Constraint_Custom_descriptor = getDescriptor().getMessageTypes().get(66); internal_static_context_Constraint_Custom_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_Custom_descriptor, new java.lang.String[] { "ConstraintType", "ConstraintValue" }); - internal_static_context_Constraint_Schedule_descriptor = getDescriptor().getMessageTypes().get(66); + internal_static_context_Constraint_Schedule_descriptor = getDescriptor().getMessageTypes().get(67); internal_static_context_Constraint_Schedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_Schedule_descriptor, new java.lang.String[] { "StartTimestamp", "DurationDays" }); - internal_static_context_GPS_Position_descriptor = getDescriptor().getMessageTypes().get(67); + internal_static_context_GPS_Position_descriptor = getDescriptor().getMessageTypes().get(68); internal_static_context_GPS_Position_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_GPS_Position_descriptor, new java.lang.String[] { "Latitude", "Longitude" }); - internal_static_context_Location_descriptor = getDescriptor().getMessageTypes().get(68); + internal_static_context_Location_descriptor = getDescriptor().getMessageTypes().get(69); internal_static_context_Location_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Location_descriptor, new java.lang.String[] { "Region", "GpsPosition", "Interface", "CircuitPack", "Location" }); - internal_static_context_Constraint_EndPointLocation_descriptor = getDescriptor().getMessageTypes().get(69); + internal_static_context_Constraint_EndPointLocation_descriptor = getDescriptor().getMessageTypes().get(70); internal_static_context_Constraint_EndPointLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_EndPointLocation_descriptor, new java.lang.String[] { "EndpointId", "Location" }); - internal_static_context_Constraint_EndPointPriority_descriptor = getDescriptor().getMessageTypes().get(70); + internal_static_context_Constraint_EndPointPriority_descriptor = getDescriptor().getMessageTypes().get(71); internal_static_context_Constraint_EndPointPriority_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_EndPointPriority_descriptor, new java.lang.String[] { "EndpointId", "Priority" }); - internal_static_context_Constraint_SLA_Latency_descriptor = getDescriptor().getMessageTypes().get(71); + internal_static_context_Constraint_SLA_Latency_descriptor = getDescriptor().getMessageTypes().get(72); internal_static_context_Constraint_SLA_Latency_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_SLA_Latency_descriptor, new java.lang.String[] { "E2ELatencyMs" }); - internal_static_context_Constraint_SLA_Capacity_descriptor = getDescriptor().getMessageTypes().get(72); + internal_static_context_Constraint_SLA_Capacity_descriptor = getDescriptor().getMessageTypes().get(73); internal_static_context_Constraint_SLA_Capacity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_SLA_Capacity_descriptor, new java.lang.String[] { "CapacityGbps" }); - internal_static_context_Constraint_SLA_Availability_descriptor = getDescriptor().getMessageTypes().get(73); + internal_static_context_Constraint_SLA_Availability_descriptor = getDescriptor().getMessageTypes().get(74); internal_static_context_Constraint_SLA_Availability_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_SLA_Availability_descriptor, new java.lang.String[] { "NumDisjointPaths", "AllActive", "Availability" }); - internal_static_context_Constraint_SLA_Isolation_level_descriptor = getDescriptor().getMessageTypes().get(74); + internal_static_context_Constraint_SLA_Isolation_level_descriptor = getDescriptor().getMessageTypes().get(75); internal_static_context_Constraint_SLA_Isolation_level_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_SLA_Isolation_level_descriptor, new java.lang.String[] { "IsolationLevel" }); - internal_static_context_Constraint_Exclusions_descriptor = getDescriptor().getMessageTypes().get(75); + internal_static_context_Constraint_Exclusions_descriptor = getDescriptor().getMessageTypes().get(76); internal_static_context_Constraint_Exclusions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_Exclusions_descriptor, new java.lang.String[] { "IsPermanent", "DeviceIds", "EndpointIds", "LinkIds" }); - internal_static_context_QoSProfileId_descriptor = getDescriptor().getMessageTypes().get(76); + internal_static_context_QoSProfileId_descriptor = getDescriptor().getMessageTypes().get(77); internal_static_context_QoSProfileId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_QoSProfileId_descriptor, new java.lang.String[] { "QosProfileId" }); - internal_static_context_Constraint_QoSProfile_descriptor = getDescriptor().getMessageTypes().get(77); + internal_static_context_Constraint_QoSProfile_descriptor = getDescriptor().getMessageTypes().get(78); internal_static_context_Constraint_QoSProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_QoSProfile_descriptor, new java.lang.String[] { "QosProfileId", "QosProfileName" }); - internal_static_context_Constraint_descriptor = getDescriptor().getMessageTypes().get(78); + internal_static_context_Constraint_descriptor = getDescriptor().getMessageTypes().get(79); internal_static_context_Constraint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_descriptor, new java.lang.String[] { "Action", "Custom", "Schedule", "EndpointLocation", "EndpointPriority", "SlaCapacity", "SlaLatency", "SlaAvailability", "SlaIsolation", "Exclusions", "QosProfile", "Constraint" }); - internal_static_context_TeraFlowController_descriptor = getDescriptor().getMessageTypes().get(79); + internal_static_context_TeraFlowController_descriptor = getDescriptor().getMessageTypes().get(80); internal_static_context_TeraFlowController_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_TeraFlowController_descriptor, new java.lang.String[] { "ContextId", "IpAddress", "Port" }); - internal_static_context_AuthenticationResult_descriptor = getDescriptor().getMessageTypes().get(80); + internal_static_context_AuthenticationResult_descriptor = getDescriptor().getMessageTypes().get(81); internal_static_context_AuthenticationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_AuthenticationResult_descriptor, new java.lang.String[] { "ContextId", "Authenticated" }); - internal_static_context_OpticalConfigId_descriptor = getDescriptor().getMessageTypes().get(81); + internal_static_context_OpticalConfigId_descriptor = getDescriptor().getMessageTypes().get(82); internal_static_context_OpticalConfigId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalConfigId_descriptor, new java.lang.String[] { "OpticalconfigUuid" }); - internal_static_context_OpticalConfig_descriptor = getDescriptor().getMessageTypes().get(82); + internal_static_context_OpticalConfig_descriptor = getDescriptor().getMessageTypes().get(83); internal_static_context_OpticalConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalConfig_descriptor, new java.lang.String[] { "OpticalconfigId", "Config", "DeviceId" }); - internal_static_context_OpticalConfigList_descriptor = getDescriptor().getMessageTypes().get(83); + internal_static_context_OpticalConfigList_descriptor = getDescriptor().getMessageTypes().get(84); internal_static_context_OpticalConfigList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalConfigList_descriptor, new java.lang.String[] { "Opticalconfigs" }); - internal_static_context_OpticalConfigEvent_descriptor = getDescriptor().getMessageTypes().get(84); + internal_static_context_OpticalConfigEvent_descriptor = getDescriptor().getMessageTypes().get(85); internal_static_context_OpticalConfigEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalConfigEvent_descriptor, new java.lang.String[] { "Event", "OpticalconfigId" }); - internal_static_context_OpticalEndPointId_descriptor = getDescriptor().getMessageTypes().get(85); + internal_static_context_OpticalEndPointId_descriptor = getDescriptor().getMessageTypes().get(86); internal_static_context_OpticalEndPointId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalEndPointId_descriptor, new java.lang.String[] { "DeviceId", "EndpointUuid" }); - internal_static_context_OpticalLinkList_descriptor = getDescriptor().getMessageTypes().get(86); + internal_static_context_OpticalLinkList_descriptor = getDescriptor().getMessageTypes().get(87); internal_static_context_OpticalLinkList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkList_descriptor, new java.lang.String[] { "OpticalLinks" }); - internal_static_context_OpticalLinkDetails_descriptor = getDescriptor().getMessageTypes().get(87); + internal_static_context_OpticalLinkDetails_descriptor = getDescriptor().getMessageTypes().get(88); internal_static_context_OpticalLinkDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkDetails_descriptor, new java.lang.String[] { "Length", "SrcPort", "DstPort", "LocalPeerPort", "RemotePeerPort", "Used", "CSlots", "LSlots", "SSlots" }); internal_static_context_OpticalLinkDetails_CSlotsEntry_descriptor = internal_static_context_OpticalLinkDetails_descriptor.getNestedTypes().get(0); internal_static_context_OpticalLinkDetails_CSlotsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkDetails_CSlotsEntry_descriptor, new java.lang.String[] { "Key", "Value" }); @@ -83518,12 +88188,21 @@ public final class ContextOuterClass { internal_static_context_OpticalLinkDetails_LSlotsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkDetails_LSlotsEntry_descriptor, new java.lang.String[] { "Key", "Value" }); internal_static_context_OpticalLinkDetails_SSlotsEntry_descriptor = internal_static_context_OpticalLinkDetails_descriptor.getNestedTypes().get(2); internal_static_context_OpticalLinkDetails_SSlotsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkDetails_SSlotsEntry_descriptor, new java.lang.String[] { "Key", "Value" }); - internal_static_context_OpticalLink_descriptor = getDescriptor().getMessageTypes().get(88); + internal_static_context_OpticalLink_descriptor = getDescriptor().getMessageTypes().get(89); internal_static_context_OpticalLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLink_descriptor, new java.lang.String[] { "Name", "OpticalDetails", "LinkId", "LinkEndpointIds" }); - internal_static_context_ServiceConfigRule_descriptor = getDescriptor().getMessageTypes().get(89); + internal_static_context_ChannelId_descriptor = getDescriptor().getMessageTypes().get(90); + internal_static_context_ChannelId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ChannelId_descriptor, new java.lang.String[] { "ChannelUuid" }); + internal_static_context_OpticalBandId_descriptor = getDescriptor().getMessageTypes().get(91); + internal_static_context_OpticalBandId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalBandId_descriptor, new java.lang.String[] { "OpticalbandUuid" }); + internal_static_context_OpticalBand_descriptor = getDescriptor().getMessageTypes().get(92); + internal_static_context_OpticalBand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalBand_descriptor, new java.lang.String[] { "OpticalbandId", "ConnectionId", "ChannelId", "ServiceId", "Service", "Connection", "Channel", "Field" }); + internal_static_context_OpticalBandList_descriptor = getDescriptor().getMessageTypes().get(93); + internal_static_context_OpticalBandList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalBandList_descriptor, new java.lang.String[] { "Opticalbands" }); + internal_static_context_ServiceConfigRule_descriptor = getDescriptor().getMessageTypes().get(94); internal_static_context_ServiceConfigRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ServiceConfigRule_descriptor, new java.lang.String[] { "ServiceId", "ConfigruleCustom" }); com.google.protobuf.AnyProto.getDescriptor(); acl.Acl.getDescriptor(); + ip_link.IpLink.getDescriptor(); kpi_sample_types.KpiSampleTypes.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/policy/target/generated-sources/grpc/context/ContextService.java b/src/policy/target/generated-sources/grpc/context/ContextService.java index 7f1bff63e..03808104f 100644 --- a/src/policy/target/generated-sources/grpc/context/ContextService.java +++ b/src/policy/target/generated-sources/grpc/context/ContextService.java @@ -114,6 +114,10 @@ public interface ContextService extends MutinyService { io.smallrye.mutiny.Uni getOpticalLinkList(context.ContextOuterClass.Empty request); + io.smallrye.mutiny.Uni getOpticalBand(context.ContextOuterClass.Empty request); + + io.smallrye.mutiny.Uni selectOpticalBand(context.ContextOuterClass.OpticalBandId request); + io.smallrye.mutiny.Uni deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request); io.smallrye.mutiny.Multi getContextEvents(context.ContextOuterClass.Empty request); diff --git a/src/policy/target/generated-sources/grpc/context/ContextServiceBean.java b/src/policy/target/generated-sources/grpc/context/ContextServiceBean.java index 201d659ab..92607010e 100644 --- a/src/policy/target/generated-sources/grpc/context/ContextServiceBean.java +++ b/src/policy/target/generated-sources/grpc/context/ContextServiceBean.java @@ -481,6 +481,24 @@ public class ContextServiceBean extends MutinyContextServiceGrpc.ContextServiceI } } + @Override + public io.smallrye.mutiny.Uni getOpticalBand(context.ContextOuterClass.Empty request) { + try { + return delegate.getOpticalBand(request); + } catch (UnsupportedOperationException e) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + } + + @Override + public io.smallrye.mutiny.Uni selectOpticalBand(context.ContextOuterClass.OpticalBandId request) { + try { + return delegate.selectOpticalBand(request); + } catch (UnsupportedOperationException e) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + } + @Override public io.smallrye.mutiny.Uni deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request) { try { diff --git a/src/policy/target/generated-sources/grpc/context/ContextServiceClient.java b/src/policy/target/generated-sources/grpc/context/ContextServiceClient.java index 67c1a0db8..6ae74ff54 100644 --- a/src/policy/target/generated-sources/grpc/context/ContextServiceClient.java +++ b/src/policy/target/generated-sources/grpc/context/ContextServiceClient.java @@ -285,6 +285,16 @@ public class ContextServiceClient implements ContextService, MutinyClient getOpticalBand(context.ContextOuterClass.Empty request) { + return stub.getOpticalBand(request); + } + + @Override + public io.smallrye.mutiny.Uni selectOpticalBand(context.ContextOuterClass.OpticalBandId request) { + return stub.selectOpticalBand(request); + } + @Override public io.smallrye.mutiny.Uni deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request) { return stub.deleteServiceConfigRule(request); diff --git a/src/policy/target/generated-sources/grpc/context/ContextServiceGrpc.java b/src/policy/target/generated-sources/grpc/context/ContextServiceGrpc.java index fcdf13968..780d0b089 100644 --- a/src/policy/target/generated-sources/grpc/context/ContextServiceGrpc.java +++ b/src/policy/target/generated-sources/grpc/context/ContextServiceGrpc.java @@ -914,6 +914,36 @@ public final class ContextServiceGrpc { return getGetOpticalLinkListMethod; } + private static volatile io.grpc.MethodDescriptor getGetOpticalBandMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + "GetOpticalBand", requestType = context.ContextOuterClass.Empty.class, responseType = context.ContextOuterClass.OpticalBandList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetOpticalBandMethod() { + io.grpc.MethodDescriptor getGetOpticalBandMethod; + if ((getGetOpticalBandMethod = ContextServiceGrpc.getGetOpticalBandMethod) == null) { + synchronized (ContextServiceGrpc.class) { + if ((getGetOpticalBandMethod = ContextServiceGrpc.getGetOpticalBandMethod) == null) { + ContextServiceGrpc.getGetOpticalBandMethod = getGetOpticalBandMethod = io.grpc.MethodDescriptor.newBuilder().setType(io.grpc.MethodDescriptor.MethodType.UNARY).setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOpticalBand")).setSampledToLocalTracing(true).setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(context.ContextOuterClass.Empty.getDefaultInstance())).setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(context.ContextOuterClass.OpticalBandList.getDefaultInstance())).setSchemaDescriptor(new ContextServiceMethodDescriptorSupplier("GetOpticalBand")).build(); + } + } + } + return getGetOpticalBandMethod; + } + + private static volatile io.grpc.MethodDescriptor getSelectOpticalBandMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + "SelectOpticalBand", requestType = context.ContextOuterClass.OpticalBandId.class, responseType = context.ContextOuterClass.OpticalBand.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSelectOpticalBandMethod() { + io.grpc.MethodDescriptor getSelectOpticalBandMethod; + if ((getSelectOpticalBandMethod = ContextServiceGrpc.getSelectOpticalBandMethod) == null) { + synchronized (ContextServiceGrpc.class) { + if ((getSelectOpticalBandMethod = ContextServiceGrpc.getSelectOpticalBandMethod) == null) { + ContextServiceGrpc.getSelectOpticalBandMethod = getSelectOpticalBandMethod = io.grpc.MethodDescriptor.newBuilder().setType(io.grpc.MethodDescriptor.MethodType.UNARY).setFullMethodName(generateFullMethodName(SERVICE_NAME, "SelectOpticalBand")).setSampledToLocalTracing(true).setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(context.ContextOuterClass.OpticalBandId.getDefaultInstance())).setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(context.ContextOuterClass.OpticalBand.getDefaultInstance())).setSchemaDescriptor(new ContextServiceMethodDescriptorSupplier("SelectOpticalBand")).build(); + } + } + } + return getSelectOpticalBandMethod; + } + private static volatile io.grpc.MethodDescriptor getDeleteServiceConfigRuleMethod; @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + "DeleteServiceConfigRule", requestType = context.ContextOuterClass.ServiceConfigRule.class, responseType = context.ContextOuterClass.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) @@ -1338,6 +1368,18 @@ public final class ContextServiceGrpc { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOpticalLinkListMethod(), responseObserver); } + /** + */ + default void getOpticalBand(context.ContextOuterClass.Empty request, io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOpticalBandMethod(), responseObserver); + } + + /** + */ + default void selectOpticalBand(context.ContextOuterClass.OpticalBandId request, io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSelectOpticalBandMethod(), responseObserver); + } + /** */ default void deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request, io.grpc.stub.StreamObserver responseObserver) { @@ -1733,6 +1775,18 @@ public final class ContextServiceGrpc { io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetOpticalLinkListMethod(), getCallOptions()), request, responseObserver); } + /** + */ + public void getOpticalBand(context.ContextOuterClass.Empty request, io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetOpticalBandMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void selectOpticalBand(context.ContextOuterClass.OpticalBandId request, io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getSelectOpticalBandMethod(), getCallOptions()), request, responseObserver); + } + /** */ public void deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request, io.grpc.stub.StreamObserver responseObserver) { @@ -2117,6 +2171,18 @@ public final class ContextServiceGrpc { return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetOpticalLinkListMethod(), getCallOptions(), request); } + /** + */ + public context.ContextOuterClass.OpticalBandList getOpticalBand(context.ContextOuterClass.Empty request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetOpticalBandMethod(), getCallOptions(), request); + } + + /** + */ + public context.ContextOuterClass.OpticalBand selectOpticalBand(context.ContextOuterClass.OpticalBandId request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getSelectOpticalBandMethod(), getCallOptions(), request); + } + /** */ public context.ContextOuterClass.Empty deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request) { @@ -2453,6 +2519,18 @@ public final class ContextServiceGrpc { return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getGetOpticalLinkListMethod(), getCallOptions()), request); } + /** + */ + public com.google.common.util.concurrent.ListenableFuture getOpticalBand(context.ContextOuterClass.Empty request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getGetOpticalBandMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture selectOpticalBand(context.ContextOuterClass.OpticalBandId request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getSelectOpticalBandMethod(), getCallOptions()), request); + } + /** */ public com.google.common.util.concurrent.ListenableFuture deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request) { @@ -2580,7 +2658,11 @@ public final class ContextServiceGrpc { private static final int METHODID_GET_OPTICAL_LINK_LIST = 59; - private static final int METHODID_DELETE_SERVICE_CONFIG_RULE = 60; + private static final int METHODID_GET_OPTICAL_BAND = 60; + + private static final int METHODID_SELECT_OPTICAL_BAND = 61; + + private static final int METHODID_DELETE_SERVICE_CONFIG_RULE = 62; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { @@ -2777,6 +2859,12 @@ public final class ContextServiceGrpc { case METHODID_GET_OPTICAL_LINK_LIST: serviceImpl.getOpticalLinkList((context.ContextOuterClass.Empty) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_OPTICAL_BAND: + serviceImpl.getOpticalBand((context.ContextOuterClass.Empty) request, (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SELECT_OPTICAL_BAND: + serviceImpl.selectOpticalBand((context.ContextOuterClass.OpticalBandId) request, (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_SERVICE_CONFIG_RULE: serviceImpl.deleteServiceConfigRule((context.ContextOuterClass.ServiceConfigRule) request, (io.grpc.stub.StreamObserver) responseObserver); break; @@ -2796,7 +2884,7 @@ public final class ContextServiceGrpc { } public static io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()).addMethod(getListContextIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_CONTEXT_IDS))).addMethod(getListContextsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_CONTEXTS))).addMethod(getGetContextMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_CONTEXT))).addMethod(getSetContextMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_CONTEXT))).addMethod(getRemoveContextMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_CONTEXT))).addMethod(getGetContextEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_CONTEXT_EVENTS))).addMethod(getListTopologyIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_TOPOLOGY_IDS))).addMethod(getListTopologiesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_TOPOLOGIES))).addMethod(getGetTopologyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_TOPOLOGY))).addMethod(getGetTopologyDetailsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_TOPOLOGY_DETAILS))).addMethod(getSetTopologyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_TOPOLOGY))).addMethod(getRemoveTopologyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_TOPOLOGY))).addMethod(getGetTopologyEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_TOPOLOGY_EVENTS))).addMethod(getListDeviceIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_DEVICE_IDS))).addMethod(getListDevicesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_DEVICES))).addMethod(getGetDeviceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_DEVICE))).addMethod(getSetDeviceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_DEVICE))).addMethod(getRemoveDeviceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_DEVICE))).addMethod(getGetDeviceEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_DEVICE_EVENTS))).addMethod(getSelectDeviceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_DEVICE))).addMethod(getListEndPointNamesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_END_POINT_NAMES))).addMethod(getListLinkIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_LINK_IDS))).addMethod(getListLinksMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_LINKS))).addMethod(getGetLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_LINK))).addMethod(getSetLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_LINK))).addMethod(getRemoveLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_LINK))).addMethod(getGetLinkEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_LINK_EVENTS))).addMethod(getListServiceIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_SERVICE_IDS))).addMethod(getListServicesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_SERVICES))).addMethod(getGetServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_SERVICE))).addMethod(getSetServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_SERVICE))).addMethod(getUnsetServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_UNSET_SERVICE))).addMethod(getRemoveServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_SERVICE))).addMethod(getGetServiceEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_SERVICE_EVENTS))).addMethod(getSelectServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_SERVICE))).addMethod(getListSliceIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_SLICE_IDS))).addMethod(getListSlicesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_SLICES))).addMethod(getGetSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_SLICE))).addMethod(getSetSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_SLICE))).addMethod(getUnsetSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_UNSET_SLICE))).addMethod(getRemoveSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_SLICE))).addMethod(getGetSliceEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_SLICE_EVENTS))).addMethod(getSelectSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_SLICE))).addMethod(getListConnectionIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_CONNECTION_IDS))).addMethod(getListConnectionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_CONNECTIONS))).addMethod(getGetConnectionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_CONNECTION))).addMethod(getSetConnectionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_CONNECTION))).addMethod(getRemoveConnectionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_CONNECTION))).addMethod(getGetConnectionEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_CONNECTION_EVENTS))).addMethod(getGetAllEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_ALL_EVENTS))).addMethod(getGetOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_OPTICAL_CONFIG))).addMethod(getSetOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_OPTICAL_CONFIG))).addMethod(getUpdateOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_UPDATE_OPTICAL_CONFIG))).addMethod(getSelectOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_OPTICAL_CONFIG))).addMethod(getDeleteOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_DELETE_OPTICAL_CONFIG))).addMethod(getDeleteOpticalChannelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_DELETE_OPTICAL_CHANNEL))).addMethod(getSetOpticalLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_OPTICAL_LINK))).addMethod(getGetOpticalLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_OPTICAL_LINK))).addMethod(getDeleteOpticalLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_DELETE_OPTICAL_LINK))).addMethod(getGetOpticalLinkListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_OPTICAL_LINK_LIST))).addMethod(getDeleteServiceConfigRuleMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_DELETE_SERVICE_CONFIG_RULE))).build(); + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()).addMethod(getListContextIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_CONTEXT_IDS))).addMethod(getListContextsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_CONTEXTS))).addMethod(getGetContextMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_CONTEXT))).addMethod(getSetContextMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_CONTEXT))).addMethod(getRemoveContextMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_CONTEXT))).addMethod(getGetContextEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_CONTEXT_EVENTS))).addMethod(getListTopologyIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_TOPOLOGY_IDS))).addMethod(getListTopologiesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_TOPOLOGIES))).addMethod(getGetTopologyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_TOPOLOGY))).addMethod(getGetTopologyDetailsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_TOPOLOGY_DETAILS))).addMethod(getSetTopologyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_TOPOLOGY))).addMethod(getRemoveTopologyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_TOPOLOGY))).addMethod(getGetTopologyEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_TOPOLOGY_EVENTS))).addMethod(getListDeviceIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_DEVICE_IDS))).addMethod(getListDevicesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_DEVICES))).addMethod(getGetDeviceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_DEVICE))).addMethod(getSetDeviceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_DEVICE))).addMethod(getRemoveDeviceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_DEVICE))).addMethod(getGetDeviceEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_DEVICE_EVENTS))).addMethod(getSelectDeviceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_DEVICE))).addMethod(getListEndPointNamesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_END_POINT_NAMES))).addMethod(getListLinkIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_LINK_IDS))).addMethod(getListLinksMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_LINKS))).addMethod(getGetLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_LINK))).addMethod(getSetLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_LINK))).addMethod(getRemoveLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_LINK))).addMethod(getGetLinkEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_LINK_EVENTS))).addMethod(getListServiceIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_SERVICE_IDS))).addMethod(getListServicesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_SERVICES))).addMethod(getGetServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_SERVICE))).addMethod(getSetServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_SERVICE))).addMethod(getUnsetServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_UNSET_SERVICE))).addMethod(getRemoveServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_SERVICE))).addMethod(getGetServiceEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_SERVICE_EVENTS))).addMethod(getSelectServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_SERVICE))).addMethod(getListSliceIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_SLICE_IDS))).addMethod(getListSlicesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_SLICES))).addMethod(getGetSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_SLICE))).addMethod(getSetSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_SLICE))).addMethod(getUnsetSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_UNSET_SLICE))).addMethod(getRemoveSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_SLICE))).addMethod(getGetSliceEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_SLICE_EVENTS))).addMethod(getSelectSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_SLICE))).addMethod(getListConnectionIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_CONNECTION_IDS))).addMethod(getListConnectionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_CONNECTIONS))).addMethod(getGetConnectionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_CONNECTION))).addMethod(getSetConnectionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_CONNECTION))).addMethod(getRemoveConnectionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_CONNECTION))).addMethod(getGetConnectionEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_CONNECTION_EVENTS))).addMethod(getGetAllEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_ALL_EVENTS))).addMethod(getGetOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_OPTICAL_CONFIG))).addMethod(getSetOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_OPTICAL_CONFIG))).addMethod(getUpdateOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_UPDATE_OPTICAL_CONFIG))).addMethod(getSelectOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_OPTICAL_CONFIG))).addMethod(getDeleteOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_DELETE_OPTICAL_CONFIG))).addMethod(getDeleteOpticalChannelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_DELETE_OPTICAL_CHANNEL))).addMethod(getSetOpticalLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_OPTICAL_LINK))).addMethod(getGetOpticalLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_OPTICAL_LINK))).addMethod(getDeleteOpticalLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_DELETE_OPTICAL_LINK))).addMethod(getGetOpticalLinkListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_OPTICAL_LINK_LIST))).addMethod(getGetOpticalBandMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_OPTICAL_BAND))).addMethod(getSelectOpticalBandMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_OPTICAL_BAND))).addMethod(getDeleteServiceConfigRuleMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_DELETE_SERVICE_CONFIG_RULE))).build(); } private static abstract class ContextServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { @@ -2843,7 +2931,7 @@ public final class ContextServiceGrpc { synchronized (ContextServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME).setSchemaDescriptor(new ContextServiceFileDescriptorSupplier()).addMethod(getListContextIdsMethod()).addMethod(getListContextsMethod()).addMethod(getGetContextMethod()).addMethod(getSetContextMethod()).addMethod(getRemoveContextMethod()).addMethod(getGetContextEventsMethod()).addMethod(getListTopologyIdsMethod()).addMethod(getListTopologiesMethod()).addMethod(getGetTopologyMethod()).addMethod(getGetTopologyDetailsMethod()).addMethod(getSetTopologyMethod()).addMethod(getRemoveTopologyMethod()).addMethod(getGetTopologyEventsMethod()).addMethod(getListDeviceIdsMethod()).addMethod(getListDevicesMethod()).addMethod(getGetDeviceMethod()).addMethod(getSetDeviceMethod()).addMethod(getRemoveDeviceMethod()).addMethod(getGetDeviceEventsMethod()).addMethod(getSelectDeviceMethod()).addMethod(getListEndPointNamesMethod()).addMethod(getListLinkIdsMethod()).addMethod(getListLinksMethod()).addMethod(getGetLinkMethod()).addMethod(getSetLinkMethod()).addMethod(getRemoveLinkMethod()).addMethod(getGetLinkEventsMethod()).addMethod(getListServiceIdsMethod()).addMethod(getListServicesMethod()).addMethod(getGetServiceMethod()).addMethod(getSetServiceMethod()).addMethod(getUnsetServiceMethod()).addMethod(getRemoveServiceMethod()).addMethod(getGetServiceEventsMethod()).addMethod(getSelectServiceMethod()).addMethod(getListSliceIdsMethod()).addMethod(getListSlicesMethod()).addMethod(getGetSliceMethod()).addMethod(getSetSliceMethod()).addMethod(getUnsetSliceMethod()).addMethod(getRemoveSliceMethod()).addMethod(getGetSliceEventsMethod()).addMethod(getSelectSliceMethod()).addMethod(getListConnectionIdsMethod()).addMethod(getListConnectionsMethod()).addMethod(getGetConnectionMethod()).addMethod(getSetConnectionMethod()).addMethod(getRemoveConnectionMethod()).addMethod(getGetConnectionEventsMethod()).addMethod(getGetAllEventsMethod()).addMethod(getGetOpticalConfigMethod()).addMethod(getSetOpticalConfigMethod()).addMethod(getUpdateOpticalConfigMethod()).addMethod(getSelectOpticalConfigMethod()).addMethod(getDeleteOpticalConfigMethod()).addMethod(getDeleteOpticalChannelMethod()).addMethod(getSetOpticalLinkMethod()).addMethod(getGetOpticalLinkMethod()).addMethod(getDeleteOpticalLinkMethod()).addMethod(getGetOpticalLinkListMethod()).addMethod(getDeleteServiceConfigRuleMethod()).build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME).setSchemaDescriptor(new ContextServiceFileDescriptorSupplier()).addMethod(getListContextIdsMethod()).addMethod(getListContextsMethod()).addMethod(getGetContextMethod()).addMethod(getSetContextMethod()).addMethod(getRemoveContextMethod()).addMethod(getGetContextEventsMethod()).addMethod(getListTopologyIdsMethod()).addMethod(getListTopologiesMethod()).addMethod(getGetTopologyMethod()).addMethod(getGetTopologyDetailsMethod()).addMethod(getSetTopologyMethod()).addMethod(getRemoveTopologyMethod()).addMethod(getGetTopologyEventsMethod()).addMethod(getListDeviceIdsMethod()).addMethod(getListDevicesMethod()).addMethod(getGetDeviceMethod()).addMethod(getSetDeviceMethod()).addMethod(getRemoveDeviceMethod()).addMethod(getGetDeviceEventsMethod()).addMethod(getSelectDeviceMethod()).addMethod(getListEndPointNamesMethod()).addMethod(getListLinkIdsMethod()).addMethod(getListLinksMethod()).addMethod(getGetLinkMethod()).addMethod(getSetLinkMethod()).addMethod(getRemoveLinkMethod()).addMethod(getGetLinkEventsMethod()).addMethod(getListServiceIdsMethod()).addMethod(getListServicesMethod()).addMethod(getGetServiceMethod()).addMethod(getSetServiceMethod()).addMethod(getUnsetServiceMethod()).addMethod(getRemoveServiceMethod()).addMethod(getGetServiceEventsMethod()).addMethod(getSelectServiceMethod()).addMethod(getListSliceIdsMethod()).addMethod(getListSlicesMethod()).addMethod(getGetSliceMethod()).addMethod(getSetSliceMethod()).addMethod(getUnsetSliceMethod()).addMethod(getRemoveSliceMethod()).addMethod(getGetSliceEventsMethod()).addMethod(getSelectSliceMethod()).addMethod(getListConnectionIdsMethod()).addMethod(getListConnectionsMethod()).addMethod(getGetConnectionMethod()).addMethod(getSetConnectionMethod()).addMethod(getRemoveConnectionMethod()).addMethod(getGetConnectionEventsMethod()).addMethod(getGetAllEventsMethod()).addMethod(getGetOpticalConfigMethod()).addMethod(getSetOpticalConfigMethod()).addMethod(getUpdateOpticalConfigMethod()).addMethod(getSelectOpticalConfigMethod()).addMethod(getDeleteOpticalConfigMethod()).addMethod(getDeleteOpticalChannelMethod()).addMethod(getSetOpticalLinkMethod()).addMethod(getGetOpticalLinkMethod()).addMethod(getDeleteOpticalLinkMethod()).addMethod(getGetOpticalLinkListMethod()).addMethod(getGetOpticalBandMethod()).addMethod(getSelectOpticalBandMethod()).addMethod(getDeleteServiceConfigRuleMethod()).build(); } } } diff --git a/src/policy/target/generated-sources/grpc/context/MutinyContextServiceGrpc.java b/src/policy/target/generated-sources/grpc/context/MutinyContextServiceGrpc.java index 187f431d1..5e574a903 100644 --- a/src/policy/target/generated-sources/grpc/context/MutinyContextServiceGrpc.java +++ b/src/policy/target/generated-sources/grpc/context/MutinyContextServiceGrpc.java @@ -248,6 +248,14 @@ public final class MutinyContextServiceGrpc implements io.quarkus.grpc.MutinyGrp return io.quarkus.grpc.stubs.ClientCalls.oneToOne(request, delegateStub::getOpticalLinkList); } + public io.smallrye.mutiny.Uni getOpticalBand(context.ContextOuterClass.Empty request) { + return io.quarkus.grpc.stubs.ClientCalls.oneToOne(request, delegateStub::getOpticalBand); + } + + public io.smallrye.mutiny.Uni selectOpticalBand(context.ContextOuterClass.OpticalBandId request) { + return io.quarkus.grpc.stubs.ClientCalls.oneToOne(request, delegateStub::selectOpticalBand); + } + public io.smallrye.mutiny.Uni deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request) { return io.quarkus.grpc.stubs.ClientCalls.oneToOne(request, delegateStub::deleteServiceConfigRule); } @@ -512,6 +520,14 @@ public final class MutinyContextServiceGrpc implements io.quarkus.grpc.MutinyGrp throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); } + public io.smallrye.mutiny.Uni getOpticalBand(context.ContextOuterClass.Empty request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + public io.smallrye.mutiny.Uni selectOpticalBand(context.ContextOuterClass.OpticalBandId request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + public io.smallrye.mutiny.Uni deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request) { throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); } @@ -550,7 +566,7 @@ public final class MutinyContextServiceGrpc implements io.quarkus.grpc.MutinyGrp @java.lang.Override public io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()).addMethod(context.ContextServiceGrpc.getListContextIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_CONTEXT_IDS, compression))).addMethod(context.ContextServiceGrpc.getListContextsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_CONTEXTS, compression))).addMethod(context.ContextServiceGrpc.getGetContextMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_CONTEXT, compression))).addMethod(context.ContextServiceGrpc.getSetContextMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_CONTEXT, compression))).addMethod(context.ContextServiceGrpc.getRemoveContextMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_CONTEXT, compression))).addMethod(context.ContextServiceGrpc.getGetContextEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_CONTEXT_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getListTopologyIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_TOPOLOGY_IDS, compression))).addMethod(context.ContextServiceGrpc.getListTopologiesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_TOPOLOGIES, compression))).addMethod(context.ContextServiceGrpc.getGetTopologyMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_TOPOLOGY, compression))).addMethod(context.ContextServiceGrpc.getGetTopologyDetailsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_TOPOLOGY_DETAILS, compression))).addMethod(context.ContextServiceGrpc.getSetTopologyMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_TOPOLOGY, compression))).addMethod(context.ContextServiceGrpc.getRemoveTopologyMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_TOPOLOGY, compression))).addMethod(context.ContextServiceGrpc.getGetTopologyEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_TOPOLOGY_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getListDeviceIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_DEVICE_IDS, compression))).addMethod(context.ContextServiceGrpc.getListDevicesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_DEVICES, compression))).addMethod(context.ContextServiceGrpc.getGetDeviceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_DEVICE, compression))).addMethod(context.ContextServiceGrpc.getSetDeviceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_DEVICE, compression))).addMethod(context.ContextServiceGrpc.getRemoveDeviceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_DEVICE, compression))).addMethod(context.ContextServiceGrpc.getGetDeviceEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_DEVICE_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getSelectDeviceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_DEVICE, compression))).addMethod(context.ContextServiceGrpc.getListEndPointNamesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_END_POINT_NAMES, compression))).addMethod(context.ContextServiceGrpc.getListLinkIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_LINK_IDS, compression))).addMethod(context.ContextServiceGrpc.getListLinksMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_LINKS, compression))).addMethod(context.ContextServiceGrpc.getGetLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_LINK, compression))).addMethod(context.ContextServiceGrpc.getSetLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_LINK, compression))).addMethod(context.ContextServiceGrpc.getRemoveLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_LINK, compression))).addMethod(context.ContextServiceGrpc.getGetLinkEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_LINK_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getListServiceIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_SERVICE_IDS, compression))).addMethod(context.ContextServiceGrpc.getListServicesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_SERVICES, compression))).addMethod(context.ContextServiceGrpc.getGetServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getSetServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getUnsetServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_UNSET_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getRemoveServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getGetServiceEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_SERVICE_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getSelectServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getListSliceIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_SLICE_IDS, compression))).addMethod(context.ContextServiceGrpc.getListSlicesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_SLICES, compression))).addMethod(context.ContextServiceGrpc.getGetSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_SLICE, compression))).addMethod(context.ContextServiceGrpc.getSetSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_SLICE, compression))).addMethod(context.ContextServiceGrpc.getUnsetSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_UNSET_SLICE, compression))).addMethod(context.ContextServiceGrpc.getRemoveSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_SLICE, compression))).addMethod(context.ContextServiceGrpc.getGetSliceEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_SLICE_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getSelectSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_SLICE, compression))).addMethod(context.ContextServiceGrpc.getListConnectionIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_CONNECTION_IDS, compression))).addMethod(context.ContextServiceGrpc.getListConnectionsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_CONNECTIONS, compression))).addMethod(context.ContextServiceGrpc.getGetConnectionMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_CONNECTION, compression))).addMethod(context.ContextServiceGrpc.getSetConnectionMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_CONNECTION, compression))).addMethod(context.ContextServiceGrpc.getRemoveConnectionMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_CONNECTION, compression))).addMethod(context.ContextServiceGrpc.getGetConnectionEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_CONNECTION_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getGetAllEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_ALL_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getGetOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getSetOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getUpdateOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_UPDATE_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getSelectOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getDeleteOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_DELETE_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getDeleteOpticalChannelMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_DELETE_OPTICAL_CHANNEL, compression))).addMethod(context.ContextServiceGrpc.getSetOpticalLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_OPTICAL_LINK, compression))).addMethod(context.ContextServiceGrpc.getGetOpticalLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_OPTICAL_LINK, compression))).addMethod(context.ContextServiceGrpc.getDeleteOpticalLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_DELETE_OPTICAL_LINK, compression))).addMethod(context.ContextServiceGrpc.getGetOpticalLinkListMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_OPTICAL_LINK_LIST, compression))).addMethod(context.ContextServiceGrpc.getDeleteServiceConfigRuleMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_DELETE_SERVICE_CONFIG_RULE, compression))).build(); + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()).addMethod(context.ContextServiceGrpc.getListContextIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_CONTEXT_IDS, compression))).addMethod(context.ContextServiceGrpc.getListContextsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_CONTEXTS, compression))).addMethod(context.ContextServiceGrpc.getGetContextMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_CONTEXT, compression))).addMethod(context.ContextServiceGrpc.getSetContextMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_CONTEXT, compression))).addMethod(context.ContextServiceGrpc.getRemoveContextMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_CONTEXT, compression))).addMethod(context.ContextServiceGrpc.getGetContextEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_CONTEXT_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getListTopologyIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_TOPOLOGY_IDS, compression))).addMethod(context.ContextServiceGrpc.getListTopologiesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_TOPOLOGIES, compression))).addMethod(context.ContextServiceGrpc.getGetTopologyMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_TOPOLOGY, compression))).addMethod(context.ContextServiceGrpc.getGetTopologyDetailsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_TOPOLOGY_DETAILS, compression))).addMethod(context.ContextServiceGrpc.getSetTopologyMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_TOPOLOGY, compression))).addMethod(context.ContextServiceGrpc.getRemoveTopologyMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_TOPOLOGY, compression))).addMethod(context.ContextServiceGrpc.getGetTopologyEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_TOPOLOGY_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getListDeviceIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_DEVICE_IDS, compression))).addMethod(context.ContextServiceGrpc.getListDevicesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_DEVICES, compression))).addMethod(context.ContextServiceGrpc.getGetDeviceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_DEVICE, compression))).addMethod(context.ContextServiceGrpc.getSetDeviceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_DEVICE, compression))).addMethod(context.ContextServiceGrpc.getRemoveDeviceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_DEVICE, compression))).addMethod(context.ContextServiceGrpc.getGetDeviceEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_DEVICE_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getSelectDeviceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_DEVICE, compression))).addMethod(context.ContextServiceGrpc.getListEndPointNamesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_END_POINT_NAMES, compression))).addMethod(context.ContextServiceGrpc.getListLinkIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_LINK_IDS, compression))).addMethod(context.ContextServiceGrpc.getListLinksMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_LINKS, compression))).addMethod(context.ContextServiceGrpc.getGetLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_LINK, compression))).addMethod(context.ContextServiceGrpc.getSetLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_LINK, compression))).addMethod(context.ContextServiceGrpc.getRemoveLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_LINK, compression))).addMethod(context.ContextServiceGrpc.getGetLinkEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_LINK_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getListServiceIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_SERVICE_IDS, compression))).addMethod(context.ContextServiceGrpc.getListServicesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_SERVICES, compression))).addMethod(context.ContextServiceGrpc.getGetServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getSetServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getUnsetServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_UNSET_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getRemoveServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getGetServiceEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_SERVICE_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getSelectServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getListSliceIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_SLICE_IDS, compression))).addMethod(context.ContextServiceGrpc.getListSlicesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_SLICES, compression))).addMethod(context.ContextServiceGrpc.getGetSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_SLICE, compression))).addMethod(context.ContextServiceGrpc.getSetSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_SLICE, compression))).addMethod(context.ContextServiceGrpc.getUnsetSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_UNSET_SLICE, compression))).addMethod(context.ContextServiceGrpc.getRemoveSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_SLICE, compression))).addMethod(context.ContextServiceGrpc.getGetSliceEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_SLICE_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getSelectSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_SLICE, compression))).addMethod(context.ContextServiceGrpc.getListConnectionIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_CONNECTION_IDS, compression))).addMethod(context.ContextServiceGrpc.getListConnectionsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_CONNECTIONS, compression))).addMethod(context.ContextServiceGrpc.getGetConnectionMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_CONNECTION, compression))).addMethod(context.ContextServiceGrpc.getSetConnectionMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_CONNECTION, compression))).addMethod(context.ContextServiceGrpc.getRemoveConnectionMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_CONNECTION, compression))).addMethod(context.ContextServiceGrpc.getGetConnectionEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_CONNECTION_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getGetAllEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_ALL_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getGetOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getSetOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getUpdateOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_UPDATE_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getSelectOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getDeleteOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_DELETE_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getDeleteOpticalChannelMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_DELETE_OPTICAL_CHANNEL, compression))).addMethod(context.ContextServiceGrpc.getSetOpticalLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_OPTICAL_LINK, compression))).addMethod(context.ContextServiceGrpc.getGetOpticalLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_OPTICAL_LINK, compression))).addMethod(context.ContextServiceGrpc.getDeleteOpticalLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_DELETE_OPTICAL_LINK, compression))).addMethod(context.ContextServiceGrpc.getGetOpticalLinkListMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_OPTICAL_LINK_LIST, compression))).addMethod(context.ContextServiceGrpc.getGetOpticalBandMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_OPTICAL_BAND, compression))).addMethod(context.ContextServiceGrpc.getSelectOpticalBandMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_OPTICAL_BAND, compression))).addMethod(context.ContextServiceGrpc.getDeleteServiceConfigRuleMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_DELETE_SERVICE_CONFIG_RULE, compression))).build(); } } @@ -674,7 +690,11 @@ public final class MutinyContextServiceGrpc implements io.quarkus.grpc.MutinyGrp private static final int METHODID_GET_OPTICAL_LINK_LIST = 59; - private static final int METHODID_DELETE_SERVICE_CONFIG_RULE = 60; + private static final int METHODID_GET_OPTICAL_BAND = 60; + + private static final int METHODID_SELECT_OPTICAL_BAND = 61; + + private static final int METHODID_DELETE_SERVICE_CONFIG_RULE = 62; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { @@ -874,6 +894,12 @@ public final class MutinyContextServiceGrpc implements io.quarkus.grpc.MutinyGrp case METHODID_GET_OPTICAL_LINK_LIST: io.quarkus.grpc.stubs.ServerCalls.oneToOne((context.ContextOuterClass.Empty) request, (io.grpc.stub.StreamObserver) responseObserver, compression, serviceImpl::getOpticalLinkList); break; + case METHODID_GET_OPTICAL_BAND: + io.quarkus.grpc.stubs.ServerCalls.oneToOne((context.ContextOuterClass.Empty) request, (io.grpc.stub.StreamObserver) responseObserver, compression, serviceImpl::getOpticalBand); + break; + case METHODID_SELECT_OPTICAL_BAND: + io.quarkus.grpc.stubs.ServerCalls.oneToOne((context.ContextOuterClass.OpticalBandId) request, (io.grpc.stub.StreamObserver) responseObserver, compression, serviceImpl::selectOpticalBand); + break; case METHODID_DELETE_SERVICE_CONFIG_RULE: io.quarkus.grpc.stubs.ServerCalls.oneToOne((context.ContextOuterClass.ServiceConfigRule) request, (io.grpc.stub.StreamObserver) responseObserver, compression, serviceImpl::deleteServiceConfigRule); break; diff --git a/src/policy/target/generated-sources/grpc/ip_link/IpLink.java b/src/policy/target/generated-sources/grpc/ip_link/IpLink.java new file mode 100644 index 000000000..865a27401 --- /dev/null +++ b/src/policy/target/generated-sources/grpc/ip_link/IpLink.java @@ -0,0 +1,830 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ip_link.proto +package ip_link; + +public final class IpLink { + + private IpLink() { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface IpLinkRuleSetOrBuilder extends // @@protoc_insertion_point(interface_extends:ip_link.IpLinkRuleSet) + com.google.protobuf.MessageOrBuilder { + + /** + * string ip = 1; + * @return The ip. + */ + java.lang.String getIp(); + + /** + * string ip = 1; + * @return The bytes for ip. + */ + com.google.protobuf.ByteString getIpBytes(); + + /** + * string mask = 3; + * @return The mask. + */ + java.lang.String getMask(); + + /** + * string mask = 3; + * @return The bytes for mask. + */ + com.google.protobuf.ByteString getMaskBytes(); + + /** + * string vlan = 4; + * @return The vlan. + */ + java.lang.String getVlan(); + + /** + * string vlan = 4; + * @return The bytes for vlan. + */ + com.google.protobuf.ByteString getVlanBytes(); + } + + /** + * Protobuf type {@code ip_link.IpLinkRuleSet} + */ + public static final class IpLinkRuleSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ip_link.IpLinkRuleSet) + IpLinkRuleSetOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use IpLinkRuleSet.newBuilder() to construct. + private IpLinkRuleSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IpLinkRuleSet() { + ip_ = ""; + mask_ = ""; + vlan_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IpLinkRuleSet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ip_link.IpLink.internal_static_ip_link_IpLinkRuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ip_link.IpLink.internal_static_ip_link_IpLinkRuleSet_fieldAccessorTable.ensureFieldAccessorsInitialized(ip_link.IpLink.IpLinkRuleSet.class, ip_link.IpLink.IpLinkRuleSet.Builder.class); + } + + public static final int IP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object ip_ = ""; + + /** + * string ip = 1; + * @return The ip. + */ + @java.lang.Override + public java.lang.String getIp() { + java.lang.Object ref = ip_; + 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(); + ip_ = s; + return s; + } + } + + /** + * string ip = 1; + * @return The bytes for ip. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpBytes() { + java.lang.Object ref = ip_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASK_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object mask_ = ""; + + /** + * string mask = 3; + * @return The mask. + */ + @java.lang.Override + public java.lang.String getMask() { + java.lang.Object ref = mask_; + 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(); + mask_ = s; + return s; + } + } + + /** + * string mask = 3; + * @return The bytes for mask. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMaskBytes() { + java.lang.Object ref = mask_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mask_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VLAN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object vlan_ = ""; + + /** + * string vlan = 4; + * @return The vlan. + */ + @java.lang.Override + public java.lang.String getVlan() { + java.lang.Object ref = vlan_; + 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(); + vlan_ = s; + return s; + } + } + + /** + * string vlan = 4; + * @return The bytes for vlan. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVlanBytes() { + java.lang.Object ref = vlan_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vlan_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ip_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mask_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mask_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlan_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, vlan_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ip_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mask_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mask_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlan_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, vlan_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ip_link.IpLink.IpLinkRuleSet)) { + return super.equals(obj); + } + ip_link.IpLink.IpLinkRuleSet other = (ip_link.IpLink.IpLinkRuleSet) obj; + if (!getIp().equals(other.getIp())) + return false; + if (!getMask().equals(other.getMask())) + return false; + if (!getVlan().equals(other.getVlan())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + 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) + IP_FIELD_NUMBER; + hash = (53 * hash) + getIp().hashCode(); + hash = (37 * hash) + MASK_FIELD_NUMBER; + hash = (53 * hash) + getMask().hashCode(); + hash = (37 * hash) + VLAN_FIELD_NUMBER; + hash = (53 * hash) + getVlan().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ip_link.IpLink.IpLinkRuleSet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ip_link.IpLink.IpLinkRuleSet parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ip_link.IpLink.IpLinkRuleSet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ip_link.IpLink.IpLinkRuleSet parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ip_link.IpLink.IpLinkRuleSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ip_link.IpLink.IpLinkRuleSet parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ip_link.IpLink.IpLinkRuleSet parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ip_link.IpLink.IpLinkRuleSet 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 ip_link.IpLink.IpLinkRuleSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static ip_link.IpLink.IpLinkRuleSet 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 ip_link.IpLink.IpLinkRuleSet parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ip_link.IpLink.IpLinkRuleSet 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(ip_link.IpLink.IpLinkRuleSet 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 ip_link.IpLinkRuleSet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ip_link.IpLinkRuleSet) + ip_link.IpLink.IpLinkRuleSetOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ip_link.IpLink.internal_static_ip_link_IpLinkRuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ip_link.IpLink.internal_static_ip_link_IpLinkRuleSet_fieldAccessorTable.ensureFieldAccessorsInitialized(ip_link.IpLink.IpLinkRuleSet.class, ip_link.IpLink.IpLinkRuleSet.Builder.class); + } + + // Construct using ip_link.IpLink.IpLinkRuleSet.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ip_ = ""; + mask_ = ""; + vlan_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return ip_link.IpLink.internal_static_ip_link_IpLinkRuleSet_descriptor; + } + + @java.lang.Override + public ip_link.IpLink.IpLinkRuleSet getDefaultInstanceForType() { + return ip_link.IpLink.IpLinkRuleSet.getDefaultInstance(); + } + + @java.lang.Override + public ip_link.IpLink.IpLinkRuleSet build() { + ip_link.IpLink.IpLinkRuleSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ip_link.IpLink.IpLinkRuleSet buildPartial() { + ip_link.IpLink.IpLinkRuleSet result = new ip_link.IpLink.IpLinkRuleSet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(ip_link.IpLink.IpLinkRuleSet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ip_ = ip_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mask_ = mask_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vlan_ = vlan_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ip_link.IpLink.IpLinkRuleSet) { + return mergeFrom((ip_link.IpLink.IpLinkRuleSet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ip_link.IpLink.IpLinkRuleSet other) { + if (other == ip_link.IpLink.IpLinkRuleSet.getDefaultInstance()) + return this; + if (!other.getIp().isEmpty()) { + ip_ = other.ip_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMask().isEmpty()) { + mask_ = other.mask_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getVlan().isEmpty()) { + vlan_ = other.vlan_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + ip_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } + // case 10 + case 26: + { + mask_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } + // case 26 + case 34: + { + vlan_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } + // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private java.lang.Object ip_ = ""; + + /** + * string ip = 1; + * @return The ip. + */ + public java.lang.String getIp() { + java.lang.Object ref = ip_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ip_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string ip = 1; + * @return The bytes for ip. + */ + public com.google.protobuf.ByteString getIpBytes() { + java.lang.Object ref = ip_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string ip = 1; + * @param value The ip to set. + * @return This builder for chaining. + */ + public Builder setIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ip_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * string ip = 1; + * @return This builder for chaining. + */ + public Builder clearIp() { + ip_ = getDefaultInstance().getIp(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * string ip = 1; + * @param value The bytes for ip to set. + * @return This builder for chaining. + */ + public Builder setIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ip_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object mask_ = ""; + + /** + * string mask = 3; + * @return The mask. + */ + public java.lang.String getMask() { + java.lang.Object ref = mask_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mask_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string mask = 3; + * @return The bytes for mask. + */ + public com.google.protobuf.ByteString getMaskBytes() { + java.lang.Object ref = mask_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mask_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string mask = 3; + * @param value The mask to set. + * @return This builder for chaining. + */ + public Builder setMask(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mask_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * string mask = 3; + * @return This builder for chaining. + */ + public Builder clearMask() { + mask_ = getDefaultInstance().getMask(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * string mask = 3; + * @param value The bytes for mask to set. + * @return This builder for chaining. + */ + public Builder setMaskBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mask_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object vlan_ = ""; + + /** + * string vlan = 4; + * @return The vlan. + */ + public java.lang.String getVlan() { + java.lang.Object ref = vlan_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vlan_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string vlan = 4; + * @return The bytes for vlan. + */ + public com.google.protobuf.ByteString getVlanBytes() { + java.lang.Object ref = vlan_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vlan_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string vlan = 4; + * @param value The vlan to set. + * @return This builder for chaining. + */ + public Builder setVlan(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vlan_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * string vlan = 4; + * @return This builder for chaining. + */ + public Builder clearVlan() { + vlan_ = getDefaultInstance().getVlan(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * string vlan = 4; + * @param value The bytes for vlan to set. + * @return This builder for chaining. + */ + public Builder setVlanBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vlan_ = value; + bitField0_ |= 0x00000004; + 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:ip_link.IpLinkRuleSet) + } + + // @@protoc_insertion_point(class_scope:ip_link.IpLinkRuleSet) + private static final ip_link.IpLink.IpLinkRuleSet DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new ip_link.IpLink.IpLinkRuleSet(); + } + + public static ip_link.IpLink.IpLinkRuleSet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public IpLinkRuleSet parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ip_link.IpLink.IpLinkRuleSet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ip_link_IpLinkRuleSet_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ip_link_IpLinkRuleSet_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { "\n\rip_link.proto\022\007ip_link\"7\n\rIpLinkRuleSe" + "t\022\n\n\002ip\030\001 \001(\t\022\014\n\004mask\030\003 \001(\t\022\014\n\004vlan\030\004 \001(" + "\tb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_ip_link_IpLinkRuleSet_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_ip_link_IpLinkRuleSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ip_link_IpLinkRuleSet_descriptor, new java.lang.String[] { "Ip", "Mask", "Vlan" }); + } + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/policy/target/kubernetes/kubernetes.yml b/src/policy/target/kubernetes/kubernetes.yml index fec5f6bca..8a7aeca63 100644 --- a/src/policy/target/kubernetes/kubernetes.yml +++ b/src/policy/target/kubernetes/kubernetes.yml @@ -3,8 +3,8 @@ apiVersion: v1 kind: Service metadata: annotations: - app.quarkus.io/commit-id: 439f55c932d52a211fc66ad150b6705e6d90c16c - app.quarkus.io/build-timestamp: 2025-10-20 - 11:25:00 +0000 + app.quarkus.io/commit-id: 905a409221c21205aba667ad34f7610681bd09c1 + app.quarkus.io/build-timestamp: 2025-10-22 - 13:43:53 +0000 prometheus.io/scrape: "true" prometheus.io/path: /q/metrics prometheus.io/port: "8080" @@ -17,18 +17,18 @@ metadata: name: policyservice spec: ports: - - name: grpc - port: 6060 + - name: https + port: 443 protocol: TCP - targetPort: 6060 + targetPort: 8443 - name: http port: 9192 protocol: TCP targetPort: 8080 - - name: https - port: 443 + - name: grpc + port: 6060 protocol: TCP - targetPort: 8443 + targetPort: 6060 selector: app.kubernetes.io/name: policyservice type: ClusterIP @@ -37,8 +37,8 @@ apiVersion: apps/v1 kind: Deployment metadata: annotations: - app.quarkus.io/commit-id: 439f55c932d52a211fc66ad150b6705e6d90c16c - app.quarkus.io/build-timestamp: 2025-10-20 - 11:25:00 +0000 + app.quarkus.io/commit-id: 905a409221c21205aba667ad34f7610681bd09c1 + app.quarkus.io/build-timestamp: 2025-10-22 - 13:43:53 +0000 prometheus.io/scrape: "true" prometheus.io/path: /q/metrics prometheus.io/port: "8080" @@ -46,8 +46,8 @@ metadata: labels: app: policyservice app.kubernetes.io/managed-by: quarkus - app.kubernetes.io/name: policyservice app.kubernetes.io/version: 0.1.0 + app.kubernetes.io/name: policyservice name: policyservice spec: replicas: 1 @@ -57,8 +57,8 @@ spec: template: metadata: annotations: - app.quarkus.io/commit-id: 439f55c932d52a211fc66ad150b6705e6d90c16c - app.quarkus.io/build-timestamp: 2025-10-20 - 11:25:00 +0000 + app.quarkus.io/commit-id: 905a409221c21205aba667ad34f7610681bd09c1 + app.quarkus.io/build-timestamp: 2025-10-22 - 13:43:53 +0000 prometheus.io/scrape: "true" prometheus.io/path: /q/metrics prometheus.io/port: "8080" @@ -66,8 +66,8 @@ spec: labels: app: policyservice app.kubernetes.io/managed-by: quarkus - app.kubernetes.io/name: policyservice app.kubernetes.io/version: 0.1.0 + app.kubernetes.io/name: policyservice spec: containers: - env: @@ -75,14 +75,14 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace - - name: MONITORING_SERVICE_HOST - value: monitoringservice - - name: CONTEXT_SERVICE_HOST - value: contextservice - name: SERVICE_SERVICE_HOST value: serviceservice + - name: CONTEXT_SERVICE_HOST + value: contextservice - name: KAFKA_BROKER_HOST value: kafka-service.kafka.svc.cluster.local + - name: MONITORING_SERVICE_HOST + value: monitoringservice image: labs.etsi.org:5050/tfs/controller/policy:0.1.0 imagePullPolicy: Always livenessProbe: @@ -97,14 +97,14 @@ spec: timeoutSeconds: 10 name: policyservice ports: - - containerPort: 6060 - name: grpc + - containerPort: 8443 + name: https protocol: TCP - containerPort: 8080 name: http protocol: TCP - - containerPort: 8443 - name: https + - containerPort: 6060 + name: grpc protocol: TCP readinessProbe: failureThreshold: 3 diff --git a/src/ztp/src/main/proto/ip_link.proto b/src/ztp/src/main/proto/ip_link.proto new file mode 120000 index 000000000..d6e220880 --- /dev/null +++ b/src/ztp/src/main/proto/ip_link.proto @@ -0,0 +1 @@ +../../../../../proto/ip_link.proto \ No newline at end of file diff --git a/src/ztp/target/generated-sources/grpc/context/ContextOuterClass.java b/src/ztp/target/generated-sources/grpc/context/ContextOuterClass.java index b601360e0..ceec864c6 100644 --- a/src/ztp/target/generated-sources/grpc/context/ContextOuterClass.java +++ b/src/ztp/target/generated-sources/grpc/context/ContextOuterClass.java @@ -227,6 +227,10 @@ public final class ContextOuterClass { * DEVICEDRIVER_GNMI_NOKIA_SRLINUX = 19; */ DEVICEDRIVER_GNMI_NOKIA_SRLINUX(19), + /** + * DEVICEDRIVER_OPENROADM = 20; + */ + DEVICEDRIVER_OPENROADM(20), UNRECOGNIZED(-1); /** @@ -333,6 +337,11 @@ public final class ContextOuterClass { */ public static final int DEVICEDRIVER_GNMI_NOKIA_SRLINUX_VALUE = 19; + /** + * DEVICEDRIVER_OPENROADM = 20; + */ + public static final int DEVICEDRIVER_OPENROADM_VALUE = 20; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException("Can't get the number of an unknown enum value."); @@ -396,6 +405,8 @@ public final class ContextOuterClass { return DEVICEDRIVER_RYU; case 19: return DEVICEDRIVER_GNMI_NOKIA_SRLINUX; + case 20: + return DEVICEDRIVER_OPENROADM; default: return null; } @@ -60462,226 +60473,133 @@ public final class ContextOuterClass { } } - public interface ConfigRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:context.ConfigRule) + public interface ConfigRule_IP_LINKOrBuilder extends // @@protoc_insertion_point(interface_extends:context.ConfigRule_IP_LINK) com.google.protobuf.MessageOrBuilder { /** - * .context.ConfigActionEnum action = 1; - * @return The enum numeric value on the wire for action. - */ - int getActionValue(); - - /** - * .context.ConfigActionEnum action = 1; - * @return The action. - */ - context.ContextOuterClass.ConfigActionEnum getAction(); - - /** - * .context.ConfigRule_Custom custom = 2; - * @return Whether the custom field is set. + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. */ - boolean hasCustom(); + boolean hasEndpointId(); /** - * .context.ConfigRule_Custom custom = 2; - * @return The custom. + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. */ - context.ContextOuterClass.ConfigRule_Custom getCustom(); + context.ContextOuterClass.EndPointId getEndpointId(); /** - * .context.ConfigRule_Custom custom = 2; + * .context.EndPointId endpoint_id = 1; */ - context.ContextOuterClass.ConfigRule_CustomOrBuilder getCustomOrBuilder(); + context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder(); /** - * .context.ConfigRule_ACL acl = 3; - * @return Whether the acl field is set. + * .ip_link.IpLinkRuleSet rule_set = 2; + * @return Whether the ruleSet field is set. */ - boolean hasAcl(); + boolean hasRuleSet(); /** - * .context.ConfigRule_ACL acl = 3; - * @return The acl. + * .ip_link.IpLinkRuleSet rule_set = 2; + * @return The ruleSet. */ - context.ContextOuterClass.ConfigRule_ACL getAcl(); + ip_link.IpLink.IpLinkRuleSet getRuleSet(); /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ - context.ContextOuterClass.ConfigRule_ACLOrBuilder getAclOrBuilder(); - - context.ContextOuterClass.ConfigRule.ConfigRuleCase getConfigRuleCase(); + ip_link.IpLink.IpLinkRuleSetOrBuilder getRuleSetOrBuilder(); } /** - * Protobuf type {@code context.ConfigRule} + * Protobuf type {@code context.ConfigRule_IP_LINK} */ - public static final class ConfigRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.ConfigRule) - ConfigRuleOrBuilder { + public static final class ConfigRule_IP_LINK extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.ConfigRule_IP_LINK) + ConfigRule_IP_LINKOrBuilder { private static final long serialVersionUID = 0L; - // Use ConfigRule.newBuilder() to construct. - private ConfigRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ConfigRule_IP_LINK.newBuilder() to construct. + private ConfigRule_IP_LINK(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfigRule() { - action_ = 0; + private ConfigRule_IP_LINK() { } @java.lang.Override @SuppressWarnings({ "unused" }) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ConfigRule(); + return new ConfigRule_IP_LINK(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_ConfigRule_descriptor; + return context.ContextOuterClass.internal_static_context_ConfigRule_IP_LINK_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_ConfigRule_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule.class, context.ContextOuterClass.ConfigRule.Builder.class); + return context.ContextOuterClass.internal_static_context_ConfigRule_IP_LINK_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule_IP_LINK.class, context.ContextOuterClass.ConfigRule_IP_LINK.Builder.class); } - private int configRuleCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object configRule_; - - public enum ConfigRuleCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - - CUSTOM(2), ACL(3), CONFIGRULE_NOT_SET(0); - - private final int value; - - private ConfigRuleCase(int value) { - this.value = value; - } - - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ConfigRuleCase valueOf(int value) { - return forNumber(value); - } - - public static ConfigRuleCase forNumber(int value) { - switch(value) { - case 2: - return CUSTOM; - case 3: - return ACL; - case 0: - return CONFIGRULE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - } - - public ConfigRuleCase getConfigRuleCase() { - return ConfigRuleCase.forNumber(configRuleCase_); - } - - public static final int ACTION_FIELD_NUMBER = 1; - - private int action_ = 0; + public static final int ENDPOINT_ID_FIELD_NUMBER = 1; - /** - * .context.ConfigActionEnum action = 1; - * @return The enum numeric value on the wire for action. - */ - @java.lang.Override - public int getActionValue() { - return action_; - } + private context.ContextOuterClass.EndPointId endpointId_; /** - * .context.ConfigActionEnum action = 1; - * @return The action. + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. */ @java.lang.Override - public context.ContextOuterClass.ConfigActionEnum getAction() { - context.ContextOuterClass.ConfigActionEnum result = context.ContextOuterClass.ConfigActionEnum.forNumber(action_); - return result == null ? context.ContextOuterClass.ConfigActionEnum.UNRECOGNIZED : result; + public boolean hasEndpointId() { + return endpointId_ != null; } - public static final int CUSTOM_FIELD_NUMBER = 2; - /** - * .context.ConfigRule_Custom custom = 2; - * @return Whether the custom field is set. + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. */ @java.lang.Override - public boolean hasCustom() { - return configRuleCase_ == 2; + public context.ContextOuterClass.EndPointId getEndpointId() { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; } /** - * .context.ConfigRule_Custom custom = 2; - * @return The custom. + * .context.EndPointId endpoint_id = 1; */ @java.lang.Override - public context.ContextOuterClass.ConfigRule_Custom getCustom() { - if (configRuleCase_ == 2) { - return (context.ContextOuterClass.ConfigRule_Custom) configRule_; - } - return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); + public context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder() { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; } - /** - * .context.ConfigRule_Custom custom = 2; - */ - @java.lang.Override - public context.ContextOuterClass.ConfigRule_CustomOrBuilder getCustomOrBuilder() { - if (configRuleCase_ == 2) { - return (context.ContextOuterClass.ConfigRule_Custom) configRule_; - } - return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); - } + public static final int RULE_SET_FIELD_NUMBER = 2; - public static final int ACL_FIELD_NUMBER = 3; + private ip_link.IpLink.IpLinkRuleSet ruleSet_; /** - * .context.ConfigRule_ACL acl = 3; - * @return Whether the acl field is set. + * .ip_link.IpLinkRuleSet rule_set = 2; + * @return Whether the ruleSet field is set. */ @java.lang.Override - public boolean hasAcl() { - return configRuleCase_ == 3; + public boolean hasRuleSet() { + return ruleSet_ != null; } /** - * .context.ConfigRule_ACL acl = 3; - * @return The acl. + * .ip_link.IpLinkRuleSet rule_set = 2; + * @return The ruleSet. */ @java.lang.Override - public context.ContextOuterClass.ConfigRule_ACL getAcl() { - if (configRuleCase_ == 3) { - return (context.ContextOuterClass.ConfigRule_ACL) configRule_; - } - return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + public ip_link.IpLink.IpLinkRuleSet getRuleSet() { + return ruleSet_ == null ? ip_link.IpLink.IpLinkRuleSet.getDefaultInstance() : ruleSet_; } /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ @java.lang.Override - public context.ContextOuterClass.ConfigRule_ACLOrBuilder getAclOrBuilder() { - if (configRuleCase_ == 3) { - return (context.ContextOuterClass.ConfigRule_ACL) configRule_; - } - return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + public ip_link.IpLink.IpLinkRuleSetOrBuilder getRuleSetOrBuilder() { + return ruleSet_ == null ? ip_link.IpLink.IpLinkRuleSet.getDefaultInstance() : ruleSet_; } private byte memoizedIsInitialized = -1; @@ -60699,14 +60617,11 @@ public final class ContextOuterClass { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (action_ != context.ContextOuterClass.ConfigActionEnum.CONFIGACTION_UNDEFINED.getNumber()) { - output.writeEnum(1, action_); - } - if (configRuleCase_ == 2) { - output.writeMessage(2, (context.ContextOuterClass.ConfigRule_Custom) configRule_); + if (endpointId_ != null) { + output.writeMessage(1, getEndpointId()); } - if (configRuleCase_ == 3) { - output.writeMessage(3, (context.ContextOuterClass.ConfigRule_ACL) configRule_); + if (ruleSet_ != null) { + output.writeMessage(2, getRuleSet()); } getUnknownFields().writeTo(output); } @@ -60717,14 +60632,11 @@ public final class ContextOuterClass { if (size != -1) return size; size = 0; - if (action_ != context.ContextOuterClass.ConfigActionEnum.CONFIGACTION_UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, action_); - } - if (configRuleCase_ == 2) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, (context.ContextOuterClass.ConfigRule_Custom) configRule_); + if (endpointId_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEndpointId()); } - if (configRuleCase_ == 3) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, (context.ContextOuterClass.ConfigRule_ACL) configRule_); + if (ruleSet_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRuleSet()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -60736,25 +60648,21 @@ public final class ContextOuterClass { if (obj == this) { return true; } - if (!(obj instanceof context.ContextOuterClass.ConfigRule)) { + if (!(obj instanceof context.ContextOuterClass.ConfigRule_IP_LINK)) { return super.equals(obj); } - context.ContextOuterClass.ConfigRule other = (context.ContextOuterClass.ConfigRule) obj; - if (action_ != other.action_) + context.ContextOuterClass.ConfigRule_IP_LINK other = (context.ContextOuterClass.ConfigRule_IP_LINK) obj; + if (hasEndpointId() != other.hasEndpointId()) return false; - if (!getConfigRuleCase().equals(other.getConfigRuleCase())) + if (hasEndpointId()) { + if (!getEndpointId().equals(other.getEndpointId())) + return false; + } + if (hasRuleSet() != other.hasRuleSet()) return false; - switch(configRuleCase_) { - case 2: - if (!getCustom().equals(other.getCustom())) - return false; - break; - case 3: - if (!getAcl().equals(other.getAcl())) - return false; - break; - case 0: - default: + if (hasRuleSet()) { + if (!getRuleSet().equals(other.getRuleSet())) + return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -60768,70 +60676,64 @@ public final class ContextOuterClass { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ACTION_FIELD_NUMBER; - hash = (53 * hash) + action_; - switch(configRuleCase_) { - case 2: - hash = (37 * hash) + CUSTOM_FIELD_NUMBER; - hash = (53 * hash) + getCustom().hashCode(); - break; - case 3: - hash = (37 * hash) + ACL_FIELD_NUMBER; - hash = (53 * hash) + getAcl().hashCode(); - break; - case 0: - default: + if (hasEndpointId()) { + hash = (37 * hash) + ENDPOINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEndpointId().hashCode(); + } + if (hasRuleSet()) { + hash = (37 * hash) + RULE_SET_FIELD_NUMBER; + hash = (53 * hash) + getRuleSet().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static context.ContextOuterClass.ConfigRule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.ConfigRule parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.ConfigRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.ConfigRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.ConfigRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.ConfigRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.ConfigRule parseFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.ConfigRule parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } - public static context.ContextOuterClass.ConfigRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static context.ContextOuterClass.ConfigRule parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static context.ContextOuterClass.ConfigRule parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.ConfigRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule_IP_LINK parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } @@ -60844,7 +60746,7 @@ public final class ContextOuterClass { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(context.ContextOuterClass.ConfigRule prototype) { + public static Builder newBuilder(context.ContextOuterClass.ConfigRule_IP_LINK prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -60860,21 +60762,21 @@ public final class ContextOuterClass { } /** - * Protobuf type {@code context.ConfigRule} + * Protobuf type {@code context.ConfigRule_IP_LINK} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.ConfigRule) - context.ContextOuterClass.ConfigRuleOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.ConfigRule_IP_LINK) + context.ContextOuterClass.ConfigRule_IP_LINKOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_ConfigRule_descriptor; + return context.ContextOuterClass.internal_static_context_ConfigRule_IP_LINK_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_ConfigRule_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule.class, context.ContextOuterClass.ConfigRule.Builder.class); + return context.ContextOuterClass.internal_static_context_ConfigRule_IP_LINK_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule_IP_LINK.class, context.ContextOuterClass.ConfigRule_IP_LINK.Builder.class); } - // Construct using context.ContextOuterClass.ConfigRule.newBuilder() + // Construct using context.ContextOuterClass.ConfigRule_IP_LINK.newBuilder() private Builder() { } @@ -60886,31 +60788,32 @@ public final class ContextOuterClass { public Builder clear() { super.clear(); bitField0_ = 0; - action_ = 0; - if (customBuilder_ != null) { - customBuilder_.clear(); + endpointId_ = null; + if (endpointIdBuilder_ != null) { + endpointIdBuilder_.dispose(); + endpointIdBuilder_ = null; } - if (aclBuilder_ != null) { - aclBuilder_.clear(); + ruleSet_ = null; + if (ruleSetBuilder_ != null) { + ruleSetBuilder_.dispose(); + ruleSetBuilder_ = null; } - configRuleCase_ = 0; - configRule_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return context.ContextOuterClass.internal_static_context_ConfigRule_descriptor; + return context.ContextOuterClass.internal_static_context_ConfigRule_IP_LINK_descriptor; } @java.lang.Override - public context.ContextOuterClass.ConfigRule getDefaultInstanceForType() { - return context.ContextOuterClass.ConfigRule.getDefaultInstance(); + public context.ContextOuterClass.ConfigRule_IP_LINK getDefaultInstanceForType() { + return context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance(); } @java.lang.Override - public context.ContextOuterClass.ConfigRule build() { - context.ContextOuterClass.ConfigRule result = buildPartial(); + public context.ContextOuterClass.ConfigRule_IP_LINK build() { + context.ContextOuterClass.ConfigRule_IP_LINK result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -60918,65 +60821,43 @@ public final class ContextOuterClass { } @java.lang.Override - public context.ContextOuterClass.ConfigRule buildPartial() { - context.ContextOuterClass.ConfigRule result = new context.ContextOuterClass.ConfigRule(this); + public context.ContextOuterClass.ConfigRule_IP_LINK buildPartial() { + context.ContextOuterClass.ConfigRule_IP_LINK result = new context.ContextOuterClass.ConfigRule_IP_LINK(this); if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(context.ContextOuterClass.ConfigRule result) { + private void buildPartial0(context.ContextOuterClass.ConfigRule_IP_LINK result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.action_ = action_; - } - } - - private void buildPartialOneofs(context.ContextOuterClass.ConfigRule result) { - result.configRuleCase_ = configRuleCase_; - result.configRule_ = this.configRule_; - if (configRuleCase_ == 2 && customBuilder_ != null) { - result.configRule_ = customBuilder_.build(); + result.endpointId_ = endpointIdBuilder_ == null ? endpointId_ : endpointIdBuilder_.build(); } - if (configRuleCase_ == 3 && aclBuilder_ != null) { - result.configRule_ = aclBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ruleSet_ = ruleSetBuilder_ == null ? ruleSet_ : ruleSetBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof context.ContextOuterClass.ConfigRule) { - return mergeFrom((context.ContextOuterClass.ConfigRule) other); + if (other instanceof context.ContextOuterClass.ConfigRule_IP_LINK) { + return mergeFrom((context.ContextOuterClass.ConfigRule_IP_LINK) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(context.ContextOuterClass.ConfigRule other) { - if (other == context.ContextOuterClass.ConfigRule.getDefaultInstance()) + public Builder mergeFrom(context.ContextOuterClass.ConfigRule_IP_LINK other) { + if (other == context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance()) return this; - if (other.action_ != 0) { - setActionValue(other.getActionValue()); + if (other.hasEndpointId()) { + mergeEndpointId(other.getEndpointId()); } - switch(other.getConfigRuleCase()) { - case CUSTOM: - { - mergeCustom(other.getCustom()); - break; - } - case ACL: - { - mergeAcl(other.getAcl()); - break; - } - case CONFIGRULE_NOT_SET: - { - break; - } + if (other.hasRuleSet()) { + mergeRuleSet(other.getRuleSet()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -61001,27 +60882,20 @@ public final class ContextOuterClass { case 0: done = true; break; - case 8: + case 10: { - action_ = input.readEnum(); + input.readMessage(getEndpointIdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } - // case 8 + // case 10 case 18: { - input.readMessage(getCustomFieldBuilder().getBuilder(), extensionRegistry); - configRuleCase_ = 2; + input.readMessage(getRuleSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; break; } // case 18 - case 26: - { - input.readMessage(getAclFieldBuilder().getBuilder(), extensionRegistry); - configRuleCase_ = 3; - break; - } - // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -61043,362 +60917,242 @@ public final class ContextOuterClass { return this; } - private int configRuleCase_ = 0; - - private java.lang.Object configRule_; - - public ConfigRuleCase getConfigRuleCase() { - return ConfigRuleCase.forNumber(configRuleCase_); - } - - public Builder clearConfigRule() { - configRuleCase_ = 0; - configRule_ = null; - onChanged(); - return this; - } - private int bitField0_; - private int action_ = 0; - - /** - * .context.ConfigActionEnum action = 1; - * @return The enum numeric value on the wire for action. - */ - @java.lang.Override - public int getActionValue() { - return action_; - } - - /** - * .context.ConfigActionEnum action = 1; - * @param value The enum numeric value on the wire for action to set. - * @return This builder for chaining. - */ - public Builder setActionValue(int value) { - action_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * .context.ConfigActionEnum action = 1; - * @return The action. - */ - @java.lang.Override - public context.ContextOuterClass.ConfigActionEnum getAction() { - context.ContextOuterClass.ConfigActionEnum result = context.ContextOuterClass.ConfigActionEnum.forNumber(action_); - return result == null ? context.ContextOuterClass.ConfigActionEnum.UNRECOGNIZED : result; - } - - /** - * .context.ConfigActionEnum action = 1; - * @param value The action to set. - * @return This builder for chaining. - */ - public Builder setAction(context.ContextOuterClass.ConfigActionEnum value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - action_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * .context.ConfigActionEnum action = 1; - * @return This builder for chaining. - */ - public Builder clearAction() { - bitField0_ = (bitField0_ & ~0x00000001); - action_ = 0; - onChanged(); - return this; - } + private context.ContextOuterClass.EndPointId endpointId_; - private com.google.protobuf.SingleFieldBuilderV3 customBuilder_; + private com.google.protobuf.SingleFieldBuilderV3 endpointIdBuilder_; /** - * .context.ConfigRule_Custom custom = 2; - * @return Whether the custom field is set. + * .context.EndPointId endpoint_id = 1; + * @return Whether the endpointId field is set. */ - @java.lang.Override - public boolean hasCustom() { - return configRuleCase_ == 2; + public boolean hasEndpointId() { + return ((bitField0_ & 0x00000001) != 0); } /** - * .context.ConfigRule_Custom custom = 2; - * @return The custom. + * .context.EndPointId endpoint_id = 1; + * @return The endpointId. */ - @java.lang.Override - public context.ContextOuterClass.ConfigRule_Custom getCustom() { - if (customBuilder_ == null) { - if (configRuleCase_ == 2) { - return (context.ContextOuterClass.ConfigRule_Custom) configRule_; - } - return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); + public context.ContextOuterClass.EndPointId getEndpointId() { + if (endpointIdBuilder_ == null) { + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; } else { - if (configRuleCase_ == 2) { - return customBuilder_.getMessage(); - } - return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); + return endpointIdBuilder_.getMessage(); } } /** - * .context.ConfigRule_Custom custom = 2; + * .context.EndPointId endpoint_id = 1; */ - public Builder setCustom(context.ContextOuterClass.ConfigRule_Custom value) { - if (customBuilder_ == null) { + public Builder setEndpointId(context.ContextOuterClass.EndPointId value) { + if (endpointIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - configRule_ = value; - onChanged(); + endpointId_ = value; } else { - customBuilder_.setMessage(value); + endpointIdBuilder_.setMessage(value); } - configRuleCase_ = 2; + bitField0_ |= 0x00000001; + onChanged(); return this; } /** - * .context.ConfigRule_Custom custom = 2; + * .context.EndPointId endpoint_id = 1; */ - public Builder setCustom(context.ContextOuterClass.ConfigRule_Custom.Builder builderForValue) { - if (customBuilder_ == null) { - configRule_ = builderForValue.build(); - onChanged(); + public Builder setEndpointId(context.ContextOuterClass.EndPointId.Builder builderForValue) { + if (endpointIdBuilder_ == null) { + endpointId_ = builderForValue.build(); } else { - customBuilder_.setMessage(builderForValue.build()); + endpointIdBuilder_.setMessage(builderForValue.build()); } - configRuleCase_ = 2; + bitField0_ |= 0x00000001; + onChanged(); return this; } /** - * .context.ConfigRule_Custom custom = 2; + * .context.EndPointId endpoint_id = 1; */ - public Builder mergeCustom(context.ContextOuterClass.ConfigRule_Custom value) { - if (customBuilder_ == null) { - if (configRuleCase_ == 2 && configRule_ != context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance()) { - configRule_ = context.ContextOuterClass.ConfigRule_Custom.newBuilder((context.ContextOuterClass.ConfigRule_Custom) configRule_).mergeFrom(value).buildPartial(); + public Builder mergeEndpointId(context.ContextOuterClass.EndPointId value) { + if (endpointIdBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && endpointId_ != null && endpointId_ != context.ContextOuterClass.EndPointId.getDefaultInstance()) { + getEndpointIdBuilder().mergeFrom(value); } else { - configRule_ = value; + endpointId_ = value; } - onChanged(); } else { - if (configRuleCase_ == 2) { - customBuilder_.mergeFrom(value); - } else { - customBuilder_.setMessage(value); - } + endpointIdBuilder_.mergeFrom(value); } - configRuleCase_ = 2; + bitField0_ |= 0x00000001; + onChanged(); return this; } /** - * .context.ConfigRule_Custom custom = 2; + * .context.EndPointId endpoint_id = 1; */ - public Builder clearCustom() { - if (customBuilder_ == null) { - if (configRuleCase_ == 2) { - configRuleCase_ = 0; - configRule_ = null; - onChanged(); - } - } else { - if (configRuleCase_ == 2) { - configRuleCase_ = 0; - configRule_ = null; - } - customBuilder_.clear(); + public Builder clearEndpointId() { + bitField0_ = (bitField0_ & ~0x00000001); + endpointId_ = null; + if (endpointIdBuilder_ != null) { + endpointIdBuilder_.dispose(); + endpointIdBuilder_ = null; } + onChanged(); return this; } /** - * .context.ConfigRule_Custom custom = 2; + * .context.EndPointId endpoint_id = 1; */ - public context.ContextOuterClass.ConfigRule_Custom.Builder getCustomBuilder() { - return getCustomFieldBuilder().getBuilder(); + public context.ContextOuterClass.EndPointId.Builder getEndpointIdBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEndpointIdFieldBuilder().getBuilder(); } /** - * .context.ConfigRule_Custom custom = 2; + * .context.EndPointId endpoint_id = 1; */ - @java.lang.Override - public context.ContextOuterClass.ConfigRule_CustomOrBuilder getCustomOrBuilder() { - if ((configRuleCase_ == 2) && (customBuilder_ != null)) { - return customBuilder_.getMessageOrBuilder(); + public context.ContextOuterClass.EndPointIdOrBuilder getEndpointIdOrBuilder() { + if (endpointIdBuilder_ != null) { + return endpointIdBuilder_.getMessageOrBuilder(); } else { - if (configRuleCase_ == 2) { - return (context.ContextOuterClass.ConfigRule_Custom) configRule_; - } - return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); + return endpointId_ == null ? context.ContextOuterClass.EndPointId.getDefaultInstance() : endpointId_; } } /** - * .context.ConfigRule_Custom custom = 2; + * .context.EndPointId endpoint_id = 1; */ - private com.google.protobuf.SingleFieldBuilderV3 getCustomFieldBuilder() { - if (customBuilder_ == null) { - if (!(configRuleCase_ == 2)) { - configRule_ = context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); - } - customBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.ConfigRule_Custom) configRule_, getParentForChildren(), isClean()); - configRule_ = null; + private com.google.protobuf.SingleFieldBuilderV3 getEndpointIdFieldBuilder() { + if (endpointIdBuilder_ == null) { + endpointIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getEndpointId(), getParentForChildren(), isClean()); + endpointId_ = null; } - configRuleCase_ = 2; - onChanged(); - return customBuilder_; + return endpointIdBuilder_; } - private com.google.protobuf.SingleFieldBuilderV3 aclBuilder_; + private ip_link.IpLink.IpLinkRuleSet ruleSet_; + + private com.google.protobuf.SingleFieldBuilderV3 ruleSetBuilder_; /** - * .context.ConfigRule_ACL acl = 3; - * @return Whether the acl field is set. + * .ip_link.IpLinkRuleSet rule_set = 2; + * @return Whether the ruleSet field is set. */ - @java.lang.Override - public boolean hasAcl() { - return configRuleCase_ == 3; + public boolean hasRuleSet() { + return ((bitField0_ & 0x00000002) != 0); } /** - * .context.ConfigRule_ACL acl = 3; - * @return The acl. + * .ip_link.IpLinkRuleSet rule_set = 2; + * @return The ruleSet. */ - @java.lang.Override - public context.ContextOuterClass.ConfigRule_ACL getAcl() { - if (aclBuilder_ == null) { - if (configRuleCase_ == 3) { - return (context.ContextOuterClass.ConfigRule_ACL) configRule_; - } - return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + public ip_link.IpLink.IpLinkRuleSet getRuleSet() { + if (ruleSetBuilder_ == null) { + return ruleSet_ == null ? ip_link.IpLink.IpLinkRuleSet.getDefaultInstance() : ruleSet_; } else { - if (configRuleCase_ == 3) { - return aclBuilder_.getMessage(); - } - return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + return ruleSetBuilder_.getMessage(); } } /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ - public Builder setAcl(context.ContextOuterClass.ConfigRule_ACL value) { - if (aclBuilder_ == null) { + public Builder setRuleSet(ip_link.IpLink.IpLinkRuleSet value) { + if (ruleSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - configRule_ = value; - onChanged(); + ruleSet_ = value; } else { - aclBuilder_.setMessage(value); + ruleSetBuilder_.setMessage(value); } - configRuleCase_ = 3; + bitField0_ |= 0x00000002; + onChanged(); return this; } /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ - public Builder setAcl(context.ContextOuterClass.ConfigRule_ACL.Builder builderForValue) { - if (aclBuilder_ == null) { - configRule_ = builderForValue.build(); - onChanged(); + public Builder setRuleSet(ip_link.IpLink.IpLinkRuleSet.Builder builderForValue) { + if (ruleSetBuilder_ == null) { + ruleSet_ = builderForValue.build(); } else { - aclBuilder_.setMessage(builderForValue.build()); + ruleSetBuilder_.setMessage(builderForValue.build()); } - configRuleCase_ = 3; + bitField0_ |= 0x00000002; + onChanged(); return this; } /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ - public Builder mergeAcl(context.ContextOuterClass.ConfigRule_ACL value) { - if (aclBuilder_ == null) { - if (configRuleCase_ == 3 && configRule_ != context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance()) { - configRule_ = context.ContextOuterClass.ConfigRule_ACL.newBuilder((context.ContextOuterClass.ConfigRule_ACL) configRule_).mergeFrom(value).buildPartial(); + public Builder mergeRuleSet(ip_link.IpLink.IpLinkRuleSet value) { + if (ruleSetBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && ruleSet_ != null && ruleSet_ != ip_link.IpLink.IpLinkRuleSet.getDefaultInstance()) { + getRuleSetBuilder().mergeFrom(value); } else { - configRule_ = value; + ruleSet_ = value; } - onChanged(); } else { - if (configRuleCase_ == 3) { - aclBuilder_.mergeFrom(value); - } else { - aclBuilder_.setMessage(value); - } + ruleSetBuilder_.mergeFrom(value); } - configRuleCase_ = 3; + bitField0_ |= 0x00000002; + onChanged(); return this; } /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ - public Builder clearAcl() { - if (aclBuilder_ == null) { - if (configRuleCase_ == 3) { - configRuleCase_ = 0; - configRule_ = null; - onChanged(); - } - } else { - if (configRuleCase_ == 3) { - configRuleCase_ = 0; - configRule_ = null; - } - aclBuilder_.clear(); + public Builder clearRuleSet() { + bitField0_ = (bitField0_ & ~0x00000002); + ruleSet_ = null; + if (ruleSetBuilder_ != null) { + ruleSetBuilder_.dispose(); + ruleSetBuilder_ = null; } + onChanged(); return this; } /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ - public context.ContextOuterClass.ConfigRule_ACL.Builder getAclBuilder() { - return getAclFieldBuilder().getBuilder(); + public ip_link.IpLink.IpLinkRuleSet.Builder getRuleSetBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRuleSetFieldBuilder().getBuilder(); } /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ - @java.lang.Override - public context.ContextOuterClass.ConfigRule_ACLOrBuilder getAclOrBuilder() { - if ((configRuleCase_ == 3) && (aclBuilder_ != null)) { - return aclBuilder_.getMessageOrBuilder(); + public ip_link.IpLink.IpLinkRuleSetOrBuilder getRuleSetOrBuilder() { + if (ruleSetBuilder_ != null) { + return ruleSetBuilder_.getMessageOrBuilder(); } else { - if (configRuleCase_ == 3) { - return (context.ContextOuterClass.ConfigRule_ACL) configRule_; - } - return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + return ruleSet_ == null ? ip_link.IpLink.IpLinkRuleSet.getDefaultInstance() : ruleSet_; } } /** - * .context.ConfigRule_ACL acl = 3; + * .ip_link.IpLinkRuleSet rule_set = 2; */ - private com.google.protobuf.SingleFieldBuilderV3 getAclFieldBuilder() { - if (aclBuilder_ == null) { - if (!(configRuleCase_ == 3)) { - configRule_ = context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); - } - aclBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.ConfigRule_ACL) configRule_, getParentForChildren(), isClean()); - configRule_ = null; + private com.google.protobuf.SingleFieldBuilderV3 getRuleSetFieldBuilder() { + if (ruleSetBuilder_ == null) { + ruleSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getRuleSet(), getParentForChildren(), isClean()); + ruleSet_ = null; } - configRuleCase_ = 3; - onChanged(); - return aclBuilder_; + return ruleSetBuilder_; } @java.lang.Override @@ -61410,24 +61164,24 @@ public final class ContextOuterClass { public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:context.ConfigRule) + // @@protoc_insertion_point(builder_scope:context.ConfigRule_IP_LINK) } - // @@protoc_insertion_point(class_scope:context.ConfigRule) - private static final context.ContextOuterClass.ConfigRule DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:context.ConfigRule_IP_LINK) + private static final context.ContextOuterClass.ConfigRule_IP_LINK DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new context.ContextOuterClass.ConfigRule(); + DEFAULT_INSTANCE = new context.ContextOuterClass.ConfigRule_IP_LINK(); } - public static context.ContextOuterClass.ConfigRule getDefaultInstance() { + public static context.ContextOuterClass.ConfigRule_IP_LINK getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ConfigRule parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public ConfigRule_IP_LINK parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); @@ -61442,156 +61196,294 @@ public final class ContextOuterClass { } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public context.ContextOuterClass.ConfigRule getDefaultInstanceForType() { + public context.ContextOuterClass.ConfigRule_IP_LINK getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface Constraint_CustomOrBuilder extends // @@protoc_insertion_point(interface_extends:context.Constraint_Custom) + public interface ConfigRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:context.ConfigRule) com.google.protobuf.MessageOrBuilder { /** - * string constraint_type = 1; - * @return The constraintType. + * .context.ConfigActionEnum action = 1; + * @return The enum numeric value on the wire for action. */ - java.lang.String getConstraintType(); + int getActionValue(); /** - * string constraint_type = 1; - * @return The bytes for constraintType. + * .context.ConfigActionEnum action = 1; + * @return The action. */ - com.google.protobuf.ByteString getConstraintTypeBytes(); + context.ContextOuterClass.ConfigActionEnum getAction(); /** - * string constraint_value = 2; - * @return The constraintValue. + * .context.ConfigRule_Custom custom = 2; + * @return Whether the custom field is set. */ - java.lang.String getConstraintValue(); + boolean hasCustom(); /** - * string constraint_value = 2; - * @return The bytes for constraintValue. + * .context.ConfigRule_Custom custom = 2; + * @return The custom. */ - com.google.protobuf.ByteString getConstraintValueBytes(); + context.ContextOuterClass.ConfigRule_Custom getCustom(); + + /** + * .context.ConfigRule_Custom custom = 2; + */ + context.ContextOuterClass.ConfigRule_CustomOrBuilder getCustomOrBuilder(); + + /** + * .context.ConfigRule_ACL acl = 3; + * @return Whether the acl field is set. + */ + boolean hasAcl(); + + /** + * .context.ConfigRule_ACL acl = 3; + * @return The acl. + */ + context.ContextOuterClass.ConfigRule_ACL getAcl(); + + /** + * .context.ConfigRule_ACL acl = 3; + */ + context.ContextOuterClass.ConfigRule_ACLOrBuilder getAclOrBuilder(); + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + * @return Whether the ipLink field is set. + */ + boolean hasIpLink(); + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + * @return The ipLink. + */ + context.ContextOuterClass.ConfigRule_IP_LINK getIpLink(); + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + context.ContextOuterClass.ConfigRule_IP_LINKOrBuilder getIpLinkOrBuilder(); + + context.ContextOuterClass.ConfigRule.ConfigRuleCase getConfigRuleCase(); } /** - * Protobuf type {@code context.Constraint_Custom} + * Protobuf type {@code context.ConfigRule} */ - public static final class Constraint_Custom extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.Constraint_Custom) - Constraint_CustomOrBuilder { + public static final class ConfigRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.ConfigRule) + ConfigRuleOrBuilder { private static final long serialVersionUID = 0L; - // Use Constraint_Custom.newBuilder() to construct. - private Constraint_Custom(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ConfigRule.newBuilder() to construct. + private ConfigRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Constraint_Custom() { - constraintType_ = ""; - constraintValue_ = ""; + private ConfigRule() { + action_ = 0; } @java.lang.Override @SuppressWarnings({ "unused" }) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Constraint_Custom(); + return new ConfigRule(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_Constraint_Custom_descriptor; + return context.ContextOuterClass.internal_static_context_ConfigRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_Constraint_Custom_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.Constraint_Custom.class, context.ContextOuterClass.Constraint_Custom.Builder.class); + return context.ContextOuterClass.internal_static_context_ConfigRule_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule.class, context.ContextOuterClass.ConfigRule.Builder.class); } - public static final int CONSTRAINT_TYPE_FIELD_NUMBER = 1; + private int configRuleCase_ = 0; @SuppressWarnings("serial") - private volatile java.lang.Object constraintType_ = ""; + private java.lang.Object configRule_; - /** - * string constraint_type = 1; - * @return The constraintType. - */ - @java.lang.Override - public java.lang.String getConstraintType() { - java.lang.Object ref = constraintType_; - 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(); - constraintType_ = s; - return s; - } - } + public enum ConfigRuleCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - /** - * string constraint_type = 1; - * @return The bytes for constraintType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getConstraintTypeBytes() { - java.lang.Object ref = constraintType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - constraintType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + CUSTOM(2), ACL(3), IP_LINK(4), CONFIGRULE_NOT_SET(0); - public static final int CONSTRAINT_VALUE_FIELD_NUMBER = 2; + private final int value; - @SuppressWarnings("serial") - private volatile java.lang.Object constraintValue_ = ""; + private ConfigRuleCase(int value) { + this.value = value; + } - /** - * string constraint_value = 2; - * @return The constraintValue. - */ - @java.lang.Override - public java.lang.String getConstraintValue() { - java.lang.Object ref = constraintValue_; - 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(); - constraintValue_ = s; - return s; + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConfigRuleCase valueOf(int value) { + return forNumber(value); } - } - /** - * string constraint_value = 2; - * @return The bytes for constraintValue. + public static ConfigRuleCase forNumber(int value) { + switch(value) { + case 2: + return CUSTOM; + case 3: + return ACL; + case 4: + return IP_LINK; + case 0: + return CONFIGRULE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + } + + public ConfigRuleCase getConfigRuleCase() { + return ConfigRuleCase.forNumber(configRuleCase_); + } + + public static final int ACTION_FIELD_NUMBER = 1; + + private int action_ = 0; + + /** + * .context.ConfigActionEnum action = 1; + * @return The enum numeric value on the wire for action. */ @java.lang.Override - public com.google.protobuf.ByteString getConstraintValueBytes() { - java.lang.Object ref = constraintValue_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - constraintValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public int getActionValue() { + return action_; + } + + /** + * .context.ConfigActionEnum action = 1; + * @return The action. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigActionEnum getAction() { + context.ContextOuterClass.ConfigActionEnum result = context.ContextOuterClass.ConfigActionEnum.forNumber(action_); + return result == null ? context.ContextOuterClass.ConfigActionEnum.UNRECOGNIZED : result; + } + + public static final int CUSTOM_FIELD_NUMBER = 2; + + /** + * .context.ConfigRule_Custom custom = 2; + * @return Whether the custom field is set. + */ + @java.lang.Override + public boolean hasCustom() { + return configRuleCase_ == 2; + } + + /** + * .context.ConfigRule_Custom custom = 2; + * @return The custom. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_Custom getCustom() { + if (configRuleCase_ == 2) { + return (context.ContextOuterClass.ConfigRule_Custom) configRule_; + } + return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); + } + + /** + * .context.ConfigRule_Custom custom = 2; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_CustomOrBuilder getCustomOrBuilder() { + if (configRuleCase_ == 2) { + return (context.ContextOuterClass.ConfigRule_Custom) configRule_; + } + return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); + } + + public static final int ACL_FIELD_NUMBER = 3; + + /** + * .context.ConfigRule_ACL acl = 3; + * @return Whether the acl field is set. + */ + @java.lang.Override + public boolean hasAcl() { + return configRuleCase_ == 3; + } + + /** + * .context.ConfigRule_ACL acl = 3; + * @return The acl. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_ACL getAcl() { + if (configRuleCase_ == 3) { + return (context.ContextOuterClass.ConfigRule_ACL) configRule_; + } + return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + } + + /** + * .context.ConfigRule_ACL acl = 3; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_ACLOrBuilder getAclOrBuilder() { + if (configRuleCase_ == 3) { + return (context.ContextOuterClass.ConfigRule_ACL) configRule_; + } + return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + } + + public static final int IP_LINK_FIELD_NUMBER = 4; + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + * @return Whether the ipLink field is set. + */ + @java.lang.Override + public boolean hasIpLink() { + return configRuleCase_ == 4; + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + * @return The ipLink. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IP_LINK getIpLink() { + if (configRuleCase_ == 4) { + return (context.ContextOuterClass.ConfigRule_IP_LINK) configRule_; + } + return context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance(); + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IP_LINKOrBuilder getIpLinkOrBuilder() { + if (configRuleCase_ == 4) { + return (context.ContextOuterClass.ConfigRule_IP_LINK) configRule_; } + return context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -61609,11 +61501,17 @@ public final class ContextOuterClass { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintType_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, constraintType_); + if (action_ != context.ContextOuterClass.ConfigActionEnum.CONFIGACTION_UNDEFINED.getNumber()) { + output.writeEnum(1, action_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintValue_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, constraintValue_); + if (configRuleCase_ == 2) { + output.writeMessage(2, (context.ContextOuterClass.ConfigRule_Custom) configRule_); + } + if (configRuleCase_ == 3) { + output.writeMessage(3, (context.ContextOuterClass.ConfigRule_ACL) configRule_); + } + if (configRuleCase_ == 4) { + output.writeMessage(4, (context.ContextOuterClass.ConfigRule_IP_LINK) configRule_); } getUnknownFields().writeTo(output); } @@ -61624,11 +61522,17 @@ public final class ContextOuterClass { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintType_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, constraintType_); + if (action_ != context.ContextOuterClass.ConfigActionEnum.CONFIGACTION_UNDEFINED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, action_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintValue_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, constraintValue_); + if (configRuleCase_ == 2) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, (context.ContextOuterClass.ConfigRule_Custom) configRule_); + } + if (configRuleCase_ == 3) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, (context.ContextOuterClass.ConfigRule_ACL) configRule_); + } + if (configRuleCase_ == 4) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, (context.ContextOuterClass.ConfigRule_IP_LINK) configRule_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -61640,14 +61544,30 @@ public final class ContextOuterClass { if (obj == this) { return true; } - if (!(obj instanceof context.ContextOuterClass.Constraint_Custom)) { + if (!(obj instanceof context.ContextOuterClass.ConfigRule)) { return super.equals(obj); } - context.ContextOuterClass.Constraint_Custom other = (context.ContextOuterClass.Constraint_Custom) obj; - if (!getConstraintType().equals(other.getConstraintType())) + context.ContextOuterClass.ConfigRule other = (context.ContextOuterClass.ConfigRule) obj; + if (action_ != other.action_) return false; - if (!getConstraintValue().equals(other.getConstraintValue())) + if (!getConfigRuleCase().equals(other.getConfigRuleCase())) return false; + switch(configRuleCase_) { + case 2: + if (!getCustom().equals(other.getCustom())) + return false; + break; + case 3: + if (!getAcl().equals(other.getAcl())) + return false; + break; + case 4: + if (!getIpLink().equals(other.getIpLink())) + return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -61660,60 +61580,74 @@ public final class ContextOuterClass { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONSTRAINT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getConstraintType().hashCode(); - hash = (37 * hash) + CONSTRAINT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getConstraintValue().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + switch(configRuleCase_) { + case 2: + hash = (37 * hash) + CUSTOM_FIELD_NUMBER; + hash = (53 * hash) + getCustom().hashCode(); + break; + case 3: + hash = (37 * hash) + ACL_FIELD_NUMBER; + hash = (53 * hash) + getAcl().hashCode(); + break; + case 4: + hash = (37 * hash) + IP_LINK_FIELD_NUMBER; + hash = (53 * hash) + getIpLink().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static context.ContextOuterClass.Constraint_Custom parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.Constraint_Custom parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.Constraint_Custom parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.Constraint_Custom parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule 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.Constraint_Custom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.Constraint_Custom parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.ConfigRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.Constraint_Custom parseFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.Constraint_Custom parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule 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.Constraint_Custom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static context.ContextOuterClass.Constraint_Custom parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule 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.Constraint_Custom parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.Constraint_Custom parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.ConfigRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } @@ -61726,7 +61660,7 @@ public final class ContextOuterClass { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(context.ContextOuterClass.Constraint_Custom prototype) { + public static Builder newBuilder(context.ContextOuterClass.ConfigRule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -61742,21 +61676,21 @@ public final class ContextOuterClass { } /** - * Protobuf type {@code context.Constraint_Custom} + * Protobuf type {@code context.ConfigRule} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.Constraint_Custom) - context.ContextOuterClass.Constraint_CustomOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.ConfigRule) + context.ContextOuterClass.ConfigRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_Constraint_Custom_descriptor; + return context.ContextOuterClass.internal_static_context_ConfigRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_Constraint_Custom_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.Constraint_Custom.class, context.ContextOuterClass.Constraint_Custom.Builder.class); + return context.ContextOuterClass.internal_static_context_ConfigRule_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ConfigRule.class, context.ContextOuterClass.ConfigRule.Builder.class); } - // Construct using context.ContextOuterClass.Constraint_Custom.newBuilder() + // Construct using context.ContextOuterClass.ConfigRule.newBuilder() private Builder() { } @@ -61768,24 +61702,34 @@ public final class ContextOuterClass { public Builder clear() { super.clear(); bitField0_ = 0; - constraintType_ = ""; - constraintValue_ = ""; + action_ = 0; + if (customBuilder_ != null) { + customBuilder_.clear(); + } + if (aclBuilder_ != null) { + aclBuilder_.clear(); + } + if (ipLinkBuilder_ != null) { + ipLinkBuilder_.clear(); + } + configRuleCase_ = 0; + configRule_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return context.ContextOuterClass.internal_static_context_Constraint_Custom_descriptor; + return context.ContextOuterClass.internal_static_context_ConfigRule_descriptor; } @java.lang.Override - public context.ContextOuterClass.Constraint_Custom getDefaultInstanceForType() { - return context.ContextOuterClass.Constraint_Custom.getDefaultInstance(); + public context.ContextOuterClass.ConfigRule getDefaultInstanceForType() { + return context.ContextOuterClass.ConfigRule.getDefaultInstance(); } @java.lang.Override - public context.ContextOuterClass.Constraint_Custom build() { - context.ContextOuterClass.Constraint_Custom result = buildPartial(); + public context.ContextOuterClass.ConfigRule build() { + context.ContextOuterClass.ConfigRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -61793,47 +61737,73 @@ public final class ContextOuterClass { } @java.lang.Override - public context.ContextOuterClass.Constraint_Custom buildPartial() { - context.ContextOuterClass.Constraint_Custom result = new context.ContextOuterClass.Constraint_Custom(this); + public context.ContextOuterClass.ConfigRule buildPartial() { + context.ContextOuterClass.ConfigRule result = new context.ContextOuterClass.ConfigRule(this); if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(context.ContextOuterClass.Constraint_Custom result) { + private void buildPartial0(context.ContextOuterClass.ConfigRule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.constraintType_ = constraintType_; + result.action_ = action_; } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.constraintValue_ = constraintValue_; + } + + private void buildPartialOneofs(context.ContextOuterClass.ConfigRule result) { + result.configRuleCase_ = configRuleCase_; + result.configRule_ = this.configRule_; + if (configRuleCase_ == 2 && customBuilder_ != null) { + result.configRule_ = customBuilder_.build(); + } + if (configRuleCase_ == 3 && aclBuilder_ != null) { + result.configRule_ = aclBuilder_.build(); + } + if (configRuleCase_ == 4 && ipLinkBuilder_ != null) { + result.configRule_ = ipLinkBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof context.ContextOuterClass.Constraint_Custom) { - return mergeFrom((context.ContextOuterClass.Constraint_Custom) other); + if (other instanceof context.ContextOuterClass.ConfigRule) { + return mergeFrom((context.ContextOuterClass.ConfigRule) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(context.ContextOuterClass.Constraint_Custom other) { - if (other == context.ContextOuterClass.Constraint_Custom.getDefaultInstance()) + public Builder mergeFrom(context.ContextOuterClass.ConfigRule other) { + if (other == context.ContextOuterClass.ConfigRule.getDefaultInstance()) return this; - if (!other.getConstraintType().isEmpty()) { - constraintType_ = other.constraintType_; - bitField0_ |= 0x00000001; - onChanged(); + if (other.action_ != 0) { + setActionValue(other.getActionValue()); } - if (!other.getConstraintValue().isEmpty()) { - constraintValue_ = other.constraintValue_; - bitField0_ |= 0x00000002; - onChanged(); + switch(other.getConfigRuleCase()) { + case CUSTOM: + { + mergeCustom(other.getCustom()); + break; + } + case ACL: + { + mergeAcl(other.getAcl()); + break; + } + case IP_LINK: + { + mergeIpLink(other.getIpLink()); + break; + } + case CONFIGRULE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -61858,20 +61828,34 @@ public final class ContextOuterClass { case 0: done = true; break; - case 10: + case 8: { - constraintType_ = input.readStringRequireUtf8(); + action_ = input.readEnum(); bitField0_ |= 0x00000001; break; } - // case 10 + // case 8 case 18: { - constraintValue_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + input.readMessage(getCustomFieldBuilder().getBuilder(), extensionRegistry); + configRuleCase_ = 2; break; } // case 18 + case 26: + { + input.readMessage(getAclFieldBuilder().getBuilder(), extensionRegistry); + configRuleCase_ = 3; + break; + } + // case 26 + case 34: + { + input.readMessage(getIpLinkFieldBuilder().getBuilder(), extensionRegistry); + configRuleCase_ = 4; + break; + } + // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -61893,158 +61877,505 @@ public final class ContextOuterClass { return this; } - private int bitField0_; + private int configRuleCase_ = 0; - private java.lang.Object constraintType_ = ""; + private java.lang.Object configRule_; - /** - * string constraint_type = 1; - * @return The constraintType. - */ - public java.lang.String getConstraintType() { - java.lang.Object ref = constraintType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - constraintType_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public ConfigRuleCase getConfigRuleCase() { + return ConfigRuleCase.forNumber(configRuleCase_); + } + + public Builder clearConfigRule() { + configRuleCase_ = 0; + configRule_ = null; + onChanged(); + return this; } + private int bitField0_; + + private int action_ = 0; + /** - * string constraint_type = 1; - * @return The bytes for constraintType. + * .context.ConfigActionEnum action = 1; + * @return The enum numeric value on the wire for action. */ - public com.google.protobuf.ByteString getConstraintTypeBytes() { - java.lang.Object ref = constraintType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - constraintType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public int getActionValue() { + return action_; } /** - * string constraint_type = 1; - * @param value The constraintType to set. + * .context.ConfigActionEnum action = 1; + * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ - public Builder setConstraintType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - constraintType_ = value; + public Builder setActionValue(int value) { + action_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string constraint_type = 1; - * @return This builder for chaining. + * .context.ConfigActionEnum action = 1; + * @return The action. */ - public Builder clearConstraintType() { - constraintType_ = getDefaultInstance().getConstraintType(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + @java.lang.Override + public context.ContextOuterClass.ConfigActionEnum getAction() { + context.ContextOuterClass.ConfigActionEnum result = context.ContextOuterClass.ConfigActionEnum.forNumber(action_); + return result == null ? context.ContextOuterClass.ConfigActionEnum.UNRECOGNIZED : result; } /** - * string constraint_type = 1; - * @param value The bytes for constraintType to set. + * .context.ConfigActionEnum action = 1; + * @param value The action to set. * @return This builder for chaining. */ - public Builder setConstraintTypeBytes(com.google.protobuf.ByteString value) { + public Builder setAction(context.ContextOuterClass.ConfigActionEnum value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - constraintType_ = value; bitField0_ |= 0x00000001; + action_ = value.getNumber(); onChanged(); return this; } - private java.lang.Object constraintValue_ = ""; + /** + * .context.ConfigActionEnum action = 1; + * @return This builder for chaining. + */ + public Builder clearAction() { + bitField0_ = (bitField0_ & ~0x00000001); + action_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3 customBuilder_; /** - * string constraint_value = 2; - * @return The constraintValue. + * .context.ConfigRule_Custom custom = 2; + * @return Whether the custom field is set. */ - public java.lang.String getConstraintValue() { - java.lang.Object ref = constraintValue_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - constraintValue_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public boolean hasCustom() { + return configRuleCase_ == 2; } /** - * string constraint_value = 2; - * @return The bytes for constraintValue. + * .context.ConfigRule_Custom custom = 2; + * @return The custom. */ - public com.google.protobuf.ByteString getConstraintValueBytes() { - java.lang.Object ref = constraintValue_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - constraintValue_ = b; - return b; + @java.lang.Override + public context.ContextOuterClass.ConfigRule_Custom getCustom() { + if (customBuilder_ == null) { + if (configRuleCase_ == 2) { + return (context.ContextOuterClass.ConfigRule_Custom) configRule_; + } + return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); } else { - return (com.google.protobuf.ByteString) ref; + if (configRuleCase_ == 2) { + return customBuilder_.getMessage(); + } + return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); } } /** - * string constraint_value = 2; - * @param value The constraintValue to set. - * @return This builder for chaining. + * .context.ConfigRule_Custom custom = 2; */ - public Builder setConstraintValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setCustom(context.ContextOuterClass.ConfigRule_Custom value) { + if (customBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configRule_ = value; + onChanged(); + } else { + customBuilder_.setMessage(value); } - constraintValue_ = value; - bitField0_ |= 0x00000002; - onChanged(); + configRuleCase_ = 2; return this; } /** - * string constraint_value = 2; - * @return This builder for chaining. + * .context.ConfigRule_Custom custom = 2; */ - public Builder clearConstraintValue() { - constraintValue_ = getDefaultInstance().getConstraintValue(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); + public Builder setCustom(context.ContextOuterClass.ConfigRule_Custom.Builder builderForValue) { + if (customBuilder_ == null) { + configRule_ = builderForValue.build(); + onChanged(); + } else { + customBuilder_.setMessage(builderForValue.build()); + } + configRuleCase_ = 2; return this; } /** - * string constraint_value = 2; - * @param value The bytes for constraintValue to set. - * @return This builder for chaining. + * .context.ConfigRule_Custom custom = 2; */ - public Builder setConstraintValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeCustom(context.ContextOuterClass.ConfigRule_Custom value) { + if (customBuilder_ == null) { + if (configRuleCase_ == 2 && configRule_ != context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance()) { + configRule_ = context.ContextOuterClass.ConfigRule_Custom.newBuilder((context.ContextOuterClass.ConfigRule_Custom) configRule_).mergeFrom(value).buildPartial(); + } else { + configRule_ = value; + } + onChanged(); + } else { + if (configRuleCase_ == 2) { + customBuilder_.mergeFrom(value); + } else { + customBuilder_.setMessage(value); + } } - checkByteStringIsUtf8(value); - constraintValue_ = value; - bitField0_ |= 0x00000002; + configRuleCase_ = 2; + return this; + } + + /** + * .context.ConfigRule_Custom custom = 2; + */ + public Builder clearCustom() { + if (customBuilder_ == null) { + if (configRuleCase_ == 2) { + configRuleCase_ = 0; + configRule_ = null; + onChanged(); + } + } else { + if (configRuleCase_ == 2) { + configRuleCase_ = 0; + configRule_ = null; + } + customBuilder_.clear(); + } + return this; + } + + /** + * .context.ConfigRule_Custom custom = 2; + */ + public context.ContextOuterClass.ConfigRule_Custom.Builder getCustomBuilder() { + return getCustomFieldBuilder().getBuilder(); + } + + /** + * .context.ConfigRule_Custom custom = 2; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_CustomOrBuilder getCustomOrBuilder() { + if ((configRuleCase_ == 2) && (customBuilder_ != null)) { + return customBuilder_.getMessageOrBuilder(); + } else { + if (configRuleCase_ == 2) { + return (context.ContextOuterClass.ConfigRule_Custom) configRule_; + } + return context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_Custom custom = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getCustomFieldBuilder() { + if (customBuilder_ == null) { + if (!(configRuleCase_ == 2)) { + configRule_ = context.ContextOuterClass.ConfigRule_Custom.getDefaultInstance(); + } + customBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.ConfigRule_Custom) configRule_, getParentForChildren(), isClean()); + configRule_ = null; + } + configRuleCase_ = 2; + onChanged(); + return customBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 aclBuilder_; + + /** + * .context.ConfigRule_ACL acl = 3; + * @return Whether the acl field is set. + */ + @java.lang.Override + public boolean hasAcl() { + return configRuleCase_ == 3; + } + + /** + * .context.ConfigRule_ACL acl = 3; + * @return The acl. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_ACL getAcl() { + if (aclBuilder_ == null) { + if (configRuleCase_ == 3) { + return (context.ContextOuterClass.ConfigRule_ACL) configRule_; + } + return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + } else { + if (configRuleCase_ == 3) { + return aclBuilder_.getMessage(); + } + return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_ACL acl = 3; + */ + public Builder setAcl(context.ContextOuterClass.ConfigRule_ACL value) { + if (aclBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configRule_ = value; + onChanged(); + } else { + aclBuilder_.setMessage(value); + } + configRuleCase_ = 3; + return this; + } + + /** + * .context.ConfigRule_ACL acl = 3; + */ + public Builder setAcl(context.ContextOuterClass.ConfigRule_ACL.Builder builderForValue) { + if (aclBuilder_ == null) { + configRule_ = builderForValue.build(); + onChanged(); + } else { + aclBuilder_.setMessage(builderForValue.build()); + } + configRuleCase_ = 3; + return this; + } + + /** + * .context.ConfigRule_ACL acl = 3; + */ + public Builder mergeAcl(context.ContextOuterClass.ConfigRule_ACL value) { + if (aclBuilder_ == null) { + if (configRuleCase_ == 3 && configRule_ != context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance()) { + configRule_ = context.ContextOuterClass.ConfigRule_ACL.newBuilder((context.ContextOuterClass.ConfigRule_ACL) configRule_).mergeFrom(value).buildPartial(); + } else { + configRule_ = value; + } + onChanged(); + } else { + if (configRuleCase_ == 3) { + aclBuilder_.mergeFrom(value); + } else { + aclBuilder_.setMessage(value); + } + } + configRuleCase_ = 3; + return this; + } + + /** + * .context.ConfigRule_ACL acl = 3; + */ + public Builder clearAcl() { + if (aclBuilder_ == null) { + if (configRuleCase_ == 3) { + configRuleCase_ = 0; + configRule_ = null; + onChanged(); + } + } else { + if (configRuleCase_ == 3) { + configRuleCase_ = 0; + configRule_ = null; + } + aclBuilder_.clear(); + } + return this; + } + + /** + * .context.ConfigRule_ACL acl = 3; + */ + public context.ContextOuterClass.ConfigRule_ACL.Builder getAclBuilder() { + return getAclFieldBuilder().getBuilder(); + } + + /** + * .context.ConfigRule_ACL acl = 3; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_ACLOrBuilder getAclOrBuilder() { + if ((configRuleCase_ == 3) && (aclBuilder_ != null)) { + return aclBuilder_.getMessageOrBuilder(); + } else { + if (configRuleCase_ == 3) { + return (context.ContextOuterClass.ConfigRule_ACL) configRule_; + } + return context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_ACL acl = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getAclFieldBuilder() { + if (aclBuilder_ == null) { + if (!(configRuleCase_ == 3)) { + configRule_ = context.ContextOuterClass.ConfigRule_ACL.getDefaultInstance(); + } + aclBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.ConfigRule_ACL) configRule_, getParentForChildren(), isClean()); + configRule_ = null; + } + configRuleCase_ = 3; onChanged(); + return aclBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 ipLinkBuilder_; + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + * @return Whether the ipLink field is set. + */ + @java.lang.Override + public boolean hasIpLink() { + return configRuleCase_ == 4; + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + * @return The ipLink. + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IP_LINK getIpLink() { + if (ipLinkBuilder_ == null) { + if (configRuleCase_ == 4) { + return (context.ContextOuterClass.ConfigRule_IP_LINK) configRule_; + } + return context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance(); + } else { + if (configRuleCase_ == 4) { + return ipLinkBuilder_.getMessage(); + } + return context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + public Builder setIpLink(context.ContextOuterClass.ConfigRule_IP_LINK value) { + if (ipLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configRule_ = value; + onChanged(); + } else { + ipLinkBuilder_.setMessage(value); + } + configRuleCase_ = 4; + return this; + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + public Builder setIpLink(context.ContextOuterClass.ConfigRule_IP_LINK.Builder builderForValue) { + if (ipLinkBuilder_ == null) { + configRule_ = builderForValue.build(); + onChanged(); + } else { + ipLinkBuilder_.setMessage(builderForValue.build()); + } + configRuleCase_ = 4; return this; } + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + public Builder mergeIpLink(context.ContextOuterClass.ConfigRule_IP_LINK value) { + if (ipLinkBuilder_ == null) { + if (configRuleCase_ == 4 && configRule_ != context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance()) { + configRule_ = context.ContextOuterClass.ConfigRule_IP_LINK.newBuilder((context.ContextOuterClass.ConfigRule_IP_LINK) configRule_).mergeFrom(value).buildPartial(); + } else { + configRule_ = value; + } + onChanged(); + } else { + if (configRuleCase_ == 4) { + ipLinkBuilder_.mergeFrom(value); + } else { + ipLinkBuilder_.setMessage(value); + } + } + configRuleCase_ = 4; + return this; + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + public Builder clearIpLink() { + if (ipLinkBuilder_ == null) { + if (configRuleCase_ == 4) { + configRuleCase_ = 0; + configRule_ = null; + onChanged(); + } + } else { + if (configRuleCase_ == 4) { + configRuleCase_ = 0; + configRule_ = null; + } + ipLinkBuilder_.clear(); + } + return this; + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + public context.ContextOuterClass.ConfigRule_IP_LINK.Builder getIpLinkBuilder() { + return getIpLinkFieldBuilder().getBuilder(); + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + @java.lang.Override + public context.ContextOuterClass.ConfigRule_IP_LINKOrBuilder getIpLinkOrBuilder() { + if ((configRuleCase_ == 4) && (ipLinkBuilder_ != null)) { + return ipLinkBuilder_.getMessageOrBuilder(); + } else { + if (configRuleCase_ == 4) { + return (context.ContextOuterClass.ConfigRule_IP_LINK) configRule_; + } + return context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance(); + } + } + + /** + * .context.ConfigRule_IP_LINK ip_link = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3 getIpLinkFieldBuilder() { + if (ipLinkBuilder_ == null) { + if (!(configRuleCase_ == 4)) { + configRule_ = context.ContextOuterClass.ConfigRule_IP_LINK.getDefaultInstance(); + } + ipLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.ConfigRule_IP_LINK) configRule_, getParentForChildren(), isClean()); + configRule_ = null; + } + configRuleCase_ = 4; + onChanged(); + return ipLinkBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); @@ -62054,24 +62385,24 @@ public final class ContextOuterClass { public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:context.Constraint_Custom) + // @@protoc_insertion_point(builder_scope:context.ConfigRule) } - // @@protoc_insertion_point(class_scope:context.Constraint_Custom) - private static final context.ContextOuterClass.Constraint_Custom DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:context.ConfigRule) + private static final context.ContextOuterClass.ConfigRule DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new context.ContextOuterClass.Constraint_Custom(); + DEFAULT_INSTANCE = new context.ContextOuterClass.ConfigRule(); } - public static context.ContextOuterClass.Constraint_Custom getDefaultInstance() { + public static context.ContextOuterClass.ConfigRule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Constraint_Custom parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public ConfigRule parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); @@ -62086,92 +62417,156 @@ public final class ContextOuterClass { } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public context.ContextOuterClass.Constraint_Custom getDefaultInstanceForType() { + public context.ContextOuterClass.ConfigRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface Constraint_ScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:context.Constraint_Schedule) + public interface Constraint_CustomOrBuilder extends // @@protoc_insertion_point(interface_extends:context.Constraint_Custom) com.google.protobuf.MessageOrBuilder { /** - * double start_timestamp = 1; - * @return The startTimestamp. + * string constraint_type = 1; + * @return The constraintType. */ - double getStartTimestamp(); + java.lang.String getConstraintType(); /** - * float duration_days = 2; - * @return The durationDays. + * string constraint_type = 1; + * @return The bytes for constraintType. */ - float getDurationDays(); + com.google.protobuf.ByteString getConstraintTypeBytes(); + + /** + * string constraint_value = 2; + * @return The constraintValue. + */ + java.lang.String getConstraintValue(); + + /** + * string constraint_value = 2; + * @return The bytes for constraintValue. + */ + com.google.protobuf.ByteString getConstraintValueBytes(); } /** - * Protobuf type {@code context.Constraint_Schedule} + * Protobuf type {@code context.Constraint_Custom} */ - public static final class Constraint_Schedule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.Constraint_Schedule) - Constraint_ScheduleOrBuilder { + public static final class Constraint_Custom extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.Constraint_Custom) + Constraint_CustomOrBuilder { private static final long serialVersionUID = 0L; - // Use Constraint_Schedule.newBuilder() to construct. - private Constraint_Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Constraint_Custom.newBuilder() to construct. + private Constraint_Custom(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Constraint_Schedule() { + private Constraint_Custom() { + constraintType_ = ""; + constraintValue_ = ""; } @java.lang.Override @SuppressWarnings({ "unused" }) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Constraint_Schedule(); + return new Constraint_Custom(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_Constraint_Schedule_descriptor; + return context.ContextOuterClass.internal_static_context_Constraint_Custom_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_Constraint_Schedule_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.Constraint_Schedule.class, context.ContextOuterClass.Constraint_Schedule.Builder.class); + return context.ContextOuterClass.internal_static_context_Constraint_Custom_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.Constraint_Custom.class, context.ContextOuterClass.Constraint_Custom.Builder.class); } - public static final int START_TIMESTAMP_FIELD_NUMBER = 1; + public static final int CONSTRAINT_TYPE_FIELD_NUMBER = 1; - private double startTimestamp_ = 0D; + @SuppressWarnings("serial") + private volatile java.lang.Object constraintType_ = ""; /** - * double start_timestamp = 1; - * @return The startTimestamp. + * string constraint_type = 1; + * @return The constraintType. */ @java.lang.Override - public double getStartTimestamp() { - return startTimestamp_; + public java.lang.String getConstraintType() { + java.lang.Object ref = constraintType_; + 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(); + constraintType_ = s; + return s; + } } - public static final int DURATION_DAYS_FIELD_NUMBER = 2; + /** + * string constraint_type = 1; + * @return The bytes for constraintType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConstraintTypeBytes() { + java.lang.Object ref = constraintType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + constraintType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private float durationDays_ = 0F; + public static final int CONSTRAINT_VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object constraintValue_ = ""; /** - * float duration_days = 2; - * @return The durationDays. + * string constraint_value = 2; + * @return The constraintValue. */ @java.lang.Override - public float getDurationDays() { - return durationDays_; + public java.lang.String getConstraintValue() { + java.lang.Object ref = constraintValue_; + 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(); + constraintValue_ = s; + return s; + } + } + + /** + * string constraint_value = 2; + * @return The bytes for constraintValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConstraintValueBytes() { + java.lang.Object ref = constraintValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + constraintValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -62189,11 +62584,11 @@ public final class ContextOuterClass { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (java.lang.Double.doubleToRawLongBits(startTimestamp_) != 0) { - output.writeDouble(1, startTimestamp_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, constraintType_); } - if (java.lang.Float.floatToRawIntBits(durationDays_) != 0) { - output.writeFloat(2, durationDays_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, constraintValue_); } getUnknownFields().writeTo(output); } @@ -62204,11 +62599,11 @@ public final class ContextOuterClass { if (size != -1) return size; size = 0; - if (java.lang.Double.doubleToRawLongBits(startTimestamp_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, startTimestamp_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, constraintType_); } - if (java.lang.Float.floatToRawIntBits(durationDays_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, durationDays_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(constraintValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, constraintValue_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -62220,13 +62615,13 @@ public final class ContextOuterClass { if (obj == this) { return true; } - if (!(obj instanceof context.ContextOuterClass.Constraint_Schedule)) { + if (!(obj instanceof context.ContextOuterClass.Constraint_Custom)) { return super.equals(obj); } - context.ContextOuterClass.Constraint_Schedule other = (context.ContextOuterClass.Constraint_Schedule) obj; - if (java.lang.Double.doubleToLongBits(getStartTimestamp()) != java.lang.Double.doubleToLongBits(other.getStartTimestamp())) + context.ContextOuterClass.Constraint_Custom other = (context.ContextOuterClass.Constraint_Custom) obj; + if (!getConstraintType().equals(other.getConstraintType())) return false; - if (java.lang.Float.floatToIntBits(getDurationDays()) != java.lang.Float.floatToIntBits(other.getDurationDays())) + if (!getConstraintValue().equals(other.getConstraintValue())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -62240,60 +62635,60 @@ public final class ContextOuterClass { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + START_TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getStartTimestamp())); - hash = (37 * hash) + DURATION_DAYS_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getDurationDays()); + hash = (37 * hash) + CONSTRAINT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getConstraintType().hashCode(); + hash = (37 * hash) + CONSTRAINT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getConstraintValue().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static context.ContextOuterClass.Constraint_Schedule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Custom parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.Constraint_Schedule parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Custom parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.Constraint_Schedule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Custom parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.Constraint_Schedule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Custom 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.Constraint_Schedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Custom parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.Constraint_Schedule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Custom parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.Constraint_Schedule parseFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Custom parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.Constraint_Schedule parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Custom 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.Constraint_Schedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Custom parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static context.ContextOuterClass.Constraint_Schedule parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Custom 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.Constraint_Schedule parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Custom parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.Constraint_Schedule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Custom parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } @@ -62306,7 +62701,7 @@ public final class ContextOuterClass { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(context.ContextOuterClass.Constraint_Schedule prototype) { + public static Builder newBuilder(context.ContextOuterClass.Constraint_Custom prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -62322,21 +62717,21 @@ public final class ContextOuterClass { } /** - * Protobuf type {@code context.Constraint_Schedule} + * Protobuf type {@code context.Constraint_Custom} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.Constraint_Schedule) - context.ContextOuterClass.Constraint_ScheduleOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.Constraint_Custom) + context.ContextOuterClass.Constraint_CustomOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_Constraint_Schedule_descriptor; + return context.ContextOuterClass.internal_static_context_Constraint_Custom_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_Constraint_Schedule_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.Constraint_Schedule.class, context.ContextOuterClass.Constraint_Schedule.Builder.class); + return context.ContextOuterClass.internal_static_context_Constraint_Custom_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.Constraint_Custom.class, context.ContextOuterClass.Constraint_Custom.Builder.class); } - // Construct using context.ContextOuterClass.Constraint_Schedule.newBuilder() + // Construct using context.ContextOuterClass.Constraint_Custom.newBuilder() private Builder() { } @@ -62348,24 +62743,24 @@ public final class ContextOuterClass { public Builder clear() { super.clear(); bitField0_ = 0; - startTimestamp_ = 0D; - durationDays_ = 0F; + constraintType_ = ""; + constraintValue_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return context.ContextOuterClass.internal_static_context_Constraint_Schedule_descriptor; + return context.ContextOuterClass.internal_static_context_Constraint_Custom_descriptor; } @java.lang.Override - public context.ContextOuterClass.Constraint_Schedule getDefaultInstanceForType() { - return context.ContextOuterClass.Constraint_Schedule.getDefaultInstance(); + public context.ContextOuterClass.Constraint_Custom getDefaultInstanceForType() { + return context.ContextOuterClass.Constraint_Custom.getDefaultInstance(); } @java.lang.Override - public context.ContextOuterClass.Constraint_Schedule build() { - context.ContextOuterClass.Constraint_Schedule result = buildPartial(); + public context.ContextOuterClass.Constraint_Custom build() { + context.ContextOuterClass.Constraint_Custom result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -62373,8 +62768,8 @@ public final class ContextOuterClass { } @java.lang.Override - public context.ContextOuterClass.Constraint_Schedule buildPartial() { - context.ContextOuterClass.Constraint_Schedule result = new context.ContextOuterClass.Constraint_Schedule(this); + public context.ContextOuterClass.Constraint_Custom buildPartial() { + context.ContextOuterClass.Constraint_Custom result = new context.ContextOuterClass.Constraint_Custom(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -62382,34 +62777,38 @@ public final class ContextOuterClass { return result; } - private void buildPartial0(context.ContextOuterClass.Constraint_Schedule result) { + private void buildPartial0(context.ContextOuterClass.Constraint_Custom result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTimestamp_ = startTimestamp_; + result.constraintType_ = constraintType_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.durationDays_ = durationDays_; + result.constraintValue_ = constraintValue_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof context.ContextOuterClass.Constraint_Schedule) { - return mergeFrom((context.ContextOuterClass.Constraint_Schedule) other); + if (other instanceof context.ContextOuterClass.Constraint_Custom) { + return mergeFrom((context.ContextOuterClass.Constraint_Custom) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(context.ContextOuterClass.Constraint_Schedule other) { - if (other == context.ContextOuterClass.Constraint_Schedule.getDefaultInstance()) + public Builder mergeFrom(context.ContextOuterClass.Constraint_Custom other) { + if (other == context.ContextOuterClass.Constraint_Custom.getDefaultInstance()) return this; - if (other.getStartTimestamp() != 0D) { - setStartTimestamp(other.getStartTimestamp()); + if (!other.getConstraintType().isEmpty()) { + constraintType_ = other.constraintType_; + bitField0_ |= 0x00000001; + onChanged(); } - if (other.getDurationDays() != 0F) { - setDurationDays(other.getDurationDays()); + if (!other.getConstraintValue().isEmpty()) { + constraintValue_ = other.constraintValue_; + bitField0_ |= 0x00000002; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -62434,20 +62833,20 @@ public final class ContextOuterClass { case 0: done = true; break; - case 9: + case 10: { - startTimestamp_ = input.readDouble(); + constraintType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } - // case 9 - case 21: + // case 10 + case 18: { - durationDays_ = input.readFloat(); + constraintValue_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } - // case 21 + // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -62471,70 +62870,152 @@ public final class ContextOuterClass { private int bitField0_; - private double startTimestamp_; + private java.lang.Object constraintType_ = ""; /** - * double start_timestamp = 1; - * @return The startTimestamp. + * string constraint_type = 1; + * @return The constraintType. */ - @java.lang.Override - public double getStartTimestamp() { - return startTimestamp_; + public java.lang.String getConstraintType() { + java.lang.Object ref = constraintType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + constraintType_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * double start_timestamp = 1; - * @param value The startTimestamp to set. + * string constraint_type = 1; + * @return The bytes for constraintType. + */ + public com.google.protobuf.ByteString getConstraintTypeBytes() { + java.lang.Object ref = constraintType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + constraintType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string constraint_type = 1; + * @param value The constraintType to set. * @return This builder for chaining. */ - public Builder setStartTimestamp(double value) { - startTimestamp_ = value; + public Builder setConstraintType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + constraintType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * double start_timestamp = 1; + * string constraint_type = 1; * @return This builder for chaining. */ - public Builder clearStartTimestamp() { + public Builder clearConstraintType() { + constraintType_ = getDefaultInstance().getConstraintType(); bitField0_ = (bitField0_ & ~0x00000001); - startTimestamp_ = 0D; onChanged(); return this; } - private float durationDays_; + /** + * string constraint_type = 1; + * @param value The bytes for constraintType to set. + * @return This builder for chaining. + */ + public Builder setConstraintTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + constraintType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object constraintValue_ = ""; /** - * float duration_days = 2; - * @return The durationDays. + * string constraint_value = 2; + * @return The constraintValue. */ - @java.lang.Override - public float getDurationDays() { - return durationDays_; + public java.lang.String getConstraintValue() { + java.lang.Object ref = constraintValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + constraintValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * float duration_days = 2; - * @param value The durationDays to set. + * string constraint_value = 2; + * @return The bytes for constraintValue. + */ + public com.google.protobuf.ByteString getConstraintValueBytes() { + java.lang.Object ref = constraintValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + constraintValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string constraint_value = 2; + * @param value The constraintValue to set. * @return This builder for chaining. */ - public Builder setDurationDays(float value) { - durationDays_ = value; + public Builder setConstraintValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + constraintValue_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * float duration_days = 2; + * string constraint_value = 2; * @return This builder for chaining. */ - public Builder clearDurationDays() { + public Builder clearConstraintValue() { + constraintValue_ = getDefaultInstance().getConstraintValue(); bitField0_ = (bitField0_ & ~0x00000002); - durationDays_ = 0F; + onChanged(); + return this; + } + + /** + * string constraint_value = 2; + * @param value The bytes for constraintValue to set. + * @return This builder for chaining. + */ + public Builder setConstraintValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + constraintValue_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -62548,24 +63029,24 @@ public final class ContextOuterClass { public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:context.Constraint_Schedule) + // @@protoc_insertion_point(builder_scope:context.Constraint_Custom) } - // @@protoc_insertion_point(class_scope:context.Constraint_Schedule) - private static final context.ContextOuterClass.Constraint_Schedule DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:context.Constraint_Custom) + private static final context.ContextOuterClass.Constraint_Custom DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new context.ContextOuterClass.Constraint_Schedule(); + DEFAULT_INSTANCE = new context.ContextOuterClass.Constraint_Custom(); } - public static context.ContextOuterClass.Constraint_Schedule getDefaultInstance() { + public static context.ContextOuterClass.Constraint_Custom getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public Constraint_Schedule parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public Constraint_Custom parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); @@ -62580,92 +63061,92 @@ public final class ContextOuterClass { } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public context.ContextOuterClass.Constraint_Schedule getDefaultInstanceForType() { + public context.ContextOuterClass.Constraint_Custom getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface GPS_PositionOrBuilder extends // @@protoc_insertion_point(interface_extends:context.GPS_Position) + public interface Constraint_ScheduleOrBuilder extends // @@protoc_insertion_point(interface_extends:context.Constraint_Schedule) com.google.protobuf.MessageOrBuilder { /** - * float latitude = 1; - * @return The latitude. + * double start_timestamp = 1; + * @return The startTimestamp. */ - float getLatitude(); + double getStartTimestamp(); /** - * float longitude = 2; - * @return The longitude. + * float duration_days = 2; + * @return The durationDays. */ - float getLongitude(); + float getDurationDays(); } /** - * Protobuf type {@code context.GPS_Position} + * Protobuf type {@code context.Constraint_Schedule} */ - public static final class GPS_Position extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.GPS_Position) - GPS_PositionOrBuilder { + public static final class Constraint_Schedule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.Constraint_Schedule) + Constraint_ScheduleOrBuilder { private static final long serialVersionUID = 0L; - // Use GPS_Position.newBuilder() to construct. - private GPS_Position(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Constraint_Schedule.newBuilder() to construct. + private Constraint_Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GPS_Position() { + private Constraint_Schedule() { } @java.lang.Override @SuppressWarnings({ "unused" }) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GPS_Position(); + return new Constraint_Schedule(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_GPS_Position_descriptor; + return context.ContextOuterClass.internal_static_context_Constraint_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_GPS_Position_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.GPS_Position.class, context.ContextOuterClass.GPS_Position.Builder.class); + return context.ContextOuterClass.internal_static_context_Constraint_Schedule_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.Constraint_Schedule.class, context.ContextOuterClass.Constraint_Schedule.Builder.class); } - public static final int LATITUDE_FIELD_NUMBER = 1; + public static final int START_TIMESTAMP_FIELD_NUMBER = 1; - private float latitude_ = 0F; + private double startTimestamp_ = 0D; /** - * float latitude = 1; - * @return The latitude. + * double start_timestamp = 1; + * @return The startTimestamp. */ @java.lang.Override - public float getLatitude() { - return latitude_; + public double getStartTimestamp() { + return startTimestamp_; } - public static final int LONGITUDE_FIELD_NUMBER = 2; + public static final int DURATION_DAYS_FIELD_NUMBER = 2; - private float longitude_ = 0F; + private float durationDays_ = 0F; /** - * float longitude = 2; - * @return The longitude. + * float duration_days = 2; + * @return The durationDays. */ @java.lang.Override - public float getLongitude() { - return longitude_; + public float getDurationDays() { + return durationDays_; } private byte memoizedIsInitialized = -1; @@ -62683,11 +63164,11 @@ public final class ContextOuterClass { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (java.lang.Float.floatToRawIntBits(latitude_) != 0) { - output.writeFloat(1, latitude_); + if (java.lang.Double.doubleToRawLongBits(startTimestamp_) != 0) { + output.writeDouble(1, startTimestamp_); } - if (java.lang.Float.floatToRawIntBits(longitude_) != 0) { - output.writeFloat(2, longitude_); + if (java.lang.Float.floatToRawIntBits(durationDays_) != 0) { + output.writeFloat(2, durationDays_); } getUnknownFields().writeTo(output); } @@ -62698,11 +63179,11 @@ public final class ContextOuterClass { if (size != -1) return size; size = 0; - if (java.lang.Float.floatToRawIntBits(latitude_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, latitude_); + if (java.lang.Double.doubleToRawLongBits(startTimestamp_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, startTimestamp_); } - if (java.lang.Float.floatToRawIntBits(longitude_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, longitude_); + if (java.lang.Float.floatToRawIntBits(durationDays_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, durationDays_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -62714,13 +63195,13 @@ public final class ContextOuterClass { if (obj == this) { return true; } - if (!(obj instanceof context.ContextOuterClass.GPS_Position)) { + if (!(obj instanceof context.ContextOuterClass.Constraint_Schedule)) { return super.equals(obj); } - context.ContextOuterClass.GPS_Position other = (context.ContextOuterClass.GPS_Position) obj; - if (java.lang.Float.floatToIntBits(getLatitude()) != java.lang.Float.floatToIntBits(other.getLatitude())) + context.ContextOuterClass.Constraint_Schedule other = (context.ContextOuterClass.Constraint_Schedule) obj; + if (java.lang.Double.doubleToLongBits(getStartTimestamp()) != java.lang.Double.doubleToLongBits(other.getStartTimestamp())) return false; - if (java.lang.Float.floatToIntBits(getLongitude()) != java.lang.Float.floatToIntBits(other.getLongitude())) + if (java.lang.Float.floatToIntBits(getDurationDays()) != java.lang.Float.floatToIntBits(other.getDurationDays())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -62734,60 +63215,60 @@ public final class ContextOuterClass { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LATITUDE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getLatitude()); - hash = (37 * hash) + LONGITUDE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getLongitude()); + hash = (37 * hash) + START_TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getStartTimestamp())); + hash = (37 * hash) + DURATION_DAYS_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getDurationDays()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static context.ContextOuterClass.GPS_Position parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Schedule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.GPS_Position parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Schedule parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.GPS_Position parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Schedule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.GPS_Position parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Schedule 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.GPS_Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Schedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.GPS_Position parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.Constraint_Schedule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.GPS_Position parseFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Schedule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.GPS_Position parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Schedule 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.GPS_Position parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Schedule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static context.ContextOuterClass.GPS_Position parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Schedule 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.GPS_Position parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Schedule parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.GPS_Position parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.Constraint_Schedule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } @@ -62800,7 +63281,7 @@ public final class ContextOuterClass { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(context.ContextOuterClass.GPS_Position prototype) { + public static Builder newBuilder(context.ContextOuterClass.Constraint_Schedule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -62816,21 +63297,21 @@ public final class ContextOuterClass { } /** - * Protobuf type {@code context.GPS_Position} + * Protobuf type {@code context.Constraint_Schedule} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.GPS_Position) - context.ContextOuterClass.GPS_PositionOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.Constraint_Schedule) + context.ContextOuterClass.Constraint_ScheduleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_GPS_Position_descriptor; + return context.ContextOuterClass.internal_static_context_Constraint_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_GPS_Position_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.GPS_Position.class, context.ContextOuterClass.GPS_Position.Builder.class); + return context.ContextOuterClass.internal_static_context_Constraint_Schedule_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.Constraint_Schedule.class, context.ContextOuterClass.Constraint_Schedule.Builder.class); } - // Construct using context.ContextOuterClass.GPS_Position.newBuilder() + // Construct using context.ContextOuterClass.Constraint_Schedule.newBuilder() private Builder() { } @@ -62842,24 +63323,24 @@ public final class ContextOuterClass { public Builder clear() { super.clear(); bitField0_ = 0; - latitude_ = 0F; - longitude_ = 0F; + startTimestamp_ = 0D; + durationDays_ = 0F; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return context.ContextOuterClass.internal_static_context_GPS_Position_descriptor; + return context.ContextOuterClass.internal_static_context_Constraint_Schedule_descriptor; } @java.lang.Override - public context.ContextOuterClass.GPS_Position getDefaultInstanceForType() { - return context.ContextOuterClass.GPS_Position.getDefaultInstance(); + public context.ContextOuterClass.Constraint_Schedule getDefaultInstanceForType() { + return context.ContextOuterClass.Constraint_Schedule.getDefaultInstance(); } @java.lang.Override - public context.ContextOuterClass.GPS_Position build() { - context.ContextOuterClass.GPS_Position result = buildPartial(); + public context.ContextOuterClass.Constraint_Schedule build() { + context.ContextOuterClass.Constraint_Schedule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -62867,8 +63348,8 @@ public final class ContextOuterClass { } @java.lang.Override - public context.ContextOuterClass.GPS_Position buildPartial() { - context.ContextOuterClass.GPS_Position result = new context.ContextOuterClass.GPS_Position(this); + public context.ContextOuterClass.Constraint_Schedule buildPartial() { + context.ContextOuterClass.Constraint_Schedule result = new context.ContextOuterClass.Constraint_Schedule(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -62876,34 +63357,34 @@ public final class ContextOuterClass { return result; } - private void buildPartial0(context.ContextOuterClass.GPS_Position result) { + private void buildPartial0(context.ContextOuterClass.Constraint_Schedule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.latitude_ = latitude_; + result.startTimestamp_ = startTimestamp_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.longitude_ = longitude_; + result.durationDays_ = durationDays_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof context.ContextOuterClass.GPS_Position) { - return mergeFrom((context.ContextOuterClass.GPS_Position) other); + if (other instanceof context.ContextOuterClass.Constraint_Schedule) { + return mergeFrom((context.ContextOuterClass.Constraint_Schedule) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(context.ContextOuterClass.GPS_Position other) { - if (other == context.ContextOuterClass.GPS_Position.getDefaultInstance()) + public Builder mergeFrom(context.ContextOuterClass.Constraint_Schedule other) { + if (other == context.ContextOuterClass.Constraint_Schedule.getDefaultInstance()) return this; - if (other.getLatitude() != 0F) { - setLatitude(other.getLatitude()); + if (other.getStartTimestamp() != 0D) { + setStartTimestamp(other.getStartTimestamp()); } - if (other.getLongitude() != 0F) { - setLongitude(other.getLongitude()); + if (other.getDurationDays() != 0F) { + setDurationDays(other.getDurationDays()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -62928,16 +63409,16 @@ public final class ContextOuterClass { case 0: done = true; break; - case 13: + case 9: { - latitude_ = input.readFloat(); + startTimestamp_ = input.readDouble(); bitField0_ |= 0x00000001; break; } - // case 13 + // case 9 case 21: { - longitude_ = input.readFloat(); + durationDays_ = input.readFloat(); bitField0_ |= 0x00000002; break; } @@ -62965,70 +63446,70 @@ public final class ContextOuterClass { private int bitField0_; - private float latitude_; + private double startTimestamp_; /** - * float latitude = 1; - * @return The latitude. + * double start_timestamp = 1; + * @return The startTimestamp. */ @java.lang.Override - public float getLatitude() { - return latitude_; + public double getStartTimestamp() { + return startTimestamp_; } /** - * float latitude = 1; - * @param value The latitude to set. + * double start_timestamp = 1; + * @param value The startTimestamp to set. * @return This builder for chaining. */ - public Builder setLatitude(float value) { - latitude_ = value; + public Builder setStartTimestamp(double value) { + startTimestamp_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * float latitude = 1; + * double start_timestamp = 1; * @return This builder for chaining. */ - public Builder clearLatitude() { + public Builder clearStartTimestamp() { bitField0_ = (bitField0_ & ~0x00000001); - latitude_ = 0F; + startTimestamp_ = 0D; onChanged(); return this; } - private float longitude_; + private float durationDays_; /** - * float longitude = 2; - * @return The longitude. + * float duration_days = 2; + * @return The durationDays. */ @java.lang.Override - public float getLongitude() { - return longitude_; + public float getDurationDays() { + return durationDays_; } /** - * float longitude = 2; - * @param value The longitude to set. + * float duration_days = 2; + * @param value The durationDays to set. * @return This builder for chaining. */ - public Builder setLongitude(float value) { - longitude_ = value; + public Builder setDurationDays(float value) { + durationDays_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * float longitude = 2; + * float duration_days = 2; * @return This builder for chaining. */ - public Builder clearLongitude() { + public Builder clearDurationDays() { bitField0_ = (bitField0_ & ~0x00000002); - longitude_ = 0F; + durationDays_ = 0F; onChanged(); return this; } @@ -63042,24 +63523,24 @@ public final class ContextOuterClass { public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:context.GPS_Position) + // @@protoc_insertion_point(builder_scope:context.Constraint_Schedule) } - // @@protoc_insertion_point(class_scope:context.GPS_Position) - private static final context.ContextOuterClass.GPS_Position DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:context.Constraint_Schedule) + private static final context.ContextOuterClass.Constraint_Schedule DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new context.ContextOuterClass.GPS_Position(); + DEFAULT_INSTANCE = new context.ContextOuterClass.Constraint_Schedule(); } - public static context.ContextOuterClass.GPS_Position getDefaultInstance() { + public static context.ContextOuterClass.Constraint_Schedule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public GPS_Position parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public Constraint_Schedule parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); @@ -63074,68 +63555,562 @@ public final class ContextOuterClass { } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public context.ContextOuterClass.GPS_Position getDefaultInstanceForType() { + public context.ContextOuterClass.Constraint_Schedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface LocationOrBuilder extends // @@protoc_insertion_point(interface_extends:context.Location) + public interface GPS_PositionOrBuilder extends // @@protoc_insertion_point(interface_extends:context.GPS_Position) com.google.protobuf.MessageOrBuilder { /** - * string region = 1; - * @return Whether the region field is set. + * float latitude = 1; + * @return The latitude. */ - boolean hasRegion(); + float getLatitude(); /** - * string region = 1; - * @return The region. + * float longitude = 2; + * @return The longitude. */ - java.lang.String getRegion(); + float getLongitude(); + } - /** - * string region = 1; - * @return The bytes for region. - */ - com.google.protobuf.ByteString getRegionBytes(); + /** + * Protobuf type {@code context.GPS_Position} + */ + public static final class GPS_Position extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.GPS_Position) + GPS_PositionOrBuilder { - /** - * .context.GPS_Position gps_position = 2; - * @return Whether the gpsPosition field is set. - */ - boolean hasGpsPosition(); + private static final long serialVersionUID = 0L; - /** - * .context.GPS_Position gps_position = 2; - * @return The gpsPosition. - */ - context.ContextOuterClass.GPS_Position getGpsPosition(); + // Use GPS_Position.newBuilder() to construct. + private GPS_Position(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - /** - * .context.GPS_Position gps_position = 2; - */ - context.ContextOuterClass.GPS_PositionOrBuilder getGpsPositionOrBuilder(); + private GPS_Position() { + } - /** - * string interface = 3; - * @return Whether the interface field is set. - */ - boolean hasInterface(); + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GPS_Position(); + } - /** - * string interface = 3; - * @return The interface. + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_GPS_Position_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_GPS_Position_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.GPS_Position.class, context.ContextOuterClass.GPS_Position.Builder.class); + } + + public static final int LATITUDE_FIELD_NUMBER = 1; + + private float latitude_ = 0F; + + /** + * float latitude = 1; + * @return The latitude. + */ + @java.lang.Override + public float getLatitude() { + return latitude_; + } + + public static final int LONGITUDE_FIELD_NUMBER = 2; + + private float longitude_ = 0F; + + /** + * float longitude = 2; + * @return The longitude. + */ + @java.lang.Override + public float getLongitude() { + return longitude_; + } + + 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 (java.lang.Float.floatToRawIntBits(latitude_) != 0) { + output.writeFloat(1, latitude_); + } + if (java.lang.Float.floatToRawIntBits(longitude_) != 0) { + output.writeFloat(2, longitude_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (java.lang.Float.floatToRawIntBits(latitude_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, latitude_); + } + if (java.lang.Float.floatToRawIntBits(longitude_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, longitude_); + } + size += getUnknownFields().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.GPS_Position)) { + return super.equals(obj); + } + context.ContextOuterClass.GPS_Position other = (context.ContextOuterClass.GPS_Position) obj; + if (java.lang.Float.floatToIntBits(getLatitude()) != java.lang.Float.floatToIntBits(other.getLatitude())) + return false; + if (java.lang.Float.floatToIntBits(getLongitude()) != java.lang.Float.floatToIntBits(other.getLongitude())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + 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) + LATITUDE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLatitude()); + hash = (37 * hash) + LONGITUDE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getLongitude()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static context.ContextOuterClass.GPS_Position parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.GPS_Position parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.GPS_Position parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.GPS_Position 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.GPS_Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.GPS_Position parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.GPS_Position parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.GPS_Position 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.GPS_Position parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.GPS_Position 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.GPS_Position parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.GPS_Position 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.GPS_Position 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.GPS_Position} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.GPS_Position) + context.ContextOuterClass.GPS_PositionOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_GPS_Position_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_GPS_Position_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.GPS_Position.class, context.ContextOuterClass.GPS_Position.Builder.class); + } + + // Construct using context.ContextOuterClass.GPS_Position.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + latitude_ = 0F; + longitude_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return context.ContextOuterClass.internal_static_context_GPS_Position_descriptor; + } + + @java.lang.Override + public context.ContextOuterClass.GPS_Position getDefaultInstanceForType() { + return context.ContextOuterClass.GPS_Position.getDefaultInstance(); + } + + @java.lang.Override + public context.ContextOuterClass.GPS_Position build() { + context.ContextOuterClass.GPS_Position result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public context.ContextOuterClass.GPS_Position buildPartial() { + context.ContextOuterClass.GPS_Position result = new context.ContextOuterClass.GPS_Position(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(context.ContextOuterClass.GPS_Position result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.latitude_ = latitude_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.longitude_ = longitude_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof context.ContextOuterClass.GPS_Position) { + return mergeFrom((context.ContextOuterClass.GPS_Position) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(context.ContextOuterClass.GPS_Position other) { + if (other == context.ContextOuterClass.GPS_Position.getDefaultInstance()) + return this; + if (other.getLatitude() != 0F) { + setLatitude(other.getLatitude()); + } + if (other.getLongitude() != 0F) { + setLongitude(other.getLongitude()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 13: + { + latitude_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } + // case 13 + case 21: + { + longitude_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } + // case 21 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private float latitude_; + + /** + * float latitude = 1; + * @return The latitude. + */ + @java.lang.Override + public float getLatitude() { + return latitude_; + } + + /** + * float latitude = 1; + * @param value The latitude to set. + * @return This builder for chaining. + */ + public Builder setLatitude(float value) { + latitude_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * float latitude = 1; + * @return This builder for chaining. + */ + public Builder clearLatitude() { + bitField0_ = (bitField0_ & ~0x00000001); + latitude_ = 0F; + onChanged(); + return this; + } + + private float longitude_; + + /** + * float longitude = 2; + * @return The longitude. + */ + @java.lang.Override + public float getLongitude() { + return longitude_; + } + + /** + * float longitude = 2; + * @param value The longitude to set. + * @return This builder for chaining. + */ + public Builder setLongitude(float value) { + longitude_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * float longitude = 2; + * @return This builder for chaining. + */ + public Builder clearLongitude() { + bitField0_ = (bitField0_ & ~0x00000002); + longitude_ = 0F; + 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.GPS_Position) + } + + // @@protoc_insertion_point(class_scope:context.GPS_Position) + private static final context.ContextOuterClass.GPS_Position DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new context.ContextOuterClass.GPS_Position(); + } + + public static context.ContextOuterClass.GPS_Position getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public GPS_Position parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public context.ContextOuterClass.GPS_Position getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LocationOrBuilder extends // @@protoc_insertion_point(interface_extends:context.Location) + com.google.protobuf.MessageOrBuilder { + + /** + * string region = 1; + * @return Whether the region field is set. + */ + boolean hasRegion(); + + /** + * string region = 1; + * @return The region. + */ + java.lang.String getRegion(); + + /** + * string region = 1; + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * .context.GPS_Position gps_position = 2; + * @return Whether the gpsPosition field is set. + */ + boolean hasGpsPosition(); + + /** + * .context.GPS_Position gps_position = 2; + * @return The gpsPosition. + */ + context.ContextOuterClass.GPS_Position getGpsPosition(); + + /** + * .context.GPS_Position gps_position = 2; + */ + context.ContextOuterClass.GPS_PositionOrBuilder getGpsPositionOrBuilder(); + + /** + * string interface = 3; + * @return Whether the interface field is set. + */ + boolean hasInterface(); + + /** + * string interface = 3; + * @return The interface. */ java.lang.String getInterface(); @@ -80759,138 +81734,4350 @@ public final class ContextOuterClass { } /** - * map<string, int32> l_slots = 8; + * map<string, int32> l_slots = 8; + */ + public Builder putAllLSlots(java.util.Map values) { + internalGetMutableLSlots().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; + return this; + } + + private com.google.protobuf.MapField sSlots_; + + private com.google.protobuf.MapField internalGetSSlots() { + if (sSlots_ == null) { + return com.google.protobuf.MapField.emptyMapField(SSlotsDefaultEntryHolder.defaultEntry); + } + return sSlots_; + } + + private com.google.protobuf.MapField internalGetMutableSSlots() { + if (sSlots_ == null) { + sSlots_ = com.google.protobuf.MapField.newMapField(SSlotsDefaultEntryHolder.defaultEntry); + } + if (!sSlots_.isMutable()) { + sSlots_ = sSlots_.copy(); + } + bitField0_ |= 0x00000100; + onChanged(); + return sSlots_; + } + + public int getSSlotsCount() { + return internalGetSSlots().getMap().size(); + } + + /** + * map<string, int32> s_slots = 9; + */ + @java.lang.Override + public boolean containsSSlots(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetSSlots().getMap().containsKey(key); + } + + /** + * Use {@link #getSSlotsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getSSlots() { + return getSSlotsMap(); + } + + /** + * map<string, int32> s_slots = 9; + */ + @java.lang.Override + public java.util.Map getSSlotsMap() { + return internalGetSSlots().getMap(); + } + + /** + * map<string, int32> s_slots = 9; + */ + @java.lang.Override + public int getSSlotsOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSSlots().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * map<string, int32> s_slots = 9; + */ + @java.lang.Override + public int getSSlotsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSSlots().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearSSlots() { + bitField0_ = (bitField0_ & ~0x00000100); + internalGetMutableSSlots().getMutableMap().clear(); + return this; + } + + /** + * map<string, int32> s_slots = 9; + */ + public Builder removeSSlots(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableSSlots().getMutableMap().remove(key); + return this; + } + + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map getMutableSSlots() { + bitField0_ |= 0x00000100; + return internalGetMutableSSlots().getMutableMap(); + } + + /** + * map<string, int32> s_slots = 9; + */ + public Builder putSSlots(java.lang.String key, int value) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableSSlots().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; + return this; + } + + /** + * map<string, int32> s_slots = 9; + */ + public Builder putAllSSlots(java.util.Map values) { + internalGetMutableSSlots().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; + 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.OpticalLinkDetails) + } + + // @@protoc_insertion_point(class_scope:context.OpticalLinkDetails) + private static final context.ContextOuterClass.OpticalLinkDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new context.ContextOuterClass.OpticalLinkDetails(); + } + + public static context.ContextOuterClass.OpticalLinkDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public OpticalLinkDetails parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalLinkDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OpticalLinkOrBuilder extends // @@protoc_insertion_point(interface_extends:context.OpticalLink) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * .context.OpticalLinkDetails optical_details = 2; + * @return Whether the opticalDetails field is set. + */ + boolean hasOpticalDetails(); + + /** + * .context.OpticalLinkDetails optical_details = 2; + * @return The opticalDetails. + */ + context.ContextOuterClass.OpticalLinkDetails getOpticalDetails(); + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + context.ContextOuterClass.OpticalLinkDetailsOrBuilder getOpticalDetailsOrBuilder(); + + /** + * .context.LinkId link_id = 3; + * @return Whether the linkId field is set. + */ + boolean hasLinkId(); + + /** + * .context.LinkId link_id = 3; + * @return The linkId. + */ + context.ContextOuterClass.LinkId getLinkId(); + + /** + * .context.LinkId link_id = 3; + */ + context.ContextOuterClass.LinkIdOrBuilder getLinkIdOrBuilder(); + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + java.util.List getLinkEndpointIdsList(); + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + context.ContextOuterClass.EndPointId getLinkEndpointIds(int index); + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + int getLinkEndpointIdsCount(); + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + java.util.List getLinkEndpointIdsOrBuilderList(); + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + context.ContextOuterClass.EndPointIdOrBuilder getLinkEndpointIdsOrBuilder(int index); + } + + /** + * Protobuf type {@code context.OpticalLink} + */ + public static final class OpticalLink extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.OpticalLink) + OpticalLinkOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use OpticalLink.newBuilder() to construct. + private OpticalLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OpticalLink() { + name_ = ""; + linkEndpointIds_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OpticalLink(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_OpticalLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_OpticalLink_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalLink.class, context.ContextOuterClass.OpticalLink.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * string name = 1; + * @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 = 1; + * @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 OPTICAL_DETAILS_FIELD_NUMBER = 2; + + private context.ContextOuterClass.OpticalLinkDetails opticalDetails_; + + /** + * .context.OpticalLinkDetails optical_details = 2; + * @return Whether the opticalDetails field is set. + */ + @java.lang.Override + public boolean hasOpticalDetails() { + return opticalDetails_ != null; + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + * @return The opticalDetails. + */ + @java.lang.Override + public context.ContextOuterClass.OpticalLinkDetails getOpticalDetails() { + return opticalDetails_ == null ? context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance() : opticalDetails_; + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + @java.lang.Override + public context.ContextOuterClass.OpticalLinkDetailsOrBuilder getOpticalDetailsOrBuilder() { + return opticalDetails_ == null ? context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance() : opticalDetails_; + } + + public static final int LINK_ID_FIELD_NUMBER = 3; + + private context.ContextOuterClass.LinkId linkId_; + + /** + * .context.LinkId link_id = 3; + * @return Whether the linkId field is set. + */ + @java.lang.Override + public boolean hasLinkId() { + return linkId_ != null; + } + + /** + * .context.LinkId link_id = 3; + * @return The linkId. + */ + @java.lang.Override + public context.ContextOuterClass.LinkId getLinkId() { + return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_; + } + + /** + * .context.LinkId link_id = 3; + */ + @java.lang.Override + public context.ContextOuterClass.LinkIdOrBuilder getLinkIdOrBuilder() { + return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_; + } + + public static final int LINK_ENDPOINT_IDS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List linkEndpointIds_; + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + @java.lang.Override + public java.util.List getLinkEndpointIdsList() { + return linkEndpointIds_; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + @java.lang.Override + public java.util.List getLinkEndpointIdsOrBuilderList() { + return linkEndpointIds_; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + @java.lang.Override + public int getLinkEndpointIdsCount() { + return linkEndpointIds_.size(); + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + @java.lang.Override + public context.ContextOuterClass.EndPointId getLinkEndpointIds(int index) { + return linkEndpointIds_.get(index); + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + @java.lang.Override + public context.ContextOuterClass.EndPointIdOrBuilder getLinkEndpointIdsOrBuilder(int index) { + return linkEndpointIds_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) + return true; + if (isInitialized == 0) + return false; + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (opticalDetails_ != null) { + output.writeMessage(2, getOpticalDetails()); + } + if (linkId_ != null) { + output.writeMessage(3, getLinkId()); + } + for (int i = 0; i < linkEndpointIds_.size(); i++) { + output.writeMessage(4, linkEndpointIds_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (opticalDetails_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOpticalDetails()); + } + if (linkId_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLinkId()); + } + for (int i = 0; i < linkEndpointIds_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, linkEndpointIds_.get(i)); + } + size += getUnknownFields().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.OpticalLink)) { + return super.equals(obj); + } + context.ContextOuterClass.OpticalLink other = (context.ContextOuterClass.OpticalLink) obj; + if (!getName().equals(other.getName())) + return false; + if (hasOpticalDetails() != other.hasOpticalDetails()) + return false; + if (hasOpticalDetails()) { + if (!getOpticalDetails().equals(other.getOpticalDetails())) + return false; + } + if (hasLinkId() != other.hasLinkId()) + return false; + if (hasLinkId()) { + if (!getLinkId().equals(other.getLinkId())) + return false; + } + if (!getLinkEndpointIdsList().equals(other.getLinkEndpointIdsList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasOpticalDetails()) { + hash = (37 * hash) + OPTICAL_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getOpticalDetails().hashCode(); + } + if (hasLinkId()) { + hash = (37 * hash) + LINK_ID_FIELD_NUMBER; + hash = (53 * hash) + getLinkId().hashCode(); + } + if (getLinkEndpointIdsCount() > 0) { + hash = (37 * hash) + LINK_ENDPOINT_IDS_FIELD_NUMBER; + hash = (53 * hash) + getLinkEndpointIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static context.ContextOuterClass.OpticalLink parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalLink parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.OpticalLink parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalLink 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.OpticalLink parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalLink parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.OpticalLink parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalLink 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.OpticalLink parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalLink 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.OpticalLink parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalLink 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.OpticalLink 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.OpticalLink} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.OpticalLink) + context.ContextOuterClass.OpticalLinkOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_OpticalLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_OpticalLink_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalLink.class, context.ContextOuterClass.OpticalLink.Builder.class); + } + + // Construct using context.ContextOuterClass.OpticalLink.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + opticalDetails_ = null; + if (opticalDetailsBuilder_ != null) { + opticalDetailsBuilder_.dispose(); + opticalDetailsBuilder_ = null; + } + linkId_ = null; + if (linkIdBuilder_ != null) { + linkIdBuilder_.dispose(); + linkIdBuilder_ = null; + } + if (linkEndpointIdsBuilder_ == null) { + linkEndpointIds_ = java.util.Collections.emptyList(); + } else { + linkEndpointIds_ = null; + linkEndpointIdsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return context.ContextOuterClass.internal_static_context_OpticalLink_descriptor; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalLink getDefaultInstanceForType() { + return context.ContextOuterClass.OpticalLink.getDefaultInstance(); + } + + @java.lang.Override + public context.ContextOuterClass.OpticalLink build() { + context.ContextOuterClass.OpticalLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalLink buildPartial() { + context.ContextOuterClass.OpticalLink result = new context.ContextOuterClass.OpticalLink(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(context.ContextOuterClass.OpticalLink result) { + if (linkEndpointIdsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + linkEndpointIds_ = java.util.Collections.unmodifiableList(linkEndpointIds_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.linkEndpointIds_ = linkEndpointIds_; + } else { + result.linkEndpointIds_ = linkEndpointIdsBuilder_.build(); + } + } + + private void buildPartial0(context.ContextOuterClass.OpticalLink result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.opticalDetails_ = opticalDetailsBuilder_ == null ? opticalDetails_ : opticalDetailsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.linkId_ = linkIdBuilder_ == null ? linkId_ : linkIdBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof context.ContextOuterClass.OpticalLink) { + return mergeFrom((context.ContextOuterClass.OpticalLink) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(context.ContextOuterClass.OpticalLink other) { + if (other == context.ContextOuterClass.OpticalLink.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasOpticalDetails()) { + mergeOpticalDetails(other.getOpticalDetails()); + } + if (other.hasLinkId()) { + mergeLinkId(other.getLinkId()); + } + if (linkEndpointIdsBuilder_ == null) { + if (!other.linkEndpointIds_.isEmpty()) { + if (linkEndpointIds_.isEmpty()) { + linkEndpointIds_ = other.linkEndpointIds_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.addAll(other.linkEndpointIds_); + } + onChanged(); + } + } else { + if (!other.linkEndpointIds_.isEmpty()) { + if (linkEndpointIdsBuilder_.isEmpty()) { + linkEndpointIdsBuilder_.dispose(); + linkEndpointIdsBuilder_ = null; + linkEndpointIds_ = other.linkEndpointIds_; + bitField0_ = (bitField0_ & ~0x00000008); + linkEndpointIdsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLinkEndpointIdsFieldBuilder() : null; + } else { + linkEndpointIdsBuilder_.addAllMessages(other.linkEndpointIds_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } + // case 10 + case 18: + { + input.readMessage(getOpticalDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } + // case 18 + case 26: + { + input.readMessage(getLinkIdFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } + // case 26 + case 34: + { + context.ContextOuterClass.EndPointId m = input.readMessage(context.ContextOuterClass.EndPointId.parser(), extensionRegistry); + if (linkEndpointIdsBuilder_ == null) { + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.add(m); + } else { + linkEndpointIdsBuilder_.addMessage(m); + } + break; + } + // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * string name = 1; + * @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 = 1; + * @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 = 1; + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * string name = 1; + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private context.ContextOuterClass.OpticalLinkDetails opticalDetails_; + + private com.google.protobuf.SingleFieldBuilderV3 opticalDetailsBuilder_; + + /** + * .context.OpticalLinkDetails optical_details = 2; + * @return Whether the opticalDetails field is set. + */ + public boolean hasOpticalDetails() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + * @return The opticalDetails. + */ + public context.ContextOuterClass.OpticalLinkDetails getOpticalDetails() { + if (opticalDetailsBuilder_ == null) { + return opticalDetails_ == null ? context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance() : opticalDetails_; + } else { + return opticalDetailsBuilder_.getMessage(); + } + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + public Builder setOpticalDetails(context.ContextOuterClass.OpticalLinkDetails value) { + if (opticalDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + opticalDetails_ = value; + } else { + opticalDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + public Builder setOpticalDetails(context.ContextOuterClass.OpticalLinkDetails.Builder builderForValue) { + if (opticalDetailsBuilder_ == null) { + opticalDetails_ = builderForValue.build(); + } else { + opticalDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + public Builder mergeOpticalDetails(context.ContextOuterClass.OpticalLinkDetails value) { + if (opticalDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && opticalDetails_ != null && opticalDetails_ != context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance()) { + getOpticalDetailsBuilder().mergeFrom(value); + } else { + opticalDetails_ = value; + } + } else { + opticalDetailsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + public Builder clearOpticalDetails() { + bitField0_ = (bitField0_ & ~0x00000002); + opticalDetails_ = null; + if (opticalDetailsBuilder_ != null) { + opticalDetailsBuilder_.dispose(); + opticalDetailsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + public context.ContextOuterClass.OpticalLinkDetails.Builder getOpticalDetailsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getOpticalDetailsFieldBuilder().getBuilder(); + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + public context.ContextOuterClass.OpticalLinkDetailsOrBuilder getOpticalDetailsOrBuilder() { + if (opticalDetailsBuilder_ != null) { + return opticalDetailsBuilder_.getMessageOrBuilder(); + } else { + return opticalDetails_ == null ? context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance() : opticalDetails_; + } + } + + /** + * .context.OpticalLinkDetails optical_details = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getOpticalDetailsFieldBuilder() { + if (opticalDetailsBuilder_ == null) { + opticalDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getOpticalDetails(), getParentForChildren(), isClean()); + opticalDetails_ = null; + } + return opticalDetailsBuilder_; + } + + private context.ContextOuterClass.LinkId linkId_; + + private com.google.protobuf.SingleFieldBuilderV3 linkIdBuilder_; + + /** + * .context.LinkId link_id = 3; + * @return Whether the linkId field is set. + */ + public boolean hasLinkId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * .context.LinkId link_id = 3; + * @return The linkId. + */ + public context.ContextOuterClass.LinkId getLinkId() { + if (linkIdBuilder_ == null) { + return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_; + } else { + return linkIdBuilder_.getMessage(); + } + } + + /** + * .context.LinkId link_id = 3; + */ + public Builder setLinkId(context.ContextOuterClass.LinkId value) { + if (linkIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + linkId_ = value; + } else { + linkIdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * .context.LinkId link_id = 3; + */ + public Builder setLinkId(context.ContextOuterClass.LinkId.Builder builderForValue) { + if (linkIdBuilder_ == null) { + linkId_ = builderForValue.build(); + } else { + linkIdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * .context.LinkId link_id = 3; + */ + public Builder mergeLinkId(context.ContextOuterClass.LinkId value) { + if (linkIdBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && linkId_ != null && linkId_ != context.ContextOuterClass.LinkId.getDefaultInstance()) { + getLinkIdBuilder().mergeFrom(value); + } else { + linkId_ = value; + } + } else { + linkIdBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * .context.LinkId link_id = 3; + */ + public Builder clearLinkId() { + bitField0_ = (bitField0_ & ~0x00000004); + linkId_ = null; + if (linkIdBuilder_ != null) { + linkIdBuilder_.dispose(); + linkIdBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.LinkId link_id = 3; + */ + public context.ContextOuterClass.LinkId.Builder getLinkIdBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getLinkIdFieldBuilder().getBuilder(); + } + + /** + * .context.LinkId link_id = 3; + */ + public context.ContextOuterClass.LinkIdOrBuilder getLinkIdOrBuilder() { + if (linkIdBuilder_ != null) { + return linkIdBuilder_.getMessageOrBuilder(); + } else { + return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_; + } + } + + /** + * .context.LinkId link_id = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getLinkIdFieldBuilder() { + if (linkIdBuilder_ == null) { + linkIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getLinkId(), getParentForChildren(), isClean()); + linkId_ = null; + } + return linkIdBuilder_; + } + + private java.util.List linkEndpointIds_ = java.util.Collections.emptyList(); + + private void ensureLinkEndpointIdsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + linkEndpointIds_ = new java.util.ArrayList(linkEndpointIds_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3 linkEndpointIdsBuilder_; + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public java.util.List getLinkEndpointIdsList() { + if (linkEndpointIdsBuilder_ == null) { + return java.util.Collections.unmodifiableList(linkEndpointIds_); + } else { + return linkEndpointIdsBuilder_.getMessageList(); + } + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public int getLinkEndpointIdsCount() { + if (linkEndpointIdsBuilder_ == null) { + return linkEndpointIds_.size(); + } else { + return linkEndpointIdsBuilder_.getCount(); + } + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public context.ContextOuterClass.EndPointId getLinkEndpointIds(int index) { + if (linkEndpointIdsBuilder_ == null) { + return linkEndpointIds_.get(index); + } else { + return linkEndpointIdsBuilder_.getMessage(index); + } + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder setLinkEndpointIds(int index, context.ContextOuterClass.EndPointId value) { + if (linkEndpointIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.set(index, value); + onChanged(); + } else { + linkEndpointIdsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder setLinkEndpointIds(int index, context.ContextOuterClass.EndPointId.Builder builderForValue) { + if (linkEndpointIdsBuilder_ == null) { + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.set(index, builderForValue.build()); + onChanged(); + } else { + linkEndpointIdsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder addLinkEndpointIds(context.ContextOuterClass.EndPointId value) { + if (linkEndpointIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.add(value); + onChanged(); + } else { + linkEndpointIdsBuilder_.addMessage(value); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder addLinkEndpointIds(int index, context.ContextOuterClass.EndPointId value) { + if (linkEndpointIdsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.add(index, value); + onChanged(); + } else { + linkEndpointIdsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder addLinkEndpointIds(context.ContextOuterClass.EndPointId.Builder builderForValue) { + if (linkEndpointIdsBuilder_ == null) { + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.add(builderForValue.build()); + onChanged(); + } else { + linkEndpointIdsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder addLinkEndpointIds(int index, context.ContextOuterClass.EndPointId.Builder builderForValue) { + if (linkEndpointIdsBuilder_ == null) { + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.add(index, builderForValue.build()); + onChanged(); + } else { + linkEndpointIdsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder addAllLinkEndpointIds(java.lang.Iterable values) { + if (linkEndpointIdsBuilder_ == null) { + ensureLinkEndpointIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, linkEndpointIds_); + onChanged(); + } else { + linkEndpointIdsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder clearLinkEndpointIds() { + if (linkEndpointIdsBuilder_ == null) { + linkEndpointIds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + linkEndpointIdsBuilder_.clear(); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public Builder removeLinkEndpointIds(int index) { + if (linkEndpointIdsBuilder_ == null) { + ensureLinkEndpointIdsIsMutable(); + linkEndpointIds_.remove(index); + onChanged(); + } else { + linkEndpointIdsBuilder_.remove(index); + } + return this; + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public context.ContextOuterClass.EndPointId.Builder getLinkEndpointIdsBuilder(int index) { + return getLinkEndpointIdsFieldBuilder().getBuilder(index); + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public context.ContextOuterClass.EndPointIdOrBuilder getLinkEndpointIdsOrBuilder(int index) { + if (linkEndpointIdsBuilder_ == null) { + return linkEndpointIds_.get(index); + } else { + return linkEndpointIdsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public java.util.List getLinkEndpointIdsOrBuilderList() { + if (linkEndpointIdsBuilder_ != null) { + return linkEndpointIdsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(linkEndpointIds_); + } + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public context.ContextOuterClass.EndPointId.Builder addLinkEndpointIdsBuilder() { + return getLinkEndpointIdsFieldBuilder().addBuilder(context.ContextOuterClass.EndPointId.getDefaultInstance()); + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public context.ContextOuterClass.EndPointId.Builder addLinkEndpointIdsBuilder(int index) { + return getLinkEndpointIdsFieldBuilder().addBuilder(index, context.ContextOuterClass.EndPointId.getDefaultInstance()); + } + + /** + * repeated .context.EndPointId link_endpoint_ids = 4; + */ + public java.util.List getLinkEndpointIdsBuilderList() { + return getLinkEndpointIdsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3 getLinkEndpointIdsFieldBuilder() { + if (linkEndpointIdsBuilder_ == null) { + linkEndpointIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(linkEndpointIds_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + linkEndpointIds_ = null; + } + return linkEndpointIdsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + // @@protoc_insertion_point(builder_scope:context.OpticalLink) + } + + // @@protoc_insertion_point(class_scope:context.OpticalLink) + private static final context.ContextOuterClass.OpticalLink DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new context.ContextOuterClass.OpticalLink(); + } + + public static context.ContextOuterClass.OpticalLink getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public OpticalLink parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalLink getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ChannelIdOrBuilder extends // @@protoc_insertion_point(interface_extends:context.ChannelId) + com.google.protobuf.MessageOrBuilder { + + /** + * .context.Uuid channel_uuid = 1; + * @return Whether the channelUuid field is set. + */ + boolean hasChannelUuid(); + + /** + * .context.Uuid channel_uuid = 1; + * @return The channelUuid. + */ + context.ContextOuterClass.Uuid getChannelUuid(); + + /** + * .context.Uuid channel_uuid = 1; + */ + context.ContextOuterClass.UuidOrBuilder getChannelUuidOrBuilder(); + } + + /** + * Protobuf type {@code context.ChannelId} + */ + public static final class ChannelId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.ChannelId) + ChannelIdOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use ChannelId.newBuilder() to construct. + private ChannelId(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChannelId() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChannelId(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_ChannelId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_ChannelId_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ChannelId.class, context.ContextOuterClass.ChannelId.Builder.class); + } + + public static final int CHANNEL_UUID_FIELD_NUMBER = 1; + + private context.ContextOuterClass.Uuid channelUuid_; + + /** + * .context.Uuid channel_uuid = 1; + * @return Whether the channelUuid field is set. + */ + @java.lang.Override + public boolean hasChannelUuid() { + return channelUuid_ != null; + } + + /** + * .context.Uuid channel_uuid = 1; + * @return The channelUuid. + */ + @java.lang.Override + public context.ContextOuterClass.Uuid getChannelUuid() { + return channelUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : channelUuid_; + } + + /** + * .context.Uuid channel_uuid = 1; + */ + @java.lang.Override + public context.ContextOuterClass.UuidOrBuilder getChannelUuidOrBuilder() { + return channelUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : channelUuid_; + } + + 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 (channelUuid_ != null) { + output.writeMessage(1, getChannelUuid()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (channelUuid_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getChannelUuid()); + } + size += getUnknownFields().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.ChannelId)) { + return super.equals(obj); + } + context.ContextOuterClass.ChannelId other = (context.ContextOuterClass.ChannelId) obj; + if (hasChannelUuid() != other.hasChannelUuid()) + return false; + if (hasChannelUuid()) { + if (!getChannelUuid().equals(other.getChannelUuid())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasChannelUuid()) { + hash = (37 * hash) + CHANNEL_UUID_FIELD_NUMBER; + hash = (53 * hash) + getChannelUuid().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static context.ContextOuterClass.ChannelId parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ChannelId parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.ChannelId parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ChannelId 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.ChannelId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.ChannelId parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.ChannelId parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ChannelId 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.ChannelId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ChannelId 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.ChannelId parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.ChannelId 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.ChannelId 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.ChannelId} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.ChannelId) + context.ContextOuterClass.ChannelIdOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_ChannelId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_ChannelId_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.ChannelId.class, context.ContextOuterClass.ChannelId.Builder.class); + } + + // Construct using context.ContextOuterClass.ChannelId.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + channelUuid_ = null; + if (channelUuidBuilder_ != null) { + channelUuidBuilder_.dispose(); + channelUuidBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return context.ContextOuterClass.internal_static_context_ChannelId_descriptor; + } + + @java.lang.Override + public context.ContextOuterClass.ChannelId getDefaultInstanceForType() { + return context.ContextOuterClass.ChannelId.getDefaultInstance(); + } + + @java.lang.Override + public context.ContextOuterClass.ChannelId build() { + context.ContextOuterClass.ChannelId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public context.ContextOuterClass.ChannelId buildPartial() { + context.ContextOuterClass.ChannelId result = new context.ContextOuterClass.ChannelId(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(context.ContextOuterClass.ChannelId result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.channelUuid_ = channelUuidBuilder_ == null ? channelUuid_ : channelUuidBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof context.ContextOuterClass.ChannelId) { + return mergeFrom((context.ContextOuterClass.ChannelId) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(context.ContextOuterClass.ChannelId other) { + if (other == context.ContextOuterClass.ChannelId.getDefaultInstance()) + return this; + if (other.hasChannelUuid()) { + mergeChannelUuid(other.getChannelUuid()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getChannelUuidFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } + // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private context.ContextOuterClass.Uuid channelUuid_; + + private com.google.protobuf.SingleFieldBuilderV3 channelUuidBuilder_; + + /** + * .context.Uuid channel_uuid = 1; + * @return Whether the channelUuid field is set. + */ + public boolean hasChannelUuid() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * .context.Uuid channel_uuid = 1; + * @return The channelUuid. + */ + public context.ContextOuterClass.Uuid getChannelUuid() { + if (channelUuidBuilder_ == null) { + return channelUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : channelUuid_; + } else { + return channelUuidBuilder_.getMessage(); + } + } + + /** + * .context.Uuid channel_uuid = 1; + */ + public Builder setChannelUuid(context.ContextOuterClass.Uuid value) { + if (channelUuidBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + channelUuid_ = value; + } else { + channelUuidBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.Uuid channel_uuid = 1; + */ + public Builder setChannelUuid(context.ContextOuterClass.Uuid.Builder builderForValue) { + if (channelUuidBuilder_ == null) { + channelUuid_ = builderForValue.build(); + } else { + channelUuidBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.Uuid channel_uuid = 1; + */ + public Builder mergeChannelUuid(context.ContextOuterClass.Uuid value) { + if (channelUuidBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && channelUuid_ != null && channelUuid_ != context.ContextOuterClass.Uuid.getDefaultInstance()) { + getChannelUuidBuilder().mergeFrom(value); + } else { + channelUuid_ = value; + } + } else { + channelUuidBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.Uuid channel_uuid = 1; + */ + public Builder clearChannelUuid() { + bitField0_ = (bitField0_ & ~0x00000001); + channelUuid_ = null; + if (channelUuidBuilder_ != null) { + channelUuidBuilder_.dispose(); + channelUuidBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.Uuid channel_uuid = 1; + */ + public context.ContextOuterClass.Uuid.Builder getChannelUuidBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getChannelUuidFieldBuilder().getBuilder(); + } + + /** + * .context.Uuid channel_uuid = 1; + */ + public context.ContextOuterClass.UuidOrBuilder getChannelUuidOrBuilder() { + if (channelUuidBuilder_ != null) { + return channelUuidBuilder_.getMessageOrBuilder(); + } else { + return channelUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : channelUuid_; + } + } + + /** + * .context.Uuid channel_uuid = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getChannelUuidFieldBuilder() { + if (channelUuidBuilder_ == null) { + channelUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getChannelUuid(), getParentForChildren(), isClean()); + channelUuid_ = null; + } + return channelUuidBuilder_; + } + + @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.ChannelId) + } + + // @@protoc_insertion_point(class_scope:context.ChannelId) + private static final context.ContextOuterClass.ChannelId DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new context.ContextOuterClass.ChannelId(); + } + + public static context.ContextOuterClass.ChannelId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public ChannelId parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public context.ContextOuterClass.ChannelId getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OpticalBandIdOrBuilder extends // @@protoc_insertion_point(interface_extends:context.OpticalBandId) + com.google.protobuf.MessageOrBuilder { + + /** + * .context.Uuid opticalband_uuid = 1; + * @return Whether the opticalbandUuid field is set. + */ + boolean hasOpticalbandUuid(); + + /** + * .context.Uuid opticalband_uuid = 1; + * @return The opticalbandUuid. + */ + context.ContextOuterClass.Uuid getOpticalbandUuid(); + + /** + * .context.Uuid opticalband_uuid = 1; + */ + context.ContextOuterClass.UuidOrBuilder getOpticalbandUuidOrBuilder(); + } + + /** + * Protobuf type {@code context.OpticalBandId} + */ + public static final class OpticalBandId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.OpticalBandId) + OpticalBandIdOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use OpticalBandId.newBuilder() to construct. + private OpticalBandId(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OpticalBandId() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OpticalBandId(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_OpticalBandId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_OpticalBandId_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalBandId.class, context.ContextOuterClass.OpticalBandId.Builder.class); + } + + public static final int OPTICALBAND_UUID_FIELD_NUMBER = 1; + + private context.ContextOuterClass.Uuid opticalbandUuid_; + + /** + * .context.Uuid opticalband_uuid = 1; + * @return Whether the opticalbandUuid field is set. + */ + @java.lang.Override + public boolean hasOpticalbandUuid() { + return opticalbandUuid_ != null; + } + + /** + * .context.Uuid opticalband_uuid = 1; + * @return The opticalbandUuid. + */ + @java.lang.Override + public context.ContextOuterClass.Uuid getOpticalbandUuid() { + return opticalbandUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : opticalbandUuid_; + } + + /** + * .context.Uuid opticalband_uuid = 1; + */ + @java.lang.Override + public context.ContextOuterClass.UuidOrBuilder getOpticalbandUuidOrBuilder() { + return opticalbandUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : opticalbandUuid_; + } + + 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 (opticalbandUuid_ != null) { + output.writeMessage(1, getOpticalbandUuid()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (opticalbandUuid_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOpticalbandUuid()); + } + size += getUnknownFields().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.OpticalBandId)) { + return super.equals(obj); + } + context.ContextOuterClass.OpticalBandId other = (context.ContextOuterClass.OpticalBandId) obj; + if (hasOpticalbandUuid() != other.hasOpticalbandUuid()) + return false; + if (hasOpticalbandUuid()) { + if (!getOpticalbandUuid().equals(other.getOpticalbandUuid())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOpticalbandUuid()) { + hash = (37 * hash) + OPTICALBAND_UUID_FIELD_NUMBER; + hash = (53 * hash) + getOpticalbandUuid().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static context.ContextOuterClass.OpticalBandId parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalBandId parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.OpticalBandId parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalBandId 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.OpticalBandId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalBandId parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.OpticalBandId parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalBandId 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.OpticalBandId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalBandId 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.OpticalBandId parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalBandId 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.OpticalBandId 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.OpticalBandId} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.OpticalBandId) + context.ContextOuterClass.OpticalBandIdOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_OpticalBandId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_OpticalBandId_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalBandId.class, context.ContextOuterClass.OpticalBandId.Builder.class); + } + + // Construct using context.ContextOuterClass.OpticalBandId.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + opticalbandUuid_ = null; + if (opticalbandUuidBuilder_ != null) { + opticalbandUuidBuilder_.dispose(); + opticalbandUuidBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return context.ContextOuterClass.internal_static_context_OpticalBandId_descriptor; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalBandId getDefaultInstanceForType() { + return context.ContextOuterClass.OpticalBandId.getDefaultInstance(); + } + + @java.lang.Override + public context.ContextOuterClass.OpticalBandId build() { + context.ContextOuterClass.OpticalBandId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalBandId buildPartial() { + context.ContextOuterClass.OpticalBandId result = new context.ContextOuterClass.OpticalBandId(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(context.ContextOuterClass.OpticalBandId result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.opticalbandUuid_ = opticalbandUuidBuilder_ == null ? opticalbandUuid_ : opticalbandUuidBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof context.ContextOuterClass.OpticalBandId) { + return mergeFrom((context.ContextOuterClass.OpticalBandId) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(context.ContextOuterClass.OpticalBandId other) { + if (other == context.ContextOuterClass.OpticalBandId.getDefaultInstance()) + return this; + if (other.hasOpticalbandUuid()) { + mergeOpticalbandUuid(other.getOpticalbandUuid()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getOpticalbandUuidFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } + // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private context.ContextOuterClass.Uuid opticalbandUuid_; + + private com.google.protobuf.SingleFieldBuilderV3 opticalbandUuidBuilder_; + + /** + * .context.Uuid opticalband_uuid = 1; + * @return Whether the opticalbandUuid field is set. + */ + public boolean hasOpticalbandUuid() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * .context.Uuid opticalband_uuid = 1; + * @return The opticalbandUuid. + */ + public context.ContextOuterClass.Uuid getOpticalbandUuid() { + if (opticalbandUuidBuilder_ == null) { + return opticalbandUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : opticalbandUuid_; + } else { + return opticalbandUuidBuilder_.getMessage(); + } + } + + /** + * .context.Uuid opticalband_uuid = 1; + */ + public Builder setOpticalbandUuid(context.ContextOuterClass.Uuid value) { + if (opticalbandUuidBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + opticalbandUuid_ = value; + } else { + opticalbandUuidBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.Uuid opticalband_uuid = 1; + */ + public Builder setOpticalbandUuid(context.ContextOuterClass.Uuid.Builder builderForValue) { + if (opticalbandUuidBuilder_ == null) { + opticalbandUuid_ = builderForValue.build(); + } else { + opticalbandUuidBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.Uuid opticalband_uuid = 1; + */ + public Builder mergeOpticalbandUuid(context.ContextOuterClass.Uuid value) { + if (opticalbandUuidBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && opticalbandUuid_ != null && opticalbandUuid_ != context.ContextOuterClass.Uuid.getDefaultInstance()) { + getOpticalbandUuidBuilder().mergeFrom(value); + } else { + opticalbandUuid_ = value; + } + } else { + opticalbandUuidBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.Uuid opticalband_uuid = 1; + */ + public Builder clearOpticalbandUuid() { + bitField0_ = (bitField0_ & ~0x00000001); + opticalbandUuid_ = null; + if (opticalbandUuidBuilder_ != null) { + opticalbandUuidBuilder_.dispose(); + opticalbandUuidBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.Uuid opticalband_uuid = 1; + */ + public context.ContextOuterClass.Uuid.Builder getOpticalbandUuidBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOpticalbandUuidFieldBuilder().getBuilder(); + } + + /** + * .context.Uuid opticalband_uuid = 1; + */ + public context.ContextOuterClass.UuidOrBuilder getOpticalbandUuidOrBuilder() { + if (opticalbandUuidBuilder_ != null) { + return opticalbandUuidBuilder_.getMessageOrBuilder(); + } else { + return opticalbandUuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : opticalbandUuid_; + } + } + + /** + * .context.Uuid opticalband_uuid = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getOpticalbandUuidFieldBuilder() { + if (opticalbandUuidBuilder_ == null) { + opticalbandUuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getOpticalbandUuid(), getParentForChildren(), isClean()); + opticalbandUuid_ = null; + } + return opticalbandUuidBuilder_; + } + + @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.OpticalBandId) + } + + // @@protoc_insertion_point(class_scope:context.OpticalBandId) + private static final context.ContextOuterClass.OpticalBandId DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new context.ContextOuterClass.OpticalBandId(); + } + + public static context.ContextOuterClass.OpticalBandId getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public OpticalBandId parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalBandId getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OpticalBandOrBuilder extends // @@protoc_insertion_point(interface_extends:context.OpticalBand) + com.google.protobuf.MessageOrBuilder { + + /** + * .context.OpticalBandId opticalband_id = 1; + * @return Whether the opticalbandId field is set. + */ + boolean hasOpticalbandId(); + + /** + * .context.OpticalBandId opticalband_id = 1; + * @return The opticalbandId. + */ + context.ContextOuterClass.OpticalBandId getOpticalbandId(); + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + context.ContextOuterClass.OpticalBandIdOrBuilder getOpticalbandIdOrBuilder(); + + /** + * .context.ConnectionId connection_id = 2; + * @return Whether the connectionId field is set. + */ + boolean hasConnectionId(); + + /** + * .context.ConnectionId connection_id = 2; + * @return The connectionId. + */ + context.ContextOuterClass.ConnectionId getConnectionId(); + + /** + * .context.ConnectionId connection_id = 2; + */ + context.ContextOuterClass.ConnectionIdOrBuilder getConnectionIdOrBuilder(); + + /** + * .context.ChannelId channel_id = 3; + * @return Whether the channelId field is set. + */ + boolean hasChannelId(); + + /** + * .context.ChannelId channel_id = 3; + * @return The channelId. + */ + context.ContextOuterClass.ChannelId getChannelId(); + + /** + * .context.ChannelId channel_id = 3; + */ + context.ContextOuterClass.ChannelIdOrBuilder getChannelIdOrBuilder(); + + /** + * .context.ServiceId service_id = 4; + * @return Whether the serviceId field is set. + */ + boolean hasServiceId(); + + /** + * .context.ServiceId service_id = 4; + * @return The serviceId. + */ + context.ContextOuterClass.ServiceId getServiceId(); + + /** + * .context.ServiceId service_id = 4; + */ + context.ContextOuterClass.ServiceIdOrBuilder getServiceIdOrBuilder(); + + /** + * .context.Service service = 5; + * @return Whether the service field is set. + */ + boolean hasService(); + + /** + * .context.Service service = 5; + * @return The service. + */ + context.ContextOuterClass.Service getService(); + + /** + * .context.Service service = 5; + */ + context.ContextOuterClass.ServiceOrBuilder getServiceOrBuilder(); + + /** + * .context.Connection connection = 6; + * @return Whether the connection field is set. + */ + boolean hasConnection(); + + /** + * .context.Connection connection = 6; + * @return The connection. + */ + context.ContextOuterClass.Connection getConnection(); + + /** + * .context.Connection connection = 6; + */ + context.ContextOuterClass.ConnectionOrBuilder getConnectionOrBuilder(); + + /** + * string channel = 7; + * @return Whether the channel field is set. + */ + boolean hasChannel(); + + /** + * string channel = 7; + * @return The channel. + */ + java.lang.String getChannel(); + + /** + * string channel = 7; + * @return The bytes for channel. + */ + com.google.protobuf.ByteString getChannelBytes(); + + context.ContextOuterClass.OpticalBand.FieldCase getFieldCase(); + } + + /** + * Protobuf type {@code context.OpticalBand} + */ + public static final class OpticalBand extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.OpticalBand) + OpticalBandOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use OpticalBand.newBuilder() to construct. + private OpticalBand(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OpticalBand() { + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OpticalBand(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_OpticalBand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_OpticalBand_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalBand.class, context.ContextOuterClass.OpticalBand.Builder.class); + } + + private int fieldCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object field_; + + public enum FieldCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { + + SERVICE(5), CONNECTION(6), CHANNEL(7), FIELD_NOT_SET(0); + + private final int value; + + private FieldCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FieldCase valueOf(int value) { + return forNumber(value); + } + + public static FieldCase forNumber(int value) { + switch(value) { + case 5: + return SERVICE; + case 6: + return CONNECTION; + case 7: + return CHANNEL; + case 0: + return FIELD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + } + + public FieldCase getFieldCase() { + return FieldCase.forNumber(fieldCase_); + } + + public static final int OPTICALBAND_ID_FIELD_NUMBER = 1; + + private context.ContextOuterClass.OpticalBandId opticalbandId_; + + /** + * .context.OpticalBandId opticalband_id = 1; + * @return Whether the opticalbandId field is set. + */ + @java.lang.Override + public boolean hasOpticalbandId() { + return opticalbandId_ != null; + } + + /** + * .context.OpticalBandId opticalband_id = 1; + * @return The opticalbandId. + */ + @java.lang.Override + public context.ContextOuterClass.OpticalBandId getOpticalbandId() { + return opticalbandId_ == null ? context.ContextOuterClass.OpticalBandId.getDefaultInstance() : opticalbandId_; + } + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + @java.lang.Override + public context.ContextOuterClass.OpticalBandIdOrBuilder getOpticalbandIdOrBuilder() { + return opticalbandId_ == null ? context.ContextOuterClass.OpticalBandId.getDefaultInstance() : opticalbandId_; + } + + public static final int CONNECTION_ID_FIELD_NUMBER = 2; + + private context.ContextOuterClass.ConnectionId connectionId_; + + /** + * .context.ConnectionId connection_id = 2; + * @return Whether the connectionId field is set. + */ + @java.lang.Override + public boolean hasConnectionId() { + return connectionId_ != null; + } + + /** + * .context.ConnectionId connection_id = 2; + * @return The connectionId. + */ + @java.lang.Override + public context.ContextOuterClass.ConnectionId getConnectionId() { + return connectionId_ == null ? context.ContextOuterClass.ConnectionId.getDefaultInstance() : connectionId_; + } + + /** + * .context.ConnectionId connection_id = 2; + */ + @java.lang.Override + public context.ContextOuterClass.ConnectionIdOrBuilder getConnectionIdOrBuilder() { + return connectionId_ == null ? context.ContextOuterClass.ConnectionId.getDefaultInstance() : connectionId_; + } + + public static final int CHANNEL_ID_FIELD_NUMBER = 3; + + private context.ContextOuterClass.ChannelId channelId_; + + /** + * .context.ChannelId channel_id = 3; + * @return Whether the channelId field is set. + */ + @java.lang.Override + public boolean hasChannelId() { + return channelId_ != null; + } + + /** + * .context.ChannelId channel_id = 3; + * @return The channelId. + */ + @java.lang.Override + public context.ContextOuterClass.ChannelId getChannelId() { + return channelId_ == null ? context.ContextOuterClass.ChannelId.getDefaultInstance() : channelId_; + } + + /** + * .context.ChannelId channel_id = 3; + */ + @java.lang.Override + public context.ContextOuterClass.ChannelIdOrBuilder getChannelIdOrBuilder() { + return channelId_ == null ? context.ContextOuterClass.ChannelId.getDefaultInstance() : channelId_; + } + + public static final int SERVICE_ID_FIELD_NUMBER = 4; + + private context.ContextOuterClass.ServiceId serviceId_; + + /** + * .context.ServiceId service_id = 4; + * @return Whether the serviceId field is set. + */ + @java.lang.Override + public boolean hasServiceId() { + return serviceId_ != null; + } + + /** + * .context.ServiceId service_id = 4; + * @return The serviceId. + */ + @java.lang.Override + public context.ContextOuterClass.ServiceId getServiceId() { + return serviceId_ == null ? context.ContextOuterClass.ServiceId.getDefaultInstance() : serviceId_; + } + + /** + * .context.ServiceId service_id = 4; + */ + @java.lang.Override + public context.ContextOuterClass.ServiceIdOrBuilder getServiceIdOrBuilder() { + return serviceId_ == null ? context.ContextOuterClass.ServiceId.getDefaultInstance() : serviceId_; + } + + public static final int SERVICE_FIELD_NUMBER = 5; + + /** + * .context.Service service = 5; + * @return Whether the service field is set. + */ + @java.lang.Override + public boolean hasService() { + return fieldCase_ == 5; + } + + /** + * .context.Service service = 5; + * @return The service. + */ + @java.lang.Override + public context.ContextOuterClass.Service getService() { + if (fieldCase_ == 5) { + return (context.ContextOuterClass.Service) field_; + } + return context.ContextOuterClass.Service.getDefaultInstance(); + } + + /** + * .context.Service service = 5; + */ + @java.lang.Override + public context.ContextOuterClass.ServiceOrBuilder getServiceOrBuilder() { + if (fieldCase_ == 5) { + return (context.ContextOuterClass.Service) field_; + } + return context.ContextOuterClass.Service.getDefaultInstance(); + } + + public static final int CONNECTION_FIELD_NUMBER = 6; + + /** + * .context.Connection connection = 6; + * @return Whether the connection field is set. + */ + @java.lang.Override + public boolean hasConnection() { + return fieldCase_ == 6; + } + + /** + * .context.Connection connection = 6; + * @return The connection. + */ + @java.lang.Override + public context.ContextOuterClass.Connection getConnection() { + if (fieldCase_ == 6) { + return (context.ContextOuterClass.Connection) field_; + } + return context.ContextOuterClass.Connection.getDefaultInstance(); + } + + /** + * .context.Connection connection = 6; + */ + @java.lang.Override + public context.ContextOuterClass.ConnectionOrBuilder getConnectionOrBuilder() { + if (fieldCase_ == 6) { + return (context.ContextOuterClass.Connection) field_; + } + return context.ContextOuterClass.Connection.getDefaultInstance(); + } + + public static final int CHANNEL_FIELD_NUMBER = 7; + + /** + * string channel = 7; + * @return Whether the channel field is set. + */ + public boolean hasChannel() { + return fieldCase_ == 7; + } + + /** + * string channel = 7; + * @return The channel. + */ + public java.lang.String getChannel() { + java.lang.Object ref = ""; + if (fieldCase_ == 7) { + ref = field_; + } + 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(); + if (fieldCase_ == 7) { + field_ = s; + } + return s; + } + } + + /** + * string channel = 7; + * @return The bytes for channel. + */ + public com.google.protobuf.ByteString getChannelBytes() { + java.lang.Object ref = ""; + if (fieldCase_ == 7) { + ref = field_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (fieldCase_ == 7) { + field_ = 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 (opticalbandId_ != null) { + output.writeMessage(1, getOpticalbandId()); + } + if (connectionId_ != null) { + output.writeMessage(2, getConnectionId()); + } + if (channelId_ != null) { + output.writeMessage(3, getChannelId()); + } + if (serviceId_ != null) { + output.writeMessage(4, getServiceId()); + } + if (fieldCase_ == 5) { + output.writeMessage(5, (context.ContextOuterClass.Service) field_); + } + if (fieldCase_ == 6) { + output.writeMessage(6, (context.ContextOuterClass.Connection) field_); + } + if (fieldCase_ == 7) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, field_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (opticalbandId_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOpticalbandId()); + } + if (connectionId_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnectionId()); + } + if (channelId_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getChannelId()); + } + if (serviceId_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getServiceId()); + } + if (fieldCase_ == 5) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, (context.ContextOuterClass.Service) field_); + } + if (fieldCase_ == 6) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, (context.ContextOuterClass.Connection) field_); + } + if (fieldCase_ == 7) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, field_); + } + size += getUnknownFields().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.OpticalBand)) { + return super.equals(obj); + } + context.ContextOuterClass.OpticalBand other = (context.ContextOuterClass.OpticalBand) obj; + if (hasOpticalbandId() != other.hasOpticalbandId()) + return false; + if (hasOpticalbandId()) { + if (!getOpticalbandId().equals(other.getOpticalbandId())) + return false; + } + if (hasConnectionId() != other.hasConnectionId()) + return false; + if (hasConnectionId()) { + if (!getConnectionId().equals(other.getConnectionId())) + return false; + } + if (hasChannelId() != other.hasChannelId()) + return false; + if (hasChannelId()) { + if (!getChannelId().equals(other.getChannelId())) + return false; + } + if (hasServiceId() != other.hasServiceId()) + return false; + if (hasServiceId()) { + if (!getServiceId().equals(other.getServiceId())) + return false; + } + if (!getFieldCase().equals(other.getFieldCase())) + return false; + switch(fieldCase_) { + case 5: + if (!getService().equals(other.getService())) + return false; + break; + case 6: + if (!getConnection().equals(other.getConnection())) + return false; + break; + case 7: + if (!getChannel().equals(other.getChannel())) + return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) + return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOpticalbandId()) { + hash = (37 * hash) + OPTICALBAND_ID_FIELD_NUMBER; + hash = (53 * hash) + getOpticalbandId().hashCode(); + } + if (hasConnectionId()) { + hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConnectionId().hashCode(); + } + if (hasChannelId()) { + hash = (37 * hash) + CHANNEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getChannelId().hashCode(); + } + if (hasServiceId()) { + hash = (37 * hash) + SERVICE_ID_FIELD_NUMBER; + hash = (53 * hash) + getServiceId().hashCode(); + } + switch(fieldCase_) { + case 5: + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().hashCode(); + break; + case 6: + hash = (37 * hash) + CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getConnection().hashCode(); + break; + case 7: + hash = (37 * hash) + CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getChannel().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static context.ContextOuterClass.OpticalBand parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalBand parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.OpticalBand parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalBand 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.OpticalBand parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static context.ContextOuterClass.OpticalBand parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static context.ContextOuterClass.OpticalBand parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalBand 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.OpticalBand parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalBand 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.OpticalBand parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static context.ContextOuterClass.OpticalBand 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.OpticalBand 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.OpticalBand} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.OpticalBand) + context.ContextOuterClass.OpticalBandOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return context.ContextOuterClass.internal_static_context_OpticalBand_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return context.ContextOuterClass.internal_static_context_OpticalBand_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalBand.class, context.ContextOuterClass.OpticalBand.Builder.class); + } + + // Construct using context.ContextOuterClass.OpticalBand.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + opticalbandId_ = null; + if (opticalbandIdBuilder_ != null) { + opticalbandIdBuilder_.dispose(); + opticalbandIdBuilder_ = null; + } + connectionId_ = null; + if (connectionIdBuilder_ != null) { + connectionIdBuilder_.dispose(); + connectionIdBuilder_ = null; + } + channelId_ = null; + if (channelIdBuilder_ != null) { + channelIdBuilder_.dispose(); + channelIdBuilder_ = null; + } + serviceId_ = null; + if (serviceIdBuilder_ != null) { + serviceIdBuilder_.dispose(); + serviceIdBuilder_ = null; + } + if (serviceBuilder_ != null) { + serviceBuilder_.clear(); + } + if (connectionBuilder_ != null) { + connectionBuilder_.clear(); + } + fieldCase_ = 0; + field_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return context.ContextOuterClass.internal_static_context_OpticalBand_descriptor; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalBand getDefaultInstanceForType() { + return context.ContextOuterClass.OpticalBand.getDefaultInstance(); + } + + @java.lang.Override + public context.ContextOuterClass.OpticalBand build() { + context.ContextOuterClass.OpticalBand result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public context.ContextOuterClass.OpticalBand buildPartial() { + context.ContextOuterClass.OpticalBand result = new context.ContextOuterClass.OpticalBand(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(context.ContextOuterClass.OpticalBand result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.opticalbandId_ = opticalbandIdBuilder_ == null ? opticalbandId_ : opticalbandIdBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.connectionId_ = connectionIdBuilder_ == null ? connectionId_ : connectionIdBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.channelId_ = channelIdBuilder_ == null ? channelId_ : channelIdBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceId_ = serviceIdBuilder_ == null ? serviceId_ : serviceIdBuilder_.build(); + } + } + + private void buildPartialOneofs(context.ContextOuterClass.OpticalBand result) { + result.fieldCase_ = fieldCase_; + result.field_ = this.field_; + if (fieldCase_ == 5 && serviceBuilder_ != null) { + result.field_ = serviceBuilder_.build(); + } + if (fieldCase_ == 6 && connectionBuilder_ != null) { + result.field_ = connectionBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof context.ContextOuterClass.OpticalBand) { + return mergeFrom((context.ContextOuterClass.OpticalBand) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(context.ContextOuterClass.OpticalBand other) { + if (other == context.ContextOuterClass.OpticalBand.getDefaultInstance()) + return this; + if (other.hasOpticalbandId()) { + mergeOpticalbandId(other.getOpticalbandId()); + } + if (other.hasConnectionId()) { + mergeConnectionId(other.getConnectionId()); + } + if (other.hasChannelId()) { + mergeChannelId(other.getChannelId()); + } + if (other.hasServiceId()) { + mergeServiceId(other.getServiceId()); + } + switch(other.getFieldCase()) { + case SERVICE: + { + mergeService(other.getService()); + break; + } + case CONNECTION: + { + mergeConnection(other.getConnection()); + break; + } + case CHANNEL: + { + fieldCase_ = 7; + field_ = other.field_; + onChanged(); + break; + } + case FIELD_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getOpticalbandIdFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } + // case 10 + case 18: + { + input.readMessage(getConnectionIdFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } + // case 18 + case 26: + { + input.readMessage(getChannelIdFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } + // case 26 + case 34: + { + input.readMessage(getServiceIdFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } + // case 34 + case 42: + { + input.readMessage(getServiceFieldBuilder().getBuilder(), extensionRegistry); + fieldCase_ = 5; + break; + } + // case 42 + case 50: + { + input.readMessage(getConnectionFieldBuilder().getBuilder(), extensionRegistry); + fieldCase_ = 6; + break; + } + // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + fieldCase_ = 7; + field_ = s; + break; + } + // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int fieldCase_ = 0; + + private java.lang.Object field_; + + public FieldCase getFieldCase() { + return FieldCase.forNumber(fieldCase_); + } + + public Builder clearField() { + fieldCase_ = 0; + field_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private context.ContextOuterClass.OpticalBandId opticalbandId_; + + private com.google.protobuf.SingleFieldBuilderV3 opticalbandIdBuilder_; + + /** + * .context.OpticalBandId opticalband_id = 1; + * @return Whether the opticalbandId field is set. + */ + public boolean hasOpticalbandId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * .context.OpticalBandId opticalband_id = 1; + * @return The opticalbandId. + */ + public context.ContextOuterClass.OpticalBandId getOpticalbandId() { + if (opticalbandIdBuilder_ == null) { + return opticalbandId_ == null ? context.ContextOuterClass.OpticalBandId.getDefaultInstance() : opticalbandId_; + } else { + return opticalbandIdBuilder_.getMessage(); + } + } + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + public Builder setOpticalbandId(context.ContextOuterClass.OpticalBandId value) { + if (opticalbandIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + opticalbandId_ = value; + } else { + opticalbandIdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + public Builder setOpticalbandId(context.ContextOuterClass.OpticalBandId.Builder builderForValue) { + if (opticalbandIdBuilder_ == null) { + opticalbandId_ = builderForValue.build(); + } else { + opticalbandIdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + public Builder mergeOpticalbandId(context.ContextOuterClass.OpticalBandId value) { + if (opticalbandIdBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && opticalbandId_ != null && opticalbandId_ != context.ContextOuterClass.OpticalBandId.getDefaultInstance()) { + getOpticalbandIdBuilder().mergeFrom(value); + } else { + opticalbandId_ = value; + } + } else { + opticalbandIdBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + public Builder clearOpticalbandId() { + bitField0_ = (bitField0_ & ~0x00000001); + opticalbandId_ = null; + if (opticalbandIdBuilder_ != null) { + opticalbandIdBuilder_.dispose(); + opticalbandIdBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + public context.ContextOuterClass.OpticalBandId.Builder getOpticalbandIdBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOpticalbandIdFieldBuilder().getBuilder(); + } + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + public context.ContextOuterClass.OpticalBandIdOrBuilder getOpticalbandIdOrBuilder() { + if (opticalbandIdBuilder_ != null) { + return opticalbandIdBuilder_.getMessageOrBuilder(); + } else { + return opticalbandId_ == null ? context.ContextOuterClass.OpticalBandId.getDefaultInstance() : opticalbandId_; + } + } + + /** + * .context.OpticalBandId opticalband_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3 getOpticalbandIdFieldBuilder() { + if (opticalbandIdBuilder_ == null) { + opticalbandIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getOpticalbandId(), getParentForChildren(), isClean()); + opticalbandId_ = null; + } + return opticalbandIdBuilder_; + } + + private context.ContextOuterClass.ConnectionId connectionId_; + + private com.google.protobuf.SingleFieldBuilderV3 connectionIdBuilder_; + + /** + * .context.ConnectionId connection_id = 2; + * @return Whether the connectionId field is set. + */ + public boolean hasConnectionId() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * .context.ConnectionId connection_id = 2; + * @return The connectionId. + */ + public context.ContextOuterClass.ConnectionId getConnectionId() { + if (connectionIdBuilder_ == null) { + return connectionId_ == null ? context.ContextOuterClass.ConnectionId.getDefaultInstance() : connectionId_; + } else { + return connectionIdBuilder_.getMessage(); + } + } + + /** + * .context.ConnectionId connection_id = 2; + */ + public Builder setConnectionId(context.ContextOuterClass.ConnectionId value) { + if (connectionIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectionId_ = value; + } else { + connectionIdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .context.ConnectionId connection_id = 2; + */ + public Builder setConnectionId(context.ContextOuterClass.ConnectionId.Builder builderForValue) { + if (connectionIdBuilder_ == null) { + connectionId_ = builderForValue.build(); + } else { + connectionIdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .context.ConnectionId connection_id = 2; + */ + public Builder mergeConnectionId(context.ContextOuterClass.ConnectionId value) { + if (connectionIdBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && connectionId_ != null && connectionId_ != context.ContextOuterClass.ConnectionId.getDefaultInstance()) { + getConnectionIdBuilder().mergeFrom(value); + } else { + connectionId_ = value; + } + } else { + connectionIdBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * .context.ConnectionId connection_id = 2; + */ + public Builder clearConnectionId() { + bitField0_ = (bitField0_ & ~0x00000002); + connectionId_ = null; + if (connectionIdBuilder_ != null) { + connectionIdBuilder_.dispose(); + connectionIdBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.ConnectionId connection_id = 2; + */ + public context.ContextOuterClass.ConnectionId.Builder getConnectionIdBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getConnectionIdFieldBuilder().getBuilder(); + } + + /** + * .context.ConnectionId connection_id = 2; + */ + public context.ContextOuterClass.ConnectionIdOrBuilder getConnectionIdOrBuilder() { + if (connectionIdBuilder_ != null) { + return connectionIdBuilder_.getMessageOrBuilder(); + } else { + return connectionId_ == null ? context.ContextOuterClass.ConnectionId.getDefaultInstance() : connectionId_; + } + } + + /** + * .context.ConnectionId connection_id = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3 getConnectionIdFieldBuilder() { + if (connectionIdBuilder_ == null) { + connectionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getConnectionId(), getParentForChildren(), isClean()); + connectionId_ = null; + } + return connectionIdBuilder_; + } + + private context.ContextOuterClass.ChannelId channelId_; + + private com.google.protobuf.SingleFieldBuilderV3 channelIdBuilder_; + + /** + * .context.ChannelId channel_id = 3; + * @return Whether the channelId field is set. + */ + public boolean hasChannelId() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * .context.ChannelId channel_id = 3; + * @return The channelId. + */ + public context.ContextOuterClass.ChannelId getChannelId() { + if (channelIdBuilder_ == null) { + return channelId_ == null ? context.ContextOuterClass.ChannelId.getDefaultInstance() : channelId_; + } else { + return channelIdBuilder_.getMessage(); + } + } + + /** + * .context.ChannelId channel_id = 3; + */ + public Builder setChannelId(context.ContextOuterClass.ChannelId value) { + if (channelIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + channelId_ = value; + } else { + channelIdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * .context.ChannelId channel_id = 3; + */ + public Builder setChannelId(context.ContextOuterClass.ChannelId.Builder builderForValue) { + if (channelIdBuilder_ == null) { + channelId_ = builderForValue.build(); + } else { + channelIdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * .context.ChannelId channel_id = 3; + */ + public Builder mergeChannelId(context.ContextOuterClass.ChannelId value) { + if (channelIdBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && channelId_ != null && channelId_ != context.ContextOuterClass.ChannelId.getDefaultInstance()) { + getChannelIdBuilder().mergeFrom(value); + } else { + channelId_ = value; + } + } else { + channelIdBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * .context.ChannelId channel_id = 3; + */ + public Builder clearChannelId() { + bitField0_ = (bitField0_ & ~0x00000004); + channelId_ = null; + if (channelIdBuilder_ != null) { + channelIdBuilder_.dispose(); + channelIdBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.ChannelId channel_id = 3; + */ + public context.ContextOuterClass.ChannelId.Builder getChannelIdBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getChannelIdFieldBuilder().getBuilder(); + } + + /** + * .context.ChannelId channel_id = 3; + */ + public context.ContextOuterClass.ChannelIdOrBuilder getChannelIdOrBuilder() { + if (channelIdBuilder_ != null) { + return channelIdBuilder_.getMessageOrBuilder(); + } else { + return channelId_ == null ? context.ContextOuterClass.ChannelId.getDefaultInstance() : channelId_; + } + } + + /** + * .context.ChannelId channel_id = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3 getChannelIdFieldBuilder() { + if (channelIdBuilder_ == null) { + channelIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getChannelId(), getParentForChildren(), isClean()); + channelId_ = null; + } + return channelIdBuilder_; + } + + private context.ContextOuterClass.ServiceId serviceId_; + + private com.google.protobuf.SingleFieldBuilderV3 serviceIdBuilder_; + + /** + * .context.ServiceId service_id = 4; + * @return Whether the serviceId field is set. + */ + public boolean hasServiceId() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * .context.ServiceId service_id = 4; + * @return The serviceId. + */ + public context.ContextOuterClass.ServiceId getServiceId() { + if (serviceIdBuilder_ == null) { + return serviceId_ == null ? context.ContextOuterClass.ServiceId.getDefaultInstance() : serviceId_; + } else { + return serviceIdBuilder_.getMessage(); + } + } + + /** + * .context.ServiceId service_id = 4; + */ + public Builder setServiceId(context.ContextOuterClass.ServiceId value) { + if (serviceIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceId_ = value; + } else { + serviceIdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * .context.ServiceId service_id = 4; + */ + public Builder setServiceId(context.ContextOuterClass.ServiceId.Builder builderForValue) { + if (serviceIdBuilder_ == null) { + serviceId_ = builderForValue.build(); + } else { + serviceIdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * .context.ServiceId service_id = 4; + */ + public Builder mergeServiceId(context.ContextOuterClass.ServiceId value) { + if (serviceIdBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && serviceId_ != null && serviceId_ != context.ContextOuterClass.ServiceId.getDefaultInstance()) { + getServiceIdBuilder().mergeFrom(value); + } else { + serviceId_ = value; + } + } else { + serviceIdBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * .context.ServiceId service_id = 4; + */ + public Builder clearServiceId() { + bitField0_ = (bitField0_ & ~0x00000008); + serviceId_ = null; + if (serviceIdBuilder_ != null) { + serviceIdBuilder_.dispose(); + serviceIdBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * .context.ServiceId service_id = 4; + */ + public context.ContextOuterClass.ServiceId.Builder getServiceIdBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getServiceIdFieldBuilder().getBuilder(); + } + + /** + * .context.ServiceId service_id = 4; + */ + public context.ContextOuterClass.ServiceIdOrBuilder getServiceIdOrBuilder() { + if (serviceIdBuilder_ != null) { + return serviceIdBuilder_.getMessageOrBuilder(); + } else { + return serviceId_ == null ? context.ContextOuterClass.ServiceId.getDefaultInstance() : serviceId_; + } + } + + /** + * .context.ServiceId service_id = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3 getServiceIdFieldBuilder() { + if (serviceIdBuilder_ == null) { + serviceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getServiceId(), getParentForChildren(), isClean()); + serviceId_ = null; + } + return serviceIdBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 serviceBuilder_; + + /** + * .context.Service service = 5; + * @return Whether the service field is set. + */ + @java.lang.Override + public boolean hasService() { + return fieldCase_ == 5; + } + + /** + * .context.Service service = 5; + * @return The service. + */ + @java.lang.Override + public context.ContextOuterClass.Service getService() { + if (serviceBuilder_ == null) { + if (fieldCase_ == 5) { + return (context.ContextOuterClass.Service) field_; + } + return context.ContextOuterClass.Service.getDefaultInstance(); + } else { + if (fieldCase_ == 5) { + return serviceBuilder_.getMessage(); + } + return context.ContextOuterClass.Service.getDefaultInstance(); + } + } + + /** + * .context.Service service = 5; + */ + public Builder setService(context.ContextOuterClass.Service value) { + if (serviceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; + onChanged(); + } else { + serviceBuilder_.setMessage(value); + } + fieldCase_ = 5; + return this; + } + + /** + * .context.Service service = 5; + */ + public Builder setService(context.ContextOuterClass.Service.Builder builderForValue) { + if (serviceBuilder_ == null) { + field_ = builderForValue.build(); + onChanged(); + } else { + serviceBuilder_.setMessage(builderForValue.build()); + } + fieldCase_ = 5; + return this; + } + + /** + * .context.Service service = 5; + */ + public Builder mergeService(context.ContextOuterClass.Service value) { + if (serviceBuilder_ == null) { + if (fieldCase_ == 5 && field_ != context.ContextOuterClass.Service.getDefaultInstance()) { + field_ = context.ContextOuterClass.Service.newBuilder((context.ContextOuterClass.Service) field_).mergeFrom(value).buildPartial(); + } else { + field_ = value; + } + onChanged(); + } else { + if (fieldCase_ == 5) { + serviceBuilder_.mergeFrom(value); + } else { + serviceBuilder_.setMessage(value); + } + } + fieldCase_ = 5; + return this; + } + + /** + * .context.Service service = 5; + */ + public Builder clearService() { + if (serviceBuilder_ == null) { + if (fieldCase_ == 5) { + fieldCase_ = 0; + field_ = null; + onChanged(); + } + } else { + if (fieldCase_ == 5) { + fieldCase_ = 0; + field_ = null; + } + serviceBuilder_.clear(); + } + return this; + } + + /** + * .context.Service service = 5; + */ + public context.ContextOuterClass.Service.Builder getServiceBuilder() { + return getServiceFieldBuilder().getBuilder(); + } + + /** + * .context.Service service = 5; + */ + @java.lang.Override + public context.ContextOuterClass.ServiceOrBuilder getServiceOrBuilder() { + if ((fieldCase_ == 5) && (serviceBuilder_ != null)) { + return serviceBuilder_.getMessageOrBuilder(); + } else { + if (fieldCase_ == 5) { + return (context.ContextOuterClass.Service) field_; + } + return context.ContextOuterClass.Service.getDefaultInstance(); + } + } + + /** + * .context.Service service = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3 getServiceFieldBuilder() { + if (serviceBuilder_ == null) { + if (!(fieldCase_ == 5)) { + field_ = context.ContextOuterClass.Service.getDefaultInstance(); + } + serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.Service) field_, getParentForChildren(), isClean()); + field_ = null; + } + fieldCase_ = 5; + onChanged(); + return serviceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3 connectionBuilder_; + + /** + * .context.Connection connection = 6; + * @return Whether the connection field is set. + */ + @java.lang.Override + public boolean hasConnection() { + return fieldCase_ == 6; + } + + /** + * .context.Connection connection = 6; + * @return The connection. + */ + @java.lang.Override + public context.ContextOuterClass.Connection getConnection() { + if (connectionBuilder_ == null) { + if (fieldCase_ == 6) { + return (context.ContextOuterClass.Connection) field_; + } + return context.ContextOuterClass.Connection.getDefaultInstance(); + } else { + if (fieldCase_ == 6) { + return connectionBuilder_.getMessage(); + } + return context.ContextOuterClass.Connection.getDefaultInstance(); + } + } + + /** + * .context.Connection connection = 6; + */ + public Builder setConnection(context.ContextOuterClass.Connection value) { + if (connectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; + onChanged(); + } else { + connectionBuilder_.setMessage(value); + } + fieldCase_ = 6; + return this; + } + + /** + * .context.Connection connection = 6; */ - public Builder putAllLSlots(java.util.Map values) { - internalGetMutableLSlots().getMutableMap().putAll(values); - bitField0_ |= 0x00000080; + public Builder setConnection(context.ContextOuterClass.Connection.Builder builderForValue) { + if (connectionBuilder_ == null) { + field_ = builderForValue.build(); + onChanged(); + } else { + connectionBuilder_.setMessage(builderForValue.build()); + } + fieldCase_ = 6; return this; } - private com.google.protobuf.MapField sSlots_; - - private com.google.protobuf.MapField internalGetSSlots() { - if (sSlots_ == null) { - return com.google.protobuf.MapField.emptyMapField(SSlotsDefaultEntryHolder.defaultEntry); + /** + * .context.Connection connection = 6; + */ + public Builder mergeConnection(context.ContextOuterClass.Connection value) { + if (connectionBuilder_ == null) { + if (fieldCase_ == 6 && field_ != context.ContextOuterClass.Connection.getDefaultInstance()) { + field_ = context.ContextOuterClass.Connection.newBuilder((context.ContextOuterClass.Connection) field_).mergeFrom(value).buildPartial(); + } else { + field_ = value; + } + onChanged(); + } else { + if (fieldCase_ == 6) { + connectionBuilder_.mergeFrom(value); + } else { + connectionBuilder_.setMessage(value); + } } - return sSlots_; + fieldCase_ = 6; + return this; } - private com.google.protobuf.MapField internalGetMutableSSlots() { - if (sSlots_ == null) { - sSlots_ = com.google.protobuf.MapField.newMapField(SSlotsDefaultEntryHolder.defaultEntry); - } - if (!sSlots_.isMutable()) { - sSlots_ = sSlots_.copy(); + /** + * .context.Connection connection = 6; + */ + public Builder clearConnection() { + if (connectionBuilder_ == null) { + if (fieldCase_ == 6) { + fieldCase_ = 0; + field_ = null; + onChanged(); + } + } else { + if (fieldCase_ == 6) { + fieldCase_ = 0; + field_ = null; + } + connectionBuilder_.clear(); } - bitField0_ |= 0x00000100; - onChanged(); - return sSlots_; + return this; } - public int getSSlotsCount() { - return internalGetSSlots().getMap().size(); + /** + * .context.Connection connection = 6; + */ + public context.ContextOuterClass.Connection.Builder getConnectionBuilder() { + return getConnectionFieldBuilder().getBuilder(); } /** - * map<string, int32> s_slots = 9; + * .context.Connection connection = 6; */ @java.lang.Override - public boolean containsSSlots(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public context.ContextOuterClass.ConnectionOrBuilder getConnectionOrBuilder() { + if ((fieldCase_ == 6) && (connectionBuilder_ != null)) { + return connectionBuilder_.getMessageOrBuilder(); + } else { + if (fieldCase_ == 6) { + return (context.ContextOuterClass.Connection) field_; + } + return context.ContextOuterClass.Connection.getDefaultInstance(); } - return internalGetSSlots().getMap().containsKey(key); } /** - * Use {@link #getSSlotsMap()} instead. + * .context.Connection connection = 6; */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getSSlots() { - return getSSlotsMap(); + private com.google.protobuf.SingleFieldBuilderV3 getConnectionFieldBuilder() { + if (connectionBuilder_ == null) { + if (!(fieldCase_ == 6)) { + field_ = context.ContextOuterClass.Connection.getDefaultInstance(); + } + connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3((context.ContextOuterClass.Connection) field_, getParentForChildren(), isClean()); + field_ = null; + } + fieldCase_ = 6; + onChanged(); + return connectionBuilder_; } /** - * map<string, int32> s_slots = 9; + * string channel = 7; + * @return Whether the channel field is set. */ @java.lang.Override - public java.util.Map getSSlotsMap() { - return internalGetSSlots().getMap(); + public boolean hasChannel() { + return fieldCase_ == 7; } /** - * map<string, int32> s_slots = 9; + * string channel = 7; + * @return The channel. */ @java.lang.Override - public int getSSlotsOrDefault(java.lang.String key, int defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public java.lang.String getChannel() { + java.lang.Object ref = ""; + if (fieldCase_ == 7) { + ref = field_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (fieldCase_ == 7) { + field_ = s; + } + return s; + } else { + return (java.lang.String) ref; } - java.util.Map map = internalGetSSlots().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * map<string, int32> s_slots = 9; + * string channel = 7; + * @return The bytes for channel. */ @java.lang.Override - public int getSSlotsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.protobuf.ByteString getChannelBytes() { + java.lang.Object ref = ""; + if (fieldCase_ == 7) { + ref = field_; } - java.util.Map map = internalGetSSlots().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (fieldCase_ == 7) { + field_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return map.get(key); - } - - public Builder clearSSlots() { - bitField0_ = (bitField0_ & ~0x00000100); - internalGetMutableSSlots().getMutableMap().clear(); - return this; } /** - * map<string, int32> s_slots = 9; + * string channel = 7; + * @param value The channel to set. + * @return This builder for chaining. */ - public Builder removeSSlots(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setChannel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - internalGetMutableSSlots().getMutableMap().remove(key); + fieldCase_ = 7; + field_ = value; + onChanged(); return this; } /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map getMutableSSlots() { - bitField0_ |= 0x00000100; - return internalGetMutableSSlots().getMutableMap(); - } - - /** - * map<string, int32> s_slots = 9; + * string channel = 7; + * @return This builder for chaining. */ - public Builder putSSlots(java.lang.String key, int value) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder clearChannel() { + if (fieldCase_ == 7) { + fieldCase_ = 0; + field_ = null; + onChanged(); } - internalGetMutableSSlots().getMutableMap().put(key, value); - bitField0_ |= 0x00000100; return this; } /** - * map<string, int32> s_slots = 9; + * string channel = 7; + * @param value The bytes for channel to set. + * @return This builder for chaining. */ - public Builder putAllSSlots(java.util.Map values) { - internalGetMutableSSlots().getMutableMap().putAll(values); - bitField0_ |= 0x00000100; + public Builder setChannelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldCase_ = 7; + field_ = value; + onChanged(); return this; } @@ -80903,24 +86090,24 @@ public final class ContextOuterClass { public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:context.OpticalLinkDetails) + // @@protoc_insertion_point(builder_scope:context.OpticalBand) } - // @@protoc_insertion_point(class_scope:context.OpticalLinkDetails) - private static final context.ContextOuterClass.OpticalLinkDetails DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:context.OpticalBand) + private static final context.ContextOuterClass.OpticalBand DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new context.ContextOuterClass.OpticalLinkDetails(); + DEFAULT_INSTANCE = new context.ContextOuterClass.OpticalBand(); } - public static context.ContextOuterClass.OpticalLinkDetails getDefaultInstance() { + public static context.ContextOuterClass.OpticalBand getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public OpticalLinkDetails parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public OpticalBand parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); @@ -80935,270 +86122,125 @@ public final class ContextOuterClass { } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public context.ContextOuterClass.OpticalLinkDetails getDefaultInstanceForType() { + public context.ContextOuterClass.OpticalBand getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface OpticalLinkOrBuilder extends // @@protoc_insertion_point(interface_extends:context.OpticalLink) + public interface OpticalBandListOrBuilder extends // @@protoc_insertion_point(interface_extends:context.OpticalBandList) com.google.protobuf.MessageOrBuilder { /** - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - - /** - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * .context.OpticalLinkDetails optical_details = 2; - * @return Whether the opticalDetails field is set. - */ - boolean hasOpticalDetails(); - - /** - * .context.OpticalLinkDetails optical_details = 2; - * @return The opticalDetails. - */ - context.ContextOuterClass.OpticalLinkDetails getOpticalDetails(); - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - context.ContextOuterClass.OpticalLinkDetailsOrBuilder getOpticalDetailsOrBuilder(); - - /** - * .context.LinkId link_id = 3; - * @return Whether the linkId field is set. - */ - boolean hasLinkId(); - - /** - * .context.LinkId link_id = 3; - * @return The linkId. - */ - context.ContextOuterClass.LinkId getLinkId(); - - /** - * .context.LinkId link_id = 3; - */ - context.ContextOuterClass.LinkIdOrBuilder getLinkIdOrBuilder(); - - /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - java.util.List getLinkEndpointIdsList(); + java.util.List getOpticalbandsList(); /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - context.ContextOuterClass.EndPointId getLinkEndpointIds(int index); + context.ContextOuterClass.OpticalBand getOpticalbands(int index); /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - int getLinkEndpointIdsCount(); + int getOpticalbandsCount(); /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - java.util.List getLinkEndpointIdsOrBuilderList(); + java.util.List getOpticalbandsOrBuilderList(); /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - context.ContextOuterClass.EndPointIdOrBuilder getLinkEndpointIdsOrBuilder(int index); + context.ContextOuterClass.OpticalBandOrBuilder getOpticalbandsOrBuilder(int index); } /** - * Protobuf type {@code context.OpticalLink} + * Protobuf type {@code context.OpticalBandList} */ - public static final class OpticalLink extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.OpticalLink) - OpticalLinkOrBuilder { + public static final class OpticalBandList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:context.OpticalBandList) + OpticalBandListOrBuilder { private static final long serialVersionUID = 0L; - // Use OpticalLink.newBuilder() to construct. - private OpticalLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use OpticalBandList.newBuilder() to construct. + private OpticalBandList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OpticalLink() { - name_ = ""; - linkEndpointIds_ = java.util.Collections.emptyList(); + private OpticalBandList() { + opticalbands_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({ "unused" }) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OpticalLink(); + return new OpticalBandList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_OpticalLink_descriptor; + return context.ContextOuterClass.internal_static_context_OpticalBandList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_OpticalLink_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalLink.class, context.ContextOuterClass.OpticalLink.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * string name = 1; - * @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 = 1; - * @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 OPTICAL_DETAILS_FIELD_NUMBER = 2; - - private context.ContextOuterClass.OpticalLinkDetails opticalDetails_; - - /** - * .context.OpticalLinkDetails optical_details = 2; - * @return Whether the opticalDetails field is set. - */ - @java.lang.Override - public boolean hasOpticalDetails() { - return opticalDetails_ != null; - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - * @return The opticalDetails. - */ - @java.lang.Override - public context.ContextOuterClass.OpticalLinkDetails getOpticalDetails() { - return opticalDetails_ == null ? context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance() : opticalDetails_; - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - @java.lang.Override - public context.ContextOuterClass.OpticalLinkDetailsOrBuilder getOpticalDetailsOrBuilder() { - return opticalDetails_ == null ? context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance() : opticalDetails_; - } - - public static final int LINK_ID_FIELD_NUMBER = 3; - - private context.ContextOuterClass.LinkId linkId_; - - /** - * .context.LinkId link_id = 3; - * @return Whether the linkId field is set. - */ - @java.lang.Override - public boolean hasLinkId() { - return linkId_ != null; - } - - /** - * .context.LinkId link_id = 3; - * @return The linkId. - */ - @java.lang.Override - public context.ContextOuterClass.LinkId getLinkId() { - return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_; - } - - /** - * .context.LinkId link_id = 3; - */ - @java.lang.Override - public context.ContextOuterClass.LinkIdOrBuilder getLinkIdOrBuilder() { - return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_; + return context.ContextOuterClass.internal_static_context_OpticalBandList_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalBandList.class, context.ContextOuterClass.OpticalBandList.Builder.class); } - public static final int LINK_ENDPOINT_IDS_FIELD_NUMBER = 4; + public static final int OPTICALBANDS_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private java.util.List linkEndpointIds_; + private java.util.List opticalbands_; /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ @java.lang.Override - public java.util.List getLinkEndpointIdsList() { - return linkEndpointIds_; + public java.util.List getOpticalbandsList() { + return opticalbands_; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ @java.lang.Override - public java.util.List getLinkEndpointIdsOrBuilderList() { - return linkEndpointIds_; + public java.util.List getOpticalbandsOrBuilderList() { + return opticalbands_; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ @java.lang.Override - public int getLinkEndpointIdsCount() { - return linkEndpointIds_.size(); + public int getOpticalbandsCount() { + return opticalbands_.size(); } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ @java.lang.Override - public context.ContextOuterClass.EndPointId getLinkEndpointIds(int index) { - return linkEndpointIds_.get(index); + public context.ContextOuterClass.OpticalBand getOpticalbands(int index) { + return opticalbands_.get(index); } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ @java.lang.Override - public context.ContextOuterClass.EndPointIdOrBuilder getLinkEndpointIdsOrBuilder(int index) { - return linkEndpointIds_.get(index); + public context.ContextOuterClass.OpticalBandOrBuilder getOpticalbandsOrBuilder(int index) { + return opticalbands_.get(index); } private byte memoizedIsInitialized = -1; @@ -81216,17 +86258,8 @@ public final class ContextOuterClass { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (opticalDetails_ != null) { - output.writeMessage(2, getOpticalDetails()); - } - if (linkId_ != null) { - output.writeMessage(3, getLinkId()); - } - for (int i = 0; i < linkEndpointIds_.size(); i++) { - output.writeMessage(4, linkEndpointIds_.get(i)); + for (int i = 0; i < opticalbands_.size(); i++) { + output.writeMessage(1, opticalbands_.get(i)); } getUnknownFields().writeTo(output); } @@ -81237,17 +86270,8 @@ public final class ContextOuterClass { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (opticalDetails_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOpticalDetails()); - } - if (linkId_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLinkId()); - } - for (int i = 0; i < linkEndpointIds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, linkEndpointIds_.get(i)); + for (int i = 0; i < opticalbands_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, opticalbands_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -81259,25 +86283,11 @@ public final class ContextOuterClass { if (obj == this) { return true; } - if (!(obj instanceof context.ContextOuterClass.OpticalLink)) { + if (!(obj instanceof context.ContextOuterClass.OpticalBandList)) { return super.equals(obj); } - context.ContextOuterClass.OpticalLink other = (context.ContextOuterClass.OpticalLink) obj; - if (!getName().equals(other.getName())) - return false; - if (hasOpticalDetails() != other.hasOpticalDetails()) - return false; - if (hasOpticalDetails()) { - if (!getOpticalDetails().equals(other.getOpticalDetails())) - return false; - } - if (hasLinkId() != other.hasLinkId()) - return false; - if (hasLinkId()) { - if (!getLinkId().equals(other.getLinkId())) - return false; - } - if (!getLinkEndpointIdsList().equals(other.getLinkEndpointIdsList())) + context.ContextOuterClass.OpticalBandList other = (context.ContextOuterClass.OpticalBandList) obj; + if (!getOpticalbandsList().equals(other.getOpticalbandsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -81291,70 +86301,60 @@ public final class ContextOuterClass { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasOpticalDetails()) { - hash = (37 * hash) + OPTICAL_DETAILS_FIELD_NUMBER; - hash = (53 * hash) + getOpticalDetails().hashCode(); - } - if (hasLinkId()) { - hash = (37 * hash) + LINK_ID_FIELD_NUMBER; - hash = (53 * hash) + getLinkId().hashCode(); - } - if (getLinkEndpointIdsCount() > 0) { - hash = (37 * hash) + LINK_ENDPOINT_IDS_FIELD_NUMBER; - hash = (53 * hash) + getLinkEndpointIdsList().hashCode(); + if (getOpticalbandsCount() > 0) { + hash = (37 * hash) + OPTICALBANDS_FIELD_NUMBER; + hash = (53 * hash) + getOpticalbandsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static context.ContextOuterClass.OpticalLink parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.OpticalBandList parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.OpticalLink parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.OpticalBandList parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.OpticalLink parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.OpticalBandList parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.OpticalLink parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.OpticalBandList 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.OpticalLink parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.OpticalBandList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static context.ContextOuterClass.OpticalLink parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public static context.ContextOuterClass.OpticalBandList parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static context.ContextOuterClass.OpticalLink parseFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.OpticalBandList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.OpticalLink parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.OpticalBandList 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.OpticalLink parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + public static context.ContextOuterClass.OpticalBandList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static context.ContextOuterClass.OpticalLink parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.OpticalBandList 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.OpticalLink parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static context.ContextOuterClass.OpticalBandList parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static context.ContextOuterClass.OpticalLink parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + public static context.ContextOuterClass.OpticalBandList parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry); } @@ -81367,7 +86367,7 @@ public final class ContextOuterClass { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(context.ContextOuterClass.OpticalLink prototype) { + public static Builder newBuilder(context.ContextOuterClass.OpticalBandList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -81383,21 +86383,21 @@ public final class ContextOuterClass { } /** - * Protobuf type {@code context.OpticalLink} + * Protobuf type {@code context.OpticalBandList} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.OpticalLink) - context.ContextOuterClass.OpticalLinkOrBuilder { + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:context.OpticalBandList) + context.ContextOuterClass.OpticalBandListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return context.ContextOuterClass.internal_static_context_OpticalLink_descriptor; + return context.ContextOuterClass.internal_static_context_OpticalBandList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return context.ContextOuterClass.internal_static_context_OpticalLink_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalLink.class, context.ContextOuterClass.OpticalLink.Builder.class); + return context.ContextOuterClass.internal_static_context_OpticalBandList_fieldAccessorTable.ensureFieldAccessorsInitialized(context.ContextOuterClass.OpticalBandList.class, context.ContextOuterClass.OpticalBandList.Builder.class); } - // Construct using context.ContextOuterClass.OpticalLink.newBuilder() + // Construct using context.ContextOuterClass.OpticalBandList.newBuilder() private Builder() { } @@ -81409,40 +86409,29 @@ public final class ContextOuterClass { public Builder clear() { super.clear(); bitField0_ = 0; - name_ = ""; - opticalDetails_ = null; - if (opticalDetailsBuilder_ != null) { - opticalDetailsBuilder_.dispose(); - opticalDetailsBuilder_ = null; - } - linkId_ = null; - if (linkIdBuilder_ != null) { - linkIdBuilder_.dispose(); - linkIdBuilder_ = null; - } - if (linkEndpointIdsBuilder_ == null) { - linkEndpointIds_ = java.util.Collections.emptyList(); + if (opticalbandsBuilder_ == null) { + opticalbands_ = java.util.Collections.emptyList(); } else { - linkEndpointIds_ = null; - linkEndpointIdsBuilder_.clear(); + opticalbands_ = null; + opticalbandsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return context.ContextOuterClass.internal_static_context_OpticalLink_descriptor; + return context.ContextOuterClass.internal_static_context_OpticalBandList_descriptor; } @java.lang.Override - public context.ContextOuterClass.OpticalLink getDefaultInstanceForType() { - return context.ContextOuterClass.OpticalLink.getDefaultInstance(); + public context.ContextOuterClass.OpticalBandList getDefaultInstanceForType() { + return context.ContextOuterClass.OpticalBandList.getDefaultInstance(); } @java.lang.Override - public context.ContextOuterClass.OpticalLink build() { - context.ContextOuterClass.OpticalLink result = buildPartial(); + public context.ContextOuterClass.OpticalBandList build() { + context.ContextOuterClass.OpticalBandList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -81450,8 +86439,8 @@ public final class ContextOuterClass { } @java.lang.Override - public context.ContextOuterClass.OpticalLink buildPartial() { - context.ContextOuterClass.OpticalLink result = new context.ContextOuterClass.OpticalLink(this); + public context.ContextOuterClass.OpticalBandList buildPartial() { + context.ContextOuterClass.OpticalBandList result = new context.ContextOuterClass.OpticalBandList(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); @@ -81460,76 +86449,56 @@ public final class ContextOuterClass { return result; } - private void buildPartialRepeatedFields(context.ContextOuterClass.OpticalLink result) { - if (linkEndpointIdsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - linkEndpointIds_ = java.util.Collections.unmodifiableList(linkEndpointIds_); - bitField0_ = (bitField0_ & ~0x00000008); + private void buildPartialRepeatedFields(context.ContextOuterClass.OpticalBandList result) { + if (opticalbandsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + opticalbands_ = java.util.Collections.unmodifiableList(opticalbands_); + bitField0_ = (bitField0_ & ~0x00000001); } - result.linkEndpointIds_ = linkEndpointIds_; + result.opticalbands_ = opticalbands_; } else { - result.linkEndpointIds_ = linkEndpointIdsBuilder_.build(); + result.opticalbands_ = opticalbandsBuilder_.build(); } } - private void buildPartial0(context.ContextOuterClass.OpticalLink result) { + private void buildPartial0(context.ContextOuterClass.OpticalBandList result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.opticalDetails_ = opticalDetailsBuilder_ == null ? opticalDetails_ : opticalDetailsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.linkId_ = linkIdBuilder_ == null ? linkId_ : linkIdBuilder_.build(); - } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof context.ContextOuterClass.OpticalLink) { - return mergeFrom((context.ContextOuterClass.OpticalLink) other); + if (other instanceof context.ContextOuterClass.OpticalBandList) { + return mergeFrom((context.ContextOuterClass.OpticalBandList) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(context.ContextOuterClass.OpticalLink other) { - if (other == context.ContextOuterClass.OpticalLink.getDefaultInstance()) + public Builder mergeFrom(context.ContextOuterClass.OpticalBandList other) { + if (other == context.ContextOuterClass.OpticalBandList.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasOpticalDetails()) { - mergeOpticalDetails(other.getOpticalDetails()); - } - if (other.hasLinkId()) { - mergeLinkId(other.getLinkId()); - } - if (linkEndpointIdsBuilder_ == null) { - if (!other.linkEndpointIds_.isEmpty()) { - if (linkEndpointIds_.isEmpty()) { - linkEndpointIds_ = other.linkEndpointIds_; - bitField0_ = (bitField0_ & ~0x00000008); + if (opticalbandsBuilder_ == null) { + if (!other.opticalbands_.isEmpty()) { + if (opticalbands_.isEmpty()) { + opticalbands_ = other.opticalbands_; + bitField0_ = (bitField0_ & ~0x00000001); } else { - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.addAll(other.linkEndpointIds_); + ensureOpticalbandsIsMutable(); + opticalbands_.addAll(other.opticalbands_); } onChanged(); } } else { - if (!other.linkEndpointIds_.isEmpty()) { - if (linkEndpointIdsBuilder_.isEmpty()) { - linkEndpointIdsBuilder_.dispose(); - linkEndpointIdsBuilder_ = null; - linkEndpointIds_ = other.linkEndpointIds_; - bitField0_ = (bitField0_ & ~0x00000008); - linkEndpointIdsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLinkEndpointIdsFieldBuilder() : null; + if (!other.opticalbands_.isEmpty()) { + if (opticalbandsBuilder_.isEmpty()) { + opticalbandsBuilder_.dispose(); + opticalbandsBuilder_ = null; + opticalbands_ = other.opticalbands_; + bitField0_ = (bitField0_ & ~0x00000001); + opticalbandsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOpticalbandsFieldBuilder() : null; } else { - linkEndpointIdsBuilder_.addAllMessages(other.linkEndpointIds_); + opticalbandsBuilder_.addAllMessages(other.opticalbands_); } } } @@ -81558,37 +86527,16 @@ public final class ContextOuterClass { break; case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } - // case 10 - case 18: - { - input.readMessage(getOpticalDetailsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } - // case 18 - case 26: - { - input.readMessage(getLinkIdFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } - // case 26 - case 34: - { - context.ContextOuterClass.EndPointId m = input.readMessage(context.ContextOuterClass.EndPointId.parser(), extensionRegistry); - if (linkEndpointIdsBuilder_ == null) { - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.add(m); + context.ContextOuterClass.OpticalBand m = input.readMessage(context.ContextOuterClass.OpticalBand.parser(), extensionRegistry); + if (opticalbandsBuilder_ == null) { + ensureOpticalbandsIsMutable(); + opticalbands_.add(m); } else { - linkEndpointIdsBuilder_.addMessage(m); + opticalbandsBuilder_.addMessage(m); } break; } - // case 34 + // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -81612,552 +86560,241 @@ public final class ContextOuterClass { private int bitField0_; - private java.lang.Object name_ = ""; - - /** - * string name = 1; - * @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 = 1; - * @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 = 1; - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * string name = 1; - * @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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private context.ContextOuterClass.OpticalLinkDetails opticalDetails_; - - private com.google.protobuf.SingleFieldBuilderV3 opticalDetailsBuilder_; - - /** - * .context.OpticalLinkDetails optical_details = 2; - * @return Whether the opticalDetails field is set. - */ - public boolean hasOpticalDetails() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - * @return The opticalDetails. - */ - public context.ContextOuterClass.OpticalLinkDetails getOpticalDetails() { - if (opticalDetailsBuilder_ == null) { - return opticalDetails_ == null ? context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance() : opticalDetails_; - } else { - return opticalDetailsBuilder_.getMessage(); - } - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - public Builder setOpticalDetails(context.ContextOuterClass.OpticalLinkDetails value) { - if (opticalDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - opticalDetails_ = value; - } else { - opticalDetailsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - public Builder setOpticalDetails(context.ContextOuterClass.OpticalLinkDetails.Builder builderForValue) { - if (opticalDetailsBuilder_ == null) { - opticalDetails_ = builderForValue.build(); - } else { - opticalDetailsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - public Builder mergeOpticalDetails(context.ContextOuterClass.OpticalLinkDetails value) { - if (opticalDetailsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && opticalDetails_ != null && opticalDetails_ != context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance()) { - getOpticalDetailsBuilder().mergeFrom(value); - } else { - opticalDetails_ = value; - } - } else { - opticalDetailsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - public Builder clearOpticalDetails() { - bitField0_ = (bitField0_ & ~0x00000002); - opticalDetails_ = null; - if (opticalDetailsBuilder_ != null) { - opticalDetailsBuilder_.dispose(); - opticalDetailsBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - public context.ContextOuterClass.OpticalLinkDetails.Builder getOpticalDetailsBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getOpticalDetailsFieldBuilder().getBuilder(); - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - public context.ContextOuterClass.OpticalLinkDetailsOrBuilder getOpticalDetailsOrBuilder() { - if (opticalDetailsBuilder_ != null) { - return opticalDetailsBuilder_.getMessageOrBuilder(); - } else { - return opticalDetails_ == null ? context.ContextOuterClass.OpticalLinkDetails.getDefaultInstance() : opticalDetails_; - } - } - - /** - * .context.OpticalLinkDetails optical_details = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3 getOpticalDetailsFieldBuilder() { - if (opticalDetailsBuilder_ == null) { - opticalDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getOpticalDetails(), getParentForChildren(), isClean()); - opticalDetails_ = null; - } - return opticalDetailsBuilder_; - } - - private context.ContextOuterClass.LinkId linkId_; - - private com.google.protobuf.SingleFieldBuilderV3 linkIdBuilder_; - - /** - * .context.LinkId link_id = 3; - * @return Whether the linkId field is set. - */ - public boolean hasLinkId() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * .context.LinkId link_id = 3; - * @return The linkId. - */ - public context.ContextOuterClass.LinkId getLinkId() { - if (linkIdBuilder_ == null) { - return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_; - } else { - return linkIdBuilder_.getMessage(); - } - } - - /** - * .context.LinkId link_id = 3; - */ - public Builder setLinkId(context.ContextOuterClass.LinkId value) { - if (linkIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - linkId_ = value; - } else { - linkIdBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } + private java.util.List opticalbands_ = java.util.Collections.emptyList(); - /** - * .context.LinkId link_id = 3; - */ - public Builder setLinkId(context.ContextOuterClass.LinkId.Builder builderForValue) { - if (linkIdBuilder_ == null) { - linkId_ = builderForValue.build(); - } else { - linkIdBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * .context.LinkId link_id = 3; - */ - public Builder mergeLinkId(context.ContextOuterClass.LinkId value) { - if (linkIdBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && linkId_ != null && linkId_ != context.ContextOuterClass.LinkId.getDefaultInstance()) { - getLinkIdBuilder().mergeFrom(value); - } else { - linkId_ = value; - } - } else { - linkIdBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * .context.LinkId link_id = 3; - */ - public Builder clearLinkId() { - bitField0_ = (bitField0_ & ~0x00000004); - linkId_ = null; - if (linkIdBuilder_ != null) { - linkIdBuilder_.dispose(); - linkIdBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * .context.LinkId link_id = 3; - */ - public context.ContextOuterClass.LinkId.Builder getLinkIdBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getLinkIdFieldBuilder().getBuilder(); - } - - /** - * .context.LinkId link_id = 3; - */ - public context.ContextOuterClass.LinkIdOrBuilder getLinkIdOrBuilder() { - if (linkIdBuilder_ != null) { - return linkIdBuilder_.getMessageOrBuilder(); - } else { - return linkId_ == null ? context.ContextOuterClass.LinkId.getDefaultInstance() : linkId_; - } - } - - /** - * .context.LinkId link_id = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3 getLinkIdFieldBuilder() { - if (linkIdBuilder_ == null) { - linkIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3(getLinkId(), getParentForChildren(), isClean()); - linkId_ = null; - } - return linkIdBuilder_; - } - - private java.util.List linkEndpointIds_ = java.util.Collections.emptyList(); - - private void ensureLinkEndpointIdsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - linkEndpointIds_ = new java.util.ArrayList(linkEndpointIds_); - bitField0_ |= 0x00000008; + private void ensureOpticalbandsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + opticalbands_ = new java.util.ArrayList(opticalbands_); + bitField0_ |= 0x00000001; } } - private com.google.protobuf.RepeatedFieldBuilderV3 linkEndpointIdsBuilder_; + private com.google.protobuf.RepeatedFieldBuilderV3 opticalbandsBuilder_; /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public java.util.List getLinkEndpointIdsList() { - if (linkEndpointIdsBuilder_ == null) { - return java.util.Collections.unmodifiableList(linkEndpointIds_); + public java.util.List getOpticalbandsList() { + if (opticalbandsBuilder_ == null) { + return java.util.Collections.unmodifiableList(opticalbands_); } else { - return linkEndpointIdsBuilder_.getMessageList(); + return opticalbandsBuilder_.getMessageList(); } } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public int getLinkEndpointIdsCount() { - if (linkEndpointIdsBuilder_ == null) { - return linkEndpointIds_.size(); + public int getOpticalbandsCount() { + if (opticalbandsBuilder_ == null) { + return opticalbands_.size(); } else { - return linkEndpointIdsBuilder_.getCount(); + return opticalbandsBuilder_.getCount(); } } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public context.ContextOuterClass.EndPointId getLinkEndpointIds(int index) { - if (linkEndpointIdsBuilder_ == null) { - return linkEndpointIds_.get(index); + public context.ContextOuterClass.OpticalBand getOpticalbands(int index) { + if (opticalbandsBuilder_ == null) { + return opticalbands_.get(index); } else { - return linkEndpointIdsBuilder_.getMessage(index); + return opticalbandsBuilder_.getMessage(index); } } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder setLinkEndpointIds(int index, context.ContextOuterClass.EndPointId value) { - if (linkEndpointIdsBuilder_ == null) { + public Builder setOpticalbands(int index, context.ContextOuterClass.OpticalBand value) { + if (opticalbandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.set(index, value); + ensureOpticalbandsIsMutable(); + opticalbands_.set(index, value); onChanged(); } else { - linkEndpointIdsBuilder_.setMessage(index, value); + opticalbandsBuilder_.setMessage(index, value); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder setLinkEndpointIds(int index, context.ContextOuterClass.EndPointId.Builder builderForValue) { - if (linkEndpointIdsBuilder_ == null) { - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.set(index, builderForValue.build()); + public Builder setOpticalbands(int index, context.ContextOuterClass.OpticalBand.Builder builderForValue) { + if (opticalbandsBuilder_ == null) { + ensureOpticalbandsIsMutable(); + opticalbands_.set(index, builderForValue.build()); onChanged(); } else { - linkEndpointIdsBuilder_.setMessage(index, builderForValue.build()); + opticalbandsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder addLinkEndpointIds(context.ContextOuterClass.EndPointId value) { - if (linkEndpointIdsBuilder_ == null) { + public Builder addOpticalbands(context.ContextOuterClass.OpticalBand value) { + if (opticalbandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.add(value); + ensureOpticalbandsIsMutable(); + opticalbands_.add(value); onChanged(); } else { - linkEndpointIdsBuilder_.addMessage(value); + opticalbandsBuilder_.addMessage(value); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder addLinkEndpointIds(int index, context.ContextOuterClass.EndPointId value) { - if (linkEndpointIdsBuilder_ == null) { + public Builder addOpticalbands(int index, context.ContextOuterClass.OpticalBand value) { + if (opticalbandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.add(index, value); + ensureOpticalbandsIsMutable(); + opticalbands_.add(index, value); onChanged(); } else { - linkEndpointIdsBuilder_.addMessage(index, value); + opticalbandsBuilder_.addMessage(index, value); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder addLinkEndpointIds(context.ContextOuterClass.EndPointId.Builder builderForValue) { - if (linkEndpointIdsBuilder_ == null) { - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.add(builderForValue.build()); + public Builder addOpticalbands(context.ContextOuterClass.OpticalBand.Builder builderForValue) { + if (opticalbandsBuilder_ == null) { + ensureOpticalbandsIsMutable(); + opticalbands_.add(builderForValue.build()); onChanged(); } else { - linkEndpointIdsBuilder_.addMessage(builderForValue.build()); + opticalbandsBuilder_.addMessage(builderForValue.build()); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder addLinkEndpointIds(int index, context.ContextOuterClass.EndPointId.Builder builderForValue) { - if (linkEndpointIdsBuilder_ == null) { - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.add(index, builderForValue.build()); + public Builder addOpticalbands(int index, context.ContextOuterClass.OpticalBand.Builder builderForValue) { + if (opticalbandsBuilder_ == null) { + ensureOpticalbandsIsMutable(); + opticalbands_.add(index, builderForValue.build()); onChanged(); } else { - linkEndpointIdsBuilder_.addMessage(index, builderForValue.build()); + opticalbandsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder addAllLinkEndpointIds(java.lang.Iterable values) { - if (linkEndpointIdsBuilder_ == null) { - ensureLinkEndpointIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, linkEndpointIds_); + public Builder addAllOpticalbands(java.lang.Iterable values) { + if (opticalbandsBuilder_ == null) { + ensureOpticalbandsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, opticalbands_); onChanged(); } else { - linkEndpointIdsBuilder_.addAllMessages(values); + opticalbandsBuilder_.addAllMessages(values); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder clearLinkEndpointIds() { - if (linkEndpointIdsBuilder_ == null) { - linkEndpointIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearOpticalbands() { + if (opticalbandsBuilder_ == null) { + opticalbands_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { - linkEndpointIdsBuilder_.clear(); + opticalbandsBuilder_.clear(); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public Builder removeLinkEndpointIds(int index) { - if (linkEndpointIdsBuilder_ == null) { - ensureLinkEndpointIdsIsMutable(); - linkEndpointIds_.remove(index); + public Builder removeOpticalbands(int index) { + if (opticalbandsBuilder_ == null) { + ensureOpticalbandsIsMutable(); + opticalbands_.remove(index); onChanged(); } else { - linkEndpointIdsBuilder_.remove(index); + opticalbandsBuilder_.remove(index); } return this; } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public context.ContextOuterClass.EndPointId.Builder getLinkEndpointIdsBuilder(int index) { - return getLinkEndpointIdsFieldBuilder().getBuilder(index); + public context.ContextOuterClass.OpticalBand.Builder getOpticalbandsBuilder(int index) { + return getOpticalbandsFieldBuilder().getBuilder(index); } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public context.ContextOuterClass.EndPointIdOrBuilder getLinkEndpointIdsOrBuilder(int index) { - if (linkEndpointIdsBuilder_ == null) { - return linkEndpointIds_.get(index); + public context.ContextOuterClass.OpticalBandOrBuilder getOpticalbandsOrBuilder(int index) { + if (opticalbandsBuilder_ == null) { + return opticalbands_.get(index); } else { - return linkEndpointIdsBuilder_.getMessageOrBuilder(index); + return opticalbandsBuilder_.getMessageOrBuilder(index); } } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public java.util.List getLinkEndpointIdsOrBuilderList() { - if (linkEndpointIdsBuilder_ != null) { - return linkEndpointIdsBuilder_.getMessageOrBuilderList(); + public java.util.List getOpticalbandsOrBuilderList() { + if (opticalbandsBuilder_ != null) { + return opticalbandsBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(linkEndpointIds_); + return java.util.Collections.unmodifiableList(opticalbands_); } } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public context.ContextOuterClass.EndPointId.Builder addLinkEndpointIdsBuilder() { - return getLinkEndpointIdsFieldBuilder().addBuilder(context.ContextOuterClass.EndPointId.getDefaultInstance()); + public context.ContextOuterClass.OpticalBand.Builder addOpticalbandsBuilder() { + return getOpticalbandsFieldBuilder().addBuilder(context.ContextOuterClass.OpticalBand.getDefaultInstance()); } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public context.ContextOuterClass.EndPointId.Builder addLinkEndpointIdsBuilder(int index) { - return getLinkEndpointIdsFieldBuilder().addBuilder(index, context.ContextOuterClass.EndPointId.getDefaultInstance()); + public context.ContextOuterClass.OpticalBand.Builder addOpticalbandsBuilder(int index) { + return getOpticalbandsFieldBuilder().addBuilder(index, context.ContextOuterClass.OpticalBand.getDefaultInstance()); } /** - * repeated .context.EndPointId link_endpoint_ids = 4; + * repeated .context.OpticalBand opticalbands = 1; */ - public java.util.List getLinkEndpointIdsBuilderList() { - return getLinkEndpointIdsFieldBuilder().getBuilderList(); + public java.util.List getOpticalbandsBuilderList() { + return getOpticalbandsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3 getLinkEndpointIdsFieldBuilder() { - if (linkEndpointIdsBuilder_ == null) { - linkEndpointIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(linkEndpointIds_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - linkEndpointIds_ = null; + private com.google.protobuf.RepeatedFieldBuilderV3 getOpticalbandsFieldBuilder() { + if (opticalbandsBuilder_ == null) { + opticalbandsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3(opticalbands_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + opticalbands_ = null; } - return linkEndpointIdsBuilder_; + return opticalbandsBuilder_; } @java.lang.Override @@ -82169,24 +86806,24 @@ public final class ContextOuterClass { public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:context.OpticalLink) + // @@protoc_insertion_point(builder_scope:context.OpticalBandList) } - // @@protoc_insertion_point(class_scope:context.OpticalLink) - private static final context.ContextOuterClass.OpticalLink DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:context.OpticalBandList) + private static final context.ContextOuterClass.OpticalBandList DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new context.ContextOuterClass.OpticalLink(); + DEFAULT_INSTANCE = new context.ContextOuterClass.OpticalBandList(); } - public static context.ContextOuterClass.OpticalLink getDefaultInstance() { + public static context.ContextOuterClass.OpticalBandList getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public OpticalLink parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + public OpticalBandList parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); @@ -82201,17 +86838,17 @@ public final class ContextOuterClass { } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public context.ContextOuterClass.OpticalLink getDefaultInstanceForType() { + public context.ContextOuterClass.OpticalBandList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -83218,6 +87855,10 @@ public final class ContextOuterClass { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ConfigRule_ACL_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_ConfigRule_IP_LINK_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ConfigRule_IP_LINK_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_ConfigRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ConfigRule_fieldAccessorTable; @@ -83330,6 +87971,22 @@ public final class ContextOuterClass { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_OpticalLink_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_ChannelId_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ChannelId_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_OpticalBandId_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_OpticalBandId_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_OpticalBand_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_OpticalBand_fieldAccessorTable; + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_OpticalBandList_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_OpticalBandList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor internal_static_context_ServiceConfigRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_context_ServiceConfigRule_fieldAccessorTable; @@ -83341,8 +87998,8 @@ public final class ContextOuterClass { private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { - java.lang.String[] descriptorData = { "\n\rcontext.proto\022\007context\032\031google/protobu" + "f/any.proto\032\tacl.proto\032\026kpi_sample_types" + ".proto\"\007\n\005Empty\"\024\n\004Uuid\022\014\n\004uuid\030\001 \001(\t\"\036\n" + "\tTimestamp\022\021\n\ttimestamp\030\001 \001(\001\"Z\n\005Event\022%" + "\n\ttimestamp\030\001 \001(\0132\022.context.Timestamp\022*\n" + "\nevent_type\030\002 \001(\0162\026.context.EventTypeEnu" + "m\"\265\002\n\010AnyEvent\022(\n\007context\030\001 \001(\0132\025.contex" + "t.ContextEventH\000\022*\n\010topology\030\002 \001(\0132\026.con" + "text.TopologyEventH\000\022&\n\006device\030\003 \001(\0132\024.c" + "ontext.DeviceEventH\000\022\"\n\004link\030\004 \001(\0132\022.con" + "text.LinkEventH\000\022(\n\007service\030\005 \001(\0132\025.cont" + "ext.ServiceEventH\000\022$\n\005slice\030\006 \001(\0132\023.cont" + "ext.SliceEventH\000\022.\n\nconnection\030\007 \001(\0132\030.c" + "ontext.ConnectionEventH\000B\007\n\005event\"0\n\tCon" + "textId\022#\n\014context_uuid\030\001 \001(\0132\r.context.U" + "uid\"\351\001\n\007Context\022&\n\ncontext_id\030\001 \001(\0132\022.co" + "ntext.ContextId\022\014\n\004name\030\002 \001(\t\022)\n\014topolog" + "y_ids\030\003 \003(\0132\023.context.TopologyId\022\'\n\013serv" + "ice_ids\030\004 \003(\0132\022.context.ServiceId\022#\n\tsli" + "ce_ids\030\005 \003(\0132\020.context.SliceId\022/\n\ncontro" + "ller\030\006 \001(\0132\033.context.TeraFlowController\"" + "8\n\rContextIdList\022\'\n\013context_ids\030\001 \003(\0132\022." + "context.ContextId\"1\n\013ContextList\022\"\n\010cont" + "exts\030\001 \003(\0132\020.context.Context\"U\n\014ContextE" + "vent\022\035\n\005event\030\001 \001(\0132\016.context.Event\022&\n\nc" + "ontext_id\030\002 \001(\0132\022.context.ContextId\"Z\n\nT" + "opologyId\022&\n\ncontext_id\030\001 \001(\0132\022.context." + "ContextId\022$\n\rtopology_uuid\030\002 \001(\0132\r.conte" + "xt.Uuid\"\267\001\n\010Topology\022(\n\013topology_id\030\001 \001(" + "\0132\023.context.TopologyId\022\014\n\004name\030\002 \001(\t\022%\n\n" + "device_ids\030\003 \003(\0132\021.context.DeviceId\022!\n\010l" + "ink_ids\030\004 \003(\0132\017.context.LinkId\022)\n\020optica" + "l_link_ids\030\005 \003(\0132\017.context.LinkId\"\266\001\n\017To" + "pologyDetails\022(\n\013topology_id\030\001 \001(\0132\023.con" + "text.TopologyId\022\014\n\004name\030\002 \001(\t\022 \n\007devices" + "\030\003 \003(\0132\017.context.Device\022\034\n\005links\030\004 \003(\0132\r" + ".context.Link\022+\n\roptical_links\030\005 \003(\0132\024.c" + "ontext.OpticalLink\";\n\016TopologyIdList\022)\n\014" + "topology_ids\030\001 \003(\0132\023.context.TopologyId\"" + "5\n\014TopologyList\022%\n\ntopologies\030\001 \003(\0132\021.co" + "ntext.Topology\"X\n\rTopologyEvent\022\035\n\005event" + "\030\001 \001(\0132\016.context.Event\022(\n\013topology_id\030\002 " + "\001(\0132\023.context.TopologyId\".\n\010DeviceId\022\"\n\013" + "device_uuid\030\001 \001(\0132\r.context.Uuid\"\372\002\n\006Dev" + "ice\022$\n\tdevice_id\030\001 \001(\0132\021.context.DeviceI" + "d\022\014\n\004name\030\002 \001(\t\022\023\n\013device_type\030\003 \001(\t\022,\n\r" + "device_config\030\004 \001(\0132\025.context.DeviceConf" + "ig\022G\n\031device_operational_status\030\005 \001(\0162$." + "context.DeviceOperationalStatusEnum\0221\n\016d" + "evice_drivers\030\006 \003(\0162\031.context.DeviceDriv" + "erEnum\022+\n\020device_endpoints\030\007 \003(\0132\021.conte" + "xt.EndPoint\022&\n\ncomponents\030\010 \003(\0132\022.contex" + "t.Component\022(\n\rcontroller_id\030\t \001(\0132\021.con" + "text.DeviceId\"\311\001\n\tComponent\022%\n\016component" + "_uuid\030\001 \001(\0132\r.context.Uuid\022\014\n\004name\030\002 \001(\t" + "\022\014\n\004type\030\003 \001(\t\0226\n\nattributes\030\004 \003(\0132\".con" + "text.Component.AttributesEntry\022\016\n\006parent" + "\030\005 \001(\t\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r" + "\n\005value\030\002 \001(\t:\0028\001\"9\n\014DeviceConfig\022)\n\014con" + "fig_rules\030\001 \003(\0132\023.context.ConfigRule\"5\n\014" + "DeviceIdList\022%\n\ndevice_ids\030\001 \003(\0132\021.conte" + "xt.DeviceId\".\n\nDeviceList\022 \n\007devices\030\001 \003" + "(\0132\017.context.Device\"\216\001\n\014DeviceFilter\022)\n\n" + "device_ids\030\001 \001(\0132\025.context.DeviceIdList\022" + "\031\n\021include_endpoints\030\002 \001(\010\022\034\n\024include_co" + "nfig_rules\030\003 \001(\010\022\032\n\022include_components\030\004" + " \001(\010\"\200\001\n\013DeviceEvent\022\035\n\005event\030\001 \001(\0132\016.co" + "ntext.Event\022$\n\tdevice_id\030\002 \001(\0132\021.context" + ".DeviceId\022,\n\rdevice_config\030\003 \001(\0132\025.conte" + "xt.DeviceConfig\"*\n\006LinkId\022 \n\tlink_uuid\030\001" + " \001(\0132\r.context.Uuid\"c\n\016LinkAttributes\022\030\n" + "\020is_bidirectional\030\001 \001(\010\022\033\n\023total_capacit" + "y_gbps\030\002 \001(\002\022\032\n\022used_capacity_gbps\030\003 \001(\002" + "\"\275\001\n\004Link\022 \n\007link_id\030\001 \001(\0132\017.context.Lin" + "kId\022\014\n\004name\030\002 \001(\t\022(\n\tlink_type\030\003 \001(\0162\025.c" + "ontext.LinkTypeEnum\022.\n\021link_endpoint_ids" + "\030\004 \003(\0132\023.context.EndPointId\022+\n\nattribute" + "s\030\005 \001(\0132\027.context.LinkAttributes\"/\n\nLink" + "IdList\022!\n\010link_ids\030\001 \003(\0132\017.context.LinkI" + "d\"(\n\010LinkList\022\034\n\005links\030\001 \003(\0132\r.context.L" + "ink\"L\n\tLinkEvent\022\035\n\005event\030\001 \001(\0132\016.contex" + "t.Event\022 \n\007link_id\030\002 \001(\0132\017.context.LinkI" + "d\"X\n\tServiceId\022&\n\ncontext_id\030\001 \001(\0132\022.con" + "text.ContextId\022#\n\014service_uuid\030\002 \001(\0132\r.c" + "ontext.Uuid\"\333\002\n\007Service\022&\n\nservice_id\030\001 " + "\001(\0132\022.context.ServiceId\022\014\n\004name\030\002 \001(\t\022.\n" + "\014service_type\030\003 \001(\0162\030.context.ServiceTyp" + "eEnum\0221\n\024service_endpoint_ids\030\004 \003(\0132\023.co" + "ntext.EndPointId\0220\n\023service_constraints\030" + "\005 \003(\0132\023.context.Constraint\022.\n\016service_st" + "atus\030\006 \001(\0132\026.context.ServiceStatus\022.\n\016se" + "rvice_config\030\007 \001(\0132\026.context.ServiceConf" + "ig\022%\n\ttimestamp\030\010 \001(\0132\022.context.Timestam" + "p\"C\n\rServiceStatus\0222\n\016service_status\030\001 \001" + "(\0162\032.context.ServiceStatusEnum\":\n\rServic" + "eConfig\022)\n\014config_rules\030\001 \003(\0132\023.context." + "ConfigRule\"8\n\rServiceIdList\022\'\n\013service_i" + "ds\030\001 \003(\0132\022.context.ServiceId\"1\n\013ServiceL" + "ist\022\"\n\010services\030\001 \003(\0132\020.context.Service\"" + "\225\001\n\rServiceFilter\022+\n\013service_ids\030\001 \001(\0132\026" + ".context.ServiceIdList\022\034\n\024include_endpoi" + "nt_ids\030\002 \001(\010\022\033\n\023include_constraints\030\003 \001(" + "\010\022\034\n\024include_config_rules\030\004 \001(\010\"U\n\014Servi" + "ceEvent\022\035\n\005event\030\001 \001(\0132\016.context.Event\022&" + "\n\nservice_id\030\002 \001(\0132\022.context.ServiceId\"T" + "\n\007SliceId\022&\n\ncontext_id\030\001 \001(\0132\022.context." + "ContextId\022!\n\nslice_uuid\030\002 \001(\0132\r.context." + "Uuid\"\240\003\n\005Slice\022\"\n\010slice_id\030\001 \001(\0132\020.conte" + "xt.SliceId\022\014\n\004name\030\002 \001(\t\022/\n\022slice_endpoi" + "nt_ids\030\003 \003(\0132\023.context.EndPointId\022.\n\021sli" + "ce_constraints\030\004 \003(\0132\023.context.Constrain" + "t\022-\n\021slice_service_ids\030\005 \003(\0132\022.context.S" + "erviceId\022,\n\022slice_subslice_ids\030\006 \003(\0132\020.c" + "ontext.SliceId\022*\n\014slice_status\030\007 \001(\0132\024.c" + "ontext.SliceStatus\022*\n\014slice_config\030\010 \001(\013" + "2\024.context.SliceConfig\022(\n\013slice_owner\030\t " + "\001(\0132\023.context.SliceOwner\022%\n\ttimestamp\030\n " + "\001(\0132\022.context.Timestamp\"E\n\nSliceOwner\022!\n" + "\nowner_uuid\030\001 \001(\0132\r.context.Uuid\022\024\n\014owne" + "r_string\030\002 \001(\t\"=\n\013SliceStatus\022.\n\014slice_s" + "tatus\030\001 \001(\0162\030.context.SliceStatusEnum\"8\n" + "\013SliceConfig\022)\n\014config_rules\030\001 \003(\0132\023.con" + "text.ConfigRule\"2\n\013SliceIdList\022#\n\tslice_" + "ids\030\001 \003(\0132\020.context.SliceId\"+\n\tSliceList" + "\022\036\n\006slices\030\001 \003(\0132\016.context.Slice\"\312\001\n\013Sli" + "ceFilter\022\'\n\tslice_ids\030\001 \001(\0132\024.context.Sl" + "iceIdList\022\034\n\024include_endpoint_ids\030\002 \001(\010\022" + "\033\n\023include_constraints\030\003 \001(\010\022\033\n\023include_" + "service_ids\030\004 \001(\010\022\034\n\024include_subslice_id" + "s\030\005 \001(\010\022\034\n\024include_config_rules\030\006 \001(\010\"O\n" + "\nSliceEvent\022\035\n\005event\030\001 \001(\0132\016.context.Eve" + "nt\022\"\n\010slice_id\030\002 \001(\0132\020.context.SliceId\"6" + "\n\014ConnectionId\022&\n\017connection_uuid\030\001 \001(\0132" + "\r.context.Uuid\"2\n\025ConnectionSettings_L0\022" + "\031\n\021lsp_symbolic_name\030\001 \001(\t\"\236\001\n\025Connectio" + "nSettings_L2\022\027\n\017src_mac_address\030\001 \001(\t\022\027\n" + "\017dst_mac_address\030\002 \001(\t\022\022\n\nether_type\030\003 \001" + "(\r\022\017\n\007vlan_id\030\004 \001(\r\022\022\n\nmpls_label\030\005 \001(\r\022" + "\032\n\022mpls_traffic_class\030\006 \001(\r\"t\n\025Connectio" + "nSettings_L3\022\026\n\016src_ip_address\030\001 \001(\t\022\026\n\016" + "dst_ip_address\030\002 \001(\t\022\014\n\004dscp\030\003 \001(\r\022\020\n\010pr" + "otocol\030\004 \001(\r\022\013\n\003ttl\030\005 \001(\r\"[\n\025ConnectionS" + "ettings_L4\022\020\n\010src_port\030\001 \001(\r\022\020\n\010dst_port" + "\030\002 \001(\r\022\021\n\ttcp_flags\030\003 \001(\r\022\013\n\003ttl\030\004 \001(\r\"\304" + "\001\n\022ConnectionSettings\022*\n\002l0\030\001 \001(\0132\036.cont" + "ext.ConnectionSettings_L0\022*\n\002l2\030\002 \001(\0132\036." + "context.ConnectionSettings_L2\022*\n\002l3\030\003 \001(" + "\0132\036.context.ConnectionSettings_L3\022*\n\002l4\030" + "\004 \001(\0132\036.context.ConnectionSettings_L4\"\363\001" + "\n\nConnection\022,\n\rconnection_id\030\001 \001(\0132\025.co" + "ntext.ConnectionId\022&\n\nservice_id\030\002 \001(\0132\022" + ".context.ServiceId\0223\n\026path_hops_endpoint" + "_ids\030\003 \003(\0132\023.context.EndPointId\022+\n\017sub_s" + "ervice_ids\030\004 \003(\0132\022.context.ServiceId\022-\n\010" + "settings\030\005 \001(\0132\033.context.ConnectionSetti" + "ngs\"A\n\020ConnectionIdList\022-\n\016connection_id" + "s\030\001 \003(\0132\025.context.ConnectionId\":\n\016Connec" + "tionList\022(\n\013connections\030\001 \003(\0132\023.context." + "Connection\"^\n\017ConnectionEvent\022\035\n\005event\030\001" + " \001(\0132\016.context.Event\022,\n\rconnection_id\030\002 " + "\001(\0132\025.context.ConnectionId\"\202\001\n\nEndPointI" + "d\022(\n\013topology_id\030\001 \001(\0132\023.context.Topolog" + "yId\022$\n\tdevice_id\030\002 \001(\0132\021.context.DeviceI" + "d\022$\n\rendpoint_uuid\030\003 \001(\0132\r.context.Uuid\"" + "\310\002\n\010EndPoint\022(\n\013endpoint_id\030\001 \001(\0132\023.cont" + "ext.EndPointId\022\014\n\004name\030\002 \001(\t\022\025\n\rendpoint" + "_type\030\003 \001(\t\0229\n\020kpi_sample_types\030\004 \003(\0162\037." + "kpi_sample_types.KpiSampleType\022,\n\021endpoi" + "nt_location\030\005 \001(\0132\021.context.Location\0229\n\014" + "capabilities\030\006 \003(\0132#.context.EndPoint.Ca" + "pabilitiesEntry\032I\n\021CapabilitiesEntry\022\013\n\003" + "key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.google.protob" + "uf.Any:\0028\001\"{\n\014EndPointName\022(\n\013endpoint_i" + "d\030\001 \001(\0132\023.context.EndPointId\022\023\n\013device_n" + "ame\030\002 \001(\t\022\025\n\rendpoint_name\030\003 \001(\t\022\025\n\rendp" + "oint_type\030\004 \001(\t\";\n\016EndPointIdList\022)\n\014end" + "point_ids\030\001 \003(\0132\023.context.EndPointId\"A\n\020" + "EndPointNameList\022-\n\016endpoint_names\030\001 \003(\013" + "2\025.context.EndPointName\"A\n\021ConfigRule_Cu" + "stom\022\024\n\014resource_key\030\001 \001(\t\022\026\n\016resource_v" + "alue\030\002 \001(\t\"]\n\016ConfigRule_ACL\022(\n\013endpoint" + "_id\030\001 \001(\0132\023.context.EndPointId\022!\n\010rule_s" + "et\030\002 \001(\0132\017.acl.AclRuleSet\"\234\001\n\nConfigRule" + "\022)\n\006action\030\001 \001(\0162\031.context.ConfigActionE" + "num\022,\n\006custom\030\002 \001(\0132\032.context.ConfigRule" + "_CustomH\000\022&\n\003acl\030\003 \001(\0132\027.context.ConfigR" + "ule_ACLH\000B\r\n\013config_rule\"F\n\021Constraint_C" + "ustom\022\027\n\017constraint_type\030\001 \001(\t\022\030\n\020constr" + "aint_value\030\002 \001(\t\"E\n\023Constraint_Schedule\022" + "\027\n\017start_timestamp\030\001 \001(\001\022\025\n\rduration_day" + "s\030\002 \001(\002\"3\n\014GPS_Position\022\020\n\010latitude\030\001 \001(" + "\002\022\021\n\tlongitude\030\002 \001(\002\"\204\001\n\010Location\022\020\n\006reg" + "ion\030\001 \001(\tH\000\022-\n\014gps_position\030\002 \001(\0132\025.cont" + "ext.GPS_PositionH\000\022\023\n\tinterface\030\003 \001(\tH\000\022" + "\026\n\014circuit_pack\030\004 \001(\tH\000B\n\n\010location\"l\n\033C" + "onstraint_EndPointLocation\022(\n\013endpoint_i" + "d\030\001 \001(\0132\023.context.EndPointId\022#\n\010location" + "\030\002 \001(\0132\021.context.Location\"Y\n\033Constraint_" + "EndPointPriority\022(\n\013endpoint_id\030\001 \001(\0132\023." + "context.EndPointId\022\020\n\010priority\030\002 \001(\r\"0\n\026" + "Constraint_SLA_Latency\022\026\n\016e2e_latency_ms" + "\030\001 \001(\002\"0\n\027Constraint_SLA_Capacity\022\025\n\rcap" + "acity_gbps\030\001 \001(\002\"c\n\033Constraint_SLA_Avail" + "ability\022\032\n\022num_disjoint_paths\030\001 \001(\r\022\022\n\na" + "ll_active\030\002 \001(\010\022\024\n\014availability\030\003 \001(\002\"V\n" + "\036Constraint_SLA_Isolation_level\0224\n\017isola" + "tion_level\030\001 \003(\0162\033.context.IsolationLeve" + "lEnum\"\242\001\n\025Constraint_Exclusions\022\024\n\014is_pe" + "rmanent\030\001 \001(\010\022%\n\ndevice_ids\030\002 \003(\0132\021.cont" + "ext.DeviceId\022)\n\014endpoint_ids\030\003 \003(\0132\023.con" + "text.EndPointId\022!\n\010link_ids\030\004 \003(\0132\017.cont" + "ext.LinkId\"5\n\014QoSProfileId\022%\n\016qos_profil" + "e_id\030\001 \001(\0132\r.context.Uuid\"`\n\025Constraint_" + "QoSProfile\022-\n\016qos_profile_id\030\001 \001(\0132\025.con" + "text.QoSProfileId\022\030\n\020qos_profile_name\030\002 " + "\001(\t\"\222\005\n\nConstraint\022-\n\006action\030\001 \001(\0162\035.con" + "text.ConstraintActionEnum\022,\n\006custom\030\002 \001(" + "\0132\032.context.Constraint_CustomH\000\0220\n\010sched" + "ule\030\003 \001(\0132\034.context.Constraint_ScheduleH" + "\000\022A\n\021endpoint_location\030\004 \001(\0132$.context.C" + "onstraint_EndPointLocationH\000\022A\n\021endpoint" + "_priority\030\005 \001(\0132$.context.Constraint_End" + "PointPriorityH\000\0228\n\014sla_capacity\030\006 \001(\0132 ." + "context.Constraint_SLA_CapacityH\000\0226\n\013sla" + "_latency\030\007 \001(\0132\037.context.Constraint_SLA_" + "LatencyH\000\022@\n\020sla_availability\030\010 \001(\0132$.co" + "ntext.Constraint_SLA_AvailabilityH\000\022@\n\rs" + "la_isolation\030\t \001(\0132\'.context.Constraint_" + "SLA_Isolation_levelH\000\0224\n\nexclusions\030\n \001(" + "\0132\036.context.Constraint_ExclusionsH\000\0225\n\013q" + "os_profile\030\013 \001(\0132\036.context.Constraint_Qo" + "SProfileH\000B\014\n\nconstraint\"^\n\022TeraFlowCont" + "roller\022&\n\ncontext_id\030\001 \001(\0132\022.context.Con" + "textId\022\022\n\nip_address\030\002 \001(\t\022\014\n\004port\030\003 \001(\r" + "\"U\n\024AuthenticationResult\022&\n\ncontext_id\030\001" + " \001(\0132\022.context.ContextId\022\025\n\rauthenticate" + "d\030\002 \001(\010\"-\n\017OpticalConfigId\022\032\n\022opticalcon" + "fig_uuid\030\001 \001(\t\"y\n\rOpticalConfig\0222\n\020optic" + "alconfig_id\030\001 \001(\0132\030.context.OpticalConfi" + "gId\022\016\n\006config\030\002 \001(\t\022$\n\tdevice_id\030\003 \001(\0132\021" + ".context.DeviceId\"C\n\021OpticalConfigList\022." + "\n\016opticalconfigs\030\001 \003(\0132\026.context.Optical" + "Config\"g\n\022OpticalConfigEvent\022\035\n\005event\030\001 " + "\001(\0132\016.context.Event\0222\n\020opticalconfig_id\030" + "\002 \001(\0132\030.context.OpticalConfigId\"_\n\021Optic" + "alEndPointId\022$\n\tdevice_id\030\002 \001(\0132\021.contex" + "t.DeviceId\022$\n\rendpoint_uuid\030\003 \001(\0132\r.cont" + "ext.Uuid\">\n\017OpticalLinkList\022+\n\roptical_l" + "inks\030\001 \003(\0132\024.context.OpticalLink\"\304\003\n\022Opt" + "icalLinkDetails\022\016\n\006length\030\001 \001(\002\022\020\n\010src_p" + "ort\030\002 \001(\t\022\020\n\010dst_port\030\003 \001(\t\022\027\n\017local_pee" + "r_port\030\004 \001(\t\022\030\n\020remote_peer_port\030\005 \001(\t\022\014" + "\n\004used\030\006 \001(\010\0228\n\007c_slots\030\007 \003(\0132\'.context." + "OpticalLinkDetails.CSlotsEntry\0228\n\007l_slot" + "s\030\010 \003(\0132\'.context.OpticalLinkDetails.LSl" + "otsEntry\0228\n\007s_slots\030\t \003(\0132\'.context.Opti" + "calLinkDetails.SSlotsEntry\032-\n\013CSlotsEntr" + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001\032-\n\013LSl" + "otsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\0028\001" + "\032-\n\013SSlotsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + "\001(\005:\0028\001\"\243\001\n\013OpticalLink\022\014\n\004name\030\001 \001(\t\0224\n" + "\017optical_details\030\002 \001(\0132\033.context.Optical" + "LinkDetails\022 \n\007link_id\030\003 \001(\0132\017.context.L" + "inkId\022.\n\021link_endpoint_ids\030\004 \003(\0132\023.conte" + "xt.EndPointId\"r\n\021ServiceConfigRule\022&\n\nse" + "rvice_id\030\001 \001(\0132\022.context.ServiceId\0225\n\021co" + "nfigrule_custom\030\002 \001(\0132\032.context.ConfigRu" + "le_Custom*j\n\rEventTypeEnum\022\027\n\023EVENTTYPE_" + "UNDEFINED\020\000\022\024\n\020EVENTTYPE_CREATE\020\001\022\024\n\020EVE" + "NTTYPE_UPDATE\020\002\022\024\n\020EVENTTYPE_REMOVE\020\003*\277\004" + "\n\020DeviceDriverEnum\022\032\n\026DEVICEDRIVER_UNDEF" + "INED\020\000\022\033\n\027DEVICEDRIVER_OPENCONFIG\020\001\022\036\n\032D" + "EVICEDRIVER_TRANSPORT_API\020\002\022\023\n\017DEVICEDRI" + "VER_P4\020\003\022&\n\"DEVICEDRIVER_IETF_NETWORK_TO" + "POLOGY\020\004\022\033\n\027DEVICEDRIVER_ONF_TR_532\020\005\022\023\n" + "\017DEVICEDRIVER_XR\020\006\022\033\n\027DEVICEDRIVER_IETF_" + "L2VPN\020\007\022 \n\034DEVICEDRIVER_GNMI_OPENCONFIG\020" + "\010\022\034\n\030DEVICEDRIVER_OPTICAL_TFS\020\t\022\032\n\026DEVIC" + "EDRIVER_IETF_ACTN\020\n\022\023\n\017DEVICEDRIVER_OC\020\013" + "\022\024\n\020DEVICEDRIVER_QKD\020\014\022\033\n\027DEVICEDRIVER_I" + "ETF_L3VPN\020\r\022\033\n\027DEVICEDRIVER_IETF_SLICE\020\016" + "\022\024\n\020DEVICEDRIVER_NCE\020\017\022\031\n\025DEVICEDRIVER_S" + "MARTNIC\020\020\022\031\n\025DEVICEDRIVER_MORPHEUS\020\021\022\024\n\020" + "DEVICEDRIVER_RYU\020\022\022#\n\037DEVICEDRIVER_GNMI_" + "NOKIA_SRLINUX\020\023*\217\001\n\033DeviceOperationalSta" + "tusEnum\022%\n!DEVICEOPERATIONALSTATUS_UNDEF" + "INED\020\000\022$\n DEVICEOPERATIONALSTATUS_DISABL" + "ED\020\001\022#\n\037DEVICEOPERATIONALSTATUS_ENABLED\020" + "\002*\245\001\n\014LinkTypeEnum\022\024\n\020LINKTYPE_UNKNOWN\020\000" + "\022\023\n\017LINKTYPE_COPPER\020\001\022\022\n\016LINKTYPE_FIBER\020" + "\002\022\022\n\016LINKTYPE_RADIO\020\003\022\024\n\020LINKTYPE_VIRTUA" + "L\020\004\022\027\n\023LINKTYPE_MANAGEMENT\020\005\022\023\n\017LINKTYPE" + "_REMOTE\020\006*\245\002\n\017ServiceTypeEnum\022\027\n\023SERVICE" + "TYPE_UNKNOWN\020\000\022\024\n\020SERVICETYPE_L3NM\020\001\022\024\n\020" + "SERVICETYPE_L2NM\020\002\022)\n%SERVICETYPE_TAPI_C" + "ONNECTIVITY_SERVICE\020\003\022\022\n\016SERVICETYPE_TE\020" + "\004\022\023\n\017SERVICETYPE_E2E\020\005\022$\n SERVICETYPE_OP" + "TICAL_CONNECTIVITY\020\006\022\023\n\017SERVICETYPE_QKD\020" + "\007\022\024\n\020SERVICETYPE_L1NM\020\010\022\023\n\017SERVICETYPE_I" + "NT\020\t\022\023\n\017SERVICETYPE_ACL\020\n*\304\001\n\021ServiceSta" + "tusEnum\022\033\n\027SERVICESTATUS_UNDEFINED\020\000\022\031\n\025" + "SERVICESTATUS_PLANNED\020\001\022\030\n\024SERVICESTATUS" + "_ACTIVE\020\002\022\032\n\026SERVICESTATUS_UPDATING\020\003\022!\n" + "\035SERVICESTATUS_PENDING_REMOVAL\020\004\022\036\n\032SERV" + "ICESTATUS_SLA_VIOLATED\020\005*\251\001\n\017SliceStatus" + "Enum\022\031\n\025SLICESTATUS_UNDEFINED\020\000\022\027\n\023SLICE" + "STATUS_PLANNED\020\001\022\024\n\020SLICESTATUS_INIT\020\002\022\026" + "\n\022SLICESTATUS_ACTIVE\020\003\022\026\n\022SLICESTATUS_DE" + "INIT\020\004\022\034\n\030SLICESTATUS_SLA_VIOLATED\020\005*]\n\020" + "ConfigActionEnum\022\032\n\026CONFIGACTION_UNDEFIN" + "ED\020\000\022\024\n\020CONFIGACTION_SET\020\001\022\027\n\023CONFIGACTI" + "ON_DELETE\020\002*m\n\024ConstraintActionEnum\022\036\n\032C" + "ONSTRAINTACTION_UNDEFINED\020\000\022\030\n\024CONSTRAIN" + "TACTION_SET\020\001\022\033\n\027CONSTRAINTACTION_DELETE" + "\020\002*\203\002\n\022IsolationLevelEnum\022\020\n\014NO_ISOLATIO" + "N\020\000\022\026\n\022PHYSICAL_ISOLATION\020\001\022\025\n\021LOGICAL_I" + "SOLATION\020\002\022\025\n\021PROCESS_ISOLATION\020\003\022\035\n\031PHY" + "SICAL_MEMORY_ISOLATION\020\004\022\036\n\032PHYSICAL_NET" + "WORK_ISOLATION\020\005\022\036\n\032VIRTUAL_RESOURCE_ISO" + "LATION\020\006\022\037\n\033NETWORK_FUNCTIONS_ISOLATION\020" + "\007\022\025\n\021SERVICE_ISOLATION\020\0102\271\034\n\016ContextServ" + "ice\022:\n\016ListContextIds\022\016.context.Empty\032\026." + "context.ContextIdList\"\000\0226\n\014ListContexts\022" + "\016.context.Empty\032\024.context.ContextList\"\000\022" + "4\n\nGetContext\022\022.context.ContextId\032\020.cont" + "ext.Context\"\000\0224\n\nSetContext\022\020.context.Co" + "ntext\032\022.context.ContextId\"\000\0225\n\rRemoveCon" + "text\022\022.context.ContextId\032\016.context.Empty" + "\"\000\022=\n\020GetContextEvents\022\016.context.Empty\032\025" + ".context.ContextEvent\"\0000\001\022@\n\017ListTopolog" + "yIds\022\022.context.ContextId\032\027.context.Topol" + "ogyIdList\"\000\022=\n\016ListTopologies\022\022.context." + "ContextId\032\025.context.TopologyList\"\000\0227\n\013Ge" + "tTopology\022\023.context.TopologyId\032\021.context" + ".Topology\"\000\022E\n\022GetTopologyDetails\022\023.cont" + "ext.TopologyId\032\030.context.TopologyDetails" + "\"\000\0227\n\013SetTopology\022\021.context.Topology\032\023.c" + "ontext.TopologyId\"\000\0227\n\016RemoveTopology\022\023." + "context.TopologyId\032\016.context.Empty\"\000\022?\n\021" + "GetTopologyEvents\022\016.context.Empty\032\026.cont" + "ext.TopologyEvent\"\0000\001\0228\n\rListDeviceIds\022\016" + ".context.Empty\032\025.context.DeviceIdList\"\000\022" + "4\n\013ListDevices\022\016.context.Empty\032\023.context" + ".DeviceList\"\000\0221\n\tGetDevice\022\021.context.Dev" + "iceId\032\017.context.Device\"\000\0221\n\tSetDevice\022\017." + "context.Device\032\021.context.DeviceId\"\000\0223\n\014R" + "emoveDevice\022\021.context.DeviceId\032\016.context" + ".Empty\"\000\022;\n\017GetDeviceEvents\022\016.context.Em" + "pty\032\024.context.DeviceEvent\"\0000\001\022<\n\014SelectD" + "evice\022\025.context.DeviceFilter\032\023.context.D" + "eviceList\"\000\022I\n\021ListEndPointNames\022\027.conte" + "xt.EndPointIdList\032\031.context.EndPointName" + "List\"\000\0224\n\013ListLinkIds\022\016.context.Empty\032\023." + "context.LinkIdList\"\000\0220\n\tListLinks\022\016.cont" + "ext.Empty\032\021.context.LinkList\"\000\022+\n\007GetLin" + "k\022\017.context.LinkId\032\r.context.Link\"\000\022+\n\007S" + "etLink\022\r.context.Link\032\017.context.LinkId\"\000" + "\022/\n\nRemoveLink\022\017.context.LinkId\032\016.contex" + "t.Empty\"\000\0227\n\rGetLinkEvents\022\016.context.Emp" + "ty\032\022.context.LinkEvent\"\0000\001\022>\n\016ListServic" + "eIds\022\022.context.ContextId\032\026.context.Servi" + "ceIdList\"\000\022:\n\014ListServices\022\022.context.Con" + "textId\032\024.context.ServiceList\"\000\0224\n\nGetSer" + "vice\022\022.context.ServiceId\032\020.context.Servi" + "ce\"\000\0224\n\nSetService\022\020.context.Service\032\022.c" + "ontext.ServiceId\"\000\0226\n\014UnsetService\022\020.con" + "text.Service\032\022.context.ServiceId\"\000\0225\n\rRe" + "moveService\022\022.context.ServiceId\032\016.contex" + "t.Empty\"\000\022=\n\020GetServiceEvents\022\016.context." + "Empty\032\025.context.ServiceEvent\"\0000\001\022?\n\rSele" + "ctService\022\026.context.ServiceFilter\032\024.cont" + "ext.ServiceList\"\000\022:\n\014ListSliceIds\022\022.cont" + "ext.ContextId\032\024.context.SliceIdList\"\000\0226\n" + "\nListSlices\022\022.context.ContextId\032\022.contex" + "t.SliceList\"\000\022.\n\010GetSlice\022\020.context.Slic" + "eId\032\016.context.Slice\"\000\022.\n\010SetSlice\022\016.cont" + "ext.Slice\032\020.context.SliceId\"\000\0220\n\nUnsetSl" + "ice\022\016.context.Slice\032\020.context.SliceId\"\000\022" + "1\n\013RemoveSlice\022\020.context.SliceId\032\016.conte" + "xt.Empty\"\000\0229\n\016GetSliceEvents\022\016.context.E" + "mpty\032\023.context.SliceEvent\"\0000\001\0229\n\013SelectS" + "lice\022\024.context.SliceFilter\032\022.context.Sli" + "ceList\"\000\022D\n\021ListConnectionIds\022\022.context." + "ServiceId\032\031.context.ConnectionIdList\"\000\022@" + "\n\017ListConnections\022\022.context.ServiceId\032\027." + "context.ConnectionList\"\000\022=\n\rGetConnectio" + "n\022\025.context.ConnectionId\032\023.context.Conne" + "ction\"\000\022=\n\rSetConnection\022\023.context.Conne" + "ction\032\025.context.ConnectionId\"\000\022;\n\020Remove" + "Connection\022\025.context.ConnectionId\032\016.cont" + "ext.Empty\"\000\022C\n\023GetConnectionEvents\022\016.con" + "text.Empty\032\030.context.ConnectionEvent\"\0000\001" + "\0225\n\014GetAllEvents\022\016.context.Empty\032\021.conte" + "xt.AnyEvent\"\0000\001\022@\n\020GetOpticalConfig\022\016.co" + "ntext.Empty\032\032.context.OpticalConfigList\"" + "\000\022F\n\020SetOpticalConfig\022\026.context.OpticalC" + "onfig\032\030.context.OpticalConfigId\"\000\022I\n\023Upd" + "ateOpticalConfig\022\026.context.OpticalConfig" + "\032\030.context.OpticalConfigId\"\000\022I\n\023SelectOp" + "ticalConfig\022\030.context.OpticalConfigId\032\026.", "context.OpticalConfig\"\000\022A\n\023DeleteOptical" + "Config\022\030.context.OpticalConfigId\032\016.conte" + "xt.Empty\"\000\022@\n\024DeleteOpticalChannel\022\026.con" + "text.OpticalConfig\032\016.context.Empty\"\000\0228\n\016" + "SetOpticalLink\022\024.context.OpticalLink\032\016.c" + "ontext.Empty\"\000\0229\n\016GetOpticalLink\022\017.conte" + "xt.LinkId\032\024.context.OpticalLink\"\000\0226\n\021Del" + "eteOpticalLink\022\017.context.LinkId\032\016.contex" + "t.Empty\"\000\022@\n\022GetOpticalLinkList\022\016.contex" + "t.Empty\032\030.context.OpticalLinkList\"\000\022G\n\027D" + "eleteServiceConfigRule\022\032.context.Service" + "ConfigRule\032\016.context.Empty\"\000b\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), acl.Acl.getDescriptor(), kpi_sample_types.KpiSampleTypes.getDescriptor() }); + java.lang.String[] descriptorData = { "\n\rcontext.proto\022\007context\032\031google/protobu" + "f/any.proto\032\tacl.proto\032\rip_link.proto\032\026k" + "pi_sample_types.proto\"\007\n\005Empty\"\024\n\004Uuid\022\014" + "\n\004uuid\030\001 \001(\t\"\036\n\tTimestamp\022\021\n\ttimestamp\030\001" + " \001(\001\"Z\n\005Event\022%\n\ttimestamp\030\001 \001(\0132\022.conte" + "xt.Timestamp\022*\n\nevent_type\030\002 \001(\0162\026.conte" + "xt.EventTypeEnum\"\265\002\n\010AnyEvent\022(\n\007context" + "\030\001 \001(\0132\025.context.ContextEventH\000\022*\n\010topol" + "ogy\030\002 \001(\0132\026.context.TopologyEventH\000\022&\n\006d" + "evice\030\003 \001(\0132\024.context.DeviceEventH\000\022\"\n\004l" + "ink\030\004 \001(\0132\022.context.LinkEventH\000\022(\n\007servi" + "ce\030\005 \001(\0132\025.context.ServiceEventH\000\022$\n\005sli" + "ce\030\006 \001(\0132\023.context.SliceEventH\000\022.\n\nconne" + "ction\030\007 \001(\0132\030.context.ConnectionEventH\000B" + "\007\n\005event\"0\n\tContextId\022#\n\014context_uuid\030\001 " + "\001(\0132\r.context.Uuid\"\351\001\n\007Context\022&\n\ncontex" + "t_id\030\001 \001(\0132\022.context.ContextId\022\014\n\004name\030\002" + " \001(\t\022)\n\014topology_ids\030\003 \003(\0132\023.context.Top" + "ologyId\022\'\n\013service_ids\030\004 \003(\0132\022.context.S" + "erviceId\022#\n\tslice_ids\030\005 \003(\0132\020.context.Sl" + "iceId\022/\n\ncontroller\030\006 \001(\0132\033.context.Tera" + "FlowController\"8\n\rContextIdList\022\'\n\013conte" + "xt_ids\030\001 \003(\0132\022.context.ContextId\"1\n\013Cont" + "extList\022\"\n\010contexts\030\001 \003(\0132\020.context.Cont" + "ext\"U\n\014ContextEvent\022\035\n\005event\030\001 \001(\0132\016.con" + "text.Event\022&\n\ncontext_id\030\002 \001(\0132\022.context" + ".ContextId\"Z\n\nTopologyId\022&\n\ncontext_id\030\001" + " \001(\0132\022.context.ContextId\022$\n\rtopology_uui" + "d\030\002 \001(\0132\r.context.Uuid\"\267\001\n\010Topology\022(\n\013t" + "opology_id\030\001 \001(\0132\023.context.TopologyId\022\014\n" + "\004name\030\002 \001(\t\022%\n\ndevice_ids\030\003 \003(\0132\021.contex" + "t.DeviceId\022!\n\010link_ids\030\004 \003(\0132\017.context.L" + "inkId\022)\n\020optical_link_ids\030\005 \003(\0132\017.contex" + "t.LinkId\"\266\001\n\017TopologyDetails\022(\n\013topology" + "_id\030\001 \001(\0132\023.context.TopologyId\022\014\n\004name\030\002" + " \001(\t\022 \n\007devices\030\003 \003(\0132\017.context.Device\022\034" + "\n\005links\030\004 \003(\0132\r.context.Link\022+\n\roptical_" + "links\030\005 \003(\0132\024.context.OpticalLink\";\n\016Top" + "ologyIdList\022)\n\014topology_ids\030\001 \003(\0132\023.cont" + "ext.TopologyId\"5\n\014TopologyList\022%\n\ntopolo" + "gies\030\001 \003(\0132\021.context.Topology\"X\n\rTopolog" + "yEvent\022\035\n\005event\030\001 \001(\0132\016.context.Event\022(\n" + "\013topology_id\030\002 \001(\0132\023.context.TopologyId\"" + ".\n\010DeviceId\022\"\n\013device_uuid\030\001 \001(\0132\r.conte" + "xt.Uuid\"\372\002\n\006Device\022$\n\tdevice_id\030\001 \001(\0132\021." + "context.DeviceId\022\014\n\004name\030\002 \001(\t\022\023\n\013device" + "_type\030\003 \001(\t\022,\n\rdevice_config\030\004 \001(\0132\025.con" + "text.DeviceConfig\022G\n\031device_operational_" + "status\030\005 \001(\0162$.context.DeviceOperational" + "StatusEnum\0221\n\016device_drivers\030\006 \003(\0162\031.con" + "text.DeviceDriverEnum\022+\n\020device_endpoint" + "s\030\007 \003(\0132\021.context.EndPoint\022&\n\ncomponents" + "\030\010 \003(\0132\022.context.Component\022(\n\rcontroller" + "_id\030\t \001(\0132\021.context.DeviceId\"\311\001\n\tCompone" + "nt\022%\n\016component_uuid\030\001 \001(\0132\r.context.Uui" + "d\022\014\n\004name\030\002 \001(\t\022\014\n\004type\030\003 \001(\t\0226\n\nattribu" + "tes\030\004 \003(\0132\".context.Component.Attributes" + "Entry\022\016\n\006parent\030\005 \001(\t\0321\n\017AttributesEntry" + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"9\n\014Devi" + "ceConfig\022)\n\014config_rules\030\001 \003(\0132\023.context" + ".ConfigRule\"5\n\014DeviceIdList\022%\n\ndevice_id" + "s\030\001 \003(\0132\021.context.DeviceId\".\n\nDeviceList" + "\022 \n\007devices\030\001 \003(\0132\017.context.Device\"\216\001\n\014D" + "eviceFilter\022)\n\ndevice_ids\030\001 \001(\0132\025.contex" + "t.DeviceIdList\022\031\n\021include_endpoints\030\002 \001(" + "\010\022\034\n\024include_config_rules\030\003 \001(\010\022\032\n\022inclu" + "de_components\030\004 \001(\010\"\200\001\n\013DeviceEvent\022\035\n\005e" + "vent\030\001 \001(\0132\016.context.Event\022$\n\tdevice_id\030" + "\002 \001(\0132\021.context.DeviceId\022,\n\rdevice_confi" + "g\030\003 \001(\0132\025.context.DeviceConfig\"*\n\006LinkId" + "\022 \n\tlink_uuid\030\001 \001(\0132\r.context.Uuid\"c\n\016Li" + "nkAttributes\022\030\n\020is_bidirectional\030\001 \001(\010\022\033" + "\n\023total_capacity_gbps\030\002 \001(\002\022\032\n\022used_capa" + "city_gbps\030\003 \001(\002\"\275\001\n\004Link\022 \n\007link_id\030\001 \001(" + "\0132\017.context.LinkId\022\014\n\004name\030\002 \001(\t\022(\n\tlink" + "_type\030\003 \001(\0162\025.context.LinkTypeEnum\022.\n\021li" + "nk_endpoint_ids\030\004 \003(\0132\023.context.EndPoint" + "Id\022+\n\nattributes\030\005 \001(\0132\027.context.LinkAtt" + "ributes\"/\n\nLinkIdList\022!\n\010link_ids\030\001 \003(\0132" + "\017.context.LinkId\"(\n\010LinkList\022\034\n\005links\030\001 " + "\003(\0132\r.context.Link\"L\n\tLinkEvent\022\035\n\005event" + "\030\001 \001(\0132\016.context.Event\022 \n\007link_id\030\002 \001(\0132" + "\017.context.LinkId\"X\n\tServiceId\022&\n\ncontext" + "_id\030\001 \001(\0132\022.context.ContextId\022#\n\014service" + "_uuid\030\002 \001(\0132\r.context.Uuid\"\333\002\n\007Service\022&" + "\n\nservice_id\030\001 \001(\0132\022.context.ServiceId\022\014" + "\n\004name\030\002 \001(\t\022.\n\014service_type\030\003 \001(\0162\030.con" + "text.ServiceTypeEnum\0221\n\024service_endpoint" + "_ids\030\004 \003(\0132\023.context.EndPointId\0220\n\023servi" + "ce_constraints\030\005 \003(\0132\023.context.Constrain" + "t\022.\n\016service_status\030\006 \001(\0132\026.context.Serv" + "iceStatus\022.\n\016service_config\030\007 \001(\0132\026.cont" + "ext.ServiceConfig\022%\n\ttimestamp\030\010 \001(\0132\022.c" + "ontext.Timestamp\"C\n\rServiceStatus\0222\n\016ser" + "vice_status\030\001 \001(\0162\032.context.ServiceStatu" + "sEnum\":\n\rServiceConfig\022)\n\014config_rules\030\001" + " \003(\0132\023.context.ConfigRule\"8\n\rServiceIdLi" + "st\022\'\n\013service_ids\030\001 \003(\0132\022.context.Servic" + "eId\"1\n\013ServiceList\022\"\n\010services\030\001 \003(\0132\020.c" + "ontext.Service\"\225\001\n\rServiceFilter\022+\n\013serv" + "ice_ids\030\001 \001(\0132\026.context.ServiceIdList\022\034\n" + "\024include_endpoint_ids\030\002 \001(\010\022\033\n\023include_c" + "onstraints\030\003 \001(\010\022\034\n\024include_config_rules" + "\030\004 \001(\010\"U\n\014ServiceEvent\022\035\n\005event\030\001 \001(\0132\016." + "context.Event\022&\n\nservice_id\030\002 \001(\0132\022.cont" + "ext.ServiceId\"T\n\007SliceId\022&\n\ncontext_id\030\001" + " \001(\0132\022.context.ContextId\022!\n\nslice_uuid\030\002" + " \001(\0132\r.context.Uuid\"\240\003\n\005Slice\022\"\n\010slice_i" + "d\030\001 \001(\0132\020.context.SliceId\022\014\n\004name\030\002 \001(\t\022" + "/\n\022slice_endpoint_ids\030\003 \003(\0132\023.context.En" + "dPointId\022.\n\021slice_constraints\030\004 \003(\0132\023.co" + "ntext.Constraint\022-\n\021slice_service_ids\030\005 " + "\003(\0132\022.context.ServiceId\022,\n\022slice_subslic" + "e_ids\030\006 \003(\0132\020.context.SliceId\022*\n\014slice_s" + "tatus\030\007 \001(\0132\024.context.SliceStatus\022*\n\014sli" + "ce_config\030\010 \001(\0132\024.context.SliceConfig\022(\n" + "\013slice_owner\030\t \001(\0132\023.context.SliceOwner\022" + "%\n\ttimestamp\030\n \001(\0132\022.context.Timestamp\"E" + "\n\nSliceOwner\022!\n\nowner_uuid\030\001 \001(\0132\r.conte" + "xt.Uuid\022\024\n\014owner_string\030\002 \001(\t\"=\n\013SliceSt" + "atus\022.\n\014slice_status\030\001 \001(\0162\030.context.Sli" + "ceStatusEnum\"8\n\013SliceConfig\022)\n\014config_ru" + "les\030\001 \003(\0132\023.context.ConfigRule\"2\n\013SliceI" + "dList\022#\n\tslice_ids\030\001 \003(\0132\020.context.Slice" + "Id\"+\n\tSliceList\022\036\n\006slices\030\001 \003(\0132\016.contex" + "t.Slice\"\312\001\n\013SliceFilter\022\'\n\tslice_ids\030\001 \001" + "(\0132\024.context.SliceIdList\022\034\n\024include_endp" + "oint_ids\030\002 \001(\010\022\033\n\023include_constraints\030\003 " + "\001(\010\022\033\n\023include_service_ids\030\004 \001(\010\022\034\n\024incl" + "ude_subslice_ids\030\005 \001(\010\022\034\n\024include_config" + "_rules\030\006 \001(\010\"O\n\nSliceEvent\022\035\n\005event\030\001 \001(" + "\0132\016.context.Event\022\"\n\010slice_id\030\002 \001(\0132\020.co" + "ntext.SliceId\"6\n\014ConnectionId\022&\n\017connect" + "ion_uuid\030\001 \001(\0132\r.context.Uuid\"2\n\025Connect" + "ionSettings_L0\022\031\n\021lsp_symbolic_name\030\001 \001(" + "\t\"\236\001\n\025ConnectionSettings_L2\022\027\n\017src_mac_a" + "ddress\030\001 \001(\t\022\027\n\017dst_mac_address\030\002 \001(\t\022\022\n" + "\nether_type\030\003 \001(\r\022\017\n\007vlan_id\030\004 \001(\r\022\022\n\nmp" + "ls_label\030\005 \001(\r\022\032\n\022mpls_traffic_class\030\006 \001" + "(\r\"t\n\025ConnectionSettings_L3\022\026\n\016src_ip_ad" + "dress\030\001 \001(\t\022\026\n\016dst_ip_address\030\002 \001(\t\022\014\n\004d" + "scp\030\003 \001(\r\022\020\n\010protocol\030\004 \001(\r\022\013\n\003ttl\030\005 \001(\r" + "\"[\n\025ConnectionSettings_L4\022\020\n\010src_port\030\001 " + "\001(\r\022\020\n\010dst_port\030\002 \001(\r\022\021\n\ttcp_flags\030\003 \001(\r" + "\022\013\n\003ttl\030\004 \001(\r\"\304\001\n\022ConnectionSettings\022*\n\002" + "l0\030\001 \001(\0132\036.context.ConnectionSettings_L0" + "\022*\n\002l2\030\002 \001(\0132\036.context.ConnectionSetting" + "s_L2\022*\n\002l3\030\003 \001(\0132\036.context.ConnectionSet" + "tings_L3\022*\n\002l4\030\004 \001(\0132\036.context.Connectio" + "nSettings_L4\"\363\001\n\nConnection\022,\n\rconnectio" + "n_id\030\001 \001(\0132\025.context.ConnectionId\022&\n\nser" + "vice_id\030\002 \001(\0132\022.context.ServiceId\0223\n\026pat" + "h_hops_endpoint_ids\030\003 \003(\0132\023.context.EndP" + "ointId\022+\n\017sub_service_ids\030\004 \003(\0132\022.contex" + "t.ServiceId\022-\n\010settings\030\005 \001(\0132\033.context." + "ConnectionSettings\"A\n\020ConnectionIdList\022-" + "\n\016connection_ids\030\001 \003(\0132\025.context.Connect" + "ionId\":\n\016ConnectionList\022(\n\013connections\030\001" + " \003(\0132\023.context.Connection\"^\n\017ConnectionE" + "vent\022\035\n\005event\030\001 \001(\0132\016.context.Event\022,\n\rc" + "onnection_id\030\002 \001(\0132\025.context.ConnectionI" + "d\"\202\001\n\nEndPointId\022(\n\013topology_id\030\001 \001(\0132\023." + "context.TopologyId\022$\n\tdevice_id\030\002 \001(\0132\021." + "context.DeviceId\022$\n\rendpoint_uuid\030\003 \001(\0132" + "\r.context.Uuid\"\310\002\n\010EndPoint\022(\n\013endpoint_" + "id\030\001 \001(\0132\023.context.EndPointId\022\014\n\004name\030\002 " + "\001(\t\022\025\n\rendpoint_type\030\003 \001(\t\0229\n\020kpi_sample" + "_types\030\004 \003(\0162\037.kpi_sample_types.KpiSampl" + "eType\022,\n\021endpoint_location\030\005 \001(\0132\021.conte" + "xt.Location\0229\n\014capabilities\030\006 \003(\0132#.cont" + "ext.EndPoint.CapabilitiesEntry\032I\n\021Capabi" + "litiesEntry\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132" + "\024.google.protobuf.Any:\0028\001\"{\n\014EndPointNam" + "e\022(\n\013endpoint_id\030\001 \001(\0132\023.context.EndPoin" + "tId\022\023\n\013device_name\030\002 \001(\t\022\025\n\rendpoint_nam" + "e\030\003 \001(\t\022\025\n\rendpoint_type\030\004 \001(\t\";\n\016EndPoi" + "ntIdList\022)\n\014endpoint_ids\030\001 \003(\0132\023.context" + ".EndPointId\"A\n\020EndPointNameList\022-\n\016endpo" + "int_names\030\001 \003(\0132\025.context.EndPointName\"A" + "\n\021ConfigRule_Custom\022\024\n\014resource_key\030\001 \001(" + "\t\022\026\n\016resource_value\030\002 \001(\t\"]\n\016ConfigRule_" + "ACL\022(\n\013endpoint_id\030\001 \001(\0132\023.context.EndPo" + "intId\022!\n\010rule_set\030\002 \001(\0132\017.acl.AclRuleSet" + "\"h\n\022ConfigRule_IP_LINK\022(\n\013endpoint_id\030\001 " + "\001(\0132\023.context.EndPointId\022(\n\010rule_set\030\002 \001" + "(\0132\026.ip_link.IpLinkRuleSet\"\314\001\n\nConfigRul" + "e\022)\n\006action\030\001 \001(\0162\031.context.ConfigAction" + "Enum\022,\n\006custom\030\002 \001(\0132\032.context.ConfigRul" + "e_CustomH\000\022&\n\003acl\030\003 \001(\0132\027.context.Config" + "Rule_ACLH\000\022.\n\007ip_link\030\004 \001(\0132\033.context.Co" + "nfigRule_IP_LINKH\000B\r\n\013config_rule\"F\n\021Con" + "straint_Custom\022\027\n\017constraint_type\030\001 \001(\t\022" + "\030\n\020constraint_value\030\002 \001(\t\"E\n\023Constraint_" + "Schedule\022\027\n\017start_timestamp\030\001 \001(\001\022\025\n\rdur" + "ation_days\030\002 \001(\002\"3\n\014GPS_Position\022\020\n\010lati" + "tude\030\001 \001(\002\022\021\n\tlongitude\030\002 \001(\002\"\204\001\n\010Locati" + "on\022\020\n\006region\030\001 \001(\tH\000\022-\n\014gps_position\030\002 \001" + "(\0132\025.context.GPS_PositionH\000\022\023\n\tinterface" + "\030\003 \001(\tH\000\022\026\n\014circuit_pack\030\004 \001(\tH\000B\n\n\010loca" + "tion\"l\n\033Constraint_EndPointLocation\022(\n\013e" + "ndpoint_id\030\001 \001(\0132\023.context.EndPointId\022#\n" + "\010location\030\002 \001(\0132\021.context.Location\"Y\n\033Co" + "nstraint_EndPointPriority\022(\n\013endpoint_id" + "\030\001 \001(\0132\023.context.EndPointId\022\020\n\010priority\030" + "\002 \001(\r\"0\n\026Constraint_SLA_Latency\022\026\n\016e2e_l" + "atency_ms\030\001 \001(\002\"0\n\027Constraint_SLA_Capaci" + "ty\022\025\n\rcapacity_gbps\030\001 \001(\002\"c\n\033Constraint_" + "SLA_Availability\022\032\n\022num_disjoint_paths\030\001" + " \001(\r\022\022\n\nall_active\030\002 \001(\010\022\024\n\014availability" + "\030\003 \001(\002\"V\n\036Constraint_SLA_Isolation_level" + "\0224\n\017isolation_level\030\001 \003(\0162\033.context.Isol" + "ationLevelEnum\"\242\001\n\025Constraint_Exclusions" + "\022\024\n\014is_permanent\030\001 \001(\010\022%\n\ndevice_ids\030\002 \003" + "(\0132\021.context.DeviceId\022)\n\014endpoint_ids\030\003 " + "\003(\0132\023.context.EndPointId\022!\n\010link_ids\030\004 \003" + "(\0132\017.context.LinkId\"5\n\014QoSProfileId\022%\n\016q" + "os_profile_id\030\001 \001(\0132\r.context.Uuid\"`\n\025Co" + "nstraint_QoSProfile\022-\n\016qos_profile_id\030\001 " + "\001(\0132\025.context.QoSProfileId\022\030\n\020qos_profil" + "e_name\030\002 \001(\t\"\222\005\n\nConstraint\022-\n\006action\030\001 " + "\001(\0162\035.context.ConstraintActionEnum\022,\n\006cu" + "stom\030\002 \001(\0132\032.context.Constraint_CustomH\000" + "\0220\n\010schedule\030\003 \001(\0132\034.context.Constraint_" + "ScheduleH\000\022A\n\021endpoint_location\030\004 \001(\0132$." + "context.Constraint_EndPointLocationH\000\022A\n" + "\021endpoint_priority\030\005 \001(\0132$.context.Const" + "raint_EndPointPriorityH\000\0228\n\014sla_capacity" + "\030\006 \001(\0132 .context.Constraint_SLA_Capacity" + "H\000\0226\n\013sla_latency\030\007 \001(\0132\037.context.Constr" + "aint_SLA_LatencyH\000\022@\n\020sla_availability\030\010" + " \001(\0132$.context.Constraint_SLA_Availabili" + "tyH\000\022@\n\rsla_isolation\030\t \001(\0132\'.context.Co" + "nstraint_SLA_Isolation_levelH\000\0224\n\nexclus" + "ions\030\n \001(\0132\036.context.Constraint_Exclusio" + "nsH\000\0225\n\013qos_profile\030\013 \001(\0132\036.context.Cons" + "traint_QoSProfileH\000B\014\n\nconstraint\"^\n\022Ter" + "aFlowController\022&\n\ncontext_id\030\001 \001(\0132\022.co" + "ntext.ContextId\022\022\n\nip_address\030\002 \001(\t\022\014\n\004p" + "ort\030\003 \001(\r\"U\n\024AuthenticationResult\022&\n\ncon" + "text_id\030\001 \001(\0132\022.context.ContextId\022\025\n\raut" + "henticated\030\002 \001(\010\"-\n\017OpticalConfigId\022\032\n\022o" + "pticalconfig_uuid\030\001 \001(\t\"y\n\rOpticalConfig" + "\0222\n\020opticalconfig_id\030\001 \001(\0132\030.context.Opt" + "icalConfigId\022\016\n\006config\030\002 \001(\t\022$\n\tdevice_i" + "d\030\003 \001(\0132\021.context.DeviceId\"C\n\021OpticalCon" + "figList\022.\n\016opticalconfigs\030\001 \003(\0132\026.contex" + "t.OpticalConfig\"g\n\022OpticalConfigEvent\022\035\n" + "\005event\030\001 \001(\0132\016.context.Event\0222\n\020opticalc" + "onfig_id\030\002 \001(\0132\030.context.OpticalConfigId" + "\"_\n\021OpticalEndPointId\022$\n\tdevice_id\030\002 \001(\013" + "2\021.context.DeviceId\022$\n\rendpoint_uuid\030\003 \001" + "(\0132\r.context.Uuid\">\n\017OpticalLinkList\022+\n\r" + "optical_links\030\001 \003(\0132\024.context.OpticalLin" + "k\"\304\003\n\022OpticalLinkDetails\022\016\n\006length\030\001 \001(\002" + "\022\020\n\010src_port\030\002 \001(\t\022\020\n\010dst_port\030\003 \001(\t\022\027\n\017" + "local_peer_port\030\004 \001(\t\022\030\n\020remote_peer_por" + "t\030\005 \001(\t\022\014\n\004used\030\006 \001(\010\0228\n\007c_slots\030\007 \003(\0132\'" + ".context.OpticalLinkDetails.CSlotsEntry\022" + "8\n\007l_slots\030\010 \003(\0132\'.context.OpticalLinkDe" + "tails.LSlotsEntry\0228\n\007s_slots\030\t \003(\0132\'.con" + "text.OpticalLinkDetails.SSlotsEntry\032-\n\013C" + "SlotsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:\002" + "8\001\032-\n\013LSlotsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\005:\0028\001\032-\n\013SSlotsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\005:\0028\001\"\243\001\n\013OpticalLink\022\014\n\004name" + "\030\001 \001(\t\0224\n\017optical_details\030\002 \001(\0132\033.contex" + "t.OpticalLinkDetails\022 \n\007link_id\030\003 \001(\0132\017." + "context.LinkId\022.\n\021link_endpoint_ids\030\004 \003(" + "\0132\023.context.EndPointId\"0\n\tChannelId\022#\n\014c" + "hannel_uuid\030\001 \001(\0132\r.context.Uuid\"8\n\rOpti" + "calBandId\022\'\n\020opticalband_uuid\030\001 \001(\0132\r.co" + "ntext.Uuid\"\247\002\n\013OpticalBand\022.\n\016opticalban" + "d_id\030\001 \001(\0132\026.context.OpticalBandId\022,\n\rco" + "nnection_id\030\002 \001(\0132\025.context.ConnectionId" + "\022&\n\nchannel_id\030\003 \001(\0132\022.context.ChannelId" + "\022&\n\nservice_id\030\004 \001(\0132\022.context.ServiceId" + "\022#\n\007service\030\005 \001(\0132\020.context.ServiceH\000\022)\n" + "\nconnection\030\006 \001(\0132\023.context.ConnectionH\000" + "\022\021\n\007channel\030\007 \001(\tH\000B\007\n\005field\"=\n\017OpticalB" + "andList\022*\n\014opticalbands\030\001 \003(\0132\024.context." + "OpticalBand\"r\n\021ServiceConfigRule\022&\n\nserv" + "ice_id\030\001 \001(\0132\022.context.ServiceId\0225\n\021conf" + "igrule_custom\030\002 \001(\0132\032.context.ConfigRule" + "_Custom*j\n\rEventTypeEnum\022\027\n\023EVENTTYPE_UN" + "DEFINED\020\000\022\024\n\020EVENTTYPE_CREATE\020\001\022\024\n\020EVENT" + "TYPE_UPDATE\020\002\022\024\n\020EVENTTYPE_REMOVE\020\003*\333\004\n\020" + "DeviceDriverEnum\022\032\n\026DEVICEDRIVER_UNDEFIN" + "ED\020\000\022\033\n\027DEVICEDRIVER_OPENCONFIG\020\001\022\036\n\032DEV" + "ICEDRIVER_TRANSPORT_API\020\002\022\023\n\017DEVICEDRIVE" + "R_P4\020\003\022&\n\"DEVICEDRIVER_IETF_NETWORK_TOPO" + "LOGY\020\004\022\033\n\027DEVICEDRIVER_ONF_TR_532\020\005\022\023\n\017D" + "EVICEDRIVER_XR\020\006\022\033\n\027DEVICEDRIVER_IETF_L2" + "VPN\020\007\022 \n\034DEVICEDRIVER_GNMI_OPENCONFIG\020\010\022" + "\034\n\030DEVICEDRIVER_OPTICAL_TFS\020\t\022\032\n\026DEVICED" + "RIVER_IETF_ACTN\020\n\022\023\n\017DEVICEDRIVER_OC\020\013\022\024" + "\n\020DEVICEDRIVER_QKD\020\014\022\033\n\027DEVICEDRIVER_IET" + "F_L3VPN\020\r\022\033\n\027DEVICEDRIVER_IETF_SLICE\020\016\022\024" + "\n\020DEVICEDRIVER_NCE\020\017\022\031\n\025DEVICEDRIVER_SMA" + "RTNIC\020\020\022\031\n\025DEVICEDRIVER_MORPHEUS\020\021\022\024\n\020DE" + "VICEDRIVER_RYU\020\022\022#\n\037DEVICEDRIVER_GNMI_NO" + "KIA_SRLINUX\020\023\022\032\n\026DEVICEDRIVER_OPENROADM\020" + "\024*\217\001\n\033DeviceOperationalStatusEnum\022%\n!DEV" + "ICEOPERATIONALSTATUS_UNDEFINED\020\000\022$\n DEVI" + "CEOPERATIONALSTATUS_DISABLED\020\001\022#\n\037DEVICE" + "OPERATIONALSTATUS_ENABLED\020\002*\245\001\n\014LinkType" + "Enum\022\024\n\020LINKTYPE_UNKNOWN\020\000\022\023\n\017LINKTYPE_C" + "OPPER\020\001\022\022\n\016LINKTYPE_FIBER\020\002\022\022\n\016LINKTYPE_" + "RADIO\020\003\022\024\n\020LINKTYPE_VIRTUAL\020\004\022\027\n\023LINKTYP" + "E_MANAGEMENT\020\005\022\023\n\017LINKTYPE_REMOTE\020\006*\276\002\n\017" + "ServiceTypeEnum\022\027\n\023SERVICETYPE_UNKNOWN\020\000" + "\022\024\n\020SERVICETYPE_L3NM\020\001\022\024\n\020SERVICETYPE_L2" + "NM\020\002\022)\n%SERVICETYPE_TAPI_CONNECTIVITY_SE" + "RVICE\020\003\022\022\n\016SERVICETYPE_TE\020\004\022\023\n\017SERVICETY" + "PE_E2E\020\005\022$\n SERVICETYPE_OPTICAL_CONNECTI" + "VITY\020\006\022\023\n\017SERVICETYPE_QKD\020\007\022\024\n\020SERVICETY" + "PE_L1NM\020\010\022\023\n\017SERVICETYPE_INT\020\t\022\023\n\017SERVIC" + "ETYPE_ACL\020\n\022\027\n\023SERVICETYPE_IP_LINK\020\013*\304\001\n" + "\021ServiceStatusEnum\022\033\n\027SERVICESTATUS_UNDE" + "FINED\020\000\022\031\n\025SERVICESTATUS_PLANNED\020\001\022\030\n\024SE" + "RVICESTATUS_ACTIVE\020\002\022\032\n\026SERVICESTATUS_UP" + "DATING\020\003\022!\n\035SERVICESTATUS_PENDING_REMOVA" + "L\020\004\022\036\n\032SERVICESTATUS_SLA_VIOLATED\020\005*\251\001\n\017" + "SliceStatusEnum\022\031\n\025SLICESTATUS_UNDEFINED" + "\020\000\022\027\n\023SLICESTATUS_PLANNED\020\001\022\024\n\020SLICESTAT" + "US_INIT\020\002\022\026\n\022SLICESTATUS_ACTIVE\020\003\022\026\n\022SLI" + "CESTATUS_DEINIT\020\004\022\034\n\030SLICESTATUS_SLA_VIO" + "LATED\020\005*]\n\020ConfigActionEnum\022\032\n\026CONFIGACT" + "ION_UNDEFINED\020\000\022\024\n\020CONFIGACTION_SET\020\001\022\027\n" + "\023CONFIGACTION_DELETE\020\002*m\n\024ConstraintActi" + "onEnum\022\036\n\032CONSTRAINTACTION_UNDEFINED\020\000\022\030" + "\n\024CONSTRAINTACTION_SET\020\001\022\033\n\027CONSTRAINTAC" + "TION_DELETE\020\002*\203\002\n\022IsolationLevelEnum\022\020\n\014" + "NO_ISOLATION\020\000\022\026\n\022PHYSICAL_ISOLATION\020\001\022\025" + "\n\021LOGICAL_ISOLATION\020\002\022\025\n\021PROCESS_ISOLATI" + "ON\020\003\022\035\n\031PHYSICAL_MEMORY_ISOLATION\020\004\022\036\n\032P" + "HYSICAL_NETWORK_ISOLATION\020\005\022\036\n\032VIRTUAL_R" + "ESOURCE_ISOLATION\020\006\022\037\n\033NETWORK_FUNCTIONS" + "_ISOLATION\020\007\022\025\n\021SERVICE_ISOLATION\020\0102\274\035\n\016" + "ContextService\022:\n\016ListContextIds\022\016.conte" + "xt.Empty\032\026.context.ContextIdList\"\000\0226\n\014Li" + "stContexts\022\016.context.Empty\032\024.context.Con" + "textList\"\000\0224\n\nGetContext\022\022.context.Conte" + "xtId\032\020.context.Context\"\000\0224\n\nSetContext\022\020" + ".context.Context\032\022.context.ContextId\"\000\0225" + "\n\rRemoveContext\022\022.context.ContextId\032\016.co" + "ntext.Empty\"\000\022=\n\020GetContextEvents\022\016.cont" + "ext.Empty\032\025.context.ContextEvent\"\0000\001\022@\n\017" + "ListTopologyIds\022\022.context.ContextId\032\027.co" + "ntext.TopologyIdList\"\000\022=\n\016ListTopologies" + "\022\022.context.ContextId\032\025.context.TopologyL" + "ist\"\000\0227\n\013GetTopology\022\023.context.TopologyI" + "d\032\021.context.Topology\"\000\022E\n\022GetTopologyDet" + "ails\022\023.context.TopologyId\032\030.context.Topo" + "logyDetails\"\000\0227\n\013SetTopology\022\021.context.T" + "opology\032\023.context.TopologyId\"\000\0227\n\016Remove" + "Topology\022\023.context.TopologyId\032\016.context." + "Empty\"\000\022?\n\021GetTopologyEvents\022\016.context.E" + "mpty\032\026.context.TopologyEvent\"\0000\001\0228\n\rList" + "DeviceIds\022\016.context.Empty\032\025.context.Devi" + "ceIdList\"\000\0224\n\013ListDevices\022\016.context.Empt" + "y\032\023.context.DeviceList\"\000\0221\n\tGetDevice\022\021." + "context.DeviceId\032\017.context.Device\"\000\0221\n\tS" + "etDevice\022\017.context.Device\032\021.context.Devi" + "ceId\"\000\0223\n\014RemoveDevice\022\021.context.DeviceI" + "d\032\016.context.Empty\"\000\022;\n\017GetDeviceEvents\022\016" + ".context.Empty\032\024.context.DeviceEvent\"\0000\001" + "\022<\n\014SelectDevice\022\025.context.DeviceFilter\032" + "\023.context.DeviceList\"\000\022I\n\021ListEndPointNa" + "mes\022\027.context.EndPointIdList\032\031.context.E" + "ndPointNameList\"\000\0224\n\013ListLinkIds\022\016.conte" + "xt.Empty\032\023.context.LinkIdList\"\000\0220\n\tListL" + "inks\022\016.context.Empty\032\021.context.LinkList\"" + "\000\022+\n\007GetLink\022\017.context.LinkId\032\r.context." + "Link\"\000\022+\n\007SetLink\022\r.context.Link\032\017.conte" + "xt.LinkId\"\000\022/\n\nRemoveLink\022\017.context.Link" + "Id\032\016.context.Empty\"\000\0227\n\rGetLinkEvents\022\016." + "context.Empty\032\022.context.LinkEvent\"\0000\001\022>\n" + "\016ListServiceIds\022\022.context.ContextId\032\026.co" + "ntext.ServiceIdList\"\000\022:\n\014ListServices\022\022." + "context.ContextId\032\024.context.ServiceList\"" + "\000\0224\n\nGetService\022\022.context.ServiceId\032\020.co" + "ntext.Service\"\000\0224\n\nSetService\022\020.context." + "Service\032\022.context.ServiceId\"\000\0226\n\014UnsetSe" + "rvice\022\020.context.Service\032\022.context.Servic" + "eId\"\000\0225\n\rRemoveService\022\022.context.Service" + "Id\032\016.context.Empty\"\000\022=\n\020GetServiceEvents" + "\022\016.context.Empty\032\025.context.ServiceEvent\"" + "\0000\001\022?\n\rSelectService\022\026.context.ServiceFi" + "lter\032\024.context.ServiceList\"\000\022:\n\014ListSlic" + "eIds\022\022.context.ContextId\032\024.context.Slice" + "IdList\"\000\0226\n\nListSlices\022\022.context.Context" + "Id\032\022.context.SliceList\"\000\022.\n\010GetSlice\022\020.c" + "ontext.SliceId\032\016.context.Slice\"\000\022.\n\010SetS" + "lice\022\016.context.Slice\032\020.context.SliceId\"\000" + "\0220\n\nUnsetSlice\022\016.context.Slice\032\020.context" + ".SliceId\"\000\0221\n\013RemoveSlice\022\020.context.Slic" + "eId\032\016.context.Empty\"\000\0229\n\016GetSliceEvents\022" + "\016.context.Empty\032\023.context.SliceEvent\"\0000\001" + "\0229\n\013SelectSlice\022\024.context.SliceFilter\032\022." + "context.SliceList\"\000\022D\n\021ListConnectionIds", "\022\022.context.ServiceId\032\031.context.Connectio" + "nIdList\"\000\022@\n\017ListConnections\022\022.context.S" + "erviceId\032\027.context.ConnectionList\"\000\022=\n\rG" + "etConnection\022\025.context.ConnectionId\032\023.co" + "ntext.Connection\"\000\022=\n\rSetConnection\022\023.co" + "ntext.Connection\032\025.context.ConnectionId\"" + "\000\022;\n\020RemoveConnection\022\025.context.Connecti" + "onId\032\016.context.Empty\"\000\022C\n\023GetConnectionE" + "vents\022\016.context.Empty\032\030.context.Connecti" + "onEvent\"\0000\001\0225\n\014GetAllEvents\022\016.context.Em" + "pty\032\021.context.AnyEvent\"\0000\001\022@\n\020GetOptical" + "Config\022\016.context.Empty\032\032.context.Optical" + "ConfigList\"\000\022F\n\020SetOpticalConfig\022\026.conte" + "xt.OpticalConfig\032\030.context.OpticalConfig" + "Id\"\000\022I\n\023UpdateOpticalConfig\022\026.context.Op" + "ticalConfig\032\030.context.OpticalConfigId\"\000\022" + "I\n\023SelectOpticalConfig\022\030.context.Optical" + "ConfigId\032\026.context.OpticalConfig\"\000\022A\n\023De" + "leteOpticalConfig\022\030.context.OpticalConfi" + "gId\032\016.context.Empty\"\000\022@\n\024DeleteOpticalCh" + "annel\022\026.context.OpticalConfig\032\016.context." + "Empty\"\000\0228\n\016SetOpticalLink\022\024.context.Opti" + "calLink\032\016.context.Empty\"\000\0229\n\016GetOpticalL" + "ink\022\017.context.LinkId\032\024.context.OpticalLi" + "nk\"\000\0226\n\021DeleteOpticalLink\022\017.context.Link" + "Id\032\016.context.Empty\"\000\022@\n\022GetOpticalLinkLi" + "st\022\016.context.Empty\032\030.context.OpticalLink" + "List\"\000\022<\n\016GetOpticalBand\022\016.context.Empty" + "\032\030.context.OpticalBandList\"\000\022C\n\021SelectOp" + "ticalBand\022\026.context.OpticalBandId\032\024.cont" + "ext.OpticalBand\"\000\022G\n\027DeleteServiceConfig" + "Rule\022\032.context.ServiceConfigRule\032\016.conte" + "xt.Empty\"\000b\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), acl.Acl.getDescriptor(), ip_link.IpLink.getDescriptor(), kpi_sample_types.KpiSampleTypes.getDescriptor() }); internal_static_context_Empty_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_context_Empty_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Empty_descriptor, new java.lang.String[] {}); internal_static_context_Uuid_descriptor = getDescriptor().getMessageTypes().get(1); @@ -83475,53 +88132,55 @@ public final class ContextOuterClass { internal_static_context_ConfigRule_Custom_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_Custom_descriptor, new java.lang.String[] { "ResourceKey", "ResourceValue" }); internal_static_context_ConfigRule_ACL_descriptor = getDescriptor().getMessageTypes().get(63); internal_static_context_ConfigRule_ACL_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_ACL_descriptor, new java.lang.String[] { "EndpointId", "RuleSet" }); - internal_static_context_ConfigRule_descriptor = getDescriptor().getMessageTypes().get(64); - internal_static_context_ConfigRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_descriptor, new java.lang.String[] { "Action", "Custom", "Acl", "ConfigRule" }); - internal_static_context_Constraint_Custom_descriptor = getDescriptor().getMessageTypes().get(65); + internal_static_context_ConfigRule_IP_LINK_descriptor = getDescriptor().getMessageTypes().get(64); + internal_static_context_ConfigRule_IP_LINK_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_IP_LINK_descriptor, new java.lang.String[] { "EndpointId", "RuleSet" }); + internal_static_context_ConfigRule_descriptor = getDescriptor().getMessageTypes().get(65); + internal_static_context_ConfigRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ConfigRule_descriptor, new java.lang.String[] { "Action", "Custom", "Acl", "IpLink", "ConfigRule" }); + internal_static_context_Constraint_Custom_descriptor = getDescriptor().getMessageTypes().get(66); internal_static_context_Constraint_Custom_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_Custom_descriptor, new java.lang.String[] { "ConstraintType", "ConstraintValue" }); - internal_static_context_Constraint_Schedule_descriptor = getDescriptor().getMessageTypes().get(66); + internal_static_context_Constraint_Schedule_descriptor = getDescriptor().getMessageTypes().get(67); internal_static_context_Constraint_Schedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_Schedule_descriptor, new java.lang.String[] { "StartTimestamp", "DurationDays" }); - internal_static_context_GPS_Position_descriptor = getDescriptor().getMessageTypes().get(67); + internal_static_context_GPS_Position_descriptor = getDescriptor().getMessageTypes().get(68); internal_static_context_GPS_Position_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_GPS_Position_descriptor, new java.lang.String[] { "Latitude", "Longitude" }); - internal_static_context_Location_descriptor = getDescriptor().getMessageTypes().get(68); + internal_static_context_Location_descriptor = getDescriptor().getMessageTypes().get(69); internal_static_context_Location_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Location_descriptor, new java.lang.String[] { "Region", "GpsPosition", "Interface", "CircuitPack", "Location" }); - internal_static_context_Constraint_EndPointLocation_descriptor = getDescriptor().getMessageTypes().get(69); + internal_static_context_Constraint_EndPointLocation_descriptor = getDescriptor().getMessageTypes().get(70); internal_static_context_Constraint_EndPointLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_EndPointLocation_descriptor, new java.lang.String[] { "EndpointId", "Location" }); - internal_static_context_Constraint_EndPointPriority_descriptor = getDescriptor().getMessageTypes().get(70); + internal_static_context_Constraint_EndPointPriority_descriptor = getDescriptor().getMessageTypes().get(71); internal_static_context_Constraint_EndPointPriority_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_EndPointPriority_descriptor, new java.lang.String[] { "EndpointId", "Priority" }); - internal_static_context_Constraint_SLA_Latency_descriptor = getDescriptor().getMessageTypes().get(71); + internal_static_context_Constraint_SLA_Latency_descriptor = getDescriptor().getMessageTypes().get(72); internal_static_context_Constraint_SLA_Latency_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_SLA_Latency_descriptor, new java.lang.String[] { "E2ELatencyMs" }); - internal_static_context_Constraint_SLA_Capacity_descriptor = getDescriptor().getMessageTypes().get(72); + internal_static_context_Constraint_SLA_Capacity_descriptor = getDescriptor().getMessageTypes().get(73); internal_static_context_Constraint_SLA_Capacity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_SLA_Capacity_descriptor, new java.lang.String[] { "CapacityGbps" }); - internal_static_context_Constraint_SLA_Availability_descriptor = getDescriptor().getMessageTypes().get(73); + internal_static_context_Constraint_SLA_Availability_descriptor = getDescriptor().getMessageTypes().get(74); internal_static_context_Constraint_SLA_Availability_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_SLA_Availability_descriptor, new java.lang.String[] { "NumDisjointPaths", "AllActive", "Availability" }); - internal_static_context_Constraint_SLA_Isolation_level_descriptor = getDescriptor().getMessageTypes().get(74); + internal_static_context_Constraint_SLA_Isolation_level_descriptor = getDescriptor().getMessageTypes().get(75); internal_static_context_Constraint_SLA_Isolation_level_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_SLA_Isolation_level_descriptor, new java.lang.String[] { "IsolationLevel" }); - internal_static_context_Constraint_Exclusions_descriptor = getDescriptor().getMessageTypes().get(75); + internal_static_context_Constraint_Exclusions_descriptor = getDescriptor().getMessageTypes().get(76); internal_static_context_Constraint_Exclusions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_Exclusions_descriptor, new java.lang.String[] { "IsPermanent", "DeviceIds", "EndpointIds", "LinkIds" }); - internal_static_context_QoSProfileId_descriptor = getDescriptor().getMessageTypes().get(76); + internal_static_context_QoSProfileId_descriptor = getDescriptor().getMessageTypes().get(77); internal_static_context_QoSProfileId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_QoSProfileId_descriptor, new java.lang.String[] { "QosProfileId" }); - internal_static_context_Constraint_QoSProfile_descriptor = getDescriptor().getMessageTypes().get(77); + internal_static_context_Constraint_QoSProfile_descriptor = getDescriptor().getMessageTypes().get(78); internal_static_context_Constraint_QoSProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_QoSProfile_descriptor, new java.lang.String[] { "QosProfileId", "QosProfileName" }); - internal_static_context_Constraint_descriptor = getDescriptor().getMessageTypes().get(78); + internal_static_context_Constraint_descriptor = getDescriptor().getMessageTypes().get(79); internal_static_context_Constraint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_Constraint_descriptor, new java.lang.String[] { "Action", "Custom", "Schedule", "EndpointLocation", "EndpointPriority", "SlaCapacity", "SlaLatency", "SlaAvailability", "SlaIsolation", "Exclusions", "QosProfile", "Constraint" }); - internal_static_context_TeraFlowController_descriptor = getDescriptor().getMessageTypes().get(79); + internal_static_context_TeraFlowController_descriptor = getDescriptor().getMessageTypes().get(80); internal_static_context_TeraFlowController_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_TeraFlowController_descriptor, new java.lang.String[] { "ContextId", "IpAddress", "Port" }); - internal_static_context_AuthenticationResult_descriptor = getDescriptor().getMessageTypes().get(80); + internal_static_context_AuthenticationResult_descriptor = getDescriptor().getMessageTypes().get(81); internal_static_context_AuthenticationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_AuthenticationResult_descriptor, new java.lang.String[] { "ContextId", "Authenticated" }); - internal_static_context_OpticalConfigId_descriptor = getDescriptor().getMessageTypes().get(81); + internal_static_context_OpticalConfigId_descriptor = getDescriptor().getMessageTypes().get(82); internal_static_context_OpticalConfigId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalConfigId_descriptor, new java.lang.String[] { "OpticalconfigUuid" }); - internal_static_context_OpticalConfig_descriptor = getDescriptor().getMessageTypes().get(82); + internal_static_context_OpticalConfig_descriptor = getDescriptor().getMessageTypes().get(83); internal_static_context_OpticalConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalConfig_descriptor, new java.lang.String[] { "OpticalconfigId", "Config", "DeviceId" }); - internal_static_context_OpticalConfigList_descriptor = getDescriptor().getMessageTypes().get(83); + internal_static_context_OpticalConfigList_descriptor = getDescriptor().getMessageTypes().get(84); internal_static_context_OpticalConfigList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalConfigList_descriptor, new java.lang.String[] { "Opticalconfigs" }); - internal_static_context_OpticalConfigEvent_descriptor = getDescriptor().getMessageTypes().get(84); + internal_static_context_OpticalConfigEvent_descriptor = getDescriptor().getMessageTypes().get(85); internal_static_context_OpticalConfigEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalConfigEvent_descriptor, new java.lang.String[] { "Event", "OpticalconfigId" }); - internal_static_context_OpticalEndPointId_descriptor = getDescriptor().getMessageTypes().get(85); + internal_static_context_OpticalEndPointId_descriptor = getDescriptor().getMessageTypes().get(86); internal_static_context_OpticalEndPointId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalEndPointId_descriptor, new java.lang.String[] { "DeviceId", "EndpointUuid" }); - internal_static_context_OpticalLinkList_descriptor = getDescriptor().getMessageTypes().get(86); + internal_static_context_OpticalLinkList_descriptor = getDescriptor().getMessageTypes().get(87); internal_static_context_OpticalLinkList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkList_descriptor, new java.lang.String[] { "OpticalLinks" }); - internal_static_context_OpticalLinkDetails_descriptor = getDescriptor().getMessageTypes().get(87); + internal_static_context_OpticalLinkDetails_descriptor = getDescriptor().getMessageTypes().get(88); internal_static_context_OpticalLinkDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkDetails_descriptor, new java.lang.String[] { "Length", "SrcPort", "DstPort", "LocalPeerPort", "RemotePeerPort", "Used", "CSlots", "LSlots", "SSlots" }); internal_static_context_OpticalLinkDetails_CSlotsEntry_descriptor = internal_static_context_OpticalLinkDetails_descriptor.getNestedTypes().get(0); internal_static_context_OpticalLinkDetails_CSlotsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkDetails_CSlotsEntry_descriptor, new java.lang.String[] { "Key", "Value" }); @@ -83529,12 +88188,21 @@ public final class ContextOuterClass { internal_static_context_OpticalLinkDetails_LSlotsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkDetails_LSlotsEntry_descriptor, new java.lang.String[] { "Key", "Value" }); internal_static_context_OpticalLinkDetails_SSlotsEntry_descriptor = internal_static_context_OpticalLinkDetails_descriptor.getNestedTypes().get(2); internal_static_context_OpticalLinkDetails_SSlotsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLinkDetails_SSlotsEntry_descriptor, new java.lang.String[] { "Key", "Value" }); - internal_static_context_OpticalLink_descriptor = getDescriptor().getMessageTypes().get(88); + internal_static_context_OpticalLink_descriptor = getDescriptor().getMessageTypes().get(89); internal_static_context_OpticalLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalLink_descriptor, new java.lang.String[] { "Name", "OpticalDetails", "LinkId", "LinkEndpointIds" }); - internal_static_context_ServiceConfigRule_descriptor = getDescriptor().getMessageTypes().get(89); + internal_static_context_ChannelId_descriptor = getDescriptor().getMessageTypes().get(90); + internal_static_context_ChannelId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ChannelId_descriptor, new java.lang.String[] { "ChannelUuid" }); + internal_static_context_OpticalBandId_descriptor = getDescriptor().getMessageTypes().get(91); + internal_static_context_OpticalBandId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalBandId_descriptor, new java.lang.String[] { "OpticalbandUuid" }); + internal_static_context_OpticalBand_descriptor = getDescriptor().getMessageTypes().get(92); + internal_static_context_OpticalBand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalBand_descriptor, new java.lang.String[] { "OpticalbandId", "ConnectionId", "ChannelId", "ServiceId", "Service", "Connection", "Channel", "Field" }); + internal_static_context_OpticalBandList_descriptor = getDescriptor().getMessageTypes().get(93); + internal_static_context_OpticalBandList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_OpticalBandList_descriptor, new java.lang.String[] { "Opticalbands" }); + internal_static_context_ServiceConfigRule_descriptor = getDescriptor().getMessageTypes().get(94); internal_static_context_ServiceConfigRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_context_ServiceConfigRule_descriptor, new java.lang.String[] { "ServiceId", "ConfigruleCustom" }); com.google.protobuf.AnyProto.getDescriptor(); acl.Acl.getDescriptor(); + ip_link.IpLink.getDescriptor(); kpi_sample_types.KpiSampleTypes.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/ztp/target/generated-sources/grpc/context/ContextService.java b/src/ztp/target/generated-sources/grpc/context/ContextService.java index 7f1bff63e..03808104f 100644 --- a/src/ztp/target/generated-sources/grpc/context/ContextService.java +++ b/src/ztp/target/generated-sources/grpc/context/ContextService.java @@ -114,6 +114,10 @@ public interface ContextService extends MutinyService { io.smallrye.mutiny.Uni getOpticalLinkList(context.ContextOuterClass.Empty request); + io.smallrye.mutiny.Uni getOpticalBand(context.ContextOuterClass.Empty request); + + io.smallrye.mutiny.Uni selectOpticalBand(context.ContextOuterClass.OpticalBandId request); + io.smallrye.mutiny.Uni deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request); io.smallrye.mutiny.Multi getContextEvents(context.ContextOuterClass.Empty request); diff --git a/src/ztp/target/generated-sources/grpc/context/ContextServiceBean.java b/src/ztp/target/generated-sources/grpc/context/ContextServiceBean.java index 201d659ab..92607010e 100644 --- a/src/ztp/target/generated-sources/grpc/context/ContextServiceBean.java +++ b/src/ztp/target/generated-sources/grpc/context/ContextServiceBean.java @@ -481,6 +481,24 @@ public class ContextServiceBean extends MutinyContextServiceGrpc.ContextServiceI } } + @Override + public io.smallrye.mutiny.Uni getOpticalBand(context.ContextOuterClass.Empty request) { + try { + return delegate.getOpticalBand(request); + } catch (UnsupportedOperationException e) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + } + + @Override + public io.smallrye.mutiny.Uni selectOpticalBand(context.ContextOuterClass.OpticalBandId request) { + try { + return delegate.selectOpticalBand(request); + } catch (UnsupportedOperationException e) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + } + @Override public io.smallrye.mutiny.Uni deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request) { try { diff --git a/src/ztp/target/generated-sources/grpc/context/ContextServiceClient.java b/src/ztp/target/generated-sources/grpc/context/ContextServiceClient.java index 67c1a0db8..6ae74ff54 100644 --- a/src/ztp/target/generated-sources/grpc/context/ContextServiceClient.java +++ b/src/ztp/target/generated-sources/grpc/context/ContextServiceClient.java @@ -285,6 +285,16 @@ public class ContextServiceClient implements ContextService, MutinyClient getOpticalBand(context.ContextOuterClass.Empty request) { + return stub.getOpticalBand(request); + } + + @Override + public io.smallrye.mutiny.Uni selectOpticalBand(context.ContextOuterClass.OpticalBandId request) { + return stub.selectOpticalBand(request); + } + @Override public io.smallrye.mutiny.Uni deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request) { return stub.deleteServiceConfigRule(request); diff --git a/src/ztp/target/generated-sources/grpc/context/ContextServiceGrpc.java b/src/ztp/target/generated-sources/grpc/context/ContextServiceGrpc.java index fcdf13968..780d0b089 100644 --- a/src/ztp/target/generated-sources/grpc/context/ContextServiceGrpc.java +++ b/src/ztp/target/generated-sources/grpc/context/ContextServiceGrpc.java @@ -914,6 +914,36 @@ public final class ContextServiceGrpc { return getGetOpticalLinkListMethod; } + private static volatile io.grpc.MethodDescriptor getGetOpticalBandMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + "GetOpticalBand", requestType = context.ContextOuterClass.Empty.class, responseType = context.ContextOuterClass.OpticalBandList.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetOpticalBandMethod() { + io.grpc.MethodDescriptor getGetOpticalBandMethod; + if ((getGetOpticalBandMethod = ContextServiceGrpc.getGetOpticalBandMethod) == null) { + synchronized (ContextServiceGrpc.class) { + if ((getGetOpticalBandMethod = ContextServiceGrpc.getGetOpticalBandMethod) == null) { + ContextServiceGrpc.getGetOpticalBandMethod = getGetOpticalBandMethod = io.grpc.MethodDescriptor.newBuilder().setType(io.grpc.MethodDescriptor.MethodType.UNARY).setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOpticalBand")).setSampledToLocalTracing(true).setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(context.ContextOuterClass.Empty.getDefaultInstance())).setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(context.ContextOuterClass.OpticalBandList.getDefaultInstance())).setSchemaDescriptor(new ContextServiceMethodDescriptorSupplier("GetOpticalBand")).build(); + } + } + } + return getGetOpticalBandMethod; + } + + private static volatile io.grpc.MethodDescriptor getSelectOpticalBandMethod; + + @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + "SelectOpticalBand", requestType = context.ContextOuterClass.OpticalBandId.class, responseType = context.ContextOuterClass.OpticalBand.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSelectOpticalBandMethod() { + io.grpc.MethodDescriptor getSelectOpticalBandMethod; + if ((getSelectOpticalBandMethod = ContextServiceGrpc.getSelectOpticalBandMethod) == null) { + synchronized (ContextServiceGrpc.class) { + if ((getSelectOpticalBandMethod = ContextServiceGrpc.getSelectOpticalBandMethod) == null) { + ContextServiceGrpc.getSelectOpticalBandMethod = getSelectOpticalBandMethod = io.grpc.MethodDescriptor.newBuilder().setType(io.grpc.MethodDescriptor.MethodType.UNARY).setFullMethodName(generateFullMethodName(SERVICE_NAME, "SelectOpticalBand")).setSampledToLocalTracing(true).setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(context.ContextOuterClass.OpticalBandId.getDefaultInstance())).setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(context.ContextOuterClass.OpticalBand.getDefaultInstance())).setSchemaDescriptor(new ContextServiceMethodDescriptorSupplier("SelectOpticalBand")).build(); + } + } + } + return getSelectOpticalBandMethod; + } + private static volatile io.grpc.MethodDescriptor getDeleteServiceConfigRuleMethod; @io.grpc.stub.annotations.RpcMethod(fullMethodName = SERVICE_NAME + '/' + "DeleteServiceConfigRule", requestType = context.ContextOuterClass.ServiceConfigRule.class, responseType = context.ContextOuterClass.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) @@ -1338,6 +1368,18 @@ public final class ContextServiceGrpc { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOpticalLinkListMethod(), responseObserver); } + /** + */ + default void getOpticalBand(context.ContextOuterClass.Empty request, io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOpticalBandMethod(), responseObserver); + } + + /** + */ + default void selectOpticalBand(context.ContextOuterClass.OpticalBandId request, io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSelectOpticalBandMethod(), responseObserver); + } + /** */ default void deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request, io.grpc.stub.StreamObserver responseObserver) { @@ -1733,6 +1775,18 @@ public final class ContextServiceGrpc { io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetOpticalLinkListMethod(), getCallOptions()), request, responseObserver); } + /** + */ + public void getOpticalBand(context.ContextOuterClass.Empty request, io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getGetOpticalBandMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void selectOpticalBand(context.ContextOuterClass.OpticalBandId request, io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall(getChannel().newCall(getSelectOpticalBandMethod(), getCallOptions()), request, responseObserver); + } + /** */ public void deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request, io.grpc.stub.StreamObserver responseObserver) { @@ -2117,6 +2171,18 @@ public final class ContextServiceGrpc { return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetOpticalLinkListMethod(), getCallOptions(), request); } + /** + */ + public context.ContextOuterClass.OpticalBandList getOpticalBand(context.ContextOuterClass.Empty request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getGetOpticalBandMethod(), getCallOptions(), request); + } + + /** + */ + public context.ContextOuterClass.OpticalBand selectOpticalBand(context.ContextOuterClass.OpticalBandId request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall(getChannel(), getSelectOpticalBandMethod(), getCallOptions(), request); + } + /** */ public context.ContextOuterClass.Empty deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request) { @@ -2453,6 +2519,18 @@ public final class ContextServiceGrpc { return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getGetOpticalLinkListMethod(), getCallOptions()), request); } + /** + */ + public com.google.common.util.concurrent.ListenableFuture getOpticalBand(context.ContextOuterClass.Empty request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getGetOpticalBandMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture selectOpticalBand(context.ContextOuterClass.OpticalBandId request) { + return io.grpc.stub.ClientCalls.futureUnaryCall(getChannel().newCall(getSelectOpticalBandMethod(), getCallOptions()), request); + } + /** */ public com.google.common.util.concurrent.ListenableFuture deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request) { @@ -2580,7 +2658,11 @@ public final class ContextServiceGrpc { private static final int METHODID_GET_OPTICAL_LINK_LIST = 59; - private static final int METHODID_DELETE_SERVICE_CONFIG_RULE = 60; + private static final int METHODID_GET_OPTICAL_BAND = 60; + + private static final int METHODID_SELECT_OPTICAL_BAND = 61; + + private static final int METHODID_DELETE_SERVICE_CONFIG_RULE = 62; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { @@ -2777,6 +2859,12 @@ public final class ContextServiceGrpc { case METHODID_GET_OPTICAL_LINK_LIST: serviceImpl.getOpticalLinkList((context.ContextOuterClass.Empty) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_OPTICAL_BAND: + serviceImpl.getOpticalBand((context.ContextOuterClass.Empty) request, (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SELECT_OPTICAL_BAND: + serviceImpl.selectOpticalBand((context.ContextOuterClass.OpticalBandId) request, (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_SERVICE_CONFIG_RULE: serviceImpl.deleteServiceConfigRule((context.ContextOuterClass.ServiceConfigRule) request, (io.grpc.stub.StreamObserver) responseObserver); break; @@ -2796,7 +2884,7 @@ public final class ContextServiceGrpc { } public static io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()).addMethod(getListContextIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_CONTEXT_IDS))).addMethod(getListContextsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_CONTEXTS))).addMethod(getGetContextMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_CONTEXT))).addMethod(getSetContextMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_CONTEXT))).addMethod(getRemoveContextMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_CONTEXT))).addMethod(getGetContextEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_CONTEXT_EVENTS))).addMethod(getListTopologyIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_TOPOLOGY_IDS))).addMethod(getListTopologiesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_TOPOLOGIES))).addMethod(getGetTopologyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_TOPOLOGY))).addMethod(getGetTopologyDetailsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_TOPOLOGY_DETAILS))).addMethod(getSetTopologyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_TOPOLOGY))).addMethod(getRemoveTopologyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_TOPOLOGY))).addMethod(getGetTopologyEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_TOPOLOGY_EVENTS))).addMethod(getListDeviceIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_DEVICE_IDS))).addMethod(getListDevicesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_DEVICES))).addMethod(getGetDeviceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_DEVICE))).addMethod(getSetDeviceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_DEVICE))).addMethod(getRemoveDeviceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_DEVICE))).addMethod(getGetDeviceEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_DEVICE_EVENTS))).addMethod(getSelectDeviceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_DEVICE))).addMethod(getListEndPointNamesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_END_POINT_NAMES))).addMethod(getListLinkIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_LINK_IDS))).addMethod(getListLinksMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_LINKS))).addMethod(getGetLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_LINK))).addMethod(getSetLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_LINK))).addMethod(getRemoveLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_LINK))).addMethod(getGetLinkEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_LINK_EVENTS))).addMethod(getListServiceIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_SERVICE_IDS))).addMethod(getListServicesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_SERVICES))).addMethod(getGetServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_SERVICE))).addMethod(getSetServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_SERVICE))).addMethod(getUnsetServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_UNSET_SERVICE))).addMethod(getRemoveServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_SERVICE))).addMethod(getGetServiceEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_SERVICE_EVENTS))).addMethod(getSelectServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_SERVICE))).addMethod(getListSliceIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_SLICE_IDS))).addMethod(getListSlicesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_SLICES))).addMethod(getGetSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_SLICE))).addMethod(getSetSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_SLICE))).addMethod(getUnsetSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_UNSET_SLICE))).addMethod(getRemoveSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_SLICE))).addMethod(getGetSliceEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_SLICE_EVENTS))).addMethod(getSelectSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_SLICE))).addMethod(getListConnectionIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_CONNECTION_IDS))).addMethod(getListConnectionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_CONNECTIONS))).addMethod(getGetConnectionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_CONNECTION))).addMethod(getSetConnectionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_CONNECTION))).addMethod(getRemoveConnectionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_CONNECTION))).addMethod(getGetConnectionEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_CONNECTION_EVENTS))).addMethod(getGetAllEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_ALL_EVENTS))).addMethod(getGetOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_OPTICAL_CONFIG))).addMethod(getSetOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_OPTICAL_CONFIG))).addMethod(getUpdateOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_UPDATE_OPTICAL_CONFIG))).addMethod(getSelectOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_OPTICAL_CONFIG))).addMethod(getDeleteOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_DELETE_OPTICAL_CONFIG))).addMethod(getDeleteOpticalChannelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_DELETE_OPTICAL_CHANNEL))).addMethod(getSetOpticalLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_OPTICAL_LINK))).addMethod(getGetOpticalLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_OPTICAL_LINK))).addMethod(getDeleteOpticalLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_DELETE_OPTICAL_LINK))).addMethod(getGetOpticalLinkListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_OPTICAL_LINK_LIST))).addMethod(getDeleteServiceConfigRuleMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_DELETE_SERVICE_CONFIG_RULE))).build(); + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()).addMethod(getListContextIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_CONTEXT_IDS))).addMethod(getListContextsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_CONTEXTS))).addMethod(getGetContextMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_CONTEXT))).addMethod(getSetContextMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_CONTEXT))).addMethod(getRemoveContextMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_CONTEXT))).addMethod(getGetContextEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_CONTEXT_EVENTS))).addMethod(getListTopologyIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_TOPOLOGY_IDS))).addMethod(getListTopologiesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_TOPOLOGIES))).addMethod(getGetTopologyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_TOPOLOGY))).addMethod(getGetTopologyDetailsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_TOPOLOGY_DETAILS))).addMethod(getSetTopologyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_TOPOLOGY))).addMethod(getRemoveTopologyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_TOPOLOGY))).addMethod(getGetTopologyEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_TOPOLOGY_EVENTS))).addMethod(getListDeviceIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_DEVICE_IDS))).addMethod(getListDevicesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_DEVICES))).addMethod(getGetDeviceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_DEVICE))).addMethod(getSetDeviceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_DEVICE))).addMethod(getRemoveDeviceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_DEVICE))).addMethod(getGetDeviceEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_DEVICE_EVENTS))).addMethod(getSelectDeviceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_DEVICE))).addMethod(getListEndPointNamesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_END_POINT_NAMES))).addMethod(getListLinkIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_LINK_IDS))).addMethod(getListLinksMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_LINKS))).addMethod(getGetLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_LINK))).addMethod(getSetLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_LINK))).addMethod(getRemoveLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_LINK))).addMethod(getGetLinkEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_LINK_EVENTS))).addMethod(getListServiceIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_SERVICE_IDS))).addMethod(getListServicesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_SERVICES))).addMethod(getGetServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_SERVICE))).addMethod(getSetServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_SERVICE))).addMethod(getUnsetServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_UNSET_SERVICE))).addMethod(getRemoveServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_SERVICE))).addMethod(getGetServiceEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_SERVICE_EVENTS))).addMethod(getSelectServiceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_SERVICE))).addMethod(getListSliceIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_SLICE_IDS))).addMethod(getListSlicesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_SLICES))).addMethod(getGetSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_SLICE))).addMethod(getSetSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_SLICE))).addMethod(getUnsetSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_UNSET_SLICE))).addMethod(getRemoveSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_SLICE))).addMethod(getGetSliceEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_SLICE_EVENTS))).addMethod(getSelectSliceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_SLICE))).addMethod(getListConnectionIdsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_CONNECTION_IDS))).addMethod(getListConnectionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_LIST_CONNECTIONS))).addMethod(getGetConnectionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_CONNECTION))).addMethod(getSetConnectionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_CONNECTION))).addMethod(getRemoveConnectionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_REMOVE_CONNECTION))).addMethod(getGetConnectionEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_CONNECTION_EVENTS))).addMethod(getGetAllEventsMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall(new MethodHandlers(service, METHODID_GET_ALL_EVENTS))).addMethod(getGetOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_OPTICAL_CONFIG))).addMethod(getSetOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_OPTICAL_CONFIG))).addMethod(getUpdateOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_UPDATE_OPTICAL_CONFIG))).addMethod(getSelectOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_OPTICAL_CONFIG))).addMethod(getDeleteOpticalConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_DELETE_OPTICAL_CONFIG))).addMethod(getDeleteOpticalChannelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_DELETE_OPTICAL_CHANNEL))).addMethod(getSetOpticalLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SET_OPTICAL_LINK))).addMethod(getGetOpticalLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_OPTICAL_LINK))).addMethod(getDeleteOpticalLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_DELETE_OPTICAL_LINK))).addMethod(getGetOpticalLinkListMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_OPTICAL_LINK_LIST))).addMethod(getGetOpticalBandMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_GET_OPTICAL_BAND))).addMethod(getSelectOpticalBandMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_SELECT_OPTICAL_BAND))).addMethod(getDeleteServiceConfigRuleMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall(new MethodHandlers(service, METHODID_DELETE_SERVICE_CONFIG_RULE))).build(); } private static abstract class ContextServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { @@ -2843,7 +2931,7 @@ public final class ContextServiceGrpc { synchronized (ContextServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME).setSchemaDescriptor(new ContextServiceFileDescriptorSupplier()).addMethod(getListContextIdsMethod()).addMethod(getListContextsMethod()).addMethod(getGetContextMethod()).addMethod(getSetContextMethod()).addMethod(getRemoveContextMethod()).addMethod(getGetContextEventsMethod()).addMethod(getListTopologyIdsMethod()).addMethod(getListTopologiesMethod()).addMethod(getGetTopologyMethod()).addMethod(getGetTopologyDetailsMethod()).addMethod(getSetTopologyMethod()).addMethod(getRemoveTopologyMethod()).addMethod(getGetTopologyEventsMethod()).addMethod(getListDeviceIdsMethod()).addMethod(getListDevicesMethod()).addMethod(getGetDeviceMethod()).addMethod(getSetDeviceMethod()).addMethod(getRemoveDeviceMethod()).addMethod(getGetDeviceEventsMethod()).addMethod(getSelectDeviceMethod()).addMethod(getListEndPointNamesMethod()).addMethod(getListLinkIdsMethod()).addMethod(getListLinksMethod()).addMethod(getGetLinkMethod()).addMethod(getSetLinkMethod()).addMethod(getRemoveLinkMethod()).addMethod(getGetLinkEventsMethod()).addMethod(getListServiceIdsMethod()).addMethod(getListServicesMethod()).addMethod(getGetServiceMethod()).addMethod(getSetServiceMethod()).addMethod(getUnsetServiceMethod()).addMethod(getRemoveServiceMethod()).addMethod(getGetServiceEventsMethod()).addMethod(getSelectServiceMethod()).addMethod(getListSliceIdsMethod()).addMethod(getListSlicesMethod()).addMethod(getGetSliceMethod()).addMethod(getSetSliceMethod()).addMethod(getUnsetSliceMethod()).addMethod(getRemoveSliceMethod()).addMethod(getGetSliceEventsMethod()).addMethod(getSelectSliceMethod()).addMethod(getListConnectionIdsMethod()).addMethod(getListConnectionsMethod()).addMethod(getGetConnectionMethod()).addMethod(getSetConnectionMethod()).addMethod(getRemoveConnectionMethod()).addMethod(getGetConnectionEventsMethod()).addMethod(getGetAllEventsMethod()).addMethod(getGetOpticalConfigMethod()).addMethod(getSetOpticalConfigMethod()).addMethod(getUpdateOpticalConfigMethod()).addMethod(getSelectOpticalConfigMethod()).addMethod(getDeleteOpticalConfigMethod()).addMethod(getDeleteOpticalChannelMethod()).addMethod(getSetOpticalLinkMethod()).addMethod(getGetOpticalLinkMethod()).addMethod(getDeleteOpticalLinkMethod()).addMethod(getGetOpticalLinkListMethod()).addMethod(getDeleteServiceConfigRuleMethod()).build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME).setSchemaDescriptor(new ContextServiceFileDescriptorSupplier()).addMethod(getListContextIdsMethod()).addMethod(getListContextsMethod()).addMethod(getGetContextMethod()).addMethod(getSetContextMethod()).addMethod(getRemoveContextMethod()).addMethod(getGetContextEventsMethod()).addMethod(getListTopologyIdsMethod()).addMethod(getListTopologiesMethod()).addMethod(getGetTopologyMethod()).addMethod(getGetTopologyDetailsMethod()).addMethod(getSetTopologyMethod()).addMethod(getRemoveTopologyMethod()).addMethod(getGetTopologyEventsMethod()).addMethod(getListDeviceIdsMethod()).addMethod(getListDevicesMethod()).addMethod(getGetDeviceMethod()).addMethod(getSetDeviceMethod()).addMethod(getRemoveDeviceMethod()).addMethod(getGetDeviceEventsMethod()).addMethod(getSelectDeviceMethod()).addMethod(getListEndPointNamesMethod()).addMethod(getListLinkIdsMethod()).addMethod(getListLinksMethod()).addMethod(getGetLinkMethod()).addMethod(getSetLinkMethod()).addMethod(getRemoveLinkMethod()).addMethod(getGetLinkEventsMethod()).addMethod(getListServiceIdsMethod()).addMethod(getListServicesMethod()).addMethod(getGetServiceMethod()).addMethod(getSetServiceMethod()).addMethod(getUnsetServiceMethod()).addMethod(getRemoveServiceMethod()).addMethod(getGetServiceEventsMethod()).addMethod(getSelectServiceMethod()).addMethod(getListSliceIdsMethod()).addMethod(getListSlicesMethod()).addMethod(getGetSliceMethod()).addMethod(getSetSliceMethod()).addMethod(getUnsetSliceMethod()).addMethod(getRemoveSliceMethod()).addMethod(getGetSliceEventsMethod()).addMethod(getSelectSliceMethod()).addMethod(getListConnectionIdsMethod()).addMethod(getListConnectionsMethod()).addMethod(getGetConnectionMethod()).addMethod(getSetConnectionMethod()).addMethod(getRemoveConnectionMethod()).addMethod(getGetConnectionEventsMethod()).addMethod(getGetAllEventsMethod()).addMethod(getGetOpticalConfigMethod()).addMethod(getSetOpticalConfigMethod()).addMethod(getUpdateOpticalConfigMethod()).addMethod(getSelectOpticalConfigMethod()).addMethod(getDeleteOpticalConfigMethod()).addMethod(getDeleteOpticalChannelMethod()).addMethod(getSetOpticalLinkMethod()).addMethod(getGetOpticalLinkMethod()).addMethod(getDeleteOpticalLinkMethod()).addMethod(getGetOpticalLinkListMethod()).addMethod(getGetOpticalBandMethod()).addMethod(getSelectOpticalBandMethod()).addMethod(getDeleteServiceConfigRuleMethod()).build(); } } } diff --git a/src/ztp/target/generated-sources/grpc/context/MutinyContextServiceGrpc.java b/src/ztp/target/generated-sources/grpc/context/MutinyContextServiceGrpc.java index 187f431d1..5e574a903 100644 --- a/src/ztp/target/generated-sources/grpc/context/MutinyContextServiceGrpc.java +++ b/src/ztp/target/generated-sources/grpc/context/MutinyContextServiceGrpc.java @@ -248,6 +248,14 @@ public final class MutinyContextServiceGrpc implements io.quarkus.grpc.MutinyGrp return io.quarkus.grpc.stubs.ClientCalls.oneToOne(request, delegateStub::getOpticalLinkList); } + public io.smallrye.mutiny.Uni getOpticalBand(context.ContextOuterClass.Empty request) { + return io.quarkus.grpc.stubs.ClientCalls.oneToOne(request, delegateStub::getOpticalBand); + } + + public io.smallrye.mutiny.Uni selectOpticalBand(context.ContextOuterClass.OpticalBandId request) { + return io.quarkus.grpc.stubs.ClientCalls.oneToOne(request, delegateStub::selectOpticalBand); + } + public io.smallrye.mutiny.Uni deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request) { return io.quarkus.grpc.stubs.ClientCalls.oneToOne(request, delegateStub::deleteServiceConfigRule); } @@ -512,6 +520,14 @@ public final class MutinyContextServiceGrpc implements io.quarkus.grpc.MutinyGrp throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); } + public io.smallrye.mutiny.Uni getOpticalBand(context.ContextOuterClass.Empty request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + + public io.smallrye.mutiny.Uni selectOpticalBand(context.ContextOuterClass.OpticalBandId request) { + throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); + } + public io.smallrye.mutiny.Uni deleteServiceConfigRule(context.ContextOuterClass.ServiceConfigRule request) { throw new io.grpc.StatusRuntimeException(io.grpc.Status.UNIMPLEMENTED); } @@ -550,7 +566,7 @@ public final class MutinyContextServiceGrpc implements io.quarkus.grpc.MutinyGrp @java.lang.Override public io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()).addMethod(context.ContextServiceGrpc.getListContextIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_CONTEXT_IDS, compression))).addMethod(context.ContextServiceGrpc.getListContextsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_CONTEXTS, compression))).addMethod(context.ContextServiceGrpc.getGetContextMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_CONTEXT, compression))).addMethod(context.ContextServiceGrpc.getSetContextMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_CONTEXT, compression))).addMethod(context.ContextServiceGrpc.getRemoveContextMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_CONTEXT, compression))).addMethod(context.ContextServiceGrpc.getGetContextEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_CONTEXT_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getListTopologyIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_TOPOLOGY_IDS, compression))).addMethod(context.ContextServiceGrpc.getListTopologiesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_TOPOLOGIES, compression))).addMethod(context.ContextServiceGrpc.getGetTopologyMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_TOPOLOGY, compression))).addMethod(context.ContextServiceGrpc.getGetTopologyDetailsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_TOPOLOGY_DETAILS, compression))).addMethod(context.ContextServiceGrpc.getSetTopologyMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_TOPOLOGY, compression))).addMethod(context.ContextServiceGrpc.getRemoveTopologyMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_TOPOLOGY, compression))).addMethod(context.ContextServiceGrpc.getGetTopologyEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_TOPOLOGY_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getListDeviceIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_DEVICE_IDS, compression))).addMethod(context.ContextServiceGrpc.getListDevicesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_DEVICES, compression))).addMethod(context.ContextServiceGrpc.getGetDeviceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_DEVICE, compression))).addMethod(context.ContextServiceGrpc.getSetDeviceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_DEVICE, compression))).addMethod(context.ContextServiceGrpc.getRemoveDeviceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_DEVICE, compression))).addMethod(context.ContextServiceGrpc.getGetDeviceEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_DEVICE_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getSelectDeviceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_DEVICE, compression))).addMethod(context.ContextServiceGrpc.getListEndPointNamesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_END_POINT_NAMES, compression))).addMethod(context.ContextServiceGrpc.getListLinkIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_LINK_IDS, compression))).addMethod(context.ContextServiceGrpc.getListLinksMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_LINKS, compression))).addMethod(context.ContextServiceGrpc.getGetLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_LINK, compression))).addMethod(context.ContextServiceGrpc.getSetLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_LINK, compression))).addMethod(context.ContextServiceGrpc.getRemoveLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_LINK, compression))).addMethod(context.ContextServiceGrpc.getGetLinkEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_LINK_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getListServiceIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_SERVICE_IDS, compression))).addMethod(context.ContextServiceGrpc.getListServicesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_SERVICES, compression))).addMethod(context.ContextServiceGrpc.getGetServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getSetServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getUnsetServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_UNSET_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getRemoveServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getGetServiceEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_SERVICE_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getSelectServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getListSliceIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_SLICE_IDS, compression))).addMethod(context.ContextServiceGrpc.getListSlicesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_SLICES, compression))).addMethod(context.ContextServiceGrpc.getGetSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_SLICE, compression))).addMethod(context.ContextServiceGrpc.getSetSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_SLICE, compression))).addMethod(context.ContextServiceGrpc.getUnsetSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_UNSET_SLICE, compression))).addMethod(context.ContextServiceGrpc.getRemoveSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_SLICE, compression))).addMethod(context.ContextServiceGrpc.getGetSliceEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_SLICE_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getSelectSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_SLICE, compression))).addMethod(context.ContextServiceGrpc.getListConnectionIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_CONNECTION_IDS, compression))).addMethod(context.ContextServiceGrpc.getListConnectionsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_CONNECTIONS, compression))).addMethod(context.ContextServiceGrpc.getGetConnectionMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_CONNECTION, compression))).addMethod(context.ContextServiceGrpc.getSetConnectionMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_CONNECTION, compression))).addMethod(context.ContextServiceGrpc.getRemoveConnectionMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_CONNECTION, compression))).addMethod(context.ContextServiceGrpc.getGetConnectionEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_CONNECTION_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getGetAllEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_ALL_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getGetOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getSetOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getUpdateOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_UPDATE_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getSelectOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getDeleteOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_DELETE_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getDeleteOpticalChannelMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_DELETE_OPTICAL_CHANNEL, compression))).addMethod(context.ContextServiceGrpc.getSetOpticalLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_OPTICAL_LINK, compression))).addMethod(context.ContextServiceGrpc.getGetOpticalLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_OPTICAL_LINK, compression))).addMethod(context.ContextServiceGrpc.getDeleteOpticalLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_DELETE_OPTICAL_LINK, compression))).addMethod(context.ContextServiceGrpc.getGetOpticalLinkListMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_OPTICAL_LINK_LIST, compression))).addMethod(context.ContextServiceGrpc.getDeleteServiceConfigRuleMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_DELETE_SERVICE_CONFIG_RULE, compression))).build(); + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()).addMethod(context.ContextServiceGrpc.getListContextIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_CONTEXT_IDS, compression))).addMethod(context.ContextServiceGrpc.getListContextsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_CONTEXTS, compression))).addMethod(context.ContextServiceGrpc.getGetContextMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_CONTEXT, compression))).addMethod(context.ContextServiceGrpc.getSetContextMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_CONTEXT, compression))).addMethod(context.ContextServiceGrpc.getRemoveContextMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_CONTEXT, compression))).addMethod(context.ContextServiceGrpc.getGetContextEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_CONTEXT_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getListTopologyIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_TOPOLOGY_IDS, compression))).addMethod(context.ContextServiceGrpc.getListTopologiesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_TOPOLOGIES, compression))).addMethod(context.ContextServiceGrpc.getGetTopologyMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_TOPOLOGY, compression))).addMethod(context.ContextServiceGrpc.getGetTopologyDetailsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_TOPOLOGY_DETAILS, compression))).addMethod(context.ContextServiceGrpc.getSetTopologyMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_TOPOLOGY, compression))).addMethod(context.ContextServiceGrpc.getRemoveTopologyMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_TOPOLOGY, compression))).addMethod(context.ContextServiceGrpc.getGetTopologyEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_TOPOLOGY_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getListDeviceIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_DEVICE_IDS, compression))).addMethod(context.ContextServiceGrpc.getListDevicesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_DEVICES, compression))).addMethod(context.ContextServiceGrpc.getGetDeviceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_DEVICE, compression))).addMethod(context.ContextServiceGrpc.getSetDeviceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_DEVICE, compression))).addMethod(context.ContextServiceGrpc.getRemoveDeviceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_DEVICE, compression))).addMethod(context.ContextServiceGrpc.getGetDeviceEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_DEVICE_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getSelectDeviceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_DEVICE, compression))).addMethod(context.ContextServiceGrpc.getListEndPointNamesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_END_POINT_NAMES, compression))).addMethod(context.ContextServiceGrpc.getListLinkIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_LINK_IDS, compression))).addMethod(context.ContextServiceGrpc.getListLinksMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_LINKS, compression))).addMethod(context.ContextServiceGrpc.getGetLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_LINK, compression))).addMethod(context.ContextServiceGrpc.getSetLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_LINK, compression))).addMethod(context.ContextServiceGrpc.getRemoveLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_LINK, compression))).addMethod(context.ContextServiceGrpc.getGetLinkEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_LINK_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getListServiceIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_SERVICE_IDS, compression))).addMethod(context.ContextServiceGrpc.getListServicesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_SERVICES, compression))).addMethod(context.ContextServiceGrpc.getGetServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getSetServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getUnsetServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_UNSET_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getRemoveServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getGetServiceEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_SERVICE_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getSelectServiceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_SERVICE, compression))).addMethod(context.ContextServiceGrpc.getListSliceIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_SLICE_IDS, compression))).addMethod(context.ContextServiceGrpc.getListSlicesMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_SLICES, compression))).addMethod(context.ContextServiceGrpc.getGetSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_SLICE, compression))).addMethod(context.ContextServiceGrpc.getSetSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_SLICE, compression))).addMethod(context.ContextServiceGrpc.getUnsetSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_UNSET_SLICE, compression))).addMethod(context.ContextServiceGrpc.getRemoveSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_SLICE, compression))).addMethod(context.ContextServiceGrpc.getGetSliceEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_SLICE_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getSelectSliceMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_SLICE, compression))).addMethod(context.ContextServiceGrpc.getListConnectionIdsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_CONNECTION_IDS, compression))).addMethod(context.ContextServiceGrpc.getListConnectionsMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_LIST_CONNECTIONS, compression))).addMethod(context.ContextServiceGrpc.getGetConnectionMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_CONNECTION, compression))).addMethod(context.ContextServiceGrpc.getSetConnectionMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_CONNECTION, compression))).addMethod(context.ContextServiceGrpc.getRemoveConnectionMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_REMOVE_CONNECTION, compression))).addMethod(context.ContextServiceGrpc.getGetConnectionEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_CONNECTION_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getGetAllEventsMethod(), asyncServerStreamingCall(new MethodHandlers(this, METHODID_GET_ALL_EVENTS, compression))).addMethod(context.ContextServiceGrpc.getGetOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getSetOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getUpdateOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_UPDATE_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getSelectOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getDeleteOpticalConfigMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_DELETE_OPTICAL_CONFIG, compression))).addMethod(context.ContextServiceGrpc.getDeleteOpticalChannelMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_DELETE_OPTICAL_CHANNEL, compression))).addMethod(context.ContextServiceGrpc.getSetOpticalLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SET_OPTICAL_LINK, compression))).addMethod(context.ContextServiceGrpc.getGetOpticalLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_OPTICAL_LINK, compression))).addMethod(context.ContextServiceGrpc.getDeleteOpticalLinkMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_DELETE_OPTICAL_LINK, compression))).addMethod(context.ContextServiceGrpc.getGetOpticalLinkListMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_OPTICAL_LINK_LIST, compression))).addMethod(context.ContextServiceGrpc.getGetOpticalBandMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_GET_OPTICAL_BAND, compression))).addMethod(context.ContextServiceGrpc.getSelectOpticalBandMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_SELECT_OPTICAL_BAND, compression))).addMethod(context.ContextServiceGrpc.getDeleteServiceConfigRuleMethod(), asyncUnaryCall(new MethodHandlers(this, METHODID_DELETE_SERVICE_CONFIG_RULE, compression))).build(); } } @@ -674,7 +690,11 @@ public final class MutinyContextServiceGrpc implements io.quarkus.grpc.MutinyGrp private static final int METHODID_GET_OPTICAL_LINK_LIST = 59; - private static final int METHODID_DELETE_SERVICE_CONFIG_RULE = 60; + private static final int METHODID_GET_OPTICAL_BAND = 60; + + private static final int METHODID_SELECT_OPTICAL_BAND = 61; + + private static final int METHODID_DELETE_SERVICE_CONFIG_RULE = 62; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { @@ -874,6 +894,12 @@ public final class MutinyContextServiceGrpc implements io.quarkus.grpc.MutinyGrp case METHODID_GET_OPTICAL_LINK_LIST: io.quarkus.grpc.stubs.ServerCalls.oneToOne((context.ContextOuterClass.Empty) request, (io.grpc.stub.StreamObserver) responseObserver, compression, serviceImpl::getOpticalLinkList); break; + case METHODID_GET_OPTICAL_BAND: + io.quarkus.grpc.stubs.ServerCalls.oneToOne((context.ContextOuterClass.Empty) request, (io.grpc.stub.StreamObserver) responseObserver, compression, serviceImpl::getOpticalBand); + break; + case METHODID_SELECT_OPTICAL_BAND: + io.quarkus.grpc.stubs.ServerCalls.oneToOne((context.ContextOuterClass.OpticalBandId) request, (io.grpc.stub.StreamObserver) responseObserver, compression, serviceImpl::selectOpticalBand); + break; case METHODID_DELETE_SERVICE_CONFIG_RULE: io.quarkus.grpc.stubs.ServerCalls.oneToOne((context.ContextOuterClass.ServiceConfigRule) request, (io.grpc.stub.StreamObserver) responseObserver, compression, serviceImpl::deleteServiceConfigRule); break; diff --git a/src/ztp/target/generated-sources/grpc/ip_link/IpLink.java b/src/ztp/target/generated-sources/grpc/ip_link/IpLink.java new file mode 100644 index 000000000..865a27401 --- /dev/null +++ b/src/ztp/target/generated-sources/grpc/ip_link/IpLink.java @@ -0,0 +1,830 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: ip_link.proto +package ip_link; + +public final class IpLink { + + private IpLink() { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface IpLinkRuleSetOrBuilder extends // @@protoc_insertion_point(interface_extends:ip_link.IpLinkRuleSet) + com.google.protobuf.MessageOrBuilder { + + /** + * string ip = 1; + * @return The ip. + */ + java.lang.String getIp(); + + /** + * string ip = 1; + * @return The bytes for ip. + */ + com.google.protobuf.ByteString getIpBytes(); + + /** + * string mask = 3; + * @return The mask. + */ + java.lang.String getMask(); + + /** + * string mask = 3; + * @return The bytes for mask. + */ + com.google.protobuf.ByteString getMaskBytes(); + + /** + * string vlan = 4; + * @return The vlan. + */ + java.lang.String getVlan(); + + /** + * string vlan = 4; + * @return The bytes for vlan. + */ + com.google.protobuf.ByteString getVlanBytes(); + } + + /** + * Protobuf type {@code ip_link.IpLinkRuleSet} + */ + public static final class IpLinkRuleSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ip_link.IpLinkRuleSet) + IpLinkRuleSetOrBuilder { + + private static final long serialVersionUID = 0L; + + // Use IpLinkRuleSet.newBuilder() to construct. + private IpLinkRuleSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IpLinkRuleSet() { + ip_ = ""; + mask_ = ""; + vlan_ = ""; + } + + @java.lang.Override + @SuppressWarnings({ "unused" }) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IpLinkRuleSet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ip_link.IpLink.internal_static_ip_link_IpLinkRuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ip_link.IpLink.internal_static_ip_link_IpLinkRuleSet_fieldAccessorTable.ensureFieldAccessorsInitialized(ip_link.IpLink.IpLinkRuleSet.class, ip_link.IpLink.IpLinkRuleSet.Builder.class); + } + + public static final int IP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object ip_ = ""; + + /** + * string ip = 1; + * @return The ip. + */ + @java.lang.Override + public java.lang.String getIp() { + java.lang.Object ref = ip_; + 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(); + ip_ = s; + return s; + } + } + + /** + * string ip = 1; + * @return The bytes for ip. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIpBytes() { + java.lang.Object ref = ip_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MASK_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object mask_ = ""; + + /** + * string mask = 3; + * @return The mask. + */ + @java.lang.Override + public java.lang.String getMask() { + java.lang.Object ref = mask_; + 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(); + mask_ = s; + return s; + } + } + + /** + * string mask = 3; + * @return The bytes for mask. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMaskBytes() { + java.lang.Object ref = mask_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mask_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VLAN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object vlan_ = ""; + + /** + * string vlan = 4; + * @return The vlan. + */ + @java.lang.Override + public java.lang.String getVlan() { + java.lang.Object ref = vlan_; + 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(); + vlan_ = s; + return s; + } + } + + /** + * string vlan = 4; + * @return The bytes for vlan. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVlanBytes() { + java.lang.Object ref = vlan_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vlan_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ip_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mask_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mask_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlan_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, vlan_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) + return size; + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ip_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ip_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mask_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mask_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vlan_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, vlan_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof ip_link.IpLink.IpLinkRuleSet)) { + return super.equals(obj); + } + ip_link.IpLink.IpLinkRuleSet other = (ip_link.IpLink.IpLinkRuleSet) obj; + if (!getIp().equals(other.getIp())) + return false; + if (!getMask().equals(other.getMask())) + return false; + if (!getVlan().equals(other.getVlan())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) + 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) + IP_FIELD_NUMBER; + hash = (53 * hash) + getIp().hashCode(); + hash = (37 * hash) + MASK_FIELD_NUMBER; + hash = (53 * hash) + getMask().hashCode(); + hash = (37 * hash) + VLAN_FIELD_NUMBER; + hash = (53 * hash) + getVlan().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static ip_link.IpLink.IpLinkRuleSet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ip_link.IpLink.IpLinkRuleSet parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ip_link.IpLink.IpLinkRuleSet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ip_link.IpLink.IpLinkRuleSet parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ip_link.IpLink.IpLinkRuleSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static ip_link.IpLink.IpLinkRuleSet parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static ip_link.IpLink.IpLinkRuleSet parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ip_link.IpLink.IpLinkRuleSet 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 ip_link.IpLink.IpLinkRuleSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static ip_link.IpLink.IpLinkRuleSet 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 ip_link.IpLink.IpLinkRuleSet parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static ip_link.IpLink.IpLinkRuleSet 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(ip_link.IpLink.IpLinkRuleSet 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 ip_link.IpLinkRuleSet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ip_link.IpLinkRuleSet) + ip_link.IpLink.IpLinkRuleSetOrBuilder { + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return ip_link.IpLink.internal_static_ip_link_IpLinkRuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { + return ip_link.IpLink.internal_static_ip_link_IpLinkRuleSet_fieldAccessorTable.ensureFieldAccessorsInitialized(ip_link.IpLink.IpLinkRuleSet.class, ip_link.IpLink.IpLinkRuleSet.Builder.class); + } + + // Construct using ip_link.IpLink.IpLinkRuleSet.newBuilder() + private Builder() { + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ip_ = ""; + mask_ = ""; + vlan_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return ip_link.IpLink.internal_static_ip_link_IpLinkRuleSet_descriptor; + } + + @java.lang.Override + public ip_link.IpLink.IpLinkRuleSet getDefaultInstanceForType() { + return ip_link.IpLink.IpLinkRuleSet.getDefaultInstance(); + } + + @java.lang.Override + public ip_link.IpLink.IpLinkRuleSet build() { + ip_link.IpLink.IpLinkRuleSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public ip_link.IpLink.IpLinkRuleSet buildPartial() { + ip_link.IpLink.IpLinkRuleSet result = new ip_link.IpLink.IpLinkRuleSet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(ip_link.IpLink.IpLinkRuleSet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ip_ = ip_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mask_ = mask_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.vlan_ = vlan_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof ip_link.IpLink.IpLinkRuleSet) { + return mergeFrom((ip_link.IpLink.IpLinkRuleSet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(ip_link.IpLink.IpLinkRuleSet other) { + if (other == ip_link.IpLink.IpLinkRuleSet.getDefaultInstance()) + return this; + if (!other.getIp().isEmpty()) { + ip_ = other.ip_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMask().isEmpty()) { + mask_ = other.mask_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getVlan().isEmpty()) { + vlan_ = other.vlan_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch(tag) { + case 0: + done = true; + break; + case 10: + { + ip_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } + // case 10 + case 26: + { + mask_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } + // case 26 + case 34: + { + vlan_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } + // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + // was an endgroup tag + done = true; + } + break; + } + } + // switch (tag) + } + // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } + // finally + return this; + } + + private int bitField0_; + + private java.lang.Object ip_ = ""; + + /** + * string ip = 1; + * @return The ip. + */ + public java.lang.String getIp() { + java.lang.Object ref = ip_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ip_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string ip = 1; + * @return The bytes for ip. + */ + public com.google.protobuf.ByteString getIpBytes() { + java.lang.Object ref = ip_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ip_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string ip = 1; + * @param value The ip to set. + * @return This builder for chaining. + */ + public Builder setIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ip_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * string ip = 1; + * @return This builder for chaining. + */ + public Builder clearIp() { + ip_ = getDefaultInstance().getIp(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * string ip = 1; + * @param value The bytes for ip to set. + * @return This builder for chaining. + */ + public Builder setIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ip_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object mask_ = ""; + + /** + * string mask = 3; + * @return The mask. + */ + public java.lang.String getMask() { + java.lang.Object ref = mask_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mask_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string mask = 3; + * @return The bytes for mask. + */ + public com.google.protobuf.ByteString getMaskBytes() { + java.lang.Object ref = mask_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mask_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string mask = 3; + * @param value The mask to set. + * @return This builder for chaining. + */ + public Builder setMask(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mask_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * string mask = 3; + * @return This builder for chaining. + */ + public Builder clearMask() { + mask_ = getDefaultInstance().getMask(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * string mask = 3; + * @param value The bytes for mask to set. + * @return This builder for chaining. + */ + public Builder setMaskBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mask_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object vlan_ = ""; + + /** + * string vlan = 4; + * @return The vlan. + */ + public java.lang.String getVlan() { + java.lang.Object ref = vlan_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + vlan_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string vlan = 4; + * @return The bytes for vlan. + */ + public com.google.protobuf.ByteString getVlanBytes() { + java.lang.Object ref = vlan_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + vlan_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string vlan = 4; + * @param value The vlan to set. + * @return This builder for chaining. + */ + public Builder setVlan(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + vlan_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * string vlan = 4; + * @return This builder for chaining. + */ + public Builder clearVlan() { + vlan_ = getDefaultInstance().getVlan(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * string vlan = 4; + * @param value The bytes for vlan to set. + * @return This builder for chaining. + */ + public Builder setVlanBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vlan_ = value; + bitField0_ |= 0x00000004; + 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:ip_link.IpLinkRuleSet) + } + + // @@protoc_insertion_point(class_scope:ip_link.IpLinkRuleSet) + private static final ip_link.IpLink.IpLinkRuleSet DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new ip_link.IpLink.IpLinkRuleSet(); + } + + public static ip_link.IpLink.IpLinkRuleSet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + + @java.lang.Override + public IpLinkRuleSet parsePartialFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public ip_link.IpLink.IpLinkRuleSet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private static final com.google.protobuf.Descriptors.Descriptor internal_static_ip_link_IpLinkRuleSet_descriptor; + + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ip_link_IpLinkRuleSet_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { "\n\rip_link.proto\022\007ip_link\"7\n\rIpLinkRuleSe" + "t\022\n\n\002ip\030\001 \001(\t\022\014\n\004mask\030\003 \001(\t\022\014\n\004vlan\030\004 \001(" + "\tb\006proto3" }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_ip_link_IpLinkRuleSet_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_ip_link_IpLinkRuleSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(internal_static_ip_link_IpLinkRuleSet_descriptor, new java.lang.String[] { "Ip", "Mask", "Vlan" }); + } + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/ztp/target/kubernetes/kubernetes.yml b/src/ztp/target/kubernetes/kubernetes.yml index ece3ac7c8..04c75050c 100644 --- a/src/ztp/target/kubernetes/kubernetes.yml +++ b/src/ztp/target/kubernetes/kubernetes.yml @@ -3,8 +3,8 @@ apiVersion: v1 kind: Service metadata: annotations: - app.quarkus.io/commit-id: 439f55c932d52a211fc66ad150b6705e6d90c16c - app.quarkus.io/build-timestamp: 2025-10-20 - 11:23:35 +0000 + app.quarkus.io/commit-id: 905a409221c21205aba667ad34f7610681bd09c1 + app.quarkus.io/build-timestamp: 2025-10-22 - 13:42:34 +0000 prometheus.io/scrape: "true" prometheus.io/path: /q/metrics prometheus.io/port: "8080" @@ -17,10 +17,6 @@ metadata: name: ztpservice spec: ports: - - name: http - port: 9192 - protocol: TCP - targetPort: 8080 - name: https port: 443 protocol: TCP @@ -29,6 +25,10 @@ spec: port: 5050 protocol: TCP targetPort: 5050 + - name: http + port: 9192 + protocol: TCP + targetPort: 8080 selector: app.kubernetes.io/name: ztpservice type: ClusterIP @@ -37,8 +37,8 @@ apiVersion: apps/v1 kind: Deployment metadata: annotations: - app.quarkus.io/commit-id: 439f55c932d52a211fc66ad150b6705e6d90c16c - app.quarkus.io/build-timestamp: 2025-10-20 - 11:23:35 +0000 + app.quarkus.io/commit-id: 905a409221c21205aba667ad34f7610681bd09c1 + app.quarkus.io/build-timestamp: 2025-10-22 - 13:42:34 +0000 prometheus.io/scrape: "true" prometheus.io/path: /q/metrics prometheus.io/port: "8080" @@ -57,8 +57,8 @@ spec: template: metadata: annotations: - app.quarkus.io/commit-id: 439f55c932d52a211fc66ad150b6705e6d90c16c - app.quarkus.io/build-timestamp: 2025-10-20 - 11:23:35 +0000 + app.quarkus.io/commit-id: 905a409221c21205aba667ad34f7610681bd09c1 + app.quarkus.io/build-timestamp: 2025-10-22 - 13:42:34 +0000 prometheus.io/scrape: "true" prometheus.io/path: /q/metrics prometheus.io/port: "8080" @@ -93,15 +93,15 @@ spec: timeoutSeconds: 10 name: ztpservice ports: - - containerPort: 8080 - name: http - protocol: TCP - containerPort: 8443 name: https protocol: TCP - containerPort: 5050 name: grpc protocol: TCP + - containerPort: 8080 + name: http + protocol: TCP readinessProbe: failureThreshold: 3 httpGet: -- GitLab From f20c633d6d266f7904ff1babf9f8e746aec30419 Mon Sep 17 00:00:00 2001 From: gifrerenom Date: Wed, 22 Oct 2025 14:27:56 +0000 Subject: [PATCH 2/6] Device components - OpenConfig: - Corrected wrong init file --- .../openconfig/templates/IP_LINK/__init__.py | 362 ------------------ 1 file changed, 362 deletions(-) diff --git a/src/device/service/drivers/openconfig/templates/IP_LINK/__init__.py b/src/device/service/drivers/openconfig/templates/IP_LINK/__init__.py index 3704791d8..3ccc21c7d 100644 --- a/src/device/service/drivers/openconfig/templates/IP_LINK/__init__.py +++ b/src/device/service/drivers/openconfig/templates/IP_LINK/__init__.py @@ -12,365 +12,3 @@ # See the License for the specific language governing permissions and # limitations under the License. -from ast import List, Tuple -import json, logging, lxml.etree as ET, re -import time -from typing import Any, Dict, Optional -from jinja2 import Environment, PackageLoader, select_autoescape -import paramiko -from .Tools import generate_templates -from device.service.driver_api._Driver import ( - RESOURCE_ENDPOINTS, RESOURCE_INTERFACES, RESOURCE_NETWORK_INSTANCES, RESOURCE_ROUTING_POLICIES, RESOURCE_ACL, RESOURCE_INVENTORY) -from .EndPoints import parse as parse_endpoints -from .Interfaces import parse as parse_interfaces, parse_counters -from .NetworkInstances import parse as parse_network_instances -from .RoutingPolicy import parse as parse_routing_policy -from .Acl import parse as parse_acl -from .Inventory import parse as parse_inventory -from .acl.acl_adapter import acl_cr_to_dict -from .acl.acl_adapter_ipinfusion_proprietary import acl_cr_to_dict_ipinfusion_proprietary - -LOGGER = logging.getLogger(__name__) - -ALL_RESOURCE_KEYS = [ - RESOURCE_INVENTORY, - RESOURCE_ENDPOINTS, - RESOURCE_INTERFACES, - RESOURCE_ROUTING_POLICIES, # routing policies should come before network instances - RESOURCE_NETWORK_INSTANCES, - RESOURCE_ACL, -] - -RESOURCE_KEY_MAPPINGS = { - RESOURCE_INVENTORY : 'inventory', - RESOURCE_ENDPOINTS : 'component', - RESOURCE_INTERFACES : 'interface', - RESOURCE_NETWORK_INSTANCES: 'network_instance', - RESOURCE_ROUTING_POLICIES : 'routing_policy', - RESOURCE_ACL : 'acl', -} - -RESOURCE_PARSERS = { - 'inventory' : parse_inventory, - 'component' : parse_endpoints, - 'interface' : parse_interfaces, - 'network_instance': parse_network_instances, - 'routing_policy' : parse_routing_policy, - 'interfaces/interface/state/counters': parse_counters, - 'acl' : parse_acl, -} - -LOGGER = logging.getLogger(__name__) -RE_REMOVE_FILTERS = re.compile(r'\[[^\]]+\]') -RE_REMOVE_FILTERS_2 = re.compile(r'\/[a-z]+:') -EMPTY_CONFIG = '' -EMPTY_FILTER = '' -JINJA_ENV = Environment(loader=PackageLoader('device.service.drivers.openconfig'), autoescape=select_autoescape()) - -def get_filter(resource_key : str): - resource_key = RESOURCE_KEY_MAPPINGS.get(resource_key, resource_key) - resource_key = RE_REMOVE_FILTERS.sub('', resource_key) - resource_key = RE_REMOVE_FILTERS_2.sub('/', resource_key) - resource_key = resource_key.replace('//', '') - template_name = '{:s}/get.xml'.format(resource_key) - template = JINJA_ENV.get_template(template_name) - return '{:s}'.format(template.render().strip()) - -def parse(resource_key : str, xml_data : ET.Element): - resource_key = RESOURCE_KEY_MAPPINGS.get(resource_key, resource_key) - resource_key = RE_REMOVE_FILTERS.sub('', resource_key) - resource_key = RE_REMOVE_FILTERS_2.sub('/', resource_key) - resource_key = resource_key.replace('//', '') - parser = RESOURCE_PARSERS.get(resource_key) - if parser is None: return [(resource_key, xml_data)] - return parser(xml_data) - -""" -# Method Name: compose_config - -# Parameters: - - resource_key: [str] Variable to identify the rule to be executed. - - resource_value: [str] Variable with the configuration parameters of the rule to be executed. - - delete: [bool] Variable to identify whether to create or delete the rule. - - vendor: [str] Variable to identify the vendor of the equipment to be configured. - - message_renderer [str] Variable to dientify template generation method. Can be "jinja" or "pyangbind". - -# Functionality: - This method calls the function obtains the equipment configuration template according to the value of the variable "message_renderer". - Depending on the value of this variable, it gets the template with "jinja" or "pyangbind". - -# Return: - [dict] Set of templates obtained according to the configuration method -""" - -def compose_config( # template generation - resource_key : str, resource_value : str, delete : bool = False, vendor : Optional[str] = None, message_renderer = str -) -> str: - - if (message_renderer == "pyangbind"): - templates = (generate_templates(resource_key, resource_value, delete,vendor)) - return [ - '{:s}'.format(template) # format correction - for template in templates - ] - - elif (message_renderer == "jinja"): - templates = [] - if "acl_ruleset" in resource_key: # MANAGING ACLs - if vendor == 'ipinfusion': # ipinfusion proprietary netconf receipe is used temporarily - enable_ingress_filter_path = 'acl/interfaces/ingress/enable_ingress_filter.xml' - acl_entry_path = 'acl/acl-set/acl-entry/edit_config_ipinfusion_proprietary.xml' - acl_ingress_path = 'acl/interfaces/ingress/edit_config_ipinfusion_proprietary.xml' - data : Dict[str, Any] = acl_cr_to_dict_ipinfusion_proprietary(resource_value, delete=delete) - else: - enable_ingress_filter_path = 'acl/interfaces/ingress/enable_ingress_filter.xml' - acl_entry_path = 'acl/acl-set/acl-entry/edit_config.xml' - acl_ingress_path = 'acl/interfaces/ingress/edit_config.xml' - data : Dict[str, Any] = acl_cr_to_dict(resource_value, delete=delete) - - if delete: # unpair acl and interface before removing acl - templates.append(JINJA_ENV.get_template(acl_ingress_path)) - templates.append(JINJA_ENV.get_template(acl_entry_path)) - templates.append(JINJA_ENV.get_template(enable_ingress_filter_path)) - else: - templates.append(JINJA_ENV.get_template(enable_ingress_filter_path)) - templates.append(JINJA_ENV.get_template(acl_entry_path)) - templates.append(JINJA_ENV.get_template(acl_ingress_path)) - else: - template_name = '{:s}/edit_config.xml'.format(RE_REMOVE_FILTERS.sub('', resource_key)) - templates.append(JINJA_ENV.get_template(template_name)) - data : Dict[str, Any] = json.loads(resource_value) - - operation = 'delete' if delete else 'merge' # others - #operation = 'delete' if delete else '' # ipinfusion? - - return [ - '{:s}'.format( - template.render(**data, operation=operation, vendor=vendor).strip()) - for template in templates - ] - - else: - raise ValueError('Invalid message_renderer value: {}'.format(message_renderer)) - -""" -# Method Name: cli_compose_config - -# Parameters: - - resource_key: [str] Variable to identify the rule to be executed. - - resource_value: [str] Variable with the configuration parameters of the rule to be executed. - - delete: [bool] Variable to identify whether to create or delete the rule. - - vendor: [str] Variable to identify the vendor of the equipment to be configured. - - message_renderer [str] Variable to dientify template generation method. Can be "jinja" or "pyangbind". - -# Functionality: - This method calls the function obtains the equipment configuration template according to the value of the variable "message_renderer". - Depending on the value of this variable, it gets the template with "jinja" or "pyangbind". - -# Return: - [dict] Set of templates obtained according to the configuration method -""" - -def cli_compose_config(resources, delete: bool, host: str, user: str, passw: str): #Method used for configuring via CLI directly L2VPN in CISCO devices - - key_value_data = {} - - for path, json_str in resources: - key_value_data[path] = json_str - - # Iterate through the resources and extract parameter values dynamically - for path, json_str in resources: - data = json.loads(json_str) - if 'VC_ID' in data: vc_id = data['VC_ID'] - if 'connection_point' in data: connection_point = data['connection_point'] - if 'remote_system' in data: remote_system = data['remote_system'] - if 'interface' in data: - interface = data['interface'] - interface = interface.split("-") #New Line To Avoid Bad Endpoint Name In CISCO - interface = interface[1] - if 'vlan_id' in data: vlan_id = data['vlan_id'] - if 'name' in data: ni_name = data['name'] - if 'type' in data: ni_type = data['type'] - if 'index' in data: subif_index = data['index'] - if 'description' in data: description = data['description'] - else: description = " " - - # initialize the SSH client - ssh_client = paramiko.SSHClient() - ssh_client.load_system_host_keys() - # add to known hosts - ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) - - try: - ssh_client.connect(hostname=host, username=user, password=passw, look_for_keys=False) - #print("Connection successful") - LOGGER.warning("Connection successful") - except: - #print("[!] Cannot connect to the SSH Server") - LOGGER.warning("[!] Cannot connect to the SSH Server") - exit() - - try: - # Open an SSH shell - channel = ssh_client.invoke_shell() - channel.send('enable\n') - time.sleep(1) - channel.send('conf term\n') - time.sleep(0.1) - channel.send(f"interface {interface} l2transport\n") - time.sleep(0.1) - channel.send('description l2vpn_vpws_example\n') - time.sleep(0.1) - channel.send(f"encapsulation dot1q {vlan_id}\n") - time.sleep(0.1) - channel.send('mtu 9088\n') - time.sleep(0.1) - channel.send('commit\n') - time.sleep(0.1) - - channel.send('l2vpn\n') - time.sleep(0.1) - channel.send('load-balancing flow src-dst-ip\n') - time.sleep(0.1) - channel.send('pw-class l2vpn_vpws_profile_example\n') - time.sleep(0.1) - channel.send('encapsulation mpls\n') - time.sleep(0.1) - channel.send('transport-mode vlan passthrough\n') - time.sleep(0.1) - channel.send('control-word\n') - time.sleep(0.1) - channel.send('exit\n') - time.sleep(0.1) - channel.send('l2vpn\n') - time.sleep(0.1) - channel.send('xconnect group l2vpn_vpws_group_example\n') - time.sleep(0.1) - channel.send(f"p2p {ni_name}\n") - time.sleep(0.1) - channel.send(f"interface {interface}\n") #Ignore the VlanID because the interface already includes the vlanid tag - time.sleep(0.1) - channel.send(f"neighbor ipv4 {remote_system} pw-id {vc_id}\n") - time.sleep(0.1) - channel.send('pw-class l2vpn_vpws_profile_example\n') - time.sleep(0.1) - channel.send('exit\n') - time.sleep(0.1) - channel.send(f"description {description}\n") - time.sleep(0.1) - channel.send('commit\n') - time.sleep(0.1) - # Capturar la salida del comando - output = channel.recv(65535).decode('utf-8') - #print(output) - LOGGER.warning(output) - # Close the SSH shell - channel.close() - - except Exception as e: - LOGGER.exception(f"Error with the CLI configuration: {e}") - - # Close the SSH client - ssh_client.close() - -def ufi_interface(resources, delete: bool): #Method used for configuring via CLI directly L2VPN in CISCO devices - - key_value_data = {} - - for path, json_str in resources: - key_value_data[path] = json_str - - # initialize the SSH client - ssh_client = paramiko.SSHClient() - ssh_client.load_system_host_keys() - # add to known hosts - ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) - - try: - ssh_client.connect(hostname='10.95.90.75', username='dnroot', password='dnroot', look_for_keys=False) - LOGGER.warning("Connection successful") - except: - LOGGER.warning("[!] Cannot connect to the SSH Server") - exit() - interface = 'ge100-0/0/3/1' - ip = '1.1.1.1' - mask = '24' - vlan = '1212' - try: - # Open an SSH shell - channel = ssh_client.invoke_shell() - time.sleep(5) - channel.send('config\n') - time.sleep(1) - channel.send(f'interfaces {interface} \n') - time.sleep(1) - channel.send('admin-state enabled \n') - time.sleep(1) - channel.send(f'ipv4-address {ip}/{mask} \n') - time.sleep(1) - channel.send(f'vlan-id {vlan} \n') - time.sleep(1) - channel.send('commit\n') - time.sleep(1) - - output = channel.recv(65535).decode('utf-8') - LOGGER.warning(output) - # Close the SSH shell - channel.close() - - except Exception as e: - LOGGER.exception(f"Error with the CLI configuration: {e}") - - # Close the SSH client - ssh_client.close() - -def cisco_interface(resources, delete: bool, host: str, user: str, passw: str): #Method used for configuring via CLI directly L2VPN in CISCO devices - - key_value_data = {} - - for path, json_str in resources: - key_value_data[path] = json_str - - # initialize the SSH client - ssh_client = paramiko.SSHClient() - ssh_client.load_system_host_keys() - # add to known hosts - ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) - - try: - ssh_client.connect(hostname='10.90.95.150', username='cisco', password='cisco123', look_for_keys=False) - LOGGER.warning("Connection successful") - except: - LOGGER.warning("[!] Cannot connect to the SSH Server") - exit() - interface = 'FourHundredGigE0/0/0/10.1212' - ip = '1.1.1.1' - mask = '24' - vlan = '1212' - try: - # Open an SSH shell - channel = ssh_client.invoke_shell() - time.sleep(1) - channel.send('config\n') - time.sleep(0.1) - channel.send(f'interface {interface} \n') - time.sleep(0.1) - channel.send('no shutdown\n') - time.sleep(0.1) - channel.send(f'ipv4 address {ip}/{mask} \n') - time.sleep(0.1) - channel.send(f'encapsulation dot1q {vlan} \n') - time.sleep(0.1) - channel.send('commit\n') - time.sleep(0.1) - - output = channel.recv(65535).decode('utf-8') - LOGGER.warning(output) - # Close the SSH shell - channel.close() - - except Exception as e: - LOGGER.exception(f"Error with the CLI configuration: {e}") - - # Close the SSH client - ssh_client.close() -- GitLab From d89d2abb46e44d416c7467f531e5d86754bc04fd Mon Sep 17 00:00:00 2001 From: gifrerenom Date: Wed, 22 Oct 2025 14:28:22 +0000 Subject: [PATCH 3/6] QoS Profile component: - Corrected pre-test Docker cleanup --- src/qos_profile/.gitlab-ci.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/qos_profile/.gitlab-ci.yml b/src/qos_profile/.gitlab-ci.yml index acc27531d..099f5ba59 100644 --- a/src/qos_profile/.gitlab-ci.yml +++ b/src/qos_profile/.gitlab-ci.yml @@ -49,10 +49,15 @@ unit_test qos_profile: - build qos_profile before_script: - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY - - if docker network list | grep teraflowbridge; then echo "teraflowbridge is already created"; else docker network create --driver=bridge teraflowbridge; fi - - if docker container ls | grep crdb; then docker rm -f crdb; else echo "CockroachDB container is not in the system"; fi - - if docker volume ls | grep crdb; then docker volume rm -f crdb; else echo "CockroachDB volume is not in the system"; fi - - if docker container ls | grep $IMAGE_NAME; then docker rm -f $IMAGE_NAME; else echo "$IMAGE_NAME container is not in the system"; fi + + # Do Docker cleanup + - docker ps --all --quiet | xargs --no-run-if-empty docker stop + - docker container prune --force + - docker ps --all --quiet | xargs --no-run-if-empty docker rm --force + - docker image prune --force + - docker network prune --force + - docker volume prune --all --force + - docker buildx prune --force script: - docker pull "$CI_REGISTRY_IMAGE/$IMAGE_NAME:$IMAGE_TAG" - docker pull "cockroachdb/cockroach:latest-v22.2" -- GitLab From 9e1b75631847222d9408c6b42af8a79e6a75a208 Mon Sep 17 00:00:00 2001 From: gifrerenom Date: Wed, 22 Oct 2025 14:31:53 +0000 Subject: [PATCH 4/6] BGPLS Speaker component: - Corrected OpenJDK JRE version --- src/bgpls_speaker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bgpls_speaker/Dockerfile b/src/bgpls_speaker/Dockerfile index d70521ef8..eed5b30e9 100644 --- a/src/bgpls_speaker/Dockerfile +++ b/src/bgpls_speaker/Dockerfile @@ -60,9 +60,9 @@ RUN python3 -m pip install --upgrade pip RUN python3 -m pip install --upgrade setuptools wheel RUN python3 -m pip install --upgrade pip-tools -# Install OpenJDK-11 +# Install OpenJDK-21 RUN apt-get update && \ - apt-get install -y openjdk-17-jre && \ + apt-get install -y openjdk-21-jre && \ apt-get clean; # Get common Python packages -- GitLab From c83cc810ecc9b66a76098aa581389e549255adda Mon Sep 17 00:00:00 2001 From: gifrerenom Date: Wed, 22 Oct 2025 15:12:27 +0000 Subject: [PATCH 5/6] QoS Profile component: - Corrected creation of docker network --- src/qos_profile/.gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qos_profile/.gitlab-ci.yml b/src/qos_profile/.gitlab-ci.yml index 099f5ba59..016969a3c 100644 --- a/src/qos_profile/.gitlab-ci.yml +++ b/src/qos_profile/.gitlab-ci.yml @@ -62,6 +62,7 @@ unit_test qos_profile: - docker pull "$CI_REGISTRY_IMAGE/$IMAGE_NAME:$IMAGE_TAG" - docker pull "cockroachdb/cockroach:latest-v22.2" - docker volume create crdb + - docker network create -d bridge teraflowbridge - > docker run --name crdb -d --network=teraflowbridge -p 26257:26257 -p 8080:8080 --env COCKROACH_DATABASE=tfs_test --env COCKROACH_USER=tfs --env COCKROACH_PASSWORD=tfs123 -- GitLab From fa40493e16731e49a54c08d66c276c4ba80de6b4 Mon Sep 17 00:00:00 2001 From: gifrerenom Date: Wed, 22 Oct 2025 15:56:58 +0000 Subject: [PATCH 6/6] Service component: - Fixed broken imports - Minor code polishing --- .../service_handlers/oc/OCServiceHandler.py | 3 +-- .../tasks/Task_OpticalConnectionConfigure.py | 21 +++++++------------ .../Task_OpticalConnectionDeconfigure.py | 16 ++++++++------ 3 files changed, 19 insertions(+), 21 deletions(-) diff --git a/src/service/service/service_handlers/oc/OCServiceHandler.py b/src/service/service/service_handlers/oc/OCServiceHandler.py index d2a9fd58a..8aad5b17a 100644 --- a/src/service/service/service_handlers/oc/OCServiceHandler.py +++ b/src/service/service/service_handlers/oc/OCServiceHandler.py @@ -25,8 +25,7 @@ from service.service.service_handler_api.SettingsHandler import SettingsHandler from service.service.task_scheduler.TaskExecutor import TaskExecutor from .ConfigRules import setup_config_rules, teardown_config_rules from .OCTools import ( - endpoints_to_flows,convert_endpoints_to_flows, - convert_or_endpoints_to_flows + endpoints_to_flows, convert_endpoints_to_flows, convert_or_endpoints_to_flows ) LOGGER = logging.getLogger(__name__) diff --git a/src/service/service/task_scheduler/tasks/Task_OpticalConnectionConfigure.py b/src/service/service/task_scheduler/tasks/Task_OpticalConnectionConfigure.py index 0cfe6cf99..1c39e7489 100644 --- a/src/service/service/task_scheduler/tasks/Task_OpticalConnectionConfigure.py +++ b/src/service/service/task_scheduler/tasks/Task_OpticalConnectionConfigure.py @@ -1,4 +1,4 @@ -# Copyright 2022-2024 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) +# Copyright 2022-2025 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -12,11 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -from typing import TYPE_CHECKING, Dict, Tuple -from common.DeviceTypes import DeviceTypeEnum +import logging from common.method_wrappers.ServiceExceptions import OperationFailedException -from common.proto.context_pb2 import ConnectionId, Device , ServiceTypeEnum - +from common.proto.context_pb2 import ConnectionId, ServiceTypeEnum from common.tools.grpc.Tools import grpc_message_to_json_string from service.service.service_handler_api.Tools import check_errors_setendpoint from service.service.task_scheduler.TaskExecutor import TaskExecutor @@ -24,15 +22,12 @@ from service.service.tools.EndpointIdFormatters import endpointids_to_raw from service.service.tools.ObjectKeys import get_connection_key from service.service.service_handlers.oc.OCServiceHandler import OCServiceHandler - from ._Task import _Task -import logging -if TYPE_CHECKING: - from service.service.service_handler_api._ServiceHandler import _ServiceHandler -KEY_TEMPLATE = 'optical_Connection ({connection_id:s}):configure' -supported_handlers = (OCServiceHandler) +KEY_TEMPLATE = 'optical_connection({connection_id:s}):configure' +SUPPORTED_HANDLERS = (OCServiceHandler,) + class Task_OpticalConnectionConfigure(_Task): def __init__(self, task_executor : TaskExecutor, connection_id : ConnectionId) -> None: @@ -55,7 +50,7 @@ class Task_OpticalConnectionConfigure(_Task): service = self._task_executor.get_service(connection.service_id) service_handler_settings = {} - service_handler=None + service_handler = None service_handlers = self._task_executor.get_service_handlers(connection, service, **service_handler_settings) for _, (handler, connection_devices) in service_handlers.items(): if service_handler is None : service_handler=handler @@ -63,7 +58,7 @@ class Task_OpticalConnectionConfigure(_Task): logging.info(f"type_servicehandler {handler} and {service_handler}") if type(handler) != type(service_handler) : if service.service_type == ServiceTypeEnum.SERVICETYPE_OPTICAL_CONNECTIVITY: - if isinstance(handler, supported_handlers) and isinstance(service_handler, supported_handlers): + if isinstance(handler, SUPPORTED_HANDLERS) and isinstance(service_handler, SUPPORTED_HANDLERS): break raise Exception("Devices are not compatible ") diff --git a/src/service/service/task_scheduler/tasks/Task_OpticalConnectionDeconfigure.py b/src/service/service/task_scheduler/tasks/Task_OpticalConnectionDeconfigure.py index 0bebd7bd0..502838df4 100644 --- a/src/service/service/task_scheduler/tasks/Task_OpticalConnectionDeconfigure.py +++ b/src/service/service/task_scheduler/tasks/Task_OpticalConnectionDeconfigure.py @@ -19,10 +19,13 @@ from service.service.service_handler_api.Tools import check_errors_deleteendpoin from service.service.task_scheduler.TaskExecutor import TaskExecutor from service.service.tools.EndpointIdFormatters import endpointids_to_raw from service.service.tools.ObjectKeys import get_connection_key +from service.service.service_handlers.oc.OCServiceHandler import OCServiceHandler + from ._Task import _Task -from service.service.service_handlers.openroadm.OpenROADMServiceHandler import OpenROADMServiceHandler -KEY_TEMPLATE = 'optical_connection({connection_id:s}):deconfigure' + +KEY_TEMPLATE = 'optical_connection({connection_id:s}):deconfigure' +SUPPORTED_HANDLERS = (OCServiceHandler,) class Task_OpticalConnectionDeconfigure(_Task): def __init__( @@ -49,15 +52,16 @@ class Task_OpticalConnectionDeconfigure(_Task): service = self._task_executor.get_service(connection.service_id) errors = [] service_handler_settings = {} - + service_handlers = self._task_executor.get_service_handlers(connection, service, **service_handler_settings) for _, (service_handler, connection_devices) in service_handlers.items(): - endpointids_to_delete = endpointids_to_raw(connection.path_hops_endpoint_ids) connection_uuid = connection.connection_id.connection_uuid.uuid if self._has_media_channel: - if isinstance(service_handler,OpenROADMServiceHandler):is_media_channel=True - else : is_media_channel = service_handler.check_media_channel(connection_uuid) + if isinstance(service_handler, SUPPORTED_HANDLERS): + is_media_channel = True + else: + is_media_channel = service_handler.check_media_channel(connection_uuid) if is_media_channel: results_deleteendpoint = service_handler.DeleteEndpoint(endpointids_to_delete, connection_uuid=connection_uuid) errors = check_errors_deleteendpoint(endpointids_to_delete, results_deleteendpoint) -- GitLab