All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto Maven / Gradle / Ivy

There is a newer version: 2.0.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: routing.proto

package com.tencent.polaris.specification.api.v1.traffic.manage;

public final class RoutingProto {
  private RoutingProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code v1.RoutingPolicy}
   */
  public enum RoutingPolicy
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * 
     * Route by rule rule => RuleRoutingConfig
     * 
* * RulePolicy = 0; */ RulePolicy(0), /** *
     * Route by destination metadata ==> MetadataRoutingConfig
     * 
* * MetadataPolicy = 1; */ MetadataPolicy(1), UNRECOGNIZED(-1), ; /** *
     * Route by rule rule => RuleRoutingConfig
     * 
* * RulePolicy = 0; */ public static final int RulePolicy_VALUE = 0; /** *
     * Route by destination metadata ==> MetadataRoutingConfig
     * 
* * MetadataPolicy = 1; */ public static final int MetadataPolicy_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RoutingPolicy valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static RoutingPolicy forNumber(int value) { switch (value) { case 0: return RulePolicy; case 1: return MetadataPolicy; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< RoutingPolicy> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RoutingPolicy findValueByNumber(int number) { return RoutingPolicy.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.getDescriptor().getEnumTypes().get(0); } private static final RoutingPolicy[] VALUES = values(); public static RoutingPolicy valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private RoutingPolicy(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:v1.RoutingPolicy) } public interface RoutingOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.Routing) com.google.protobuf.MessageOrBuilder { /** * .google.protobuf.StringValue service = 1; * @return Whether the service field is set. */ boolean hasService(); /** * .google.protobuf.StringValue service = 1; * @return The service. */ com.google.protobuf.StringValue getService(); /** * .google.protobuf.StringValue service = 1; */ com.google.protobuf.StringValueOrBuilder getServiceOrBuilder(); /** * .google.protobuf.StringValue namespace = 2; * @return Whether the namespace field is set. */ boolean hasNamespace(); /** * .google.protobuf.StringValue namespace = 2; * @return The namespace. */ com.google.protobuf.StringValue getNamespace(); /** * .google.protobuf.StringValue namespace = 2; */ com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder(); /** *
     * 每个服务可以配置多条入站或者出站规则
     * 对于每个请求,从上到下依次匹配,若命中则终止
     * 
* * repeated .v1.Route inbounds = 3; */ java.util.List getInboundsList(); /** *
     * 每个服务可以配置多条入站或者出站规则
     * 对于每个请求,从上到下依次匹配,若命中则终止
     * 
* * repeated .v1.Route inbounds = 3; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route getInbounds(int index); /** *
     * 每个服务可以配置多条入站或者出站规则
     * 对于每个请求,从上到下依次匹配,若命中则终止
     * 
* * repeated .v1.Route inbounds = 3; */ int getInboundsCount(); /** *
     * 每个服务可以配置多条入站或者出站规则
     * 对于每个请求,从上到下依次匹配,若命中则终止
     * 
* * repeated .v1.Route inbounds = 3; */ java.util.List getInboundsOrBuilderList(); /** *
     * 每个服务可以配置多条入站或者出站规则
     * 对于每个请求,从上到下依次匹配,若命中则终止
     * 
* * repeated .v1.Route inbounds = 3; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteOrBuilder getInboundsOrBuilder( int index); /** * repeated .v1.Route outbounds = 4; */ java.util.List getOutboundsList(); /** * repeated .v1.Route outbounds = 4; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route getOutbounds(int index); /** * repeated .v1.Route outbounds = 4; */ int getOutboundsCount(); /** * repeated .v1.Route outbounds = 4; */ java.util.List getOutboundsOrBuilderList(); /** * repeated .v1.Route outbounds = 4; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteOrBuilder getOutboundsOrBuilder( int index); /** * .google.protobuf.StringValue ctime = 5; * @return Whether the ctime field is set. */ boolean hasCtime(); /** * .google.protobuf.StringValue ctime = 5; * @return The ctime. */ com.google.protobuf.StringValue getCtime(); /** * .google.protobuf.StringValue ctime = 5; */ com.google.protobuf.StringValueOrBuilder getCtimeOrBuilder(); /** * .google.protobuf.StringValue mtime = 6; * @return Whether the mtime field is set. */ boolean hasMtime(); /** * .google.protobuf.StringValue mtime = 6; * @return The mtime. */ com.google.protobuf.StringValue getMtime(); /** * .google.protobuf.StringValue mtime = 6; */ com.google.protobuf.StringValueOrBuilder getMtimeOrBuilder(); /** * .google.protobuf.StringValue revision = 7; * @return Whether the revision field is set. */ boolean hasRevision(); /** * .google.protobuf.StringValue revision = 7; * @return The revision. */ com.google.protobuf.StringValue getRevision(); /** * .google.protobuf.StringValue revision = 7; */ com.google.protobuf.StringValueOrBuilder getRevisionOrBuilder(); /** * .google.protobuf.StringValue service_token = 8 [json_name = "service_token"]; * @return Whether the serviceToken field is set. */ boolean hasServiceToken(); /** * .google.protobuf.StringValue service_token = 8 [json_name = "service_token"]; * @return The serviceToken. */ com.google.protobuf.StringValue getServiceToken(); /** * .google.protobuf.StringValue service_token = 8 [json_name = "service_token"]; */ com.google.protobuf.StringValueOrBuilder getServiceTokenOrBuilder(); /** *
     * route rules for current service
     * 
* * repeated .v1.RouteRule rules = 21; */ java.util.List getRulesList(); /** *
     * route rules for current service
     * 
* * repeated .v1.RouteRule rules = 21; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule getRules(int index); /** *
     * route rules for current service
     * 
* * repeated .v1.RouteRule rules = 21; */ int getRulesCount(); /** *
     * route rules for current service
     * 
* * repeated .v1.RouteRule rules = 21; */ java.util.List getRulesOrBuilderList(); /** *
     * route rules for current service
     * 
* * repeated .v1.RouteRule rules = 21; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRuleOrBuilder getRulesOrBuilder( int index); } /** *
   * 规则所属服务以及命名空间
   * 
* * Protobuf type {@code v1.Routing} */ public static final class Routing extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.Routing) RoutingOrBuilder { private static final long serialVersionUID = 0L; // Use Routing.newBuilder() to construct. private Routing(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Routing() { inbounds_ = java.util.Collections.emptyList(); outbounds_ = java.util.Collections.emptyList(); rules_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Routing(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Routing_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Routing_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder.class); } public static final int SERVICE_FIELD_NUMBER = 1; private com.google.protobuf.StringValue service_; /** * .google.protobuf.StringValue service = 1; * @return Whether the service field is set. */ @java.lang.Override public boolean hasService() { return service_ != null; } /** * .google.protobuf.StringValue service = 1; * @return The service. */ @java.lang.Override public com.google.protobuf.StringValue getService() { return service_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : service_; } /** * .google.protobuf.StringValue service = 1; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getServiceOrBuilder() { return getService(); } public static final int NAMESPACE_FIELD_NUMBER = 2; private com.google.protobuf.StringValue namespace_; /** * .google.protobuf.StringValue namespace = 2; * @return Whether the namespace field is set. */ @java.lang.Override public boolean hasNamespace() { return namespace_ != null; } /** * .google.protobuf.StringValue namespace = 2; * @return The namespace. */ @java.lang.Override public com.google.protobuf.StringValue getNamespace() { return namespace_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : namespace_; } /** * .google.protobuf.StringValue namespace = 2; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder() { return getNamespace(); } public static final int INBOUNDS_FIELD_NUMBER = 3; private java.util.List inbounds_; /** *
     * 每个服务可以配置多条入站或者出站规则
     * 对于每个请求,从上到下依次匹配,若命中则终止
     * 
* * repeated .v1.Route inbounds = 3; */ @java.lang.Override public java.util.List getInboundsList() { return inbounds_; } /** *
     * 每个服务可以配置多条入站或者出站规则
     * 对于每个请求,从上到下依次匹配,若命中则终止
     * 
* * repeated .v1.Route inbounds = 3; */ @java.lang.Override public java.util.List getInboundsOrBuilderList() { return inbounds_; } /** *
     * 每个服务可以配置多条入站或者出站规则
     * 对于每个请求,从上到下依次匹配,若命中则终止
     * 
* * repeated .v1.Route inbounds = 3; */ @java.lang.Override public int getInboundsCount() { return inbounds_.size(); } /** *
     * 每个服务可以配置多条入站或者出站规则
     * 对于每个请求,从上到下依次匹配,若命中则终止
     * 
* * repeated .v1.Route inbounds = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route getInbounds(int index) { return inbounds_.get(index); } /** *
     * 每个服务可以配置多条入站或者出站规则
     * 对于每个请求,从上到下依次匹配,若命中则终止
     * 
* * repeated .v1.Route inbounds = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteOrBuilder getInboundsOrBuilder( int index) { return inbounds_.get(index); } public static final int OUTBOUNDS_FIELD_NUMBER = 4; private java.util.List outbounds_; /** * repeated .v1.Route outbounds = 4; */ @java.lang.Override public java.util.List getOutboundsList() { return outbounds_; } /** * repeated .v1.Route outbounds = 4; */ @java.lang.Override public java.util.List getOutboundsOrBuilderList() { return outbounds_; } /** * repeated .v1.Route outbounds = 4; */ @java.lang.Override public int getOutboundsCount() { return outbounds_.size(); } /** * repeated .v1.Route outbounds = 4; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route getOutbounds(int index) { return outbounds_.get(index); } /** * repeated .v1.Route outbounds = 4; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteOrBuilder getOutboundsOrBuilder( int index) { return outbounds_.get(index); } public static final int CTIME_FIELD_NUMBER = 5; private com.google.protobuf.StringValue ctime_; /** * .google.protobuf.StringValue ctime = 5; * @return Whether the ctime field is set. */ @java.lang.Override public boolean hasCtime() { return ctime_ != null; } /** * .google.protobuf.StringValue ctime = 5; * @return The ctime. */ @java.lang.Override public com.google.protobuf.StringValue getCtime() { return ctime_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : ctime_; } /** * .google.protobuf.StringValue ctime = 5; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getCtimeOrBuilder() { return getCtime(); } public static final int MTIME_FIELD_NUMBER = 6; private com.google.protobuf.StringValue mtime_; /** * .google.protobuf.StringValue mtime = 6; * @return Whether the mtime field is set. */ @java.lang.Override public boolean hasMtime() { return mtime_ != null; } /** * .google.protobuf.StringValue mtime = 6; * @return The mtime. */ @java.lang.Override public com.google.protobuf.StringValue getMtime() { return mtime_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : mtime_; } /** * .google.protobuf.StringValue mtime = 6; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getMtimeOrBuilder() { return getMtime(); } public static final int REVISION_FIELD_NUMBER = 7; private com.google.protobuf.StringValue revision_; /** * .google.protobuf.StringValue revision = 7; * @return Whether the revision field is set. */ @java.lang.Override public boolean hasRevision() { return revision_ != null; } /** * .google.protobuf.StringValue revision = 7; * @return The revision. */ @java.lang.Override public com.google.protobuf.StringValue getRevision() { return revision_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : revision_; } /** * .google.protobuf.StringValue revision = 7; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getRevisionOrBuilder() { return getRevision(); } public static final int SERVICE_TOKEN_FIELD_NUMBER = 8; private com.google.protobuf.StringValue serviceToken_; /** * .google.protobuf.StringValue service_token = 8 [json_name = "service_token"]; * @return Whether the serviceToken field is set. */ @java.lang.Override public boolean hasServiceToken() { return serviceToken_ != null; } /** * .google.protobuf.StringValue service_token = 8 [json_name = "service_token"]; * @return The serviceToken. */ @java.lang.Override public com.google.protobuf.StringValue getServiceToken() { return serviceToken_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : serviceToken_; } /** * .google.protobuf.StringValue service_token = 8 [json_name = "service_token"]; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getServiceTokenOrBuilder() { return getServiceToken(); } public static final int RULES_FIELD_NUMBER = 21; private java.util.List rules_; /** *
     * route rules for current service
     * 
* * repeated .v1.RouteRule rules = 21; */ @java.lang.Override public java.util.List getRulesList() { return rules_; } /** *
     * route rules for current service
     * 
* * repeated .v1.RouteRule rules = 21; */ @java.lang.Override public java.util.List getRulesOrBuilderList() { return rules_; } /** *
     * route rules for current service
     * 
* * repeated .v1.RouteRule rules = 21; */ @java.lang.Override public int getRulesCount() { return rules_.size(); } /** *
     * route rules for current service
     * 
* * repeated .v1.RouteRule rules = 21; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule getRules(int index) { return rules_.get(index); } /** *
     * route rules for current service
     * 
* * repeated .v1.RouteRule rules = 21; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRuleOrBuilder getRulesOrBuilder( int index) { return rules_.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 (service_ != null) { output.writeMessage(1, getService()); } if (namespace_ != null) { output.writeMessage(2, getNamespace()); } for (int i = 0; i < inbounds_.size(); i++) { output.writeMessage(3, inbounds_.get(i)); } for (int i = 0; i < outbounds_.size(); i++) { output.writeMessage(4, outbounds_.get(i)); } if (ctime_ != null) { output.writeMessage(5, getCtime()); } if (mtime_ != null) { output.writeMessage(6, getMtime()); } if (revision_ != null) { output.writeMessage(7, getRevision()); } if (serviceToken_ != null) { output.writeMessage(8, getServiceToken()); } for (int i = 0; i < rules_.size(); i++) { output.writeMessage(21, rules_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (service_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getService()); } if (namespace_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getNamespace()); } for (int i = 0; i < inbounds_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, inbounds_.get(i)); } for (int i = 0; i < outbounds_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, outbounds_.get(i)); } if (ctime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getCtime()); } if (mtime_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getMtime()); } if (revision_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getRevision()); } if (serviceToken_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getServiceToken()); } for (int i = 0; i < rules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, rules_.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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing other = (com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing) obj; if (hasService() != other.hasService()) return false; if (hasService()) { if (!getService() .equals(other.getService())) return false; } if (hasNamespace() != other.hasNamespace()) return false; if (hasNamespace()) { if (!getNamespace() .equals(other.getNamespace())) return false; } if (!getInboundsList() .equals(other.getInboundsList())) return false; if (!getOutboundsList() .equals(other.getOutboundsList())) return false; if (hasCtime() != other.hasCtime()) return false; if (hasCtime()) { if (!getCtime() .equals(other.getCtime())) return false; } if (hasMtime() != other.hasMtime()) return false; if (hasMtime()) { if (!getMtime() .equals(other.getMtime())) return false; } if (hasRevision() != other.hasRevision()) return false; if (hasRevision()) { if (!getRevision() .equals(other.getRevision())) return false; } if (hasServiceToken() != other.hasServiceToken()) return false; if (hasServiceToken()) { if (!getServiceToken() .equals(other.getServiceToken())) return false; } if (!getRulesList() .equals(other.getRulesList())) 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 (hasService()) { hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); } if (hasNamespace()) { hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); } if (getInboundsCount() > 0) { hash = (37 * hash) + INBOUNDS_FIELD_NUMBER; hash = (53 * hash) + getInboundsList().hashCode(); } if (getOutboundsCount() > 0) { hash = (37 * hash) + OUTBOUNDS_FIELD_NUMBER; hash = (53 * hash) + getOutboundsList().hashCode(); } if (hasCtime()) { hash = (37 * hash) + CTIME_FIELD_NUMBER; hash = (53 * hash) + getCtime().hashCode(); } if (hasMtime()) { hash = (37 * hash) + MTIME_FIELD_NUMBER; hash = (53 * hash) + getMtime().hashCode(); } if (hasRevision()) { hash = (37 * hash) + REVISION_FIELD_NUMBER; hash = (53 * hash) + getRevision().hashCode(); } if (hasServiceToken()) { hash = (37 * hash) + SERVICE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getServiceToken().hashCode(); } if (getRulesCount() > 0) { hash = (37 * hash) + RULES_FIELD_NUMBER; hash = (53 * hash) + getRulesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing 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(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing 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 v1.Routing} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.Routing) com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Routing_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Routing_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (serviceBuilder_ == null) { service_ = null; } else { service_ = null; serviceBuilder_ = null; } if (namespaceBuilder_ == null) { namespace_ = null; } else { namespace_ = null; namespaceBuilder_ = null; } if (inboundsBuilder_ == null) { inbounds_ = java.util.Collections.emptyList(); } else { inbounds_ = null; inboundsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (outboundsBuilder_ == null) { outbounds_ = java.util.Collections.emptyList(); } else { outbounds_ = null; outboundsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (ctimeBuilder_ == null) { ctime_ = null; } else { ctime_ = null; ctimeBuilder_ = null; } if (mtimeBuilder_ == null) { mtime_ = null; } else { mtime_ = null; mtimeBuilder_ = null; } if (revisionBuilder_ == null) { revision_ = null; } else { revision_ = null; revisionBuilder_ = null; } if (serviceTokenBuilder_ == null) { serviceToken_ = null; } else { serviceToken_ = null; serviceTokenBuilder_ = null; } if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); } else { rules_ = null; rulesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Routing_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing build() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing result = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing(this); int from_bitField0_ = bitField0_; if (serviceBuilder_ == null) { result.service_ = service_; } else { result.service_ = serviceBuilder_.build(); } if (namespaceBuilder_ == null) { result.namespace_ = namespace_; } else { result.namespace_ = namespaceBuilder_.build(); } if (inboundsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { inbounds_ = java.util.Collections.unmodifiableList(inbounds_); bitField0_ = (bitField0_ & ~0x00000001); } result.inbounds_ = inbounds_; } else { result.inbounds_ = inboundsBuilder_.build(); } if (outboundsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { outbounds_ = java.util.Collections.unmodifiableList(outbounds_); bitField0_ = (bitField0_ & ~0x00000002); } result.outbounds_ = outbounds_; } else { result.outbounds_ = outboundsBuilder_.build(); } if (ctimeBuilder_ == null) { result.ctime_ = ctime_; } else { result.ctime_ = ctimeBuilder_.build(); } if (mtimeBuilder_ == null) { result.mtime_ = mtime_; } else { result.mtime_ = mtimeBuilder_.build(); } if (revisionBuilder_ == null) { result.revision_ = revision_; } else { result.revision_ = revisionBuilder_.build(); } if (serviceTokenBuilder_ == null) { result.serviceToken_ = serviceToken_; } else { result.serviceToken_ = serviceTokenBuilder_.build(); } if (rulesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { rules_ = java.util.Collections.unmodifiableList(rules_); bitField0_ = (bitField0_ & ~0x00000004); } result.rules_ = rules_; } else { result.rules_ = rulesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing.getDefaultInstance()) return this; if (other.hasService()) { mergeService(other.getService()); } if (other.hasNamespace()) { mergeNamespace(other.getNamespace()); } if (inboundsBuilder_ == null) { if (!other.inbounds_.isEmpty()) { if (inbounds_.isEmpty()) { inbounds_ = other.inbounds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInboundsIsMutable(); inbounds_.addAll(other.inbounds_); } onChanged(); } } else { if (!other.inbounds_.isEmpty()) { if (inboundsBuilder_.isEmpty()) { inboundsBuilder_.dispose(); inboundsBuilder_ = null; inbounds_ = other.inbounds_; bitField0_ = (bitField0_ & ~0x00000001); inboundsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getInboundsFieldBuilder() : null; } else { inboundsBuilder_.addAllMessages(other.inbounds_); } } } if (outboundsBuilder_ == null) { if (!other.outbounds_.isEmpty()) { if (outbounds_.isEmpty()) { outbounds_ = other.outbounds_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureOutboundsIsMutable(); outbounds_.addAll(other.outbounds_); } onChanged(); } } else { if (!other.outbounds_.isEmpty()) { if (outboundsBuilder_.isEmpty()) { outboundsBuilder_.dispose(); outboundsBuilder_ = null; outbounds_ = other.outbounds_; bitField0_ = (bitField0_ & ~0x00000002); outboundsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOutboundsFieldBuilder() : null; } else { outboundsBuilder_.addAllMessages(other.outbounds_); } } } if (other.hasCtime()) { mergeCtime(other.getCtime()); } if (other.hasMtime()) { mergeMtime(other.getMtime()); } if (other.hasRevision()) { mergeRevision(other.getRevision()); } if (other.hasServiceToken()) { mergeServiceToken(other.getServiceToken()); } if (rulesBuilder_ == null) { if (!other.rules_.isEmpty()) { if (rules_.isEmpty()) { rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRulesIsMutable(); rules_.addAll(other.rules_); } onChanged(); } } else { if (!other.rules_.isEmpty()) { if (rulesBuilder_.isEmpty()) { rulesBuilder_.dispose(); rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000004); rulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRulesFieldBuilder() : null; } else { rulesBuilder_.addAllMessages(other.rules_); } } } 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( getServiceFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getNamespaceFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 26: { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route m = input.readMessage( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.parser(), extensionRegistry); if (inboundsBuilder_ == null) { ensureInboundsIsMutable(); inbounds_.add(m); } else { inboundsBuilder_.addMessage(m); } break; } // case 26 case 34: { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route m = input.readMessage( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.parser(), extensionRegistry); if (outboundsBuilder_ == null) { ensureOutboundsIsMutable(); outbounds_.add(m); } else { outboundsBuilder_.addMessage(m); } break; } // case 34 case 42: { input.readMessage( getCtimeFieldBuilder().getBuilder(), extensionRegistry); break; } // case 42 case 50: { input.readMessage( getMtimeFieldBuilder().getBuilder(), extensionRegistry); break; } // case 50 case 58: { input.readMessage( getRevisionFieldBuilder().getBuilder(), extensionRegistry); break; } // case 58 case 66: { input.readMessage( getServiceTokenFieldBuilder().getBuilder(), extensionRegistry); break; } // case 66 case 170: { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule m = input.readMessage( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.parser(), extensionRegistry); if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(m); } else { rulesBuilder_.addMessage(m); } break; } // case 170 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.StringValue service_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> serviceBuilder_; /** * .google.protobuf.StringValue service = 1; * @return Whether the service field is set. */ public boolean hasService() { return serviceBuilder_ != null || service_ != null; } /** * .google.protobuf.StringValue service = 1; * @return The service. */ public com.google.protobuf.StringValue getService() { if (serviceBuilder_ == null) { return service_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : service_; } else { return serviceBuilder_.getMessage(); } } /** * .google.protobuf.StringValue service = 1; */ public Builder setService(com.google.protobuf.StringValue value) { if (serviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } service_ = value; onChanged(); } else { serviceBuilder_.setMessage(value); } return this; } /** * .google.protobuf.StringValue service = 1; */ public Builder setService( com.google.protobuf.StringValue.Builder builderForValue) { if (serviceBuilder_ == null) { service_ = builderForValue.build(); onChanged(); } else { serviceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.StringValue service = 1; */ public Builder mergeService(com.google.protobuf.StringValue value) { if (serviceBuilder_ == null) { if (service_ != null) { service_ = com.google.protobuf.StringValue.newBuilder(service_).mergeFrom(value).buildPartial(); } else { service_ = value; } onChanged(); } else { serviceBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.StringValue service = 1; */ public Builder clearService() { if (serviceBuilder_ == null) { service_ = null; onChanged(); } else { service_ = null; serviceBuilder_ = null; } return this; } /** * .google.protobuf.StringValue service = 1; */ public com.google.protobuf.StringValue.Builder getServiceBuilder() { onChanged(); return getServiceFieldBuilder().getBuilder(); } /** * .google.protobuf.StringValue service = 1; */ public com.google.protobuf.StringValueOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { return service_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : service_; } } /** * .google.protobuf.StringValue service = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getService(), getParentForChildren(), isClean()); service_ = null; } return serviceBuilder_; } private com.google.protobuf.StringValue namespace_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> namespaceBuilder_; /** * .google.protobuf.StringValue namespace = 2; * @return Whether the namespace field is set. */ public boolean hasNamespace() { return namespaceBuilder_ != null || namespace_ != null; } /** * .google.protobuf.StringValue namespace = 2; * @return The namespace. */ public com.google.protobuf.StringValue getNamespace() { if (namespaceBuilder_ == null) { return namespace_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : namespace_; } else { return namespaceBuilder_.getMessage(); } } /** * .google.protobuf.StringValue namespace = 2; */ public Builder setNamespace(com.google.protobuf.StringValue value) { if (namespaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); } else { namespaceBuilder_.setMessage(value); } return this; } /** * .google.protobuf.StringValue namespace = 2; */ public Builder setNamespace( com.google.protobuf.StringValue.Builder builderForValue) { if (namespaceBuilder_ == null) { namespace_ = builderForValue.build(); onChanged(); } else { namespaceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.StringValue namespace = 2; */ public Builder mergeNamespace(com.google.protobuf.StringValue value) { if (namespaceBuilder_ == null) { if (namespace_ != null) { namespace_ = com.google.protobuf.StringValue.newBuilder(namespace_).mergeFrom(value).buildPartial(); } else { namespace_ = value; } onChanged(); } else { namespaceBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.StringValue namespace = 2; */ public Builder clearNamespace() { if (namespaceBuilder_ == null) { namespace_ = null; onChanged(); } else { namespace_ = null; namespaceBuilder_ = null; } return this; } /** * .google.protobuf.StringValue namespace = 2; */ public com.google.protobuf.StringValue.Builder getNamespaceBuilder() { onChanged(); return getNamespaceFieldBuilder().getBuilder(); } /** * .google.protobuf.StringValue namespace = 2; */ public com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder() { if (namespaceBuilder_ != null) { return namespaceBuilder_.getMessageOrBuilder(); } else { return namespace_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : namespace_; } } /** * .google.protobuf.StringValue namespace = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getNamespaceFieldBuilder() { if (namespaceBuilder_ == null) { namespaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getNamespace(), getParentForChildren(), isClean()); namespace_ = null; } return namespaceBuilder_; } private java.util.List inbounds_ = java.util.Collections.emptyList(); private void ensureInboundsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { inbounds_ = new java.util.ArrayList(inbounds_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteOrBuilder> inboundsBuilder_; /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public java.util.List getInboundsList() { if (inboundsBuilder_ == null) { return java.util.Collections.unmodifiableList(inbounds_); } else { return inboundsBuilder_.getMessageList(); } } /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public int getInboundsCount() { if (inboundsBuilder_ == null) { return inbounds_.size(); } else { return inboundsBuilder_.getCount(); } } /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route getInbounds(int index) { if (inboundsBuilder_ == null) { return inbounds_.get(index); } else { return inboundsBuilder_.getMessage(index); } } /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public Builder setInbounds( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route value) { if (inboundsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInboundsIsMutable(); inbounds_.set(index, value); onChanged(); } else { inboundsBuilder_.setMessage(index, value); } return this; } /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public Builder setInbounds( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder builderForValue) { if (inboundsBuilder_ == null) { ensureInboundsIsMutable(); inbounds_.set(index, builderForValue.build()); onChanged(); } else { inboundsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public Builder addInbounds(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route value) { if (inboundsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInboundsIsMutable(); inbounds_.add(value); onChanged(); } else { inboundsBuilder_.addMessage(value); } return this; } /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public Builder addInbounds( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route value) { if (inboundsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureInboundsIsMutable(); inbounds_.add(index, value); onChanged(); } else { inboundsBuilder_.addMessage(index, value); } return this; } /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public Builder addInbounds( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder builderForValue) { if (inboundsBuilder_ == null) { ensureInboundsIsMutable(); inbounds_.add(builderForValue.build()); onChanged(); } else { inboundsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public Builder addInbounds( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder builderForValue) { if (inboundsBuilder_ == null) { ensureInboundsIsMutable(); inbounds_.add(index, builderForValue.build()); onChanged(); } else { inboundsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public Builder addAllInbounds( java.lang.Iterable values) { if (inboundsBuilder_ == null) { ensureInboundsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, inbounds_); onChanged(); } else { inboundsBuilder_.addAllMessages(values); } return this; } /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public Builder clearInbounds() { if (inboundsBuilder_ == null) { inbounds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { inboundsBuilder_.clear(); } return this; } /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public Builder removeInbounds(int index) { if (inboundsBuilder_ == null) { ensureInboundsIsMutable(); inbounds_.remove(index); onChanged(); } else { inboundsBuilder_.remove(index); } return this; } /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder getInboundsBuilder( int index) { return getInboundsFieldBuilder().getBuilder(index); } /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteOrBuilder getInboundsOrBuilder( int index) { if (inboundsBuilder_ == null) { return inbounds_.get(index); } else { return inboundsBuilder_.getMessageOrBuilder(index); } } /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public java.util.List getInboundsOrBuilderList() { if (inboundsBuilder_ != null) { return inboundsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(inbounds_); } } /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder addInboundsBuilder() { return getInboundsFieldBuilder().addBuilder( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.getDefaultInstance()); } /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder addInboundsBuilder( int index) { return getInboundsFieldBuilder().addBuilder( index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.getDefaultInstance()); } /** *
       * 每个服务可以配置多条入站或者出站规则
       * 对于每个请求,从上到下依次匹配,若命中则终止
       * 
* * repeated .v1.Route inbounds = 3; */ public java.util.List getInboundsBuilderList() { return getInboundsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteOrBuilder> getInboundsFieldBuilder() { if (inboundsBuilder_ == null) { inboundsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteOrBuilder>( inbounds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); inbounds_ = null; } return inboundsBuilder_; } private java.util.List outbounds_ = java.util.Collections.emptyList(); private void ensureOutboundsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { outbounds_ = new java.util.ArrayList(outbounds_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteOrBuilder> outboundsBuilder_; /** * repeated .v1.Route outbounds = 4; */ public java.util.List getOutboundsList() { if (outboundsBuilder_ == null) { return java.util.Collections.unmodifiableList(outbounds_); } else { return outboundsBuilder_.getMessageList(); } } /** * repeated .v1.Route outbounds = 4; */ public int getOutboundsCount() { if (outboundsBuilder_ == null) { return outbounds_.size(); } else { return outboundsBuilder_.getCount(); } } /** * repeated .v1.Route outbounds = 4; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route getOutbounds(int index) { if (outboundsBuilder_ == null) { return outbounds_.get(index); } else { return outboundsBuilder_.getMessage(index); } } /** * repeated .v1.Route outbounds = 4; */ public Builder setOutbounds( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route value) { if (outboundsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutboundsIsMutable(); outbounds_.set(index, value); onChanged(); } else { outboundsBuilder_.setMessage(index, value); } return this; } /** * repeated .v1.Route outbounds = 4; */ public Builder setOutbounds( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder builderForValue) { if (outboundsBuilder_ == null) { ensureOutboundsIsMutable(); outbounds_.set(index, builderForValue.build()); onChanged(); } else { outboundsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .v1.Route outbounds = 4; */ public Builder addOutbounds(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route value) { if (outboundsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutboundsIsMutable(); outbounds_.add(value); onChanged(); } else { outboundsBuilder_.addMessage(value); } return this; } /** * repeated .v1.Route outbounds = 4; */ public Builder addOutbounds( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route value) { if (outboundsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOutboundsIsMutable(); outbounds_.add(index, value); onChanged(); } else { outboundsBuilder_.addMessage(index, value); } return this; } /** * repeated .v1.Route outbounds = 4; */ public Builder addOutbounds( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder builderForValue) { if (outboundsBuilder_ == null) { ensureOutboundsIsMutable(); outbounds_.add(builderForValue.build()); onChanged(); } else { outboundsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .v1.Route outbounds = 4; */ public Builder addOutbounds( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder builderForValue) { if (outboundsBuilder_ == null) { ensureOutboundsIsMutable(); outbounds_.add(index, builderForValue.build()); onChanged(); } else { outboundsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .v1.Route outbounds = 4; */ public Builder addAllOutbounds( java.lang.Iterable values) { if (outboundsBuilder_ == null) { ensureOutboundsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, outbounds_); onChanged(); } else { outboundsBuilder_.addAllMessages(values); } return this; } /** * repeated .v1.Route outbounds = 4; */ public Builder clearOutbounds() { if (outboundsBuilder_ == null) { outbounds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { outboundsBuilder_.clear(); } return this; } /** * repeated .v1.Route outbounds = 4; */ public Builder removeOutbounds(int index) { if (outboundsBuilder_ == null) { ensureOutboundsIsMutable(); outbounds_.remove(index); onChanged(); } else { outboundsBuilder_.remove(index); } return this; } /** * repeated .v1.Route outbounds = 4; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder getOutboundsBuilder( int index) { return getOutboundsFieldBuilder().getBuilder(index); } /** * repeated .v1.Route outbounds = 4; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteOrBuilder getOutboundsOrBuilder( int index) { if (outboundsBuilder_ == null) { return outbounds_.get(index); } else { return outboundsBuilder_.getMessageOrBuilder(index); } } /** * repeated .v1.Route outbounds = 4; */ public java.util.List getOutboundsOrBuilderList() { if (outboundsBuilder_ != null) { return outboundsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(outbounds_); } } /** * repeated .v1.Route outbounds = 4; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder addOutboundsBuilder() { return getOutboundsFieldBuilder().addBuilder( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.getDefaultInstance()); } /** * repeated .v1.Route outbounds = 4; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder addOutboundsBuilder( int index) { return getOutboundsFieldBuilder().addBuilder( index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.getDefaultInstance()); } /** * repeated .v1.Route outbounds = 4; */ public java.util.List getOutboundsBuilderList() { return getOutboundsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteOrBuilder> getOutboundsFieldBuilder() { if (outboundsBuilder_ == null) { outboundsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteOrBuilder>( outbounds_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); outbounds_ = null; } return outboundsBuilder_; } private com.google.protobuf.StringValue ctime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> ctimeBuilder_; /** * .google.protobuf.StringValue ctime = 5; * @return Whether the ctime field is set. */ public boolean hasCtime() { return ctimeBuilder_ != null || ctime_ != null; } /** * .google.protobuf.StringValue ctime = 5; * @return The ctime. */ public com.google.protobuf.StringValue getCtime() { if (ctimeBuilder_ == null) { return ctime_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : ctime_; } else { return ctimeBuilder_.getMessage(); } } /** * .google.protobuf.StringValue ctime = 5; */ public Builder setCtime(com.google.protobuf.StringValue value) { if (ctimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ctime_ = value; onChanged(); } else { ctimeBuilder_.setMessage(value); } return this; } /** * .google.protobuf.StringValue ctime = 5; */ public Builder setCtime( com.google.protobuf.StringValue.Builder builderForValue) { if (ctimeBuilder_ == null) { ctime_ = builderForValue.build(); onChanged(); } else { ctimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.StringValue ctime = 5; */ public Builder mergeCtime(com.google.protobuf.StringValue value) { if (ctimeBuilder_ == null) { if (ctime_ != null) { ctime_ = com.google.protobuf.StringValue.newBuilder(ctime_).mergeFrom(value).buildPartial(); } else { ctime_ = value; } onChanged(); } else { ctimeBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.StringValue ctime = 5; */ public Builder clearCtime() { if (ctimeBuilder_ == null) { ctime_ = null; onChanged(); } else { ctime_ = null; ctimeBuilder_ = null; } return this; } /** * .google.protobuf.StringValue ctime = 5; */ public com.google.protobuf.StringValue.Builder getCtimeBuilder() { onChanged(); return getCtimeFieldBuilder().getBuilder(); } /** * .google.protobuf.StringValue ctime = 5; */ public com.google.protobuf.StringValueOrBuilder getCtimeOrBuilder() { if (ctimeBuilder_ != null) { return ctimeBuilder_.getMessageOrBuilder(); } else { return ctime_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : ctime_; } } /** * .google.protobuf.StringValue ctime = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getCtimeFieldBuilder() { if (ctimeBuilder_ == null) { ctimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getCtime(), getParentForChildren(), isClean()); ctime_ = null; } return ctimeBuilder_; } private com.google.protobuf.StringValue mtime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> mtimeBuilder_; /** * .google.protobuf.StringValue mtime = 6; * @return Whether the mtime field is set. */ public boolean hasMtime() { return mtimeBuilder_ != null || mtime_ != null; } /** * .google.protobuf.StringValue mtime = 6; * @return The mtime. */ public com.google.protobuf.StringValue getMtime() { if (mtimeBuilder_ == null) { return mtime_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : mtime_; } else { return mtimeBuilder_.getMessage(); } } /** * .google.protobuf.StringValue mtime = 6; */ public Builder setMtime(com.google.protobuf.StringValue value) { if (mtimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mtime_ = value; onChanged(); } else { mtimeBuilder_.setMessage(value); } return this; } /** * .google.protobuf.StringValue mtime = 6; */ public Builder setMtime( com.google.protobuf.StringValue.Builder builderForValue) { if (mtimeBuilder_ == null) { mtime_ = builderForValue.build(); onChanged(); } else { mtimeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.StringValue mtime = 6; */ public Builder mergeMtime(com.google.protobuf.StringValue value) { if (mtimeBuilder_ == null) { if (mtime_ != null) { mtime_ = com.google.protobuf.StringValue.newBuilder(mtime_).mergeFrom(value).buildPartial(); } else { mtime_ = value; } onChanged(); } else { mtimeBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.StringValue mtime = 6; */ public Builder clearMtime() { if (mtimeBuilder_ == null) { mtime_ = null; onChanged(); } else { mtime_ = null; mtimeBuilder_ = null; } return this; } /** * .google.protobuf.StringValue mtime = 6; */ public com.google.protobuf.StringValue.Builder getMtimeBuilder() { onChanged(); return getMtimeFieldBuilder().getBuilder(); } /** * .google.protobuf.StringValue mtime = 6; */ public com.google.protobuf.StringValueOrBuilder getMtimeOrBuilder() { if (mtimeBuilder_ != null) { return mtimeBuilder_.getMessageOrBuilder(); } else { return mtime_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : mtime_; } } /** * .google.protobuf.StringValue mtime = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getMtimeFieldBuilder() { if (mtimeBuilder_ == null) { mtimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getMtime(), getParentForChildren(), isClean()); mtime_ = null; } return mtimeBuilder_; } private com.google.protobuf.StringValue revision_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> revisionBuilder_; /** * .google.protobuf.StringValue revision = 7; * @return Whether the revision field is set. */ public boolean hasRevision() { return revisionBuilder_ != null || revision_ != null; } /** * .google.protobuf.StringValue revision = 7; * @return The revision. */ public com.google.protobuf.StringValue getRevision() { if (revisionBuilder_ == null) { return revision_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : revision_; } else { return revisionBuilder_.getMessage(); } } /** * .google.protobuf.StringValue revision = 7; */ public Builder setRevision(com.google.protobuf.StringValue value) { if (revisionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } revision_ = value; onChanged(); } else { revisionBuilder_.setMessage(value); } return this; } /** * .google.protobuf.StringValue revision = 7; */ public Builder setRevision( com.google.protobuf.StringValue.Builder builderForValue) { if (revisionBuilder_ == null) { revision_ = builderForValue.build(); onChanged(); } else { revisionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.StringValue revision = 7; */ public Builder mergeRevision(com.google.protobuf.StringValue value) { if (revisionBuilder_ == null) { if (revision_ != null) { revision_ = com.google.protobuf.StringValue.newBuilder(revision_).mergeFrom(value).buildPartial(); } else { revision_ = value; } onChanged(); } else { revisionBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.StringValue revision = 7; */ public Builder clearRevision() { if (revisionBuilder_ == null) { revision_ = null; onChanged(); } else { revision_ = null; revisionBuilder_ = null; } return this; } /** * .google.protobuf.StringValue revision = 7; */ public com.google.protobuf.StringValue.Builder getRevisionBuilder() { onChanged(); return getRevisionFieldBuilder().getBuilder(); } /** * .google.protobuf.StringValue revision = 7; */ public com.google.protobuf.StringValueOrBuilder getRevisionOrBuilder() { if (revisionBuilder_ != null) { return revisionBuilder_.getMessageOrBuilder(); } else { return revision_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : revision_; } } /** * .google.protobuf.StringValue revision = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getRevisionFieldBuilder() { if (revisionBuilder_ == null) { revisionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getRevision(), getParentForChildren(), isClean()); revision_ = null; } return revisionBuilder_; } private com.google.protobuf.StringValue serviceToken_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> serviceTokenBuilder_; /** * .google.protobuf.StringValue service_token = 8 [json_name = "service_token"]; * @return Whether the serviceToken field is set. */ public boolean hasServiceToken() { return serviceTokenBuilder_ != null || serviceToken_ != null; } /** * .google.protobuf.StringValue service_token = 8 [json_name = "service_token"]; * @return The serviceToken. */ public com.google.protobuf.StringValue getServiceToken() { if (serviceTokenBuilder_ == null) { return serviceToken_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : serviceToken_; } else { return serviceTokenBuilder_.getMessage(); } } /** * .google.protobuf.StringValue service_token = 8 [json_name = "service_token"]; */ public Builder setServiceToken(com.google.protobuf.StringValue value) { if (serviceTokenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serviceToken_ = value; onChanged(); } else { serviceTokenBuilder_.setMessage(value); } return this; } /** * .google.protobuf.StringValue service_token = 8 [json_name = "service_token"]; */ public Builder setServiceToken( com.google.protobuf.StringValue.Builder builderForValue) { if (serviceTokenBuilder_ == null) { serviceToken_ = builderForValue.build(); onChanged(); } else { serviceTokenBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.StringValue service_token = 8 [json_name = "service_token"]; */ public Builder mergeServiceToken(com.google.protobuf.StringValue value) { if (serviceTokenBuilder_ == null) { if (serviceToken_ != null) { serviceToken_ = com.google.protobuf.StringValue.newBuilder(serviceToken_).mergeFrom(value).buildPartial(); } else { serviceToken_ = value; } onChanged(); } else { serviceTokenBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.StringValue service_token = 8 [json_name = "service_token"]; */ public Builder clearServiceToken() { if (serviceTokenBuilder_ == null) { serviceToken_ = null; onChanged(); } else { serviceToken_ = null; serviceTokenBuilder_ = null; } return this; } /** * .google.protobuf.StringValue service_token = 8 [json_name = "service_token"]; */ public com.google.protobuf.StringValue.Builder getServiceTokenBuilder() { onChanged(); return getServiceTokenFieldBuilder().getBuilder(); } /** * .google.protobuf.StringValue service_token = 8 [json_name = "service_token"]; */ public com.google.protobuf.StringValueOrBuilder getServiceTokenOrBuilder() { if (serviceTokenBuilder_ != null) { return serviceTokenBuilder_.getMessageOrBuilder(); } else { return serviceToken_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : serviceToken_; } } /** * .google.protobuf.StringValue service_token = 8 [json_name = "service_token"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getServiceTokenFieldBuilder() { if (serviceTokenBuilder_ == null) { serviceTokenBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getServiceToken(), getParentForChildren(), isClean()); serviceToken_ = null; } return serviceTokenBuilder_; } private java.util.List rules_ = java.util.Collections.emptyList(); private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { rules_ = new java.util.ArrayList(rules_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRuleOrBuilder> rulesBuilder_; /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public java.util.List getRulesList() { if (rulesBuilder_ == null) { return java.util.Collections.unmodifiableList(rules_); } else { return rulesBuilder_.getMessageList(); } } /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public int getRulesCount() { if (rulesBuilder_ == null) { return rules_.size(); } else { return rulesBuilder_.getCount(); } } /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule getRules(int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessage(index); } } /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public Builder setRules( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.set(index, value); onChanged(); } else { rulesBuilder_.setMessage(index, value); } return this; } /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public Builder setRules( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.set(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public Builder addRules(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(value); onChanged(); } else { rulesBuilder_.addMessage(value); } return this; } /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public Builder addRules( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(index, value); onChanged(); } else { rulesBuilder_.addMessage(index, value); } return this; } /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public Builder addRules( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public Builder addRules( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public Builder addAllRules( java.lang.Iterable values) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rules_); onChanged(); } else { rulesBuilder_.addAllMessages(values); } return this; } /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public Builder clearRules() { if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { rulesBuilder_.clear(); } return this; } /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public Builder removeRules(int index) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.remove(index); onChanged(); } else { rulesBuilder_.remove(index); } return this; } /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.Builder getRulesBuilder( int index) { return getRulesFieldBuilder().getBuilder(index); } /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRuleOrBuilder getRulesOrBuilder( int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public java.util.List getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rules_); } } /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.Builder addRulesBuilder() { return getRulesFieldBuilder().addBuilder( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.getDefaultInstance()); } /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.Builder addRulesBuilder( int index) { return getRulesFieldBuilder().addBuilder( index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.getDefaultInstance()); } /** *
       * route rules for current service
       * 
* * repeated .v1.RouteRule rules = 21; */ public java.util.List getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRuleOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRuleOrBuilder>( rules_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); rules_ = null; } return rulesBuilder_; } @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:v1.Routing) } // @@protoc_insertion_point(class_scope:v1.Routing) private static final com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Routing 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Routing getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RouteOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.Route) com.google.protobuf.MessageOrBuilder { /** *
     * 如果匹配Source规则,按照Destination路由
     * 多个Source之间的关系为或
     * 
* * repeated .v1.Source sources = 1; */ java.util.List getSourcesList(); /** *
     * 如果匹配Source规则,按照Destination路由
     * 多个Source之间的关系为或
     * 
* * repeated .v1.Source sources = 1; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source getSources(int index); /** *
     * 如果匹配Source规则,按照Destination路由
     * 多个Source之间的关系为或
     * 
* * repeated .v1.Source sources = 1; */ int getSourcesCount(); /** *
     * 如果匹配Source规则,按照Destination路由
     * 多个Source之间的关系为或
     * 
* * repeated .v1.Source sources = 1; */ java.util.List getSourcesOrBuilderList(); /** *
     * 如果匹配Source规则,按照Destination路由
     * 多个Source之间的关系为或
     * 
* * repeated .v1.Source sources = 1; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceOrBuilder getSourcesOrBuilder( int index); /** * repeated .v1.Destination destinations = 2; */ java.util.List getDestinationsList(); /** * repeated .v1.Destination destinations = 2; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination getDestinations(int index); /** * repeated .v1.Destination destinations = 2; */ int getDestinationsCount(); /** * repeated .v1.Destination destinations = 2; */ java.util.List getDestinationsOrBuilderList(); /** * repeated .v1.Destination destinations = 2; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationOrBuilder getDestinationsOrBuilder( int index); /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v2 版本的 id 信息
     * 
* * map<string, string> extendInfo = 3; */ int getExtendInfoCount(); /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v2 版本的 id 信息
     * 
* * map<string, string> extendInfo = 3; */ boolean containsExtendInfo( java.lang.String key); /** * Use {@link #getExtendInfoMap()} instead. */ @java.lang.Deprecated java.util.Map getExtendInfo(); /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v2 版本的 id 信息
     * 
* * map<string, string> extendInfo = 3; */ java.util.Map getExtendInfoMap(); /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v2 版本的 id 信息
     * 
* * map<string, string> extendInfo = 3; */ /* nullable */ java.lang.String getExtendInfoOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v2 版本的 id 信息
     * 
* * map<string, string> extendInfo = 3; */ java.lang.String getExtendInfoOrThrow( java.lang.String key); } /** *
   * deprecated: only for compatible to the old version server
   * 
* * Protobuf type {@code v1.Route} */ public static final class Route extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.Route) RouteOrBuilder { private static final long serialVersionUID = 0L; // Use Route.newBuilder() to construct. private Route(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Route() { sources_ = java.util.Collections.emptyList(); destinations_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Route(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Route_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetExtendInfo(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Route_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder.class); } public static final int SOURCES_FIELD_NUMBER = 1; private java.util.List sources_; /** *
     * 如果匹配Source规则,按照Destination路由
     * 多个Source之间的关系为或
     * 
* * repeated .v1.Source sources = 1; */ @java.lang.Override public java.util.List getSourcesList() { return sources_; } /** *
     * 如果匹配Source规则,按照Destination路由
     * 多个Source之间的关系为或
     * 
* * repeated .v1.Source sources = 1; */ @java.lang.Override public java.util.List getSourcesOrBuilderList() { return sources_; } /** *
     * 如果匹配Source规则,按照Destination路由
     * 多个Source之间的关系为或
     * 
* * repeated .v1.Source sources = 1; */ @java.lang.Override public int getSourcesCount() { return sources_.size(); } /** *
     * 如果匹配Source规则,按照Destination路由
     * 多个Source之间的关系为或
     * 
* * repeated .v1.Source sources = 1; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source getSources(int index) { return sources_.get(index); } /** *
     * 如果匹配Source规则,按照Destination路由
     * 多个Source之间的关系为或
     * 
* * repeated .v1.Source sources = 1; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceOrBuilder getSourcesOrBuilder( int index) { return sources_.get(index); } public static final int DESTINATIONS_FIELD_NUMBER = 2; private java.util.List destinations_; /** * repeated .v1.Destination destinations = 2; */ @java.lang.Override public java.util.List getDestinationsList() { return destinations_; } /** * repeated .v1.Destination destinations = 2; */ @java.lang.Override public java.util.List getDestinationsOrBuilderList() { return destinations_; } /** * repeated .v1.Destination destinations = 2; */ @java.lang.Override public int getDestinationsCount() { return destinations_.size(); } /** * repeated .v1.Destination destinations = 2; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination getDestinations(int index) { return destinations_.get(index); } /** * repeated .v1.Destination destinations = 2; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationOrBuilder getDestinationsOrBuilder( int index) { return destinations_.get(index); } public static final int EXTENDINFO_FIELD_NUMBER = 3; private static final class ExtendInfoDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Route_ExtendInfoEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> extendInfo_; private com.google.protobuf.MapField internalGetExtendInfo() { if (extendInfo_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtendInfoDefaultEntryHolder.defaultEntry); } return extendInfo_; } public int getExtendInfoCount() { return internalGetExtendInfo().getMap().size(); } /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v2 版本的 id 信息
     * 
* * map<string, string> extendInfo = 3; */ @java.lang.Override public boolean containsExtendInfo( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtendInfo().getMap().containsKey(key); } /** * Use {@link #getExtendInfoMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtendInfo() { return getExtendInfoMap(); } /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v2 版本的 id 信息
     * 
* * map<string, string> extendInfo = 3; */ @java.lang.Override public java.util.Map getExtendInfoMap() { return internalGetExtendInfo().getMap(); } /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v2 版本的 id 信息
     * 
* * map<string, string> extendInfo = 3; */ @java.lang.Override public java.lang.String getExtendInfoOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtendInfo().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v2 版本的 id 信息
     * 
* * map<string, string> extendInfo = 3; */ @java.lang.Override public java.lang.String getExtendInfoOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtendInfo().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < sources_.size(); i++) { output.writeMessage(1, sources_.get(i)); } for (int i = 0; i < destinations_.size(); i++) { output.writeMessage(2, destinations_.get(i)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetExtendInfo(), ExtendInfoDefaultEntryHolder.defaultEntry, 3); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < sources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, sources_.get(i)); } for (int i = 0; i < destinations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, destinations_.get(i)); } for (java.util.Map.Entry entry : internalGetExtendInfo().getMap().entrySet()) { com.google.protobuf.MapEntry extendInfo__ = ExtendInfoDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, extendInfo__); } 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route other = (com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route) obj; if (!getSourcesList() .equals(other.getSourcesList())) return false; if (!getDestinationsList() .equals(other.getDestinationsList())) return false; if (!internalGetExtendInfo().equals( other.internalGetExtendInfo())) 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 (getSourcesCount() > 0) { hash = (37 * hash) + SOURCES_FIELD_NUMBER; hash = (53 * hash) + getSourcesList().hashCode(); } if (getDestinationsCount() > 0) { hash = (37 * hash) + DESTINATIONS_FIELD_NUMBER; hash = (53 * hash) + getDestinationsList().hashCode(); } if (!internalGetExtendInfo().getMap().isEmpty()) { hash = (37 * hash) + EXTENDINFO_FIELD_NUMBER; hash = (53 * hash) + internalGetExtendInfo().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route 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(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route 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; } /** *
     * deprecated: only for compatible to the old version server
     * 
* * Protobuf type {@code v1.Route} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.Route) com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Route_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetExtendInfo(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableExtendInfo(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Route_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (sourcesBuilder_ == null) { sources_ = java.util.Collections.emptyList(); } else { sources_ = null; sourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (destinationsBuilder_ == null) { destinations_ = java.util.Collections.emptyList(); } else { destinations_ = null; destinationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableExtendInfo().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Route_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route build() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route result = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route(this); int from_bitField0_ = bitField0_; if (sourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { sources_ = java.util.Collections.unmodifiableList(sources_); bitField0_ = (bitField0_ & ~0x00000001); } result.sources_ = sources_; } else { result.sources_ = sourcesBuilder_.build(); } if (destinationsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { destinations_ = java.util.Collections.unmodifiableList(destinations_); bitField0_ = (bitField0_ & ~0x00000002); } result.destinations_ = destinations_; } else { result.destinations_ = destinationsBuilder_.build(); } result.extendInfo_ = internalGetExtendInfo(); result.extendInfo_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route.getDefaultInstance()) return this; if (sourcesBuilder_ == null) { if (!other.sources_.isEmpty()) { if (sources_.isEmpty()) { sources_ = other.sources_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSourcesIsMutable(); sources_.addAll(other.sources_); } onChanged(); } } else { if (!other.sources_.isEmpty()) { if (sourcesBuilder_.isEmpty()) { sourcesBuilder_.dispose(); sourcesBuilder_ = null; sources_ = other.sources_; bitField0_ = (bitField0_ & ~0x00000001); sourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSourcesFieldBuilder() : null; } else { sourcesBuilder_.addAllMessages(other.sources_); } } } if (destinationsBuilder_ == null) { if (!other.destinations_.isEmpty()) { if (destinations_.isEmpty()) { destinations_ = other.destinations_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDestinationsIsMutable(); destinations_.addAll(other.destinations_); } onChanged(); } } else { if (!other.destinations_.isEmpty()) { if (destinationsBuilder_.isEmpty()) { destinationsBuilder_.dispose(); destinationsBuilder_ = null; destinations_ = other.destinations_; bitField0_ = (bitField0_ & ~0x00000002); destinationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDestinationsFieldBuilder() : null; } else { destinationsBuilder_.addAllMessages(other.destinations_); } } } internalGetMutableExtendInfo().mergeFrom( other.internalGetExtendInfo()); 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: { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source m = input.readMessage( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.parser(), extensionRegistry); if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.add(m); } else { sourcesBuilder_.addMessage(m); } break; } // case 10 case 18: { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination m = input.readMessage( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.parser(), extensionRegistry); if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.add(m); } else { destinationsBuilder_.addMessage(m); } break; } // case 18 case 26: { com.google.protobuf.MapEntry extendInfo__ = input.readMessage( ExtendInfoDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableExtendInfo().getMutableMap().put( extendInfo__.getKey(), extendInfo__.getValue()); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List sources_ = java.util.Collections.emptyList(); private void ensureSourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { sources_ = new java.util.ArrayList(sources_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceOrBuilder> sourcesBuilder_; /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public java.util.List getSourcesList() { if (sourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(sources_); } else { return sourcesBuilder_.getMessageList(); } } /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public int getSourcesCount() { if (sourcesBuilder_ == null) { return sources_.size(); } else { return sourcesBuilder_.getCount(); } } /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source getSources(int index) { if (sourcesBuilder_ == null) { return sources_.get(index); } else { return sourcesBuilder_.getMessage(index); } } /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public Builder setSources( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourcesIsMutable(); sources_.set(index, value); onChanged(); } else { sourcesBuilder_.setMessage(index, value); } return this; } /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public Builder setSources( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.set(index, builderForValue.build()); onChanged(); } else { sourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public Builder addSources(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourcesIsMutable(); sources_.add(value); onChanged(); } else { sourcesBuilder_.addMessage(value); } return this; } /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public Builder addSources( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourcesIsMutable(); sources_.add(index, value); onChanged(); } else { sourcesBuilder_.addMessage(index, value); } return this; } /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public Builder addSources( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.add(builderForValue.build()); onChanged(); } else { sourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public Builder addSources( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.add(index, builderForValue.build()); onChanged(); } else { sourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public Builder addAllSources( java.lang.Iterable values) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sources_); onChanged(); } else { sourcesBuilder_.addAllMessages(values); } return this; } /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public Builder clearSources() { if (sourcesBuilder_ == null) { sources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { sourcesBuilder_.clear(); } return this; } /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public Builder removeSources(int index) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.remove(index); onChanged(); } else { sourcesBuilder_.remove(index); } return this; } /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.Builder getSourcesBuilder( int index) { return getSourcesFieldBuilder().getBuilder(index); } /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceOrBuilder getSourcesOrBuilder( int index) { if (sourcesBuilder_ == null) { return sources_.get(index); } else { return sourcesBuilder_.getMessageOrBuilder(index); } } /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public java.util.List getSourcesOrBuilderList() { if (sourcesBuilder_ != null) { return sourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sources_); } } /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.Builder addSourcesBuilder() { return getSourcesFieldBuilder().addBuilder( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.getDefaultInstance()); } /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.Builder addSourcesBuilder( int index) { return getSourcesFieldBuilder().addBuilder( index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.getDefaultInstance()); } /** *
       * 如果匹配Source规则,按照Destination路由
       * 多个Source之间的关系为或
       * 
* * repeated .v1.Source sources = 1; */ public java.util.List getSourcesBuilderList() { return getSourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceOrBuilder> getSourcesFieldBuilder() { if (sourcesBuilder_ == null) { sourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceOrBuilder>( sources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); sources_ = null; } return sourcesBuilder_; } private java.util.List destinations_ = java.util.Collections.emptyList(); private void ensureDestinationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { destinations_ = new java.util.ArrayList(destinations_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationOrBuilder> destinationsBuilder_; /** * repeated .v1.Destination destinations = 2; */ public java.util.List getDestinationsList() { if (destinationsBuilder_ == null) { return java.util.Collections.unmodifiableList(destinations_); } else { return destinationsBuilder_.getMessageList(); } } /** * repeated .v1.Destination destinations = 2; */ public int getDestinationsCount() { if (destinationsBuilder_ == null) { return destinations_.size(); } else { return destinationsBuilder_.getCount(); } } /** * repeated .v1.Destination destinations = 2; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination getDestinations(int index) { if (destinationsBuilder_ == null) { return destinations_.get(index); } else { return destinationsBuilder_.getMessage(index); } } /** * repeated .v1.Destination destinations = 2; */ public Builder setDestinations( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination value) { if (destinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDestinationsIsMutable(); destinations_.set(index, value); onChanged(); } else { destinationsBuilder_.setMessage(index, value); } return this; } /** * repeated .v1.Destination destinations = 2; */ public Builder setDestinations( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.Builder builderForValue) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.set(index, builderForValue.build()); onChanged(); } else { destinationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .v1.Destination destinations = 2; */ public Builder addDestinations(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination value) { if (destinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDestinationsIsMutable(); destinations_.add(value); onChanged(); } else { destinationsBuilder_.addMessage(value); } return this; } /** * repeated .v1.Destination destinations = 2; */ public Builder addDestinations( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination value) { if (destinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDestinationsIsMutable(); destinations_.add(index, value); onChanged(); } else { destinationsBuilder_.addMessage(index, value); } return this; } /** * repeated .v1.Destination destinations = 2; */ public Builder addDestinations( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.Builder builderForValue) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.add(builderForValue.build()); onChanged(); } else { destinationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .v1.Destination destinations = 2; */ public Builder addDestinations( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.Builder builderForValue) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.add(index, builderForValue.build()); onChanged(); } else { destinationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .v1.Destination destinations = 2; */ public Builder addAllDestinations( java.lang.Iterable values) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, destinations_); onChanged(); } else { destinationsBuilder_.addAllMessages(values); } return this; } /** * repeated .v1.Destination destinations = 2; */ public Builder clearDestinations() { if (destinationsBuilder_ == null) { destinations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { destinationsBuilder_.clear(); } return this; } /** * repeated .v1.Destination destinations = 2; */ public Builder removeDestinations(int index) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.remove(index); onChanged(); } else { destinationsBuilder_.remove(index); } return this; } /** * repeated .v1.Destination destinations = 2; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.Builder getDestinationsBuilder( int index) { return getDestinationsFieldBuilder().getBuilder(index); } /** * repeated .v1.Destination destinations = 2; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationOrBuilder getDestinationsOrBuilder( int index) { if (destinationsBuilder_ == null) { return destinations_.get(index); } else { return destinationsBuilder_.getMessageOrBuilder(index); } } /** * repeated .v1.Destination destinations = 2; */ public java.util.List getDestinationsOrBuilderList() { if (destinationsBuilder_ != null) { return destinationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(destinations_); } } /** * repeated .v1.Destination destinations = 2; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.Builder addDestinationsBuilder() { return getDestinationsFieldBuilder().addBuilder( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.getDefaultInstance()); } /** * repeated .v1.Destination destinations = 2; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.Builder addDestinationsBuilder( int index) { return getDestinationsFieldBuilder().addBuilder( index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.getDefaultInstance()); } /** * repeated .v1.Destination destinations = 2; */ public java.util.List getDestinationsBuilderList() { return getDestinationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationOrBuilder> getDestinationsFieldBuilder() { if (destinationsBuilder_ == null) { destinationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationOrBuilder>( destinations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); destinations_ = null; } return destinationsBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> extendInfo_; private com.google.protobuf.MapField internalGetExtendInfo() { if (extendInfo_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtendInfoDefaultEntryHolder.defaultEntry); } return extendInfo_; } private com.google.protobuf.MapField internalGetMutableExtendInfo() { onChanged();; if (extendInfo_ == null) { extendInfo_ = com.google.protobuf.MapField.newMapField( ExtendInfoDefaultEntryHolder.defaultEntry); } if (!extendInfo_.isMutable()) { extendInfo_ = extendInfo_.copy(); } return extendInfo_; } public int getExtendInfoCount() { return internalGetExtendInfo().getMap().size(); } /** *
       * extendInfo 用于承载一些额外信息
       * case 1: 升级到 v2 版本时,记录对应到 v2 版本的 id 信息
       * 
* * map<string, string> extendInfo = 3; */ @java.lang.Override public boolean containsExtendInfo( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtendInfo().getMap().containsKey(key); } /** * Use {@link #getExtendInfoMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtendInfo() { return getExtendInfoMap(); } /** *
       * extendInfo 用于承载一些额外信息
       * case 1: 升级到 v2 版本时,记录对应到 v2 版本的 id 信息
       * 
* * map<string, string> extendInfo = 3; */ @java.lang.Override public java.util.Map getExtendInfoMap() { return internalGetExtendInfo().getMap(); } /** *
       * extendInfo 用于承载一些额外信息
       * case 1: 升级到 v2 版本时,记录对应到 v2 版本的 id 信息
       * 
* * map<string, string> extendInfo = 3; */ @java.lang.Override public java.lang.String getExtendInfoOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtendInfo().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * extendInfo 用于承载一些额外信息
       * case 1: 升级到 v2 版本时,记录对应到 v2 版本的 id 信息
       * 
* * map<string, string> extendInfo = 3; */ @java.lang.Override public java.lang.String getExtendInfoOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtendInfo().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearExtendInfo() { internalGetMutableExtendInfo().getMutableMap() .clear(); return this; } /** *
       * extendInfo 用于承载一些额外信息
       * case 1: 升级到 v2 版本时,记录对应到 v2 版本的 id 信息
       * 
* * map<string, string> extendInfo = 3; */ public Builder removeExtendInfo( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableExtendInfo().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableExtendInfo() { return internalGetMutableExtendInfo().getMutableMap(); } /** *
       * extendInfo 用于承载一些额外信息
       * case 1: 升级到 v2 版本时,记录对应到 v2 版本的 id 信息
       * 
* * map<string, string> extendInfo = 3; */ public Builder putExtendInfo( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableExtendInfo().getMutableMap() .put(key, value); return this; } /** *
       * extendInfo 用于承载一些额外信息
       * case 1: 升级到 v2 版本时,记录对应到 v2 版本的 id 信息
       * 
* * map<string, string> extendInfo = 3; */ public Builder putAllExtendInfo( java.util.Map values) { internalGetMutableExtendInfo().getMutableMap() .putAll(values); 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:v1.Route) } // @@protoc_insertion_point(class_scope:v1.Route) private static final com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Route 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Route getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SourceOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.Source) com.google.protobuf.MessageOrBuilder { /** *
     * 主调方服务以及命名空间
     * 
* * .google.protobuf.StringValue service = 1; * @return Whether the service field is set. */ boolean hasService(); /** *
     * 主调方服务以及命名空间
     * 
* * .google.protobuf.StringValue service = 1; * @return The service. */ com.google.protobuf.StringValue getService(); /** *
     * 主调方服务以及命名空间
     * 
* * .google.protobuf.StringValue service = 1; */ com.google.protobuf.StringValueOrBuilder getServiceOrBuilder(); /** * .google.protobuf.StringValue namespace = 2; * @return Whether the namespace field is set. */ boolean hasNamespace(); /** * .google.protobuf.StringValue namespace = 2; * @return The namespace. */ com.google.protobuf.StringValue getNamespace(); /** * .google.protobuf.StringValue namespace = 2; */ com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder(); /** *
     * 主调方服务实例标签或者请求标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ int getMetadataCount(); /** *
     * 主调方服务实例标签或者请求标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ boolean containsMetadata( java.lang.String key); /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated java.util.Map getMetadata(); /** *
     * 主调方服务实例标签或者请求标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ java.util.Map getMetadataMap(); /** *
     * 主调方服务实例标签或者请求标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ /* nullable */ com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getMetadataOrDefault( java.lang.String key, /* nullable */ com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString defaultValue); /** *
     * 主调方服务实例标签或者请求标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getMetadataOrThrow( java.lang.String key); } /** *
   * deprecated: only for compatible to the old version server
   * 
* * Protobuf type {@code v1.Source} */ public static final class Source extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.Source) SourceOrBuilder { private static final long serialVersionUID = 0L; // Use Source.newBuilder() to construct. private Source(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Source() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Source(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Source_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.Builder.class); } public static final int SERVICE_FIELD_NUMBER = 1; private com.google.protobuf.StringValue service_; /** *
     * 主调方服务以及命名空间
     * 
* * .google.protobuf.StringValue service = 1; * @return Whether the service field is set. */ @java.lang.Override public boolean hasService() { return service_ != null; } /** *
     * 主调方服务以及命名空间
     * 
* * .google.protobuf.StringValue service = 1; * @return The service. */ @java.lang.Override public com.google.protobuf.StringValue getService() { return service_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : service_; } /** *
     * 主调方服务以及命名空间
     * 
* * .google.protobuf.StringValue service = 1; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getServiceOrBuilder() { return getService(); } public static final int NAMESPACE_FIELD_NUMBER = 2; private com.google.protobuf.StringValue namespace_; /** * .google.protobuf.StringValue namespace = 2; * @return Whether the namespace field is set. */ @java.lang.Override public boolean hasNamespace() { return namespace_ != null; } /** * .google.protobuf.StringValue namespace = 2; * @return The namespace. */ @java.lang.Override public com.google.protobuf.StringValue getNamespace() { return namespace_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : namespace_; } /** * .google.protobuf.StringValue namespace = 2; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder() { return getNamespace(); } public static final int METADATA_FIELD_NUMBER = 3; private static final class MetadataDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Source_MetadataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString> metadata_; private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** *
     * 主调方服务实例标签或者请求标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ @java.lang.Override public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** *
     * 主调方服务实例标签或者请求标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ @java.lang.Override public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** *
     * 主调方服务实例标签或者请求标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getMetadataOrDefault( java.lang.String key, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * 主调方服务实例标签或者请求标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 (service_ != null) { output.writeMessage(1, getService()); } if (namespace_ != null) { output.writeMessage(2, getNamespace()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 3); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (service_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getService()); } if (namespace_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getNamespace()); } for (java.util.Map.Entry entry : internalGetMetadata().getMap().entrySet()) { com.google.protobuf.MapEntry metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, metadata__); } 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source other = (com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source) obj; if (hasService() != other.hasService()) return false; if (hasService()) { if (!getService() .equals(other.getService())) return false; } if (hasNamespace() != other.hasNamespace()) return false; if (hasNamespace()) { if (!getNamespace() .equals(other.getNamespace())) return false; } if (!internalGetMetadata().equals( other.internalGetMetadata())) 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 (hasService()) { hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); } if (hasNamespace()) { hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); } if (!internalGetMetadata().getMap().isEmpty()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source 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(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source 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; } /** *
     * deprecated: only for compatible to the old version server
     * 
* * Protobuf type {@code v1.Source} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.Source) com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Source_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Source_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (serviceBuilder_ == null) { service_ = null; } else { service_ = null; serviceBuilder_ = null; } if (namespaceBuilder_ == null) { namespace_ = null; } else { namespace_ = null; namespaceBuilder_ = null; } internalGetMutableMetadata().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Source_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source build() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source result = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source(this); int from_bitField0_ = bitField0_; if (serviceBuilder_ == null) { result.service_ = service_; } else { result.service_ = serviceBuilder_.build(); } if (namespaceBuilder_ == null) { result.namespace_ = namespace_; } else { result.namespace_ = namespaceBuilder_.build(); } result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source.getDefaultInstance()) return this; if (other.hasService()) { mergeService(other.getService()); } if (other.hasNamespace()) { mergeNamespace(other.getNamespace()); } internalGetMutableMetadata().mergeFrom( other.internalGetMetadata()); 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( getServiceFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getNamespaceFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 26: { com.google.protobuf.MapEntry metadata__ = input.readMessage( MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMetadata().getMutableMap().put( metadata__.getKey(), metadata__.getValue()); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.StringValue service_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> serviceBuilder_; /** *
       * 主调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; * @return Whether the service field is set. */ public boolean hasService() { return serviceBuilder_ != null || service_ != null; } /** *
       * 主调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; * @return The service. */ public com.google.protobuf.StringValue getService() { if (serviceBuilder_ == null) { return service_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : service_; } else { return serviceBuilder_.getMessage(); } } /** *
       * 主调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; */ public Builder setService(com.google.protobuf.StringValue value) { if (serviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } service_ = value; onChanged(); } else { serviceBuilder_.setMessage(value); } return this; } /** *
       * 主调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; */ public Builder setService( com.google.protobuf.StringValue.Builder builderForValue) { if (serviceBuilder_ == null) { service_ = builderForValue.build(); onChanged(); } else { serviceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 主调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; */ public Builder mergeService(com.google.protobuf.StringValue value) { if (serviceBuilder_ == null) { if (service_ != null) { service_ = com.google.protobuf.StringValue.newBuilder(service_).mergeFrom(value).buildPartial(); } else { service_ = value; } onChanged(); } else { serviceBuilder_.mergeFrom(value); } return this; } /** *
       * 主调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; */ public Builder clearService() { if (serviceBuilder_ == null) { service_ = null; onChanged(); } else { service_ = null; serviceBuilder_ = null; } return this; } /** *
       * 主调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; */ public com.google.protobuf.StringValue.Builder getServiceBuilder() { onChanged(); return getServiceFieldBuilder().getBuilder(); } /** *
       * 主调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; */ public com.google.protobuf.StringValueOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { return service_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : service_; } } /** *
       * 主调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getService(), getParentForChildren(), isClean()); service_ = null; } return serviceBuilder_; } private com.google.protobuf.StringValue namespace_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> namespaceBuilder_; /** * .google.protobuf.StringValue namespace = 2; * @return Whether the namespace field is set. */ public boolean hasNamespace() { return namespaceBuilder_ != null || namespace_ != null; } /** * .google.protobuf.StringValue namespace = 2; * @return The namespace. */ public com.google.protobuf.StringValue getNamespace() { if (namespaceBuilder_ == null) { return namespace_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : namespace_; } else { return namespaceBuilder_.getMessage(); } } /** * .google.protobuf.StringValue namespace = 2; */ public Builder setNamespace(com.google.protobuf.StringValue value) { if (namespaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); } else { namespaceBuilder_.setMessage(value); } return this; } /** * .google.protobuf.StringValue namespace = 2; */ public Builder setNamespace( com.google.protobuf.StringValue.Builder builderForValue) { if (namespaceBuilder_ == null) { namespace_ = builderForValue.build(); onChanged(); } else { namespaceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.StringValue namespace = 2; */ public Builder mergeNamespace(com.google.protobuf.StringValue value) { if (namespaceBuilder_ == null) { if (namespace_ != null) { namespace_ = com.google.protobuf.StringValue.newBuilder(namespace_).mergeFrom(value).buildPartial(); } else { namespace_ = value; } onChanged(); } else { namespaceBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.StringValue namespace = 2; */ public Builder clearNamespace() { if (namespaceBuilder_ == null) { namespace_ = null; onChanged(); } else { namespace_ = null; namespaceBuilder_ = null; } return this; } /** * .google.protobuf.StringValue namespace = 2; */ public com.google.protobuf.StringValue.Builder getNamespaceBuilder() { onChanged(); return getNamespaceFieldBuilder().getBuilder(); } /** * .google.protobuf.StringValue namespace = 2; */ public com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder() { if (namespaceBuilder_ != null) { return namespaceBuilder_.getMessageOrBuilder(); } else { return namespace_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : namespace_; } } /** * .google.protobuf.StringValue namespace = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getNamespaceFieldBuilder() { if (namespaceBuilder_ == null) { namespaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getNamespace(), getParentForChildren(), isClean()); namespace_ = null; } return namespaceBuilder_; } private com.google.protobuf.MapField< java.lang.String, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString> metadata_; private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } private com.google.protobuf.MapField internalGetMutableMetadata() { onChanged();; if (metadata_ == null) { metadata_ = com.google.protobuf.MapField.newMapField( MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); } return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** *
       * 主调方服务实例标签或者请求标签
       * value支持正则匹配
       * 
* * map<string, .v1.MatchString> metadata = 3; */ @java.lang.Override public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** *
       * 主调方服务实例标签或者请求标签
       * value支持正则匹配
       * 
* * map<string, .v1.MatchString> metadata = 3; */ @java.lang.Override public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** *
       * 主调方服务实例标签或者请求标签
       * value支持正则匹配
       * 
* * map<string, .v1.MatchString> metadata = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getMetadataOrDefault( java.lang.String key, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * 主调方服务实例标签或者请求标签
       * value支持正则匹配
       * 
* * map<string, .v1.MatchString> metadata = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMetadata() { internalGetMutableMetadata().getMutableMap() .clear(); return this; } /** *
       * 主调方服务实例标签或者请求标签
       * value支持正则匹配
       * 
* * map<string, .v1.MatchString> metadata = 3; */ public Builder removeMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableMetadata().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMetadata() { return internalGetMutableMetadata().getMutableMap(); } /** *
       * 主调方服务实例标签或者请求标签
       * value支持正则匹配
       * 
* * map<string, .v1.MatchString> metadata = 3; */ public Builder putMetadata( java.lang.String key, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMetadata().getMutableMap() .put(key, value); return this; } /** *
       * 主调方服务实例标签或者请求标签
       * value支持正则匹配
       * 
* * map<string, .v1.MatchString> metadata = 3; */ public Builder putAllMetadata( java.util.Map values) { internalGetMutableMetadata().getMutableMap() .putAll(values); 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:v1.Source) } // @@protoc_insertion_point(class_scope:v1.Source) private static final com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Source 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Source getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.Destination) com.google.protobuf.MessageOrBuilder { /** *
     * 被调方服务以及命名空间
     * 
* * .google.protobuf.StringValue service = 1; * @return Whether the service field is set. */ boolean hasService(); /** *
     * 被调方服务以及命名空间
     * 
* * .google.protobuf.StringValue service = 1; * @return The service. */ com.google.protobuf.StringValue getService(); /** *
     * 被调方服务以及命名空间
     * 
* * .google.protobuf.StringValue service = 1; */ com.google.protobuf.StringValueOrBuilder getServiceOrBuilder(); /** * .google.protobuf.StringValue namespace = 2; * @return Whether the namespace field is set. */ boolean hasNamespace(); /** * .google.protobuf.StringValue namespace = 2; * @return The namespace. */ com.google.protobuf.StringValue getNamespace(); /** * .google.protobuf.StringValue namespace = 2; */ com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder(); /** *
     * 被调方服务实例标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ int getMetadataCount(); /** *
     * 被调方服务实例标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ boolean containsMetadata( java.lang.String key); /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated java.util.Map getMetadata(); /** *
     * 被调方服务实例标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ java.util.Map getMetadataMap(); /** *
     * 被调方服务实例标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ /* nullable */ com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getMetadataOrDefault( java.lang.String key, /* nullable */ com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString defaultValue); /** *
     * 被调方服务实例标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getMetadataOrThrow( java.lang.String key); /** *
     * 根据服务名和服务实例metadata筛选符合条件的服务实例子集
     * 服务实例子集可以设置优先级和权重
     * 优先级:整型,范围[0, 9],最高优先级为0
     * 权重:整型
     * 先按优先级路由,如果存在高优先级,不会使用低优先级
     * 如果存在优先级相同的子集,再按权重分配
     * 优先级和权重可以都不设置/设置一个/设置两个
     * 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
     * 如果部分设置权重,部分没有设置,认为没有设置的权重为0
     * 如果全部没有设置权重,认为权重相同
     * 
* * .google.protobuf.UInt32Value priority = 4; * @return Whether the priority field is set. */ boolean hasPriority(); /** *
     * 根据服务名和服务实例metadata筛选符合条件的服务实例子集
     * 服务实例子集可以设置优先级和权重
     * 优先级:整型,范围[0, 9],最高优先级为0
     * 权重:整型
     * 先按优先级路由,如果存在高优先级,不会使用低优先级
     * 如果存在优先级相同的子集,再按权重分配
     * 优先级和权重可以都不设置/设置一个/设置两个
     * 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
     * 如果部分设置权重,部分没有设置,认为没有设置的权重为0
     * 如果全部没有设置权重,认为权重相同
     * 
* * .google.protobuf.UInt32Value priority = 4; * @return The priority. */ com.google.protobuf.UInt32Value getPriority(); /** *
     * 根据服务名和服务实例metadata筛选符合条件的服务实例子集
     * 服务实例子集可以设置优先级和权重
     * 优先级:整型,范围[0, 9],最高优先级为0
     * 权重:整型
     * 先按优先级路由,如果存在高优先级,不会使用低优先级
     * 如果存在优先级相同的子集,再按权重分配
     * 优先级和权重可以都不设置/设置一个/设置两个
     * 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
     * 如果部分设置权重,部分没有设置,认为没有设置的权重为0
     * 如果全部没有设置权重,认为权重相同
     * 
* * .google.protobuf.UInt32Value priority = 4; */ com.google.protobuf.UInt32ValueOrBuilder getPriorityOrBuilder(); /** * .google.protobuf.UInt32Value weight = 5; * @return Whether the weight field is set. */ boolean hasWeight(); /** * .google.protobuf.UInt32Value weight = 5; * @return The weight. */ com.google.protobuf.UInt32Value getWeight(); /** * .google.protobuf.UInt32Value weight = 5; */ com.google.protobuf.UInt32ValueOrBuilder getWeightOrBuilder(); /** *
     * 将请求转发到代理服务
     * 
* * .google.protobuf.StringValue transfer = 6; * @return Whether the transfer field is set. */ boolean hasTransfer(); /** *
     * 将请求转发到代理服务
     * 
* * .google.protobuf.StringValue transfer = 6; * @return The transfer. */ com.google.protobuf.StringValue getTransfer(); /** *
     * 将请求转发到代理服务
     * 
* * .google.protobuf.StringValue transfer = 6; */ com.google.protobuf.StringValueOrBuilder getTransferOrBuilder(); /** *
     *是否对该set执行隔离,隔离后,不会再分配流量
     * 
* * .google.protobuf.BoolValue isolate = 7; * @return Whether the isolate field is set. */ boolean hasIsolate(); /** *
     *是否对该set执行隔离,隔离后,不会再分配流量
     * 
* * .google.protobuf.BoolValue isolate = 7; * @return The isolate. */ com.google.protobuf.BoolValue getIsolate(); /** *
     *是否对该set执行隔离,隔离后,不会再分配流量
     * 
* * .google.protobuf.BoolValue isolate = 7; */ com.google.protobuf.BoolValueOrBuilder getIsolateOrBuilder(); /** *
     * 实例分组名
     * 
* * .google.protobuf.StringValue name = 8; * @return Whether the name field is set. */ boolean hasName(); /** *
     * 实例分组名
     * 
* * .google.protobuf.StringValue name = 8; * @return The name. */ com.google.protobuf.StringValue getName(); /** *
     * 实例分组名
     * 
* * .google.protobuf.StringValue name = 8; */ com.google.protobuf.StringValueOrBuilder getNameOrBuilder(); } /** *
   * deprecated: only for compatible to the old version server
   * 
* * Protobuf type {@code v1.Destination} */ public static final class Destination extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.Destination) DestinationOrBuilder { private static final long serialVersionUID = 0L; // Use Destination.newBuilder() to construct. private Destination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Destination() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Destination(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Destination_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Destination_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.Builder.class); } public static final int SERVICE_FIELD_NUMBER = 1; private com.google.protobuf.StringValue service_; /** *
     * 被调方服务以及命名空间
     * 
* * .google.protobuf.StringValue service = 1; * @return Whether the service field is set. */ @java.lang.Override public boolean hasService() { return service_ != null; } /** *
     * 被调方服务以及命名空间
     * 
* * .google.protobuf.StringValue service = 1; * @return The service. */ @java.lang.Override public com.google.protobuf.StringValue getService() { return service_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : service_; } /** *
     * 被调方服务以及命名空间
     * 
* * .google.protobuf.StringValue service = 1; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getServiceOrBuilder() { return getService(); } public static final int NAMESPACE_FIELD_NUMBER = 2; private com.google.protobuf.StringValue namespace_; /** * .google.protobuf.StringValue namespace = 2; * @return Whether the namespace field is set. */ @java.lang.Override public boolean hasNamespace() { return namespace_ != null; } /** * .google.protobuf.StringValue namespace = 2; * @return The namespace. */ @java.lang.Override public com.google.protobuf.StringValue getNamespace() { return namespace_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : namespace_; } /** * .google.protobuf.StringValue namespace = 2; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder() { return getNamespace(); } public static final int METADATA_FIELD_NUMBER = 3; private static final class MetadataDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Destination_MetadataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString> metadata_; private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** *
     * 被调方服务实例标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ @java.lang.Override public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** *
     * 被调方服务实例标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ @java.lang.Override public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** *
     * 被调方服务实例标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getMetadataOrDefault( java.lang.String key, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * 被调方服务实例标签
     * value支持正则匹配
     * 
* * map<string, .v1.MatchString> metadata = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int PRIORITY_FIELD_NUMBER = 4; private com.google.protobuf.UInt32Value priority_; /** *
     * 根据服务名和服务实例metadata筛选符合条件的服务实例子集
     * 服务实例子集可以设置优先级和权重
     * 优先级:整型,范围[0, 9],最高优先级为0
     * 权重:整型
     * 先按优先级路由,如果存在高优先级,不会使用低优先级
     * 如果存在优先级相同的子集,再按权重分配
     * 优先级和权重可以都不设置/设置一个/设置两个
     * 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
     * 如果部分设置权重,部分没有设置,认为没有设置的权重为0
     * 如果全部没有设置权重,认为权重相同
     * 
* * .google.protobuf.UInt32Value priority = 4; * @return Whether the priority field is set. */ @java.lang.Override public boolean hasPriority() { return priority_ != null; } /** *
     * 根据服务名和服务实例metadata筛选符合条件的服务实例子集
     * 服务实例子集可以设置优先级和权重
     * 优先级:整型,范围[0, 9],最高优先级为0
     * 权重:整型
     * 先按优先级路由,如果存在高优先级,不会使用低优先级
     * 如果存在优先级相同的子集,再按权重分配
     * 优先级和权重可以都不设置/设置一个/设置两个
     * 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
     * 如果部分设置权重,部分没有设置,认为没有设置的权重为0
     * 如果全部没有设置权重,认为权重相同
     * 
* * .google.protobuf.UInt32Value priority = 4; * @return The priority. */ @java.lang.Override public com.google.protobuf.UInt32Value getPriority() { return priority_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : priority_; } /** *
     * 根据服务名和服务实例metadata筛选符合条件的服务实例子集
     * 服务实例子集可以设置优先级和权重
     * 优先级:整型,范围[0, 9],最高优先级为0
     * 权重:整型
     * 先按优先级路由,如果存在高优先级,不会使用低优先级
     * 如果存在优先级相同的子集,再按权重分配
     * 优先级和权重可以都不设置/设置一个/设置两个
     * 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
     * 如果部分设置权重,部分没有设置,认为没有设置的权重为0
     * 如果全部没有设置权重,认为权重相同
     * 
* * .google.protobuf.UInt32Value priority = 4; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getPriorityOrBuilder() { return getPriority(); } public static final int WEIGHT_FIELD_NUMBER = 5; private com.google.protobuf.UInt32Value weight_; /** * .google.protobuf.UInt32Value weight = 5; * @return Whether the weight field is set. */ @java.lang.Override public boolean hasWeight() { return weight_ != null; } /** * .google.protobuf.UInt32Value weight = 5; * @return The weight. */ @java.lang.Override public com.google.protobuf.UInt32Value getWeight() { return weight_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : weight_; } /** * .google.protobuf.UInt32Value weight = 5; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getWeightOrBuilder() { return getWeight(); } public static final int TRANSFER_FIELD_NUMBER = 6; private com.google.protobuf.StringValue transfer_; /** *
     * 将请求转发到代理服务
     * 
* * .google.protobuf.StringValue transfer = 6; * @return Whether the transfer field is set. */ @java.lang.Override public boolean hasTransfer() { return transfer_ != null; } /** *
     * 将请求转发到代理服务
     * 
* * .google.protobuf.StringValue transfer = 6; * @return The transfer. */ @java.lang.Override public com.google.protobuf.StringValue getTransfer() { return transfer_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : transfer_; } /** *
     * 将请求转发到代理服务
     * 
* * .google.protobuf.StringValue transfer = 6; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getTransferOrBuilder() { return getTransfer(); } public static final int ISOLATE_FIELD_NUMBER = 7; private com.google.protobuf.BoolValue isolate_; /** *
     *是否对该set执行隔离,隔离后,不会再分配流量
     * 
* * .google.protobuf.BoolValue isolate = 7; * @return Whether the isolate field is set. */ @java.lang.Override public boolean hasIsolate() { return isolate_ != null; } /** *
     *是否对该set执行隔离,隔离后,不会再分配流量
     * 
* * .google.protobuf.BoolValue isolate = 7; * @return The isolate. */ @java.lang.Override public com.google.protobuf.BoolValue getIsolate() { return isolate_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isolate_; } /** *
     *是否对该set执行隔离,隔离后,不会再分配流量
     * 
* * .google.protobuf.BoolValue isolate = 7; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getIsolateOrBuilder() { return getIsolate(); } public static final int NAME_FIELD_NUMBER = 8; private com.google.protobuf.StringValue name_; /** *
     * 实例分组名
     * 
* * .google.protobuf.StringValue name = 8; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return name_ != null; } /** *
     * 实例分组名
     * 
* * .google.protobuf.StringValue name = 8; * @return The name. */ @java.lang.Override public com.google.protobuf.StringValue getName() { return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_; } /** *
     * 实例分组名
     * 
* * .google.protobuf.StringValue name = 8; */ @java.lang.Override public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { return getName(); } 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 (service_ != null) { output.writeMessage(1, getService()); } if (namespace_ != null) { output.writeMessage(2, getNamespace()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 3); if (priority_ != null) { output.writeMessage(4, getPriority()); } if (weight_ != null) { output.writeMessage(5, getWeight()); } if (transfer_ != null) { output.writeMessage(6, getTransfer()); } if (isolate_ != null) { output.writeMessage(7, getIsolate()); } if (name_ != null) { output.writeMessage(8, getName()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (service_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getService()); } if (namespace_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getNamespace()); } for (java.util.Map.Entry entry : internalGetMetadata().getMap().entrySet()) { com.google.protobuf.MapEntry metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, metadata__); } if (priority_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPriority()); } if (weight_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getWeight()); } if (transfer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getTransfer()); } if (isolate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getIsolate()); } if (name_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getName()); } 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination other = (com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination) obj; if (hasService() != other.hasService()) return false; if (hasService()) { if (!getService() .equals(other.getService())) return false; } if (hasNamespace() != other.hasNamespace()) return false; if (hasNamespace()) { if (!getNamespace() .equals(other.getNamespace())) return false; } if (!internalGetMetadata().equals( other.internalGetMetadata())) return false; if (hasPriority() != other.hasPriority()) return false; if (hasPriority()) { if (!getPriority() .equals(other.getPriority())) return false; } if (hasWeight() != other.hasWeight()) return false; if (hasWeight()) { if (!getWeight() .equals(other.getWeight())) return false; } if (hasTransfer() != other.hasTransfer()) return false; if (hasTransfer()) { if (!getTransfer() .equals(other.getTransfer())) return false; } if (hasIsolate() != other.hasIsolate()) return false; if (hasIsolate()) { if (!getIsolate() .equals(other.getIsolate())) return false; } if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) 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 (hasService()) { hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); } if (hasNamespace()) { hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); } if (!internalGetMetadata().getMap().isEmpty()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); } if (hasPriority()) { hash = (37 * hash) + PRIORITY_FIELD_NUMBER; hash = (53 * hash) + getPriority().hashCode(); } if (hasWeight()) { hash = (37 * hash) + WEIGHT_FIELD_NUMBER; hash = (53 * hash) + getWeight().hashCode(); } if (hasTransfer()) { hash = (37 * hash) + TRANSFER_FIELD_NUMBER; hash = (53 * hash) + getTransfer().hashCode(); } if (hasIsolate()) { hash = (37 * hash) + ISOLATE_FIELD_NUMBER; hash = (53 * hash) + getIsolate().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination 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(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination 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; } /** *
     * deprecated: only for compatible to the old version server
     * 
* * Protobuf type {@code v1.Destination} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.Destination) com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Destination_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Destination_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (serviceBuilder_ == null) { service_ = null; } else { service_ = null; serviceBuilder_ = null; } if (namespaceBuilder_ == null) { namespace_ = null; } else { namespace_ = null; namespaceBuilder_ = null; } internalGetMutableMetadata().clear(); if (priorityBuilder_ == null) { priority_ = null; } else { priority_ = null; priorityBuilder_ = null; } if (weightBuilder_ == null) { weight_ = null; } else { weight_ = null; weightBuilder_ = null; } if (transferBuilder_ == null) { transfer_ = null; } else { transfer_ = null; transferBuilder_ = null; } if (isolateBuilder_ == null) { isolate_ = null; } else { isolate_ = null; isolateBuilder_ = null; } if (nameBuilder_ == null) { name_ = null; } else { name_ = null; nameBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_Destination_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination build() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination result = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination(this); int from_bitField0_ = bitField0_; if (serviceBuilder_ == null) { result.service_ = service_; } else { result.service_ = serviceBuilder_.build(); } if (namespaceBuilder_ == null) { result.namespace_ = namespace_; } else { result.namespace_ = namespaceBuilder_.build(); } result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); if (priorityBuilder_ == null) { result.priority_ = priority_; } else { result.priority_ = priorityBuilder_.build(); } if (weightBuilder_ == null) { result.weight_ = weight_; } else { result.weight_ = weightBuilder_.build(); } if (transferBuilder_ == null) { result.transfer_ = transfer_; } else { result.transfer_ = transferBuilder_.build(); } if (isolateBuilder_ == null) { result.isolate_ = isolate_; } else { result.isolate_ = isolateBuilder_.build(); } if (nameBuilder_ == null) { result.name_ = name_; } else { result.name_ = nameBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination.getDefaultInstance()) return this; if (other.hasService()) { mergeService(other.getService()); } if (other.hasNamespace()) { mergeNamespace(other.getNamespace()); } internalGetMutableMetadata().mergeFrom( other.internalGetMetadata()); if (other.hasPriority()) { mergePriority(other.getPriority()); } if (other.hasWeight()) { mergeWeight(other.getWeight()); } if (other.hasTransfer()) { mergeTransfer(other.getTransfer()); } if (other.hasIsolate()) { mergeIsolate(other.getIsolate()); } if (other.hasName()) { mergeName(other.getName()); } 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( getServiceFieldBuilder().getBuilder(), extensionRegistry); break; } // case 10 case 18: { input.readMessage( getNamespaceFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 26: { com.google.protobuf.MapEntry metadata__ = input.readMessage( MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMetadata().getMutableMap().put( metadata__.getKey(), metadata__.getValue()); break; } // case 26 case 34: { input.readMessage( getPriorityFieldBuilder().getBuilder(), extensionRegistry); break; } // case 34 case 42: { input.readMessage( getWeightFieldBuilder().getBuilder(), extensionRegistry); break; } // case 42 case 50: { input.readMessage( getTransferFieldBuilder().getBuilder(), extensionRegistry); break; } // case 50 case 58: { input.readMessage( getIsolateFieldBuilder().getBuilder(), extensionRegistry); break; } // case 58 case 66: { input.readMessage( getNameFieldBuilder().getBuilder(), extensionRegistry); break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.StringValue service_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> serviceBuilder_; /** *
       * 被调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; * @return Whether the service field is set. */ public boolean hasService() { return serviceBuilder_ != null || service_ != null; } /** *
       * 被调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; * @return The service. */ public com.google.protobuf.StringValue getService() { if (serviceBuilder_ == null) { return service_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : service_; } else { return serviceBuilder_.getMessage(); } } /** *
       * 被调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; */ public Builder setService(com.google.protobuf.StringValue value) { if (serviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } service_ = value; onChanged(); } else { serviceBuilder_.setMessage(value); } return this; } /** *
       * 被调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; */ public Builder setService( com.google.protobuf.StringValue.Builder builderForValue) { if (serviceBuilder_ == null) { service_ = builderForValue.build(); onChanged(); } else { serviceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 被调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; */ public Builder mergeService(com.google.protobuf.StringValue value) { if (serviceBuilder_ == null) { if (service_ != null) { service_ = com.google.protobuf.StringValue.newBuilder(service_).mergeFrom(value).buildPartial(); } else { service_ = value; } onChanged(); } else { serviceBuilder_.mergeFrom(value); } return this; } /** *
       * 被调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; */ public Builder clearService() { if (serviceBuilder_ == null) { service_ = null; onChanged(); } else { service_ = null; serviceBuilder_ = null; } return this; } /** *
       * 被调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; */ public com.google.protobuf.StringValue.Builder getServiceBuilder() { onChanged(); return getServiceFieldBuilder().getBuilder(); } /** *
       * 被调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; */ public com.google.protobuf.StringValueOrBuilder getServiceOrBuilder() { if (serviceBuilder_ != null) { return serviceBuilder_.getMessageOrBuilder(); } else { return service_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : service_; } } /** *
       * 被调方服务以及命名空间
       * 
* * .google.protobuf.StringValue service = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getServiceFieldBuilder() { if (serviceBuilder_ == null) { serviceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getService(), getParentForChildren(), isClean()); service_ = null; } return serviceBuilder_; } private com.google.protobuf.StringValue namespace_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> namespaceBuilder_; /** * .google.protobuf.StringValue namespace = 2; * @return Whether the namespace field is set. */ public boolean hasNamespace() { return namespaceBuilder_ != null || namespace_ != null; } /** * .google.protobuf.StringValue namespace = 2; * @return The namespace. */ public com.google.protobuf.StringValue getNamespace() { if (namespaceBuilder_ == null) { return namespace_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : namespace_; } else { return namespaceBuilder_.getMessage(); } } /** * .google.protobuf.StringValue namespace = 2; */ public Builder setNamespace(com.google.protobuf.StringValue value) { if (namespaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); } else { namespaceBuilder_.setMessage(value); } return this; } /** * .google.protobuf.StringValue namespace = 2; */ public Builder setNamespace( com.google.protobuf.StringValue.Builder builderForValue) { if (namespaceBuilder_ == null) { namespace_ = builderForValue.build(); onChanged(); } else { namespaceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.StringValue namespace = 2; */ public Builder mergeNamespace(com.google.protobuf.StringValue value) { if (namespaceBuilder_ == null) { if (namespace_ != null) { namespace_ = com.google.protobuf.StringValue.newBuilder(namespace_).mergeFrom(value).buildPartial(); } else { namespace_ = value; } onChanged(); } else { namespaceBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.StringValue namespace = 2; */ public Builder clearNamespace() { if (namespaceBuilder_ == null) { namespace_ = null; onChanged(); } else { namespace_ = null; namespaceBuilder_ = null; } return this; } /** * .google.protobuf.StringValue namespace = 2; */ public com.google.protobuf.StringValue.Builder getNamespaceBuilder() { onChanged(); return getNamespaceFieldBuilder().getBuilder(); } /** * .google.protobuf.StringValue namespace = 2; */ public com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder() { if (namespaceBuilder_ != null) { return namespaceBuilder_.getMessageOrBuilder(); } else { return namespace_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : namespace_; } } /** * .google.protobuf.StringValue namespace = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getNamespaceFieldBuilder() { if (namespaceBuilder_ == null) { namespaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getNamespace(), getParentForChildren(), isClean()); namespace_ = null; } return namespaceBuilder_; } private com.google.protobuf.MapField< java.lang.String, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString> metadata_; private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { return com.google.protobuf.MapField.emptyMapField( MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } private com.google.protobuf.MapField internalGetMutableMetadata() { onChanged();; if (metadata_ == null) { metadata_ = com.google.protobuf.MapField.newMapField( MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); } return metadata_; } public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** *
       * 被调方服务实例标签
       * value支持正则匹配
       * 
* * map<string, .v1.MatchString> metadata = 3; */ @java.lang.Override public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** *
       * 被调方服务实例标签
       * value支持正则匹配
       * 
* * map<string, .v1.MatchString> metadata = 3; */ @java.lang.Override public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** *
       * 被调方服务实例标签
       * value支持正则匹配
       * 
* * map<string, .v1.MatchString> metadata = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getMetadataOrDefault( java.lang.String key, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * 被调方服务实例标签
       * value支持正则匹配
       * 
* * map<string, .v1.MatchString> metadata = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMetadata() { internalGetMutableMetadata().getMutableMap() .clear(); return this; } /** *
       * 被调方服务实例标签
       * value支持正则匹配
       * 
* * map<string, .v1.MatchString> metadata = 3; */ public Builder removeMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableMetadata().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMetadata() { return internalGetMutableMetadata().getMutableMap(); } /** *
       * 被调方服务实例标签
       * value支持正则匹配
       * 
* * map<string, .v1.MatchString> metadata = 3; */ public Builder putMetadata( java.lang.String key, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMetadata().getMutableMap() .put(key, value); return this; } /** *
       * 被调方服务实例标签
       * value支持正则匹配
       * 
* * map<string, .v1.MatchString> metadata = 3; */ public Builder putAllMetadata( java.util.Map values) { internalGetMutableMetadata().getMutableMap() .putAll(values); return this; } private com.google.protobuf.UInt32Value priority_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> priorityBuilder_; /** *
       * 根据服务名和服务实例metadata筛选符合条件的服务实例子集
       * 服务实例子集可以设置优先级和权重
       * 优先级:整型,范围[0, 9],最高优先级为0
       * 权重:整型
       * 先按优先级路由,如果存在高优先级,不会使用低优先级
       * 如果存在优先级相同的子集,再按权重分配
       * 优先级和权重可以都不设置/设置一个/设置两个
       * 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
       * 如果部分设置权重,部分没有设置,认为没有设置的权重为0
       * 如果全部没有设置权重,认为权重相同
       * 
* * .google.protobuf.UInt32Value priority = 4; * @return Whether the priority field is set. */ public boolean hasPriority() { return priorityBuilder_ != null || priority_ != null; } /** *
       * 根据服务名和服务实例metadata筛选符合条件的服务实例子集
       * 服务实例子集可以设置优先级和权重
       * 优先级:整型,范围[0, 9],最高优先级为0
       * 权重:整型
       * 先按优先级路由,如果存在高优先级,不会使用低优先级
       * 如果存在优先级相同的子集,再按权重分配
       * 优先级和权重可以都不设置/设置一个/设置两个
       * 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
       * 如果部分设置权重,部分没有设置,认为没有设置的权重为0
       * 如果全部没有设置权重,认为权重相同
       * 
* * .google.protobuf.UInt32Value priority = 4; * @return The priority. */ public com.google.protobuf.UInt32Value getPriority() { if (priorityBuilder_ == null) { return priority_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : priority_; } else { return priorityBuilder_.getMessage(); } } /** *
       * 根据服务名和服务实例metadata筛选符合条件的服务实例子集
       * 服务实例子集可以设置优先级和权重
       * 优先级:整型,范围[0, 9],最高优先级为0
       * 权重:整型
       * 先按优先级路由,如果存在高优先级,不会使用低优先级
       * 如果存在优先级相同的子集,再按权重分配
       * 优先级和权重可以都不设置/设置一个/设置两个
       * 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
       * 如果部分设置权重,部分没有设置,认为没有设置的权重为0
       * 如果全部没有设置权重,认为权重相同
       * 
* * .google.protobuf.UInt32Value priority = 4; */ public Builder setPriority(com.google.protobuf.UInt32Value value) { if (priorityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } priority_ = value; onChanged(); } else { priorityBuilder_.setMessage(value); } return this; } /** *
       * 根据服务名和服务实例metadata筛选符合条件的服务实例子集
       * 服务实例子集可以设置优先级和权重
       * 优先级:整型,范围[0, 9],最高优先级为0
       * 权重:整型
       * 先按优先级路由,如果存在高优先级,不会使用低优先级
       * 如果存在优先级相同的子集,再按权重分配
       * 优先级和权重可以都不设置/设置一个/设置两个
       * 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
       * 如果部分设置权重,部分没有设置,认为没有设置的权重为0
       * 如果全部没有设置权重,认为权重相同
       * 
* * .google.protobuf.UInt32Value priority = 4; */ public Builder setPriority( com.google.protobuf.UInt32Value.Builder builderForValue) { if (priorityBuilder_ == null) { priority_ = builderForValue.build(); onChanged(); } else { priorityBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 根据服务名和服务实例metadata筛选符合条件的服务实例子集
       * 服务实例子集可以设置优先级和权重
       * 优先级:整型,范围[0, 9],最高优先级为0
       * 权重:整型
       * 先按优先级路由,如果存在高优先级,不会使用低优先级
       * 如果存在优先级相同的子集,再按权重分配
       * 优先级和权重可以都不设置/设置一个/设置两个
       * 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
       * 如果部分设置权重,部分没有设置,认为没有设置的权重为0
       * 如果全部没有设置权重,认为权重相同
       * 
* * .google.protobuf.UInt32Value priority = 4; */ public Builder mergePriority(com.google.protobuf.UInt32Value value) { if (priorityBuilder_ == null) { if (priority_ != null) { priority_ = com.google.protobuf.UInt32Value.newBuilder(priority_).mergeFrom(value).buildPartial(); } else { priority_ = value; } onChanged(); } else { priorityBuilder_.mergeFrom(value); } return this; } /** *
       * 根据服务名和服务实例metadata筛选符合条件的服务实例子集
       * 服务实例子集可以设置优先级和权重
       * 优先级:整型,范围[0, 9],最高优先级为0
       * 权重:整型
       * 先按优先级路由,如果存在高优先级,不会使用低优先级
       * 如果存在优先级相同的子集,再按权重分配
       * 优先级和权重可以都不设置/设置一个/设置两个
       * 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
       * 如果部分设置权重,部分没有设置,认为没有设置的权重为0
       * 如果全部没有设置权重,认为权重相同
       * 
* * .google.protobuf.UInt32Value priority = 4; */ public Builder clearPriority() { if (priorityBuilder_ == null) { priority_ = null; onChanged(); } else { priority_ = null; priorityBuilder_ = null; } return this; } /** *
       * 根据服务名和服务实例metadata筛选符合条件的服务实例子集
       * 服务实例子集可以设置优先级和权重
       * 优先级:整型,范围[0, 9],最高优先级为0
       * 权重:整型
       * 先按优先级路由,如果存在高优先级,不会使用低优先级
       * 如果存在优先级相同的子集,再按权重分配
       * 优先级和权重可以都不设置/设置一个/设置两个
       * 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
       * 如果部分设置权重,部分没有设置,认为没有设置的权重为0
       * 如果全部没有设置权重,认为权重相同
       * 
* * .google.protobuf.UInt32Value priority = 4; */ public com.google.protobuf.UInt32Value.Builder getPriorityBuilder() { onChanged(); return getPriorityFieldBuilder().getBuilder(); } /** *
       * 根据服务名和服务实例metadata筛选符合条件的服务实例子集
       * 服务实例子集可以设置优先级和权重
       * 优先级:整型,范围[0, 9],最高优先级为0
       * 权重:整型
       * 先按优先级路由,如果存在高优先级,不会使用低优先级
       * 如果存在优先级相同的子集,再按权重分配
       * 优先级和权重可以都不设置/设置一个/设置两个
       * 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
       * 如果部分设置权重,部分没有设置,认为没有设置的权重为0
       * 如果全部没有设置权重,认为权重相同
       * 
* * .google.protobuf.UInt32Value priority = 4; */ public com.google.protobuf.UInt32ValueOrBuilder getPriorityOrBuilder() { if (priorityBuilder_ != null) { return priorityBuilder_.getMessageOrBuilder(); } else { return priority_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : priority_; } } /** *
       * 根据服务名和服务实例metadata筛选符合条件的服务实例子集
       * 服务实例子集可以设置优先级和权重
       * 优先级:整型,范围[0, 9],最高优先级为0
       * 权重:整型
       * 先按优先级路由,如果存在高优先级,不会使用低优先级
       * 如果存在优先级相同的子集,再按权重分配
       * 优先级和权重可以都不设置/设置一个/设置两个
       * 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
       * 如果部分设置权重,部分没有设置,认为没有设置的权重为0
       * 如果全部没有设置权重,认为权重相同
       * 
* * .google.protobuf.UInt32Value priority = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getPriorityFieldBuilder() { if (priorityBuilder_ == null) { priorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getPriority(), getParentForChildren(), isClean()); priority_ = null; } return priorityBuilder_; } private com.google.protobuf.UInt32Value weight_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> weightBuilder_; /** * .google.protobuf.UInt32Value weight = 5; * @return Whether the weight field is set. */ public boolean hasWeight() { return weightBuilder_ != null || weight_ != null; } /** * .google.protobuf.UInt32Value weight = 5; * @return The weight. */ public com.google.protobuf.UInt32Value getWeight() { if (weightBuilder_ == null) { return weight_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : weight_; } else { return weightBuilder_.getMessage(); } } /** * .google.protobuf.UInt32Value weight = 5; */ public Builder setWeight(com.google.protobuf.UInt32Value value) { if (weightBuilder_ == null) { if (value == null) { throw new NullPointerException(); } weight_ = value; onChanged(); } else { weightBuilder_.setMessage(value); } return this; } /** * .google.protobuf.UInt32Value weight = 5; */ public Builder setWeight( com.google.protobuf.UInt32Value.Builder builderForValue) { if (weightBuilder_ == null) { weight_ = builderForValue.build(); onChanged(); } else { weightBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.UInt32Value weight = 5; */ public Builder mergeWeight(com.google.protobuf.UInt32Value value) { if (weightBuilder_ == null) { if (weight_ != null) { weight_ = com.google.protobuf.UInt32Value.newBuilder(weight_).mergeFrom(value).buildPartial(); } else { weight_ = value; } onChanged(); } else { weightBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.UInt32Value weight = 5; */ public Builder clearWeight() { if (weightBuilder_ == null) { weight_ = null; onChanged(); } else { weight_ = null; weightBuilder_ = null; } return this; } /** * .google.protobuf.UInt32Value weight = 5; */ public com.google.protobuf.UInt32Value.Builder getWeightBuilder() { onChanged(); return getWeightFieldBuilder().getBuilder(); } /** * .google.protobuf.UInt32Value weight = 5; */ public com.google.protobuf.UInt32ValueOrBuilder getWeightOrBuilder() { if (weightBuilder_ != null) { return weightBuilder_.getMessageOrBuilder(); } else { return weight_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : weight_; } } /** * .google.protobuf.UInt32Value weight = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> getWeightFieldBuilder() { if (weightBuilder_ == null) { weightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>( getWeight(), getParentForChildren(), isClean()); weight_ = null; } return weightBuilder_; } private com.google.protobuf.StringValue transfer_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> transferBuilder_; /** *
       * 将请求转发到代理服务
       * 
* * .google.protobuf.StringValue transfer = 6; * @return Whether the transfer field is set. */ public boolean hasTransfer() { return transferBuilder_ != null || transfer_ != null; } /** *
       * 将请求转发到代理服务
       * 
* * .google.protobuf.StringValue transfer = 6; * @return The transfer. */ public com.google.protobuf.StringValue getTransfer() { if (transferBuilder_ == null) { return transfer_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : transfer_; } else { return transferBuilder_.getMessage(); } } /** *
       * 将请求转发到代理服务
       * 
* * .google.protobuf.StringValue transfer = 6; */ public Builder setTransfer(com.google.protobuf.StringValue value) { if (transferBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transfer_ = value; onChanged(); } else { transferBuilder_.setMessage(value); } return this; } /** *
       * 将请求转发到代理服务
       * 
* * .google.protobuf.StringValue transfer = 6; */ public Builder setTransfer( com.google.protobuf.StringValue.Builder builderForValue) { if (transferBuilder_ == null) { transfer_ = builderForValue.build(); onChanged(); } else { transferBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 将请求转发到代理服务
       * 
* * .google.protobuf.StringValue transfer = 6; */ public Builder mergeTransfer(com.google.protobuf.StringValue value) { if (transferBuilder_ == null) { if (transfer_ != null) { transfer_ = com.google.protobuf.StringValue.newBuilder(transfer_).mergeFrom(value).buildPartial(); } else { transfer_ = value; } onChanged(); } else { transferBuilder_.mergeFrom(value); } return this; } /** *
       * 将请求转发到代理服务
       * 
* * .google.protobuf.StringValue transfer = 6; */ public Builder clearTransfer() { if (transferBuilder_ == null) { transfer_ = null; onChanged(); } else { transfer_ = null; transferBuilder_ = null; } return this; } /** *
       * 将请求转发到代理服务
       * 
* * .google.protobuf.StringValue transfer = 6; */ public com.google.protobuf.StringValue.Builder getTransferBuilder() { onChanged(); return getTransferFieldBuilder().getBuilder(); } /** *
       * 将请求转发到代理服务
       * 
* * .google.protobuf.StringValue transfer = 6; */ public com.google.protobuf.StringValueOrBuilder getTransferOrBuilder() { if (transferBuilder_ != null) { return transferBuilder_.getMessageOrBuilder(); } else { return transfer_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : transfer_; } } /** *
       * 将请求转发到代理服务
       * 
* * .google.protobuf.StringValue transfer = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getTransferFieldBuilder() { if (transferBuilder_ == null) { transferBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getTransfer(), getParentForChildren(), isClean()); transfer_ = null; } return transferBuilder_; } private com.google.protobuf.BoolValue isolate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> isolateBuilder_; /** *
       *是否对该set执行隔离,隔离后,不会再分配流量
       * 
* * .google.protobuf.BoolValue isolate = 7; * @return Whether the isolate field is set. */ public boolean hasIsolate() { return isolateBuilder_ != null || isolate_ != null; } /** *
       *是否对该set执行隔离,隔离后,不会再分配流量
       * 
* * .google.protobuf.BoolValue isolate = 7; * @return The isolate. */ public com.google.protobuf.BoolValue getIsolate() { if (isolateBuilder_ == null) { return isolate_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isolate_; } else { return isolateBuilder_.getMessage(); } } /** *
       *是否对该set执行隔离,隔离后,不会再分配流量
       * 
* * .google.protobuf.BoolValue isolate = 7; */ public Builder setIsolate(com.google.protobuf.BoolValue value) { if (isolateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } isolate_ = value; onChanged(); } else { isolateBuilder_.setMessage(value); } return this; } /** *
       *是否对该set执行隔离,隔离后,不会再分配流量
       * 
* * .google.protobuf.BoolValue isolate = 7; */ public Builder setIsolate( com.google.protobuf.BoolValue.Builder builderForValue) { if (isolateBuilder_ == null) { isolate_ = builderForValue.build(); onChanged(); } else { isolateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       *是否对该set执行隔离,隔离后,不会再分配流量
       * 
* * .google.protobuf.BoolValue isolate = 7; */ public Builder mergeIsolate(com.google.protobuf.BoolValue value) { if (isolateBuilder_ == null) { if (isolate_ != null) { isolate_ = com.google.protobuf.BoolValue.newBuilder(isolate_).mergeFrom(value).buildPartial(); } else { isolate_ = value; } onChanged(); } else { isolateBuilder_.mergeFrom(value); } return this; } /** *
       *是否对该set执行隔离,隔离后,不会再分配流量
       * 
* * .google.protobuf.BoolValue isolate = 7; */ public Builder clearIsolate() { if (isolateBuilder_ == null) { isolate_ = null; onChanged(); } else { isolate_ = null; isolateBuilder_ = null; } return this; } /** *
       *是否对该set执行隔离,隔离后,不会再分配流量
       * 
* * .google.protobuf.BoolValue isolate = 7; */ public com.google.protobuf.BoolValue.Builder getIsolateBuilder() { onChanged(); return getIsolateFieldBuilder().getBuilder(); } /** *
       *是否对该set执行隔离,隔离后,不会再分配流量
       * 
* * .google.protobuf.BoolValue isolate = 7; */ public com.google.protobuf.BoolValueOrBuilder getIsolateOrBuilder() { if (isolateBuilder_ != null) { return isolateBuilder_.getMessageOrBuilder(); } else { return isolate_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isolate_; } } /** *
       *是否对该set执行隔离,隔离后,不会再分配流量
       * 
* * .google.protobuf.BoolValue isolate = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getIsolateFieldBuilder() { if (isolateBuilder_ == null) { isolateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getIsolate(), getParentForChildren(), isClean()); isolate_ = null; } return isolateBuilder_; } private com.google.protobuf.StringValue name_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> nameBuilder_; /** *
       * 实例分组名
       * 
* * .google.protobuf.StringValue name = 8; * @return Whether the name field is set. */ public boolean hasName() { return nameBuilder_ != null || name_ != null; } /** *
       * 实例分组名
       * 
* * .google.protobuf.StringValue name = 8; * @return The name. */ public com.google.protobuf.StringValue getName() { if (nameBuilder_ == null) { return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_; } else { return nameBuilder_.getMessage(); } } /** *
       * 实例分组名
       * 
* * .google.protobuf.StringValue name = 8; */ public Builder setName(com.google.protobuf.StringValue value) { if (nameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); } else { nameBuilder_.setMessage(value); } return this; } /** *
       * 实例分组名
       * 
* * .google.protobuf.StringValue name = 8; */ public Builder setName( com.google.protobuf.StringValue.Builder builderForValue) { if (nameBuilder_ == null) { name_ = builderForValue.build(); onChanged(); } else { nameBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 实例分组名
       * 
* * .google.protobuf.StringValue name = 8; */ public Builder mergeName(com.google.protobuf.StringValue value) { if (nameBuilder_ == null) { if (name_ != null) { name_ = com.google.protobuf.StringValue.newBuilder(name_).mergeFrom(value).buildPartial(); } else { name_ = value; } onChanged(); } else { nameBuilder_.mergeFrom(value); } return this; } /** *
       * 实例分组名
       * 
* * .google.protobuf.StringValue name = 8; */ public Builder clearName() { if (nameBuilder_ == null) { name_ = null; onChanged(); } else { name_ = null; nameBuilder_ = null; } return this; } /** *
       * 实例分组名
       * 
* * .google.protobuf.StringValue name = 8; */ public com.google.protobuf.StringValue.Builder getNameBuilder() { onChanged(); return getNameFieldBuilder().getBuilder(); } /** *
       * 实例分组名
       * 
* * .google.protobuf.StringValue name = 8; */ public com.google.protobuf.StringValueOrBuilder getNameOrBuilder() { if (nameBuilder_ != null) { return nameBuilder_.getMessageOrBuilder(); } else { return name_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : name_; } } /** *
       * 实例分组名
       * 
* * .google.protobuf.StringValue name = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> getNameFieldBuilder() { if (nameBuilder_ == null) { nameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( getName(), getParentForChildren(), isClean()); name_ = null; } return nameBuilder_; } @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:v1.Destination) } // @@protoc_insertion_point(class_scope:v1.Destination) private static final com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Destination 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.Destination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RouteRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.RouteRule) com.google.protobuf.MessageOrBuilder { /** * string id = 1; * @return The id. */ java.lang.String getId(); /** * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * route rule name
     * 
* * string name = 2; * @return The name. */ java.lang.String getName(); /** *
     * route rule name
     * 
* * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * namespace namingspace of routing rules
     * 
* * string namespace = 3; * @return The namespace. */ java.lang.String getNamespace(); /** *
     * namespace namingspace of routing rules
     * 
* * string namespace = 3; * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); /** *
     * Enable this router
     * 
* * bool enable = 4; * @return The enable. */ boolean getEnable(); /** *
     * Router type
     * 
* * .v1.RoutingPolicy routing_policy = 5 [json_name = "routing_policy"]; * @return The enum numeric value on the wire for routingPolicy. */ int getRoutingPolicyValue(); /** *
     * Router type
     * 
* * .v1.RoutingPolicy routing_policy = 5 [json_name = "routing_policy"]; * @return The routingPolicy. */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingPolicy getRoutingPolicy(); /** *
     * Routing configuration for router
     * 
* * .google.protobuf.Any routing_config = 6 [json_name = "routing_config"]; * @return Whether the routingConfig field is set. */ boolean hasRoutingConfig(); /** *
     * Routing configuration for router
     * 
* * .google.protobuf.Any routing_config = 6 [json_name = "routing_config"]; * @return The routingConfig. */ com.google.protobuf.Any getRoutingConfig(); /** *
     * Routing configuration for router
     * 
* * .google.protobuf.Any routing_config = 6 [json_name = "routing_config"]; */ com.google.protobuf.AnyOrBuilder getRoutingConfigOrBuilder(); /** *
     * revision routing version
     * 
* * string revision = 7; * @return The revision. */ java.lang.String getRevision(); /** *
     * revision routing version
     * 
* * string revision = 7; * @return The bytes for revision. */ com.google.protobuf.ByteString getRevisionBytes(); /** *
     * ctime create time of the rules
     * 
* * string ctime = 8; * @return The ctime. */ java.lang.String getCtime(); /** *
     * ctime create time of the rules
     * 
* * string ctime = 8; * @return The bytes for ctime. */ com.google.protobuf.ByteString getCtimeBytes(); /** *
     * mtime modify time of the rules
     * 
* * string mtime = 9; * @return The mtime. */ java.lang.String getMtime(); /** *
     * mtime modify time of the rules
     * 
* * string mtime = 9; * @return The bytes for mtime. */ com.google.protobuf.ByteString getMtimeBytes(); /** *
     * etime enable time of the rules
     * 
* * string etime = 10; * @return The etime. */ java.lang.String getEtime(); /** *
     * etime enable time of the rules
     * 
* * string etime = 10; * @return The bytes for etime. */ com.google.protobuf.ByteString getEtimeBytes(); /** *
     * priority rules priority
     * 
* * uint32 priority = 11; * @return The priority. */ int getPriority(); /** *
     * description simple description rules
     * 
* * string description = 12; * @return The description. */ java.lang.String getDescription(); /** *
     * description simple description rules
     * 
* * string description = 12; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v1 版本的 id 信息
     * 
* * map<string, string> extendInfo = 20; */ int getExtendInfoCount(); /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v1 版本的 id 信息
     * 
* * map<string, string> extendInfo = 20; */ boolean containsExtendInfo( java.lang.String key); /** * Use {@link #getExtendInfoMap()} instead. */ @java.lang.Deprecated java.util.Map getExtendInfo(); /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v1 版本的 id 信息
     * 
* * map<string, string> extendInfo = 20; */ java.util.Map getExtendInfoMap(); /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v1 版本的 id 信息
     * 
* * map<string, string> extendInfo = 20; */ /* nullable */ java.lang.String getExtendInfoOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v1 版本的 id 信息
     * 
* * map<string, string> extendInfo = 20; */ java.lang.String getExtendInfoOrThrow( java.lang.String key); } /** *
   * configuration root for route
   * 
* * Protobuf type {@code v1.RouteRule} */ public static final class RouteRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.RouteRule) RouteRuleOrBuilder { private static final long serialVersionUID = 0L; // Use RouteRule.newBuilder() to construct. private RouteRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RouteRule() { id_ = ""; name_ = ""; namespace_ = ""; routingPolicy_ = 0; revision_ = ""; ctime_ = ""; mtime_ = ""; etime_ = ""; description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RouteRule(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_RouteRule_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 20: return internalGetExtendInfo(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_RouteRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * route rule name
     * 
* * string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * route rule name
     * 
* * string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAMESPACE_FIELD_NUMBER = 3; private volatile java.lang.Object namespace_; /** *
     * namespace namingspace of routing rules
     * 
* * string namespace = 3; * @return The namespace. */ @java.lang.Override public java.lang.String getNamespace() { java.lang.Object ref = namespace_; 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(); namespace_ = s; return s; } } /** *
     * namespace namingspace of routing rules
     * 
* * string namespace = 3; * @return The bytes for namespace. */ @java.lang.Override public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENABLE_FIELD_NUMBER = 4; private boolean enable_; /** *
     * Enable this router
     * 
* * bool enable = 4; * @return The enable. */ @java.lang.Override public boolean getEnable() { return enable_; } public static final int ROUTING_POLICY_FIELD_NUMBER = 5; private int routingPolicy_; /** *
     * Router type
     * 
* * .v1.RoutingPolicy routing_policy = 5 [json_name = "routing_policy"]; * @return The enum numeric value on the wire for routingPolicy. */ @java.lang.Override public int getRoutingPolicyValue() { return routingPolicy_; } /** *
     * Router type
     * 
* * .v1.RoutingPolicy routing_policy = 5 [json_name = "routing_policy"]; * @return The routingPolicy. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingPolicy getRoutingPolicy() { @SuppressWarnings("deprecation") com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingPolicy result = com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingPolicy.valueOf(routingPolicy_); return result == null ? com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingPolicy.UNRECOGNIZED : result; } public static final int ROUTING_CONFIG_FIELD_NUMBER = 6; private com.google.protobuf.Any routingConfig_; /** *
     * Routing configuration for router
     * 
* * .google.protobuf.Any routing_config = 6 [json_name = "routing_config"]; * @return Whether the routingConfig field is set. */ @java.lang.Override public boolean hasRoutingConfig() { return routingConfig_ != null; } /** *
     * Routing configuration for router
     * 
* * .google.protobuf.Any routing_config = 6 [json_name = "routing_config"]; * @return The routingConfig. */ @java.lang.Override public com.google.protobuf.Any getRoutingConfig() { return routingConfig_ == null ? com.google.protobuf.Any.getDefaultInstance() : routingConfig_; } /** *
     * Routing configuration for router
     * 
* * .google.protobuf.Any routing_config = 6 [json_name = "routing_config"]; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getRoutingConfigOrBuilder() { return getRoutingConfig(); } public static final int REVISION_FIELD_NUMBER = 7; private volatile java.lang.Object revision_; /** *
     * revision routing version
     * 
* * string revision = 7; * @return The revision. */ @java.lang.Override public java.lang.String getRevision() { java.lang.Object ref = revision_; 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(); revision_ = s; return s; } } /** *
     * revision routing version
     * 
* * string revision = 7; * @return The bytes for revision. */ @java.lang.Override public com.google.protobuf.ByteString getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); revision_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CTIME_FIELD_NUMBER = 8; private volatile java.lang.Object ctime_; /** *
     * ctime create time of the rules
     * 
* * string ctime = 8; * @return The ctime. */ @java.lang.Override public java.lang.String getCtime() { java.lang.Object ref = ctime_; 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(); ctime_ = s; return s; } } /** *
     * ctime create time of the rules
     * 
* * string ctime = 8; * @return The bytes for ctime. */ @java.lang.Override public com.google.protobuf.ByteString getCtimeBytes() { java.lang.Object ref = ctime_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ctime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MTIME_FIELD_NUMBER = 9; private volatile java.lang.Object mtime_; /** *
     * mtime modify time of the rules
     * 
* * string mtime = 9; * @return The mtime. */ @java.lang.Override public java.lang.String getMtime() { java.lang.Object ref = mtime_; 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(); mtime_ = s; return s; } } /** *
     * mtime modify time of the rules
     * 
* * string mtime = 9; * @return The bytes for mtime. */ @java.lang.Override public com.google.protobuf.ByteString getMtimeBytes() { java.lang.Object ref = mtime_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mtime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ETIME_FIELD_NUMBER = 10; private volatile java.lang.Object etime_; /** *
     * etime enable time of the rules
     * 
* * string etime = 10; * @return The etime. */ @java.lang.Override public java.lang.String getEtime() { java.lang.Object ref = etime_; 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(); etime_ = s; return s; } } /** *
     * etime enable time of the rules
     * 
* * string etime = 10; * @return The bytes for etime. */ @java.lang.Override public com.google.protobuf.ByteString getEtimeBytes() { java.lang.Object ref = etime_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); etime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PRIORITY_FIELD_NUMBER = 11; private int priority_; /** *
     * priority rules priority
     * 
* * uint32 priority = 11; * @return The priority. */ @java.lang.Override public int getPriority() { return priority_; } public static final int DESCRIPTION_FIELD_NUMBER = 12; private volatile java.lang.Object description_; /** *
     * description simple description rules
     * 
* * string description = 12; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** *
     * description simple description rules
     * 
* * string description = 12; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EXTENDINFO_FIELD_NUMBER = 20; private static final class ExtendInfoDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_RouteRule_ExtendInfoEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> extendInfo_; private com.google.protobuf.MapField internalGetExtendInfo() { if (extendInfo_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtendInfoDefaultEntryHolder.defaultEntry); } return extendInfo_; } public int getExtendInfoCount() { return internalGetExtendInfo().getMap().size(); } /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v1 版本的 id 信息
     * 
* * map<string, string> extendInfo = 20; */ @java.lang.Override public boolean containsExtendInfo( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtendInfo().getMap().containsKey(key); } /** * Use {@link #getExtendInfoMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtendInfo() { return getExtendInfoMap(); } /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v1 版本的 id 信息
     * 
* * map<string, string> extendInfo = 20; */ @java.lang.Override public java.util.Map getExtendInfoMap() { return internalGetExtendInfo().getMap(); } /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v1 版本的 id 信息
     * 
* * map<string, string> extendInfo = 20; */ @java.lang.Override public java.lang.String getExtendInfoOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtendInfo().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * extendInfo 用于承载一些额外信息
     * case 1: 升级到 v2 版本时,记录对应到 v1 版本的 id 信息
     * 
* * map<string, string> extendInfo = 20; */ @java.lang.Override public java.lang.String getExtendInfoOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtendInfo().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, namespace_); } if (enable_ != false) { output.writeBool(4, enable_); } if (routingPolicy_ != com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingPolicy.RulePolicy.getNumber()) { output.writeEnum(5, routingPolicy_); } if (routingConfig_ != null) { output.writeMessage(6, getRoutingConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, revision_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ctime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, ctime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mtime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, mtime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, etime_); } if (priority_ != 0) { output.writeUInt32(11, priority_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetExtendInfo(), ExtendInfoDefaultEntryHolder.defaultEntry, 20); 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, namespace_); } if (enable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, enable_); } if (routingPolicy_ != com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingPolicy.RulePolicy.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, routingPolicy_); } if (routingConfig_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getRoutingConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, revision_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ctime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, ctime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mtime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, mtime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, etime_); } if (priority_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(11, priority_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, description_); } for (java.util.Map.Entry entry : internalGetExtendInfo().getMap().entrySet()) { com.google.protobuf.MapEntry extendInfo__ = ExtendInfoDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, extendInfo__); } 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule other = (com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (!getNamespace() .equals(other.getNamespace())) return false; if (getEnable() != other.getEnable()) return false; if (routingPolicy_ != other.routingPolicy_) return false; if (hasRoutingConfig() != other.hasRoutingConfig()) return false; if (hasRoutingConfig()) { if (!getRoutingConfig() .equals(other.getRoutingConfig())) return false; } if (!getRevision() .equals(other.getRevision())) return false; if (!getCtime() .equals(other.getCtime())) return false; if (!getMtime() .equals(other.getMtime())) return false; if (!getEtime() .equals(other.getEtime())) return false; if (getPriority() != other.getPriority()) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!internalGetExtendInfo().equals( other.internalGetExtendInfo())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); hash = (37 * hash) + ENABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnable()); hash = (37 * hash) + ROUTING_POLICY_FIELD_NUMBER; hash = (53 * hash) + routingPolicy_; if (hasRoutingConfig()) { hash = (37 * hash) + ROUTING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getRoutingConfig().hashCode(); } hash = (37 * hash) + REVISION_FIELD_NUMBER; hash = (53 * hash) + getRevision().hashCode(); hash = (37 * hash) + CTIME_FIELD_NUMBER; hash = (53 * hash) + getCtime().hashCode(); hash = (37 * hash) + MTIME_FIELD_NUMBER; hash = (53 * hash) + getMtime().hashCode(); hash = (37 * hash) + ETIME_FIELD_NUMBER; hash = (53 * hash) + getEtime().hashCode(); hash = (37 * hash) + PRIORITY_FIELD_NUMBER; hash = (53 * hash) + getPriority(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (!internalGetExtendInfo().getMap().isEmpty()) { hash = (37 * hash) + EXTENDINFO_FIELD_NUMBER; hash = (53 * hash) + internalGetExtendInfo().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule 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(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule 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; } /** *
     * configuration root for route
     * 
* * Protobuf type {@code v1.RouteRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.RouteRule) com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_RouteRule_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 20: return internalGetExtendInfo(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 20: return internalGetMutableExtendInfo(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_RouteRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; name_ = ""; namespace_ = ""; enable_ = false; routingPolicy_ = 0; if (routingConfigBuilder_ == null) { routingConfig_ = null; } else { routingConfig_ = null; routingConfigBuilder_ = null; } revision_ = ""; ctime_ = ""; mtime_ = ""; etime_ = ""; priority_ = 0; description_ = ""; internalGetMutableExtendInfo().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_RouteRule_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule build() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule result = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; result.namespace_ = namespace_; result.enable_ = enable_; result.routingPolicy_ = routingPolicy_; if (routingConfigBuilder_ == null) { result.routingConfig_ = routingConfig_; } else { result.routingConfig_ = routingConfigBuilder_.build(); } result.revision_ = revision_; result.ctime_ = ctime_; result.mtime_ = mtime_; result.etime_ = etime_; result.priority_ = priority_; result.description_ = description_; result.extendInfo_ = internalGetExtendInfo(); result.extendInfo_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); } if (other.getEnable() != false) { setEnable(other.getEnable()); } if (other.routingPolicy_ != 0) { setRoutingPolicyValue(other.getRoutingPolicyValue()); } if (other.hasRoutingConfig()) { mergeRoutingConfig(other.getRoutingConfig()); } if (!other.getRevision().isEmpty()) { revision_ = other.revision_; onChanged(); } if (!other.getCtime().isEmpty()) { ctime_ = other.ctime_; onChanged(); } if (!other.getMtime().isEmpty()) { mtime_ = other.mtime_; onChanged(); } if (!other.getEtime().isEmpty()) { etime_ = other.etime_; onChanged(); } if (other.getPriority() != 0) { setPriority(other.getPriority()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } internalGetMutableExtendInfo().mergeFrom( other.internalGetExtendInfo()); 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: { id_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { name_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { namespace_ = input.readStringRequireUtf8(); break; } // case 26 case 32: { enable_ = input.readBool(); break; } // case 32 case 40: { routingPolicy_ = input.readEnum(); break; } // case 40 case 50: { input.readMessage( getRoutingConfigFieldBuilder().getBuilder(), extensionRegistry); break; } // case 50 case 58: { revision_ = input.readStringRequireUtf8(); break; } // case 58 case 66: { ctime_ = input.readStringRequireUtf8(); break; } // case 66 case 74: { mtime_ = input.readStringRequireUtf8(); break; } // case 74 case 82: { etime_ = input.readStringRequireUtf8(); break; } // case 82 case 88: { priority_ = input.readUInt32(); break; } // case 88 case 98: { description_ = input.readStringRequireUtf8(); break; } // case 98 case 162: { com.google.protobuf.MapEntry extendInfo__ = input.readMessage( ExtendInfoDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableExtendInfo().getMutableMap().put( extendInfo__.getKey(), extendInfo__.getValue()); break; } // case 162 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // 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 id_ = ""; /** * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * route rule name
       * 
* * string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * route rule name
       * 
* * string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * route rule name
       * 
* * string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * route rule name
       * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * route rule name
       * 
* * string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object namespace_ = ""; /** *
       * namespace namingspace of routing rules
       * 
* * string namespace = 3; * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * namespace namingspace of routing rules
       * 
* * string namespace = 3; * @return The bytes for namespace. */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * namespace namingspace of routing rules
       * 
* * string namespace = 3; * @param value The namespace to set. * @return This builder for chaining. */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); return this; } /** *
       * namespace namingspace of routing rules
       * 
* * string namespace = 3; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** *
       * namespace namingspace of routing rules
       * 
* * string namespace = 3; * @param value The bytes for namespace to set. * @return This builder for chaining. */ public Builder setNamespaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); namespace_ = value; onChanged(); return this; } private boolean enable_ ; /** *
       * Enable this router
       * 
* * bool enable = 4; * @return The enable. */ @java.lang.Override public boolean getEnable() { return enable_; } /** *
       * Enable this router
       * 
* * bool enable = 4; * @param value The enable to set. * @return This builder for chaining. */ public Builder setEnable(boolean value) { enable_ = value; onChanged(); return this; } /** *
       * Enable this router
       * 
* * bool enable = 4; * @return This builder for chaining. */ public Builder clearEnable() { enable_ = false; onChanged(); return this; } private int routingPolicy_ = 0; /** *
       * Router type
       * 
* * .v1.RoutingPolicy routing_policy = 5 [json_name = "routing_policy"]; * @return The enum numeric value on the wire for routingPolicy. */ @java.lang.Override public int getRoutingPolicyValue() { return routingPolicy_; } /** *
       * Router type
       * 
* * .v1.RoutingPolicy routing_policy = 5 [json_name = "routing_policy"]; * @param value The enum numeric value on the wire for routingPolicy to set. * @return This builder for chaining. */ public Builder setRoutingPolicyValue(int value) { routingPolicy_ = value; onChanged(); return this; } /** *
       * Router type
       * 
* * .v1.RoutingPolicy routing_policy = 5 [json_name = "routing_policy"]; * @return The routingPolicy. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingPolicy getRoutingPolicy() { @SuppressWarnings("deprecation") com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingPolicy result = com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingPolicy.valueOf(routingPolicy_); return result == null ? com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingPolicy.UNRECOGNIZED : result; } /** *
       * Router type
       * 
* * .v1.RoutingPolicy routing_policy = 5 [json_name = "routing_policy"]; * @param value The routingPolicy to set. * @return This builder for chaining. */ public Builder setRoutingPolicy(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RoutingPolicy value) { if (value == null) { throw new NullPointerException(); } routingPolicy_ = value.getNumber(); onChanged(); return this; } /** *
       * Router type
       * 
* * .v1.RoutingPolicy routing_policy = 5 [json_name = "routing_policy"]; * @return This builder for chaining. */ public Builder clearRoutingPolicy() { routingPolicy_ = 0; onChanged(); return this; } private com.google.protobuf.Any routingConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> routingConfigBuilder_; /** *
       * Routing configuration for router
       * 
* * .google.protobuf.Any routing_config = 6 [json_name = "routing_config"]; * @return Whether the routingConfig field is set. */ public boolean hasRoutingConfig() { return routingConfigBuilder_ != null || routingConfig_ != null; } /** *
       * Routing configuration for router
       * 
* * .google.protobuf.Any routing_config = 6 [json_name = "routing_config"]; * @return The routingConfig. */ public com.google.protobuf.Any getRoutingConfig() { if (routingConfigBuilder_ == null) { return routingConfig_ == null ? com.google.protobuf.Any.getDefaultInstance() : routingConfig_; } else { return routingConfigBuilder_.getMessage(); } } /** *
       * Routing configuration for router
       * 
* * .google.protobuf.Any routing_config = 6 [json_name = "routing_config"]; */ public Builder setRoutingConfig(com.google.protobuf.Any value) { if (routingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } routingConfig_ = value; onChanged(); } else { routingConfigBuilder_.setMessage(value); } return this; } /** *
       * Routing configuration for router
       * 
* * .google.protobuf.Any routing_config = 6 [json_name = "routing_config"]; */ public Builder setRoutingConfig( com.google.protobuf.Any.Builder builderForValue) { if (routingConfigBuilder_ == null) { routingConfig_ = builderForValue.build(); onChanged(); } else { routingConfigBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Routing configuration for router
       * 
* * .google.protobuf.Any routing_config = 6 [json_name = "routing_config"]; */ public Builder mergeRoutingConfig(com.google.protobuf.Any value) { if (routingConfigBuilder_ == null) { if (routingConfig_ != null) { routingConfig_ = com.google.protobuf.Any.newBuilder(routingConfig_).mergeFrom(value).buildPartial(); } else { routingConfig_ = value; } onChanged(); } else { routingConfigBuilder_.mergeFrom(value); } return this; } /** *
       * Routing configuration for router
       * 
* * .google.protobuf.Any routing_config = 6 [json_name = "routing_config"]; */ public Builder clearRoutingConfig() { if (routingConfigBuilder_ == null) { routingConfig_ = null; onChanged(); } else { routingConfig_ = null; routingConfigBuilder_ = null; } return this; } /** *
       * Routing configuration for router
       * 
* * .google.protobuf.Any routing_config = 6 [json_name = "routing_config"]; */ public com.google.protobuf.Any.Builder getRoutingConfigBuilder() { onChanged(); return getRoutingConfigFieldBuilder().getBuilder(); } /** *
       * Routing configuration for router
       * 
* * .google.protobuf.Any routing_config = 6 [json_name = "routing_config"]; */ public com.google.protobuf.AnyOrBuilder getRoutingConfigOrBuilder() { if (routingConfigBuilder_ != null) { return routingConfigBuilder_.getMessageOrBuilder(); } else { return routingConfig_ == null ? com.google.protobuf.Any.getDefaultInstance() : routingConfig_; } } /** *
       * Routing configuration for router
       * 
* * .google.protobuf.Any routing_config = 6 [json_name = "routing_config"]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getRoutingConfigFieldBuilder() { if (routingConfigBuilder_ == null) { routingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getRoutingConfig(), getParentForChildren(), isClean()); routingConfig_ = null; } return routingConfigBuilder_; } private java.lang.Object revision_ = ""; /** *
       * revision routing version
       * 
* * string revision = 7; * @return The revision. */ public java.lang.String getRevision() { java.lang.Object ref = revision_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revision_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * revision routing version
       * 
* * string revision = 7; * @return The bytes for revision. */ public com.google.protobuf.ByteString getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); revision_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * revision routing version
       * 
* * string revision = 7; * @param value The revision to set. * @return This builder for chaining. */ public Builder setRevision( java.lang.String value) { if (value == null) { throw new NullPointerException(); } revision_ = value; onChanged(); return this; } /** *
       * revision routing version
       * 
* * string revision = 7; * @return This builder for chaining. */ public Builder clearRevision() { revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** *
       * revision routing version
       * 
* * string revision = 7; * @param value The bytes for revision to set. * @return This builder for chaining. */ public Builder setRevisionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); revision_ = value; onChanged(); return this; } private java.lang.Object ctime_ = ""; /** *
       * ctime create time of the rules
       * 
* * string ctime = 8; * @return The ctime. */ public java.lang.String getCtime() { java.lang.Object ref = ctime_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ctime_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ctime create time of the rules
       * 
* * string ctime = 8; * @return The bytes for ctime. */ public com.google.protobuf.ByteString getCtimeBytes() { java.lang.Object ref = ctime_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ctime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ctime create time of the rules
       * 
* * string ctime = 8; * @param value The ctime to set. * @return This builder for chaining. */ public Builder setCtime( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ctime_ = value; onChanged(); return this; } /** *
       * ctime create time of the rules
       * 
* * string ctime = 8; * @return This builder for chaining. */ public Builder clearCtime() { ctime_ = getDefaultInstance().getCtime(); onChanged(); return this; } /** *
       * ctime create time of the rules
       * 
* * string ctime = 8; * @param value The bytes for ctime to set. * @return This builder for chaining. */ public Builder setCtimeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ctime_ = value; onChanged(); return this; } private java.lang.Object mtime_ = ""; /** *
       * mtime modify time of the rules
       * 
* * string mtime = 9; * @return The mtime. */ public java.lang.String getMtime() { java.lang.Object ref = mtime_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mtime_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * mtime modify time of the rules
       * 
* * string mtime = 9; * @return The bytes for mtime. */ public com.google.protobuf.ByteString getMtimeBytes() { java.lang.Object ref = mtime_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mtime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * mtime modify time of the rules
       * 
* * string mtime = 9; * @param value The mtime to set. * @return This builder for chaining. */ public Builder setMtime( java.lang.String value) { if (value == null) { throw new NullPointerException(); } mtime_ = value; onChanged(); return this; } /** *
       * mtime modify time of the rules
       * 
* * string mtime = 9; * @return This builder for chaining. */ public Builder clearMtime() { mtime_ = getDefaultInstance().getMtime(); onChanged(); return this; } /** *
       * mtime modify time of the rules
       * 
* * string mtime = 9; * @param value The bytes for mtime to set. * @return This builder for chaining. */ public Builder setMtimeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mtime_ = value; onChanged(); return this; } private java.lang.Object etime_ = ""; /** *
       * etime enable time of the rules
       * 
* * string etime = 10; * @return The etime. */ public java.lang.String getEtime() { java.lang.Object ref = etime_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etime_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * etime enable time of the rules
       * 
* * string etime = 10; * @return The bytes for etime. */ public com.google.protobuf.ByteString getEtimeBytes() { java.lang.Object ref = etime_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); etime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * etime enable time of the rules
       * 
* * string etime = 10; * @param value The etime to set. * @return This builder for chaining. */ public Builder setEtime( java.lang.String value) { if (value == null) { throw new NullPointerException(); } etime_ = value; onChanged(); return this; } /** *
       * etime enable time of the rules
       * 
* * string etime = 10; * @return This builder for chaining. */ public Builder clearEtime() { etime_ = getDefaultInstance().getEtime(); onChanged(); return this; } /** *
       * etime enable time of the rules
       * 
* * string etime = 10; * @param value The bytes for etime to set. * @return This builder for chaining. */ public Builder setEtimeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etime_ = value; onChanged(); return this; } private int priority_ ; /** *
       * priority rules priority
       * 
* * uint32 priority = 11; * @return The priority. */ @java.lang.Override public int getPriority() { return priority_; } /** *
       * priority rules priority
       * 
* * uint32 priority = 11; * @param value The priority to set. * @return This builder for chaining. */ public Builder setPriority(int value) { priority_ = value; onChanged(); return this; } /** *
       * priority rules priority
       * 
* * uint32 priority = 11; * @return This builder for chaining. */ public Builder clearPriority() { priority_ = 0; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * description simple description rules
       * 
* * string description = 12; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * description simple description rules
       * 
* * string description = 12; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * description simple description rules
       * 
* * string description = 12; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** *
       * description simple description rules
       * 
* * string description = 12; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * description simple description rules
       * 
* * string description = 12; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> extendInfo_; private com.google.protobuf.MapField internalGetExtendInfo() { if (extendInfo_ == null) { return com.google.protobuf.MapField.emptyMapField( ExtendInfoDefaultEntryHolder.defaultEntry); } return extendInfo_; } private com.google.protobuf.MapField internalGetMutableExtendInfo() { onChanged();; if (extendInfo_ == null) { extendInfo_ = com.google.protobuf.MapField.newMapField( ExtendInfoDefaultEntryHolder.defaultEntry); } if (!extendInfo_.isMutable()) { extendInfo_ = extendInfo_.copy(); } return extendInfo_; } public int getExtendInfoCount() { return internalGetExtendInfo().getMap().size(); } /** *
       * extendInfo 用于承载一些额外信息
       * case 1: 升级到 v2 版本时,记录对应到 v1 版本的 id 信息
       * 
* * map<string, string> extendInfo = 20; */ @java.lang.Override public boolean containsExtendInfo( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetExtendInfo().getMap().containsKey(key); } /** * Use {@link #getExtendInfoMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getExtendInfo() { return getExtendInfoMap(); } /** *
       * extendInfo 用于承载一些额外信息
       * case 1: 升级到 v2 版本时,记录对应到 v1 版本的 id 信息
       * 
* * map<string, string> extendInfo = 20; */ @java.lang.Override public java.util.Map getExtendInfoMap() { return internalGetExtendInfo().getMap(); } /** *
       * extendInfo 用于承载一些额外信息
       * case 1: 升级到 v2 版本时,记录对应到 v1 版本的 id 信息
       * 
* * map<string, string> extendInfo = 20; */ @java.lang.Override public java.lang.String getExtendInfoOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtendInfo().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * extendInfo 用于承载一些额外信息
       * case 1: 升级到 v2 版本时,记录对应到 v1 版本的 id 信息
       * 
* * map<string, string> extendInfo = 20; */ @java.lang.Override public java.lang.String getExtendInfoOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetExtendInfo().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearExtendInfo() { internalGetMutableExtendInfo().getMutableMap() .clear(); return this; } /** *
       * extendInfo 用于承载一些额外信息
       * case 1: 升级到 v2 版本时,记录对应到 v1 版本的 id 信息
       * 
* * map<string, string> extendInfo = 20; */ public Builder removeExtendInfo( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableExtendInfo().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableExtendInfo() { return internalGetMutableExtendInfo().getMutableMap(); } /** *
       * extendInfo 用于承载一些额外信息
       * case 1: 升级到 v2 版本时,记录对应到 v1 版本的 id 信息
       * 
* * map<string, string> extendInfo = 20; */ public Builder putExtendInfo( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableExtendInfo().getMutableMap() .put(key, value); return this; } /** *
       * extendInfo 用于承载一些额外信息
       * case 1: 升级到 v2 版本时,记录对应到 v1 版本的 id 信息
       * 
* * map<string, string> extendInfo = 20; */ public Builder putAllExtendInfo( java.util.Map values) { internalGetMutableExtendInfo().getMutableMap() .putAll(values); 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:v1.RouteRule) } // @@protoc_insertion_point(class_scope:v1.RouteRule) private static final com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RouteRule 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RouteRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MetadataFailoverOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.MetadataFailover) com.google.protobuf.MessageOrBuilder { /** *
     * failover_range metadata route bottom type
     * 
* * .v1.MetadataFailover.FailoverRange failover_range = 1; * @return The enum numeric value on the wire for failoverRange. */ int getFailoverRangeValue(); /** *
     * failover_range metadata route bottom type
     * 
* * .v1.MetadataFailover.FailoverRange failover_range = 1; * @return The failoverRange. */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.FailoverRange getFailoverRange(); /** *
     * only use to failover_range == OTHER_KEYS
     * 
* * map<string, string> labels = 2; */ int getLabelsCount(); /** *
     * only use to failover_range == OTHER_KEYS
     * 
* * map<string, string> labels = 2; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * only use to failover_range == OTHER_KEYS
     * 
* * map<string, string> labels = 2; */ java.util.Map getLabelsMap(); /** *
     * only use to failover_range == OTHER_KEYS
     * 
* * map<string, string> labels = 2; */ /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * only use to failover_range == OTHER_KEYS
     * 
* * map<string, string> labels = 2; */ java.lang.String getLabelsOrThrow( java.lang.String key); } /** * Protobuf type {@code v1.MetadataFailover} */ public static final class MetadataFailover extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.MetadataFailover) MetadataFailoverOrBuilder { private static final long serialVersionUID = 0L; // Use MetadataFailover.newBuilder() to construct. private MetadataFailover(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MetadataFailover() { failoverRange_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MetadataFailover(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_MetadataFailover_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_MetadataFailover_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.Builder.class); } /** * Protobuf enum {@code v1.MetadataFailover.FailoverRange} */ public enum FailoverRange implements com.google.protobuf.ProtocolMessageEnum { /** *
       * ALL return all instances
       * 
* * ALL = 0; */ ALL(0), /** *
       * OTHERS retuen without thie labels instances
       * 
* * OTHERS = 1; */ OTHERS(1), /** *
       * OTHER_KEYS return other instances which match keys
       * 
* * OTHER_KEYS = 2; */ OTHER_KEYS(2), UNRECOGNIZED(-1), ; /** *
       * ALL return all instances
       * 
* * ALL = 0; */ public static final int ALL_VALUE = 0; /** *
       * OTHERS retuen without thie labels instances
       * 
* * OTHERS = 1; */ public static final int OTHERS_VALUE = 1; /** *
       * OTHER_KEYS return other instances which match keys
       * 
* * OTHER_KEYS = 2; */ public static final int OTHER_KEYS_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FailoverRange valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static FailoverRange forNumber(int value) { switch (value) { case 0: return ALL; case 1: return OTHERS; case 2: return OTHER_KEYS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< FailoverRange> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public FailoverRange findValueByNumber(int number) { return FailoverRange.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.getDescriptor().getEnumTypes().get(0); } private static final FailoverRange[] VALUES = values(); public static FailoverRange valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private FailoverRange(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:v1.MetadataFailover.FailoverRange) } public static final int FAILOVER_RANGE_FIELD_NUMBER = 1; private int failoverRange_; /** *
     * failover_range metadata route bottom type
     * 
* * .v1.MetadataFailover.FailoverRange failover_range = 1; * @return The enum numeric value on the wire for failoverRange. */ @java.lang.Override public int getFailoverRangeValue() { return failoverRange_; } /** *
     * failover_range metadata route bottom type
     * 
* * .v1.MetadataFailover.FailoverRange failover_range = 1; * @return The failoverRange. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.FailoverRange getFailoverRange() { @SuppressWarnings("deprecation") com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.FailoverRange result = com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.FailoverRange.valueOf(failoverRange_); return result == null ? com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.FailoverRange.UNRECOGNIZED : result; } public static final int LABELS_FIELD_NUMBER = 2; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_MetadataFailover_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * only use to failover_range == OTHER_KEYS
     * 
* * map<string, string> labels = 2; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * only use to failover_range == OTHER_KEYS
     * 
* * map<string, string> labels = 2; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * only use to failover_range == OTHER_KEYS
     * 
* * map<string, string> labels = 2; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * only use to failover_range == OTHER_KEYS
     * 
* * map<string, string> labels = 2; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 (failoverRange_ != com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.FailoverRange.ALL.getNumber()) { output.writeEnum(1, failoverRange_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (failoverRange_ != com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.FailoverRange.ALL.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, failoverRange_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, labels__); } 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover other = (com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover) obj; if (failoverRange_ != other.failoverRange_) return false; if (!internalGetLabels().equals( other.internalGetLabels())) 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) + FAILOVER_RANGE_FIELD_NUMBER; hash = (53 * hash) + failoverRange_; if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover 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(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover 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 v1.MetadataFailover} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.MetadataFailover) com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailoverOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_MetadataFailover_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_MetadataFailover_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); failoverRange_ = 0; internalGetMutableLabels().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_MetadataFailover_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover build() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover result = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover(this); int from_bitField0_ = bitField0_; result.failoverRange_ = failoverRange_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.getDefaultInstance()) return this; if (other.failoverRange_ != 0) { setFailoverRangeValue(other.getFailoverRangeValue()); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); 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 8: { failoverRange_ = input.readEnum(); break; } // case 8 case 18: { com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels().getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int failoverRange_ = 0; /** *
       * failover_range metadata route bottom type
       * 
* * .v1.MetadataFailover.FailoverRange failover_range = 1; * @return The enum numeric value on the wire for failoverRange. */ @java.lang.Override public int getFailoverRangeValue() { return failoverRange_; } /** *
       * failover_range metadata route bottom type
       * 
* * .v1.MetadataFailover.FailoverRange failover_range = 1; * @param value The enum numeric value on the wire for failoverRange to set. * @return This builder for chaining. */ public Builder setFailoverRangeValue(int value) { failoverRange_ = value; onChanged(); return this; } /** *
       * failover_range metadata route bottom type
       * 
* * .v1.MetadataFailover.FailoverRange failover_range = 1; * @return The failoverRange. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.FailoverRange getFailoverRange() { @SuppressWarnings("deprecation") com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.FailoverRange result = com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.FailoverRange.valueOf(failoverRange_); return result == null ? com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.FailoverRange.UNRECOGNIZED : result; } /** *
       * failover_range metadata route bottom type
       * 
* * .v1.MetadataFailover.FailoverRange failover_range = 1; * @param value The failoverRange to set. * @return This builder for chaining. */ public Builder setFailoverRange(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.FailoverRange value) { if (value == null) { throw new NullPointerException(); } failoverRange_ = value.getNumber(); onChanged(); return this; } /** *
       * failover_range metadata route bottom type
       * 
* * .v1.MetadataFailover.FailoverRange failover_range = 1; * @return This builder for chaining. */ public Builder clearFailoverRange() { failoverRange_ = 0; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
       * only use to failover_range == OTHER_KEYS
       * 
* * map<string, string> labels = 2; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
       * only use to failover_range == OTHER_KEYS
       * 
* * map<string, string> labels = 2; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * only use to failover_range == OTHER_KEYS
       * 
* * map<string, string> labels = 2; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * only use to failover_range == OTHER_KEYS
       * 
* * map<string, string> labels = 2; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
       * only use to failover_range == OTHER_KEYS
       * 
* * map<string, string> labels = 2; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
       * only use to failover_range == OTHER_KEYS
       * 
* * map<string, string> labels = 2; */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
       * only use to failover_range == OTHER_KEYS
       * 
* * map<string, string> labels = 2; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); 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:v1.MetadataFailover) } // @@protoc_insertion_point(class_scope:v1.MetadataFailover) private static final com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MetadataFailover 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MetadataRoutingConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.MetadataRoutingConfig) com.google.protobuf.MessageOrBuilder { /** *
     * service
     * 
* * string service = 1; * @return The service. */ java.lang.String getService(); /** *
     * service
     * 
* * string service = 1; * @return The bytes for service. */ com.google.protobuf.ByteString getServiceBytes(); /** *
     * namespace
     * 
* * string namespace = 2; * @return The namespace. */ java.lang.String getNamespace(); /** *
     * namespace
     * 
* * string namespace = 2; * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); /** * map<string, string> labels = 3; */ int getLabelsCount(); /** * map<string, string> labels = 3; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** * map<string, string> labels = 3; */ java.util.Map getLabelsMap(); /** * map<string, string> labels = 3; */ /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * map<string, string> labels = 3; */ java.lang.String getLabelsOrThrow( java.lang.String key); /** *
     * When metadata not found, it will fall back to the
     * 
* * .v1.MetadataFailover failover = 4; * @return Whether the failover field is set. */ boolean hasFailover(); /** *
     * When metadata not found, it will fall back to the
     * 
* * .v1.MetadataFailover failover = 4; * @return The failover. */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover getFailover(); /** *
     * When metadata not found, it will fall back to the
     * 
* * .v1.MetadataFailover failover = 4; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailoverOrBuilder getFailoverOrBuilder(); } /** *
   * MetadataRoutingConfig metadata routing configuration
   * 
* * Protobuf type {@code v1.MetadataRoutingConfig} */ public static final class MetadataRoutingConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.MetadataRoutingConfig) MetadataRoutingConfigOrBuilder { private static final long serialVersionUID = 0L; // Use MetadataRoutingConfig.newBuilder() to construct. private MetadataRoutingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MetadataRoutingConfig() { service_ = ""; namespace_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MetadataRoutingConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_MetadataRoutingConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_MetadataRoutingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig.Builder.class); } public static final int SERVICE_FIELD_NUMBER = 1; private volatile java.lang.Object service_; /** *
     * service
     * 
* * string service = 1; * @return The service. */ @java.lang.Override public java.lang.String getService() { java.lang.Object ref = service_; 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(); service_ = s; return s; } } /** *
     * service
     * 
* * string service = 1; * @return The bytes for service. */ @java.lang.Override public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); service_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAMESPACE_FIELD_NUMBER = 2; private volatile java.lang.Object namespace_; /** *
     * namespace
     * 
* * string namespace = 2; * @return The namespace. */ @java.lang.Override public java.lang.String getNamespace() { java.lang.Object ref = namespace_; 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(); namespace_ = s; return s; } } /** *
     * namespace
     * 
* * string namespace = 2; * @return The bytes for namespace. */ @java.lang.Override public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 3; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_MetadataRoutingConfig_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * map<string, string> labels = 3; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * map<string, string> labels = 3; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * map<string, string> labels = 3; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> labels = 3; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int FAILOVER_FIELD_NUMBER = 4; private com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover failover_; /** *
     * When metadata not found, it will fall back to the
     * 
* * .v1.MetadataFailover failover = 4; * @return Whether the failover field is set. */ @java.lang.Override public boolean hasFailover() { return failover_ != null; } /** *
     * When metadata not found, it will fall back to the
     * 
* * .v1.MetadataFailover failover = 4; * @return The failover. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover getFailover() { return failover_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.getDefaultInstance() : failover_; } /** *
     * When metadata not found, it will fall back to the
     * 
* * .v1.MetadataFailover failover = 4; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailoverOrBuilder getFailoverOrBuilder() { return getFailover(); } 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(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); if (failover_ != null) { output.writeMessage(4, getFailover()); } 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(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, labels__); } if (failover_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getFailover()); } 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig other = (com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig) obj; if (!getService() .equals(other.getService())) return false; if (!getNamespace() .equals(other.getNamespace())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (hasFailover() != other.hasFailover()) return false; if (hasFailover()) { if (!getFailover() .equals(other.getFailover())) 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) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } if (hasFailover()) { hash = (37 * hash) + FAILOVER_FIELD_NUMBER; hash = (53 * hash) + getFailover().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig 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(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig 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; } /** *
     * MetadataRoutingConfig metadata routing configuration
     * 
* * Protobuf type {@code v1.MetadataRoutingConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.MetadataRoutingConfig) com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_MetadataRoutingConfig_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_MetadataRoutingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); service_ = ""; namespace_ = ""; internalGetMutableLabels().clear(); if (failoverBuilder_ == null) { failover_ = null; } else { failover_ = null; failoverBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_MetadataRoutingConfig_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig build() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig result = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig(this); int from_bitField0_ = bitField0_; result.service_ = service_; result.namespace_ = namespace_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); if (failoverBuilder_ == null) { result.failover_ = failover_; } else { result.failover_ = failoverBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig.getDefaultInstance()) return this; if (!other.getService().isEmpty()) { service_ = other.service_; onChanged(); } if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (other.hasFailover()) { mergeFailover(other.getFailover()); } 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: { service_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { namespace_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels().getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } // case 26 case 34: { input.readMessage( getFailoverFieldBuilder().getBuilder(), extensionRegistry); break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // 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 service_ = ""; /** *
       * service
       * 
* * string service = 1; * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * service
       * 
* * string service = 1; * @return The bytes for service. */ public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); service_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * service
       * 
* * string service = 1; * @param value The service to set. * @return This builder for chaining. */ public Builder setService( java.lang.String value) { if (value == null) { throw new NullPointerException(); } service_ = value; onChanged(); return this; } /** *
       * service
       * 
* * string service = 1; * @return This builder for chaining. */ public Builder clearService() { service_ = getDefaultInstance().getService(); onChanged(); return this; } /** *
       * service
       * 
* * string service = 1; * @param value The bytes for service to set. * @return This builder for chaining. */ public Builder setServiceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); service_ = value; onChanged(); return this; } private java.lang.Object namespace_ = ""; /** *
       * namespace
       * 
* * string namespace = 2; * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * namespace
       * 
* * string namespace = 2; * @return The bytes for namespace. */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * namespace
       * 
* * string namespace = 2; * @param value The namespace to set. * @return This builder for chaining. */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); return this; } /** *
       * namespace
       * 
* * string namespace = 2; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** *
       * namespace
       * 
* * string namespace = 2; * @param value The bytes for namespace to set. * @return This builder for chaining. */ public Builder setNamespaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); namespace_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * map<string, string> labels = 3; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * map<string, string> labels = 3; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * map<string, string> labels = 3; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> labels = 3; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** * map<string, string> labels = 3; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** * map<string, string> labels = 3; */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** * map<string, string> labels = 3; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover failover_; private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailoverOrBuilder> failoverBuilder_; /** *
       * When metadata not found, it will fall back to the
       * 
* * .v1.MetadataFailover failover = 4; * @return Whether the failover field is set. */ public boolean hasFailover() { return failoverBuilder_ != null || failover_ != null; } /** *
       * When metadata not found, it will fall back to the
       * 
* * .v1.MetadataFailover failover = 4; * @return The failover. */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover getFailover() { if (failoverBuilder_ == null) { return failover_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.getDefaultInstance() : failover_; } else { return failoverBuilder_.getMessage(); } } /** *
       * When metadata not found, it will fall back to the
       * 
* * .v1.MetadataFailover failover = 4; */ public Builder setFailover(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover value) { if (failoverBuilder_ == null) { if (value == null) { throw new NullPointerException(); } failover_ = value; onChanged(); } else { failoverBuilder_.setMessage(value); } return this; } /** *
       * When metadata not found, it will fall back to the
       * 
* * .v1.MetadataFailover failover = 4; */ public Builder setFailover( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.Builder builderForValue) { if (failoverBuilder_ == null) { failover_ = builderForValue.build(); onChanged(); } else { failoverBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * When metadata not found, it will fall back to the
       * 
* * .v1.MetadataFailover failover = 4; */ public Builder mergeFailover(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover value) { if (failoverBuilder_ == null) { if (failover_ != null) { failover_ = com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.newBuilder(failover_).mergeFrom(value).buildPartial(); } else { failover_ = value; } onChanged(); } else { failoverBuilder_.mergeFrom(value); } return this; } /** *
       * When metadata not found, it will fall back to the
       * 
* * .v1.MetadataFailover failover = 4; */ public Builder clearFailover() { if (failoverBuilder_ == null) { failover_ = null; onChanged(); } else { failover_ = null; failoverBuilder_ = null; } return this; } /** *
       * When metadata not found, it will fall back to the
       * 
* * .v1.MetadataFailover failover = 4; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.Builder getFailoverBuilder() { onChanged(); return getFailoverFieldBuilder().getBuilder(); } /** *
       * When metadata not found, it will fall back to the
       * 
* * .v1.MetadataFailover failover = 4; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailoverOrBuilder getFailoverOrBuilder() { if (failoverBuilder_ != null) { return failoverBuilder_.getMessageOrBuilder(); } else { return failover_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.getDefaultInstance() : failover_; } } /** *
       * When metadata not found, it will fall back to the
       * 
* * .v1.MetadataFailover failover = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailoverOrBuilder> getFailoverFieldBuilder() { if (failoverBuilder_ == null) { failoverBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailover.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataFailoverOrBuilder>( getFailover(), getParentForChildren(), isClean()); failover_ = null; } return failoverBuilder_; } @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:v1.MetadataRoutingConfig) } // @@protoc_insertion_point(class_scope:v1.MetadataRoutingConfig) private static final com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MetadataRoutingConfig 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.MetadataRoutingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RuleRoutingConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.RuleRoutingConfig) com.google.protobuf.MessageOrBuilder { /** *
     * source source info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.SourceService sources = 1; */ java.util.List getSourcesList(); /** *
     * source source info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.SourceService sources = 1; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService getSources(int index); /** *
     * source source info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.SourceService sources = 1; */ int getSourcesCount(); /** *
     * source source info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.SourceService sources = 1; */ java.util.List getSourcesOrBuilderList(); /** *
     * source source info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.SourceService sources = 1; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceServiceOrBuilder getSourcesOrBuilder( int index); /** *
     * destination destinations info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.DestinationGroup destinations = 2; */ java.util.List getDestinationsList(); /** *
     * destination destinations info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.DestinationGroup destinations = 2; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup getDestinations(int index); /** *
     * destination destinations info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.DestinationGroup destinations = 2; */ int getDestinationsCount(); /** *
     * destination destinations info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.DestinationGroup destinations = 2; */ java.util.List getDestinationsOrBuilderList(); /** *
     * destination destinations info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.DestinationGroup destinations = 2; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroupOrBuilder getDestinationsOrBuilder( int index); /** *
     * rule route chain
     * 
* * repeated .v1.SubRuleRouting rules = 3; */ java.util.List getRulesList(); /** *
     * rule route chain
     * 
* * repeated .v1.SubRuleRouting rules = 3; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting getRules(int index); /** *
     * rule route chain
     * 
* * repeated .v1.SubRuleRouting rules = 3; */ int getRulesCount(); /** *
     * rule route chain
     * 
* * repeated .v1.SubRuleRouting rules = 3; */ java.util.List getRulesOrBuilderList(); /** *
     * rule route chain
     * 
* * repeated .v1.SubRuleRouting rules = 3; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRoutingOrBuilder getRulesOrBuilder( int index); } /** *
   * RuleRoutingConfig routing configuration
   * 
* * Protobuf type {@code v1.RuleRoutingConfig} */ public static final class RuleRoutingConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.RuleRoutingConfig) RuleRoutingConfigOrBuilder { private static final long serialVersionUID = 0L; // Use RuleRoutingConfig.newBuilder() to construct. private RuleRoutingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RuleRoutingConfig() { sources_ = java.util.Collections.emptyList(); destinations_ = java.util.Collections.emptyList(); rules_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RuleRoutingConfig(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_RuleRoutingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_RuleRoutingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig.Builder.class); } public static final int SOURCES_FIELD_NUMBER = 1; private java.util.List sources_; /** *
     * source source info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.SourceService sources = 1; */ @java.lang.Override public java.util.List getSourcesList() { return sources_; } /** *
     * source source info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.SourceService sources = 1; */ @java.lang.Override public java.util.List getSourcesOrBuilderList() { return sources_; } /** *
     * source source info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.SourceService sources = 1; */ @java.lang.Override public int getSourcesCount() { return sources_.size(); } /** *
     * source source info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.SourceService sources = 1; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService getSources(int index) { return sources_.get(index); } /** *
     * source source info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.SourceService sources = 1; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceServiceOrBuilder getSourcesOrBuilder( int index) { return sources_.get(index); } public static final int DESTINATIONS_FIELD_NUMBER = 2; private java.util.List destinations_; /** *
     * destination destinations info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.DestinationGroup destinations = 2; */ @java.lang.Override public java.util.List getDestinationsList() { return destinations_; } /** *
     * destination destinations info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.DestinationGroup destinations = 2; */ @java.lang.Override public java.util.List getDestinationsOrBuilderList() { return destinations_; } /** *
     * destination destinations info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.DestinationGroup destinations = 2; */ @java.lang.Override public int getDestinationsCount() { return destinations_.size(); } /** *
     * destination destinations info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.DestinationGroup destinations = 2; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup getDestinations(int index) { return destinations_.get(index); } /** *
     * destination destinations info
     * deprecated: only for compatible to the old version server
     * 
* * repeated .v1.DestinationGroup destinations = 2; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroupOrBuilder getDestinationsOrBuilder( int index) { return destinations_.get(index); } public static final int RULES_FIELD_NUMBER = 3; private java.util.List rules_; /** *
     * rule route chain
     * 
* * repeated .v1.SubRuleRouting rules = 3; */ @java.lang.Override public java.util.List getRulesList() { return rules_; } /** *
     * rule route chain
     * 
* * repeated .v1.SubRuleRouting rules = 3; */ @java.lang.Override public java.util.List getRulesOrBuilderList() { return rules_; } /** *
     * rule route chain
     * 
* * repeated .v1.SubRuleRouting rules = 3; */ @java.lang.Override public int getRulesCount() { return rules_.size(); } /** *
     * rule route chain
     * 
* * repeated .v1.SubRuleRouting rules = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting getRules(int index) { return rules_.get(index); } /** *
     * rule route chain
     * 
* * repeated .v1.SubRuleRouting rules = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRoutingOrBuilder getRulesOrBuilder( int index) { return rules_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < sources_.size(); i++) { output.writeMessage(1, sources_.get(i)); } for (int i = 0; i < destinations_.size(); i++) { output.writeMessage(2, destinations_.get(i)); } for (int i = 0; i < rules_.size(); i++) { output.writeMessage(3, rules_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < sources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, sources_.get(i)); } for (int i = 0; i < destinations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, destinations_.get(i)); } for (int i = 0; i < rules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, rules_.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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig other = (com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig) obj; if (!getSourcesList() .equals(other.getSourcesList())) return false; if (!getDestinationsList() .equals(other.getDestinationsList())) return false; if (!getRulesList() .equals(other.getRulesList())) 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 (getSourcesCount() > 0) { hash = (37 * hash) + SOURCES_FIELD_NUMBER; hash = (53 * hash) + getSourcesList().hashCode(); } if (getDestinationsCount() > 0) { hash = (37 * hash) + DESTINATIONS_FIELD_NUMBER; hash = (53 * hash) + getDestinationsList().hashCode(); } if (getRulesCount() > 0) { hash = (37 * hash) + RULES_FIELD_NUMBER; hash = (53 * hash) + getRulesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig 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(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig 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; } /** *
     * RuleRoutingConfig routing configuration
     * 
* * Protobuf type {@code v1.RuleRoutingConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.RuleRoutingConfig) com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_RuleRoutingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_RuleRoutingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (sourcesBuilder_ == null) { sources_ = java.util.Collections.emptyList(); } else { sources_ = null; sourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (destinationsBuilder_ == null) { destinations_ = java.util.Collections.emptyList(); } else { destinations_ = null; destinationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); } else { rules_ = null; rulesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_RuleRoutingConfig_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig build() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig result = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig(this); int from_bitField0_ = bitField0_; if (sourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { sources_ = java.util.Collections.unmodifiableList(sources_); bitField0_ = (bitField0_ & ~0x00000001); } result.sources_ = sources_; } else { result.sources_ = sourcesBuilder_.build(); } if (destinationsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { destinations_ = java.util.Collections.unmodifiableList(destinations_); bitField0_ = (bitField0_ & ~0x00000002); } result.destinations_ = destinations_; } else { result.destinations_ = destinationsBuilder_.build(); } if (rulesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { rules_ = java.util.Collections.unmodifiableList(rules_); bitField0_ = (bitField0_ & ~0x00000004); } result.rules_ = rules_; } else { result.rules_ = rulesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig.getDefaultInstance()) return this; if (sourcesBuilder_ == null) { if (!other.sources_.isEmpty()) { if (sources_.isEmpty()) { sources_ = other.sources_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSourcesIsMutable(); sources_.addAll(other.sources_); } onChanged(); } } else { if (!other.sources_.isEmpty()) { if (sourcesBuilder_.isEmpty()) { sourcesBuilder_.dispose(); sourcesBuilder_ = null; sources_ = other.sources_; bitField0_ = (bitField0_ & ~0x00000001); sourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSourcesFieldBuilder() : null; } else { sourcesBuilder_.addAllMessages(other.sources_); } } } if (destinationsBuilder_ == null) { if (!other.destinations_.isEmpty()) { if (destinations_.isEmpty()) { destinations_ = other.destinations_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDestinationsIsMutable(); destinations_.addAll(other.destinations_); } onChanged(); } } else { if (!other.destinations_.isEmpty()) { if (destinationsBuilder_.isEmpty()) { destinationsBuilder_.dispose(); destinationsBuilder_ = null; destinations_ = other.destinations_; bitField0_ = (bitField0_ & ~0x00000002); destinationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDestinationsFieldBuilder() : null; } else { destinationsBuilder_.addAllMessages(other.destinations_); } } } if (rulesBuilder_ == null) { if (!other.rules_.isEmpty()) { if (rules_.isEmpty()) { rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRulesIsMutable(); rules_.addAll(other.rules_); } onChanged(); } } else { if (!other.rules_.isEmpty()) { if (rulesBuilder_.isEmpty()) { rulesBuilder_.dispose(); rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000004); rulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRulesFieldBuilder() : null; } else { rulesBuilder_.addAllMessages(other.rules_); } } } 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: { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService m = input.readMessage( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.parser(), extensionRegistry); if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.add(m); } else { sourcesBuilder_.addMessage(m); } break; } // case 10 case 18: { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup m = input.readMessage( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.parser(), extensionRegistry); if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.add(m); } else { destinationsBuilder_.addMessage(m); } break; } // case 18 case 26: { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting m = input.readMessage( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.parser(), extensionRegistry); if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(m); } else { rulesBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List sources_ = java.util.Collections.emptyList(); private void ensureSourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { sources_ = new java.util.ArrayList(sources_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceServiceOrBuilder> sourcesBuilder_; /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public java.util.List getSourcesList() { if (sourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(sources_); } else { return sourcesBuilder_.getMessageList(); } } /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public int getSourcesCount() { if (sourcesBuilder_ == null) { return sources_.size(); } else { return sourcesBuilder_.getCount(); } } /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService getSources(int index) { if (sourcesBuilder_ == null) { return sources_.get(index); } else { return sourcesBuilder_.getMessage(index); } } /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public Builder setSources( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourcesIsMutable(); sources_.set(index, value); onChanged(); } else { sourcesBuilder_.setMessage(index, value); } return this; } /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public Builder setSources( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.set(index, builderForValue.build()); onChanged(); } else { sourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public Builder addSources(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourcesIsMutable(); sources_.add(value); onChanged(); } else { sourcesBuilder_.addMessage(value); } return this; } /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public Builder addSources( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourcesIsMutable(); sources_.add(index, value); onChanged(); } else { sourcesBuilder_.addMessage(index, value); } return this; } /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public Builder addSources( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.add(builderForValue.build()); onChanged(); } else { sourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public Builder addSources( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.add(index, builderForValue.build()); onChanged(); } else { sourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public Builder addAllSources( java.lang.Iterable values) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sources_); onChanged(); } else { sourcesBuilder_.addAllMessages(values); } return this; } /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public Builder clearSources() { if (sourcesBuilder_ == null) { sources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { sourcesBuilder_.clear(); } return this; } /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public Builder removeSources(int index) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.remove(index); onChanged(); } else { sourcesBuilder_.remove(index); } return this; } /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder getSourcesBuilder( int index) { return getSourcesFieldBuilder().getBuilder(index); } /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceServiceOrBuilder getSourcesOrBuilder( int index) { if (sourcesBuilder_ == null) { return sources_.get(index); } else { return sourcesBuilder_.getMessageOrBuilder(index); } } /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public java.util.List getSourcesOrBuilderList() { if (sourcesBuilder_ != null) { return sourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sources_); } } /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder addSourcesBuilder() { return getSourcesFieldBuilder().addBuilder( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.getDefaultInstance()); } /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder addSourcesBuilder( int index) { return getSourcesFieldBuilder().addBuilder( index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.getDefaultInstance()); } /** *
       * source source info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.SourceService sources = 1; */ public java.util.List getSourcesBuilderList() { return getSourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceServiceOrBuilder> getSourcesFieldBuilder() { if (sourcesBuilder_ == null) { sourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceServiceOrBuilder>( sources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); sources_ = null; } return sourcesBuilder_; } private java.util.List destinations_ = java.util.Collections.emptyList(); private void ensureDestinationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { destinations_ = new java.util.ArrayList(destinations_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroupOrBuilder> destinationsBuilder_; /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public java.util.List getDestinationsList() { if (destinationsBuilder_ == null) { return java.util.Collections.unmodifiableList(destinations_); } else { return destinationsBuilder_.getMessageList(); } } /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public int getDestinationsCount() { if (destinationsBuilder_ == null) { return destinations_.size(); } else { return destinationsBuilder_.getCount(); } } /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup getDestinations(int index) { if (destinationsBuilder_ == null) { return destinations_.get(index); } else { return destinationsBuilder_.getMessage(index); } } /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public Builder setDestinations( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup value) { if (destinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDestinationsIsMutable(); destinations_.set(index, value); onChanged(); } else { destinationsBuilder_.setMessage(index, value); } return this; } /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public Builder setDestinations( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder builderForValue) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.set(index, builderForValue.build()); onChanged(); } else { destinationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public Builder addDestinations(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup value) { if (destinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDestinationsIsMutable(); destinations_.add(value); onChanged(); } else { destinationsBuilder_.addMessage(value); } return this; } /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public Builder addDestinations( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup value) { if (destinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDestinationsIsMutable(); destinations_.add(index, value); onChanged(); } else { destinationsBuilder_.addMessage(index, value); } return this; } /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public Builder addDestinations( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder builderForValue) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.add(builderForValue.build()); onChanged(); } else { destinationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public Builder addDestinations( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder builderForValue) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.add(index, builderForValue.build()); onChanged(); } else { destinationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public Builder addAllDestinations( java.lang.Iterable values) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, destinations_); onChanged(); } else { destinationsBuilder_.addAllMessages(values); } return this; } /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public Builder clearDestinations() { if (destinationsBuilder_ == null) { destinations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { destinationsBuilder_.clear(); } return this; } /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public Builder removeDestinations(int index) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.remove(index); onChanged(); } else { destinationsBuilder_.remove(index); } return this; } /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder getDestinationsBuilder( int index) { return getDestinationsFieldBuilder().getBuilder(index); } /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroupOrBuilder getDestinationsOrBuilder( int index) { if (destinationsBuilder_ == null) { return destinations_.get(index); } else { return destinationsBuilder_.getMessageOrBuilder(index); } } /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public java.util.List getDestinationsOrBuilderList() { if (destinationsBuilder_ != null) { return destinationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(destinations_); } } /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder addDestinationsBuilder() { return getDestinationsFieldBuilder().addBuilder( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.getDefaultInstance()); } /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder addDestinationsBuilder( int index) { return getDestinationsFieldBuilder().addBuilder( index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.getDefaultInstance()); } /** *
       * destination destinations info
       * deprecated: only for compatible to the old version server
       * 
* * repeated .v1.DestinationGroup destinations = 2; */ public java.util.List getDestinationsBuilderList() { return getDestinationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroupOrBuilder> getDestinationsFieldBuilder() { if (destinationsBuilder_ == null) { destinationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroupOrBuilder>( destinations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); destinations_ = null; } return destinationsBuilder_; } private java.util.List rules_ = java.util.Collections.emptyList(); private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { rules_ = new java.util.ArrayList(rules_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRoutingOrBuilder> rulesBuilder_; /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public java.util.List getRulesList() { if (rulesBuilder_ == null) { return java.util.Collections.unmodifiableList(rules_); } else { return rulesBuilder_.getMessageList(); } } /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public int getRulesCount() { if (rulesBuilder_ == null) { return rules_.size(); } else { return rulesBuilder_.getCount(); } } /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting getRules(int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessage(index); } } /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public Builder setRules( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.set(index, value); onChanged(); } else { rulesBuilder_.setMessage(index, value); } return this; } /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public Builder setRules( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.set(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public Builder addRules(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(value); onChanged(); } else { rulesBuilder_.addMessage(value); } return this; } /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public Builder addRules( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(index, value); onChanged(); } else { rulesBuilder_.addMessage(index, value); } return this; } /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public Builder addRules( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public Builder addRules( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public Builder addAllRules( java.lang.Iterable values) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rules_); onChanged(); } else { rulesBuilder_.addAllMessages(values); } return this; } /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public Builder clearRules() { if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { rulesBuilder_.clear(); } return this; } /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public Builder removeRules(int index) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.remove(index); onChanged(); } else { rulesBuilder_.remove(index); } return this; } /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.Builder getRulesBuilder( int index) { return getRulesFieldBuilder().getBuilder(index); } /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRoutingOrBuilder getRulesOrBuilder( int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public java.util.List getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rules_); } } /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.Builder addRulesBuilder() { return getRulesFieldBuilder().addBuilder( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.getDefaultInstance()); } /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.Builder addRulesBuilder( int index) { return getRulesFieldBuilder().addBuilder( index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.getDefaultInstance()); } /** *
       * rule route chain
       * 
* * repeated .v1.SubRuleRouting rules = 3; */ public java.util.List getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRoutingOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRoutingOrBuilder>( rules_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); rules_ = null; } return rulesBuilder_; } @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:v1.RuleRoutingConfig) } // @@protoc_insertion_point(class_scope:v1.RuleRoutingConfig) private static final com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RuleRoutingConfig 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.RuleRoutingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SubRuleRoutingOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.SubRuleRouting) com.google.protobuf.MessageOrBuilder { /** *
     * sub routing rule name
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * sub routing rule name
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * source source info
     * 
* * repeated .v1.SourceService sources = 2; */ java.util.List getSourcesList(); /** *
     * source source info
     * 
* * repeated .v1.SourceService sources = 2; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService getSources(int index); /** *
     * source source info
     * 
* * repeated .v1.SourceService sources = 2; */ int getSourcesCount(); /** *
     * source source info
     * 
* * repeated .v1.SourceService sources = 2; */ java.util.List getSourcesOrBuilderList(); /** *
     * source source info
     * 
* * repeated .v1.SourceService sources = 2; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceServiceOrBuilder getSourcesOrBuilder( int index); /** *
     * destination destinations info
     * 
* * repeated .v1.DestinationGroup destinations = 3; */ java.util.List getDestinationsList(); /** *
     * destination destinations info
     * 
* * repeated .v1.DestinationGroup destinations = 3; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup getDestinations(int index); /** *
     * destination destinations info
     * 
* * repeated .v1.DestinationGroup destinations = 3; */ int getDestinationsCount(); /** *
     * destination destinations info
     * 
* * repeated .v1.DestinationGroup destinations = 3; */ java.util.List getDestinationsOrBuilderList(); /** *
     * destination destinations info
     * 
* * repeated .v1.DestinationGroup destinations = 3; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroupOrBuilder getDestinationsOrBuilder( int index); } /** *
   * SubRuleRouting sub routing configuration
   * 
* * Protobuf type {@code v1.SubRuleRouting} */ public static final class SubRuleRouting extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.SubRuleRouting) SubRuleRoutingOrBuilder { private static final long serialVersionUID = 0L; // Use SubRuleRouting.newBuilder() to construct. private SubRuleRouting(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SubRuleRouting() { name_ = ""; sources_ = java.util.Collections.emptyList(); destinations_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SubRuleRouting(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_SubRuleRouting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_SubRuleRouting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * sub routing rule 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; } } /** *
     * sub routing rule name
     * 
* * 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 SOURCES_FIELD_NUMBER = 2; private java.util.List sources_; /** *
     * source source info
     * 
* * repeated .v1.SourceService sources = 2; */ @java.lang.Override public java.util.List getSourcesList() { return sources_; } /** *
     * source source info
     * 
* * repeated .v1.SourceService sources = 2; */ @java.lang.Override public java.util.List getSourcesOrBuilderList() { return sources_; } /** *
     * source source info
     * 
* * repeated .v1.SourceService sources = 2; */ @java.lang.Override public int getSourcesCount() { return sources_.size(); } /** *
     * source source info
     * 
* * repeated .v1.SourceService sources = 2; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService getSources(int index) { return sources_.get(index); } /** *
     * source source info
     * 
* * repeated .v1.SourceService sources = 2; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceServiceOrBuilder getSourcesOrBuilder( int index) { return sources_.get(index); } public static final int DESTINATIONS_FIELD_NUMBER = 3; private java.util.List destinations_; /** *
     * destination destinations info
     * 
* * repeated .v1.DestinationGroup destinations = 3; */ @java.lang.Override public java.util.List getDestinationsList() { return destinations_; } /** *
     * destination destinations info
     * 
* * repeated .v1.DestinationGroup destinations = 3; */ @java.lang.Override public java.util.List getDestinationsOrBuilderList() { return destinations_; } /** *
     * destination destinations info
     * 
* * repeated .v1.DestinationGroup destinations = 3; */ @java.lang.Override public int getDestinationsCount() { return destinations_.size(); } /** *
     * destination destinations info
     * 
* * repeated .v1.DestinationGroup destinations = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup getDestinations(int index) { return destinations_.get(index); } /** *
     * destination destinations info
     * 
* * repeated .v1.DestinationGroup destinations = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroupOrBuilder getDestinationsOrBuilder( int index) { return destinations_.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_); } for (int i = 0; i < sources_.size(); i++) { output.writeMessage(2, sources_.get(i)); } for (int i = 0; i < destinations_.size(); i++) { output.writeMessage(3, destinations_.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_); } for (int i = 0; i < sources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, sources_.get(i)); } for (int i = 0; i < destinations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, destinations_.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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting other = (com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting) obj; if (!getName() .equals(other.getName())) return false; if (!getSourcesList() .equals(other.getSourcesList())) return false; if (!getDestinationsList() .equals(other.getDestinationsList())) 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 (getSourcesCount() > 0) { hash = (37 * hash) + SOURCES_FIELD_NUMBER; hash = (53 * hash) + getSourcesList().hashCode(); } if (getDestinationsCount() > 0) { hash = (37 * hash) + DESTINATIONS_FIELD_NUMBER; hash = (53 * hash) + getDestinationsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting 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(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting 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; } /** *
     * SubRuleRouting sub routing configuration
     * 
* * Protobuf type {@code v1.SubRuleRouting} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.SubRuleRouting) com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRoutingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_SubRuleRouting_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_SubRuleRouting_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; if (sourcesBuilder_ == null) { sources_ = java.util.Collections.emptyList(); } else { sources_ = null; sourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (destinationsBuilder_ == null) { destinations_ = java.util.Collections.emptyList(); } else { destinations_ = null; destinationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_SubRuleRouting_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting build() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting result = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (sourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { sources_ = java.util.Collections.unmodifiableList(sources_); bitField0_ = (bitField0_ & ~0x00000001); } result.sources_ = sources_; } else { result.sources_ = sourcesBuilder_.build(); } if (destinationsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { destinations_ = java.util.Collections.unmodifiableList(destinations_); bitField0_ = (bitField0_ & ~0x00000002); } result.destinations_ = destinations_; } else { result.destinations_ = destinationsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (sourcesBuilder_ == null) { if (!other.sources_.isEmpty()) { if (sources_.isEmpty()) { sources_ = other.sources_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSourcesIsMutable(); sources_.addAll(other.sources_); } onChanged(); } } else { if (!other.sources_.isEmpty()) { if (sourcesBuilder_.isEmpty()) { sourcesBuilder_.dispose(); sourcesBuilder_ = null; sources_ = other.sources_; bitField0_ = (bitField0_ & ~0x00000001); sourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSourcesFieldBuilder() : null; } else { sourcesBuilder_.addAllMessages(other.sources_); } } } if (destinationsBuilder_ == null) { if (!other.destinations_.isEmpty()) { if (destinations_.isEmpty()) { destinations_ = other.destinations_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDestinationsIsMutable(); destinations_.addAll(other.destinations_); } onChanged(); } } else { if (!other.destinations_.isEmpty()) { if (destinationsBuilder_.isEmpty()) { destinationsBuilder_.dispose(); destinationsBuilder_ = null; destinations_ = other.destinations_; bitField0_ = (bitField0_ & ~0x00000002); destinationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDestinationsFieldBuilder() : null; } else { destinationsBuilder_.addAllMessages(other.destinations_); } } } 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(); break; } // case 10 case 18: { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService m = input.readMessage( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.parser(), extensionRegistry); if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.add(m); } else { sourcesBuilder_.addMessage(m); } break; } // case 18 case 26: { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup m = input.readMessage( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.parser(), extensionRegistry); if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.add(m); } else { destinationsBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // 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_ = ""; /** *
       * sub routing rule 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; } } /** *
       * sub routing rule name
       * 
* * 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; } } /** *
       * sub routing rule name
       * 
* * 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; onChanged(); return this; } /** *
       * sub routing rule name
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * sub routing rule name
       * 
* * 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; onChanged(); return this; } private java.util.List sources_ = java.util.Collections.emptyList(); private void ensureSourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { sources_ = new java.util.ArrayList(sources_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceServiceOrBuilder> sourcesBuilder_; /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public java.util.List getSourcesList() { if (sourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(sources_); } else { return sourcesBuilder_.getMessageList(); } } /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public int getSourcesCount() { if (sourcesBuilder_ == null) { return sources_.size(); } else { return sourcesBuilder_.getCount(); } } /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService getSources(int index) { if (sourcesBuilder_ == null) { return sources_.get(index); } else { return sourcesBuilder_.getMessage(index); } } /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public Builder setSources( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourcesIsMutable(); sources_.set(index, value); onChanged(); } else { sourcesBuilder_.setMessage(index, value); } return this; } /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public Builder setSources( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.set(index, builderForValue.build()); onChanged(); } else { sourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public Builder addSources(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourcesIsMutable(); sources_.add(value); onChanged(); } else { sourcesBuilder_.addMessage(value); } return this; } /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public Builder addSources( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService value) { if (sourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSourcesIsMutable(); sources_.add(index, value); onChanged(); } else { sourcesBuilder_.addMessage(index, value); } return this; } /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public Builder addSources( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.add(builderForValue.build()); onChanged(); } else { sourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public Builder addSources( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder builderForValue) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.add(index, builderForValue.build()); onChanged(); } else { sourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public Builder addAllSources( java.lang.Iterable values) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, sources_); onChanged(); } else { sourcesBuilder_.addAllMessages(values); } return this; } /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public Builder clearSources() { if (sourcesBuilder_ == null) { sources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { sourcesBuilder_.clear(); } return this; } /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public Builder removeSources(int index) { if (sourcesBuilder_ == null) { ensureSourcesIsMutable(); sources_.remove(index); onChanged(); } else { sourcesBuilder_.remove(index); } return this; } /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder getSourcesBuilder( int index) { return getSourcesFieldBuilder().getBuilder(index); } /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceServiceOrBuilder getSourcesOrBuilder( int index) { if (sourcesBuilder_ == null) { return sources_.get(index); } else { return sourcesBuilder_.getMessageOrBuilder(index); } } /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public java.util.List getSourcesOrBuilderList() { if (sourcesBuilder_ != null) { return sourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sources_); } } /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder addSourcesBuilder() { return getSourcesFieldBuilder().addBuilder( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.getDefaultInstance()); } /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder addSourcesBuilder( int index) { return getSourcesFieldBuilder().addBuilder( index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.getDefaultInstance()); } /** *
       * source source info
       * 
* * repeated .v1.SourceService sources = 2; */ public java.util.List getSourcesBuilderList() { return getSourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceServiceOrBuilder> getSourcesFieldBuilder() { if (sourcesBuilder_ == null) { sourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceServiceOrBuilder>( sources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); sources_ = null; } return sourcesBuilder_; } private java.util.List destinations_ = java.util.Collections.emptyList(); private void ensureDestinationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { destinations_ = new java.util.ArrayList(destinations_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroupOrBuilder> destinationsBuilder_; /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public java.util.List getDestinationsList() { if (destinationsBuilder_ == null) { return java.util.Collections.unmodifiableList(destinations_); } else { return destinationsBuilder_.getMessageList(); } } /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public int getDestinationsCount() { if (destinationsBuilder_ == null) { return destinations_.size(); } else { return destinationsBuilder_.getCount(); } } /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup getDestinations(int index) { if (destinationsBuilder_ == null) { return destinations_.get(index); } else { return destinationsBuilder_.getMessage(index); } } /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public Builder setDestinations( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup value) { if (destinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDestinationsIsMutable(); destinations_.set(index, value); onChanged(); } else { destinationsBuilder_.setMessage(index, value); } return this; } /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public Builder setDestinations( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder builderForValue) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.set(index, builderForValue.build()); onChanged(); } else { destinationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public Builder addDestinations(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup value) { if (destinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDestinationsIsMutable(); destinations_.add(value); onChanged(); } else { destinationsBuilder_.addMessage(value); } return this; } /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public Builder addDestinations( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup value) { if (destinationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDestinationsIsMutable(); destinations_.add(index, value); onChanged(); } else { destinationsBuilder_.addMessage(index, value); } return this; } /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public Builder addDestinations( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder builderForValue) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.add(builderForValue.build()); onChanged(); } else { destinationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public Builder addDestinations( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder builderForValue) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.add(index, builderForValue.build()); onChanged(); } else { destinationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public Builder addAllDestinations( java.lang.Iterable values) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, destinations_); onChanged(); } else { destinationsBuilder_.addAllMessages(values); } return this; } /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public Builder clearDestinations() { if (destinationsBuilder_ == null) { destinations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { destinationsBuilder_.clear(); } return this; } /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public Builder removeDestinations(int index) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.remove(index); onChanged(); } else { destinationsBuilder_.remove(index); } return this; } /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder getDestinationsBuilder( int index) { return getDestinationsFieldBuilder().getBuilder(index); } /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroupOrBuilder getDestinationsOrBuilder( int index) { if (destinationsBuilder_ == null) { return destinations_.get(index); } else { return destinationsBuilder_.getMessageOrBuilder(index); } } /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public java.util.List getDestinationsOrBuilderList() { if (destinationsBuilder_ != null) { return destinationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(destinations_); } } /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder addDestinationsBuilder() { return getDestinationsFieldBuilder().addBuilder( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.getDefaultInstance()); } /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder addDestinationsBuilder( int index) { return getDestinationsFieldBuilder().addBuilder( index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.getDefaultInstance()); } /** *
       * destination destinations info
       * 
* * repeated .v1.DestinationGroup destinations = 3; */ public java.util.List getDestinationsBuilderList() { return getDestinationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroupOrBuilder> getDestinationsFieldBuilder() { if (destinationsBuilder_ == null) { destinationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroupOrBuilder>( destinations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); destinations_ = null; } return destinationsBuilder_; } @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:v1.SubRuleRouting) } // @@protoc_insertion_point(class_scope:v1.SubRuleRouting) private static final com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SubRuleRouting 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SubRuleRouting getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SourceServiceOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.SourceService) com.google.protobuf.MessageOrBuilder { /** *
     * Main tuning service and namespace
     * 
* * string service = 1; * @return The service. */ java.lang.String getService(); /** *
     * Main tuning service and namespace
     * 
* * string service = 1; * @return The bytes for service. */ com.google.protobuf.ByteString getServiceBytes(); /** * string namespace = 2; * @return The namespace. */ java.lang.String getNamespace(); /** * string namespace = 2; * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); /** *
     * Master Control Service Example Tag or Request Label
     * Value supports regular matching
     * 
* * repeated .v1.SourceMatch arguments = 3; */ java.util.List getArgumentsList(); /** *
     * Master Control Service Example Tag or Request Label
     * Value supports regular matching
     * 
* * repeated .v1.SourceMatch arguments = 3; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch getArguments(int index); /** *
     * Master Control Service Example Tag or Request Label
     * Value supports regular matching
     * 
* * repeated .v1.SourceMatch arguments = 3; */ int getArgumentsCount(); /** *
     * Master Control Service Example Tag or Request Label
     * Value supports regular matching
     * 
* * repeated .v1.SourceMatch arguments = 3; */ java.util.List getArgumentsOrBuilderList(); /** *
     * Master Control Service Example Tag or Request Label
     * Value supports regular matching
     * 
* * repeated .v1.SourceMatch arguments = 3; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatchOrBuilder getArgumentsOrBuilder( int index); } /** * Protobuf type {@code v1.SourceService} */ public static final class SourceService extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.SourceService) SourceServiceOrBuilder { private static final long serialVersionUID = 0L; // Use SourceService.newBuilder() to construct. private SourceService(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SourceService() { service_ = ""; namespace_ = ""; arguments_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SourceService(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_SourceService_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_SourceService_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder.class); } public static final int SERVICE_FIELD_NUMBER = 1; private volatile java.lang.Object service_; /** *
     * Main tuning service and namespace
     * 
* * string service = 1; * @return The service. */ @java.lang.Override public java.lang.String getService() { java.lang.Object ref = service_; 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(); service_ = s; return s; } } /** *
     * Main tuning service and namespace
     * 
* * string service = 1; * @return The bytes for service. */ @java.lang.Override public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); service_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAMESPACE_FIELD_NUMBER = 2; private volatile java.lang.Object namespace_; /** * string namespace = 2; * @return The namespace. */ @java.lang.Override public java.lang.String getNamespace() { java.lang.Object ref = namespace_; 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(); namespace_ = s; return s; } } /** * string namespace = 2; * @return The bytes for namespace. */ @java.lang.Override public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ARGUMENTS_FIELD_NUMBER = 3; private java.util.List arguments_; /** *
     * Master Control Service Example Tag or Request Label
     * Value supports regular matching
     * 
* * repeated .v1.SourceMatch arguments = 3; */ @java.lang.Override public java.util.List getArgumentsList() { return arguments_; } /** *
     * Master Control Service Example Tag or Request Label
     * Value supports regular matching
     * 
* * repeated .v1.SourceMatch arguments = 3; */ @java.lang.Override public java.util.List getArgumentsOrBuilderList() { return arguments_; } /** *
     * Master Control Service Example Tag or Request Label
     * Value supports regular matching
     * 
* * repeated .v1.SourceMatch arguments = 3; */ @java.lang.Override public int getArgumentsCount() { return arguments_.size(); } /** *
     * Master Control Service Example Tag or Request Label
     * Value supports regular matching
     * 
* * repeated .v1.SourceMatch arguments = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch getArguments(int index) { return arguments_.get(index); } /** *
     * Master Control Service Example Tag or Request Label
     * Value supports regular matching
     * 
* * repeated .v1.SourceMatch arguments = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatchOrBuilder getArgumentsOrBuilder( int index) { return arguments_.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(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); } for (int i = 0; i < arguments_.size(); i++) { output.writeMessage(3, arguments_.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(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); } for (int i = 0; i < arguments_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, arguments_.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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService other = (com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService) obj; if (!getService() .equals(other.getService())) return false; if (!getNamespace() .equals(other.getNamespace())) return false; if (!getArgumentsList() .equals(other.getArgumentsList())) 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) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); if (getArgumentsCount() > 0) { hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER; hash = (53 * hash) + getArgumentsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService 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(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService 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 v1.SourceService} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.SourceService) com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceServiceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_SourceService_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_SourceService_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); service_ = ""; namespace_ = ""; if (argumentsBuilder_ == null) { arguments_ = java.util.Collections.emptyList(); } else { arguments_ = null; argumentsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_SourceService_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService build() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService result = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService(this); int from_bitField0_ = bitField0_; result.service_ = service_; result.namespace_ = namespace_; if (argumentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { arguments_ = java.util.Collections.unmodifiableList(arguments_); bitField0_ = (bitField0_ & ~0x00000001); } result.arguments_ = arguments_; } else { result.arguments_ = argumentsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService.getDefaultInstance()) return this; if (!other.getService().isEmpty()) { service_ = other.service_; onChanged(); } if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); } if (argumentsBuilder_ == null) { if (!other.arguments_.isEmpty()) { if (arguments_.isEmpty()) { arguments_ = other.arguments_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureArgumentsIsMutable(); arguments_.addAll(other.arguments_); } onChanged(); } } else { if (!other.arguments_.isEmpty()) { if (argumentsBuilder_.isEmpty()) { argumentsBuilder_.dispose(); argumentsBuilder_ = null; arguments_ = other.arguments_; bitField0_ = (bitField0_ & ~0x00000001); argumentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getArgumentsFieldBuilder() : null; } else { argumentsBuilder_.addAllMessages(other.arguments_); } } } 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: { service_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { namespace_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch m = input.readMessage( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.parser(), extensionRegistry); if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); arguments_.add(m); } else { argumentsBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // 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 service_ = ""; /** *
       * Main tuning service and namespace
       * 
* * string service = 1; * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Main tuning service and namespace
       * 
* * string service = 1; * @return The bytes for service. */ public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); service_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Main tuning service and namespace
       * 
* * string service = 1; * @param value The service to set. * @return This builder for chaining. */ public Builder setService( java.lang.String value) { if (value == null) { throw new NullPointerException(); } service_ = value; onChanged(); return this; } /** *
       * Main tuning service and namespace
       * 
* * string service = 1; * @return This builder for chaining. */ public Builder clearService() { service_ = getDefaultInstance().getService(); onChanged(); return this; } /** *
       * Main tuning service and namespace
       * 
* * string service = 1; * @param value The bytes for service to set. * @return This builder for chaining. */ public Builder setServiceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); service_ = value; onChanged(); return this; } private java.lang.Object namespace_ = ""; /** * string namespace = 2; * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } else { return (java.lang.String) ref; } } /** * string namespace = 2; * @return The bytes for namespace. */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string namespace = 2; * @param value The namespace to set. * @return This builder for chaining. */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); return this; } /** * string namespace = 2; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** * string namespace = 2; * @param value The bytes for namespace to set. * @return This builder for chaining. */ public Builder setNamespaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); namespace_ = value; onChanged(); return this; } private java.util.List arguments_ = java.util.Collections.emptyList(); private void ensureArgumentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { arguments_ = new java.util.ArrayList(arguments_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatchOrBuilder> argumentsBuilder_; /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public java.util.List getArgumentsList() { if (argumentsBuilder_ == null) { return java.util.Collections.unmodifiableList(arguments_); } else { return argumentsBuilder_.getMessageList(); } } /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public int getArgumentsCount() { if (argumentsBuilder_ == null) { return arguments_.size(); } else { return argumentsBuilder_.getCount(); } } /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch getArguments(int index) { if (argumentsBuilder_ == null) { return arguments_.get(index); } else { return argumentsBuilder_.getMessage(index); } } /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public Builder setArguments( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch value) { if (argumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgumentsIsMutable(); arguments_.set(index, value); onChanged(); } else { argumentsBuilder_.setMessage(index, value); } return this; } /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public Builder setArguments( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Builder builderForValue) { if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); arguments_.set(index, builderForValue.build()); onChanged(); } else { argumentsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public Builder addArguments(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch value) { if (argumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgumentsIsMutable(); arguments_.add(value); onChanged(); } else { argumentsBuilder_.addMessage(value); } return this; } /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public Builder addArguments( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch value) { if (argumentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgumentsIsMutable(); arguments_.add(index, value); onChanged(); } else { argumentsBuilder_.addMessage(index, value); } return this; } /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public Builder addArguments( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Builder builderForValue) { if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); arguments_.add(builderForValue.build()); onChanged(); } else { argumentsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public Builder addArguments( int index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Builder builderForValue) { if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); arguments_.add(index, builderForValue.build()); onChanged(); } else { argumentsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public Builder addAllArguments( java.lang.Iterable values) { if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, arguments_); onChanged(); } else { argumentsBuilder_.addAllMessages(values); } return this; } /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public Builder clearArguments() { if (argumentsBuilder_ == null) { arguments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { argumentsBuilder_.clear(); } return this; } /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public Builder removeArguments(int index) { if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); arguments_.remove(index); onChanged(); } else { argumentsBuilder_.remove(index); } return this; } /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Builder getArgumentsBuilder( int index) { return getArgumentsFieldBuilder().getBuilder(index); } /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatchOrBuilder getArgumentsOrBuilder( int index) { if (argumentsBuilder_ == null) { return arguments_.get(index); } else { return argumentsBuilder_.getMessageOrBuilder(index); } } /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public java.util.List getArgumentsOrBuilderList() { if (argumentsBuilder_ != null) { return argumentsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(arguments_); } } /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Builder addArgumentsBuilder() { return getArgumentsFieldBuilder().addBuilder( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.getDefaultInstance()); } /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Builder addArgumentsBuilder( int index) { return getArgumentsFieldBuilder().addBuilder( index, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.getDefaultInstance()); } /** *
       * Master Control Service Example Tag or Request Label
       * Value supports regular matching
       * 
* * repeated .v1.SourceMatch arguments = 3; */ public java.util.List getArgumentsBuilderList() { return getArgumentsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatchOrBuilder> getArgumentsFieldBuilder() { if (argumentsBuilder_ == null) { argumentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatchOrBuilder>( arguments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); arguments_ = null; } return argumentsBuilder_; } @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:v1.SourceService) } // @@protoc_insertion_point(class_scope:v1.SourceService) private static final com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SourceService 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceService getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DestinationGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.DestinationGroup) com.google.protobuf.MessageOrBuilder { /** *
     * Templated service and namespace
     * 
* * string service = 1; * @return The service. */ java.lang.String getService(); /** *
     * Templated service and namespace
     * 
* * string service = 1; * @return The bytes for service. */ com.google.protobuf.ByteString getServiceBytes(); /** * string namespace = 2; * @return The namespace. */ java.lang.String getNamespace(); /** * string namespace = 2; * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); /** *
     * Templated service example label
     * Value supports regular matching
     * 
* * map<string, .v1.MatchString> labels = 3; */ int getLabelsCount(); /** *
     * Templated service example label
     * Value supports regular matching
     * 
* * map<string, .v1.MatchString> labels = 3; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * Templated service example label
     * Value supports regular matching
     * 
* * map<string, .v1.MatchString> labels = 3; */ java.util.Map getLabelsMap(); /** *
     * Templated service example label
     * Value supports regular matching
     * 
* * map<string, .v1.MatchString> labels = 3; */ /* nullable */ com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getLabelsOrDefault( java.lang.String key, /* nullable */ com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString defaultValue); /** *
     * Templated service example label
     * Value supports regular matching
     * 
* * map<string, .v1.MatchString> labels = 3; */ com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getLabelsOrThrow( java.lang.String key); /** *
     * According to the service name and service instance Metadata Filter the
     * qualified service instance subset Service instance subset can set priority
     * and weight Priority: integer, range [0, 9], the highest priority is 0
     * Weight: Integer
     * Press priority routing, if there is high priority, low priority will not
     * use If there is a subset of the same priority, then assign by weight
     * Priority and weight can be not set / set up one / set two
     * If the section is set priority, some are not set, it is considered that the
     * priority is not set. If the part is set, some is not set, it is considered
     * that the weight is not set to 0 If you have no weight, you think the weight
     * is the same
     * 
* * uint32 priority = 4; * @return The priority. */ int getPriority(); /** * uint32 weight = 5; * @return The weight. */ int getWeight(); /** *
     * Forward requests to proxy service
     * 
* * string transfer = 6; * @return The transfer. */ java.lang.String getTransfer(); /** *
     * Forward requests to proxy service
     * 
* * string transfer = 6; * @return The bytes for transfer. */ com.google.protobuf.ByteString getTransferBytes(); /** *
     * Whether to isolate the SET, after isolation, no traffic will be allocated
     * 
* * bool isolate = 7; * @return The isolate. */ boolean getIsolate(); /** *
     * name desition name
     * 
* * string name = 8; * @return The name. */ java.lang.String getName(); /** *
     * name desition name
     * 
* * string name = 8; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } /** * Protobuf type {@code v1.DestinationGroup} */ public static final class DestinationGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.DestinationGroup) DestinationGroupOrBuilder { private static final long serialVersionUID = 0L; // Use DestinationGroup.newBuilder() to construct. private DestinationGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DestinationGroup() { service_ = ""; namespace_ = ""; transfer_ = ""; name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DestinationGroup(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_DestinationGroup_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_DestinationGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder.class); } public static final int SERVICE_FIELD_NUMBER = 1; private volatile java.lang.Object service_; /** *
     * Templated service and namespace
     * 
* * string service = 1; * @return The service. */ @java.lang.Override public java.lang.String getService() { java.lang.Object ref = service_; 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(); service_ = s; return s; } } /** *
     * Templated service and namespace
     * 
* * string service = 1; * @return The bytes for service. */ @java.lang.Override public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); service_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAMESPACE_FIELD_NUMBER = 2; private volatile java.lang.Object namespace_; /** * string namespace = 2; * @return The namespace. */ @java.lang.Override public java.lang.String getNamespace() { java.lang.Object ref = namespace_; 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(); namespace_ = s; return s; } } /** * string namespace = 2; * @return The bytes for namespace. */ @java.lang.Override public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 3; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_DestinationGroup_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * Templated service example label
     * Value supports regular matching
     * 
* * map<string, .v1.MatchString> labels = 3; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * Templated service example label
     * Value supports regular matching
     * 
* * map<string, .v1.MatchString> labels = 3; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Templated service example label
     * Value supports regular matching
     * 
* * map<string, .v1.MatchString> labels = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getLabelsOrDefault( java.lang.String key, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Templated service example label
     * Value supports regular matching
     * 
* * map<string, .v1.MatchString> labels = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int PRIORITY_FIELD_NUMBER = 4; private int priority_; /** *
     * According to the service name and service instance Metadata Filter the
     * qualified service instance subset Service instance subset can set priority
     * and weight Priority: integer, range [0, 9], the highest priority is 0
     * Weight: Integer
     * Press priority routing, if there is high priority, low priority will not
     * use If there is a subset of the same priority, then assign by weight
     * Priority and weight can be not set / set up one / set two
     * If the section is set priority, some are not set, it is considered that the
     * priority is not set. If the part is set, some is not set, it is considered
     * that the weight is not set to 0 If you have no weight, you think the weight
     * is the same
     * 
* * uint32 priority = 4; * @return The priority. */ @java.lang.Override public int getPriority() { return priority_; } public static final int WEIGHT_FIELD_NUMBER = 5; private int weight_; /** * uint32 weight = 5; * @return The weight. */ @java.lang.Override public int getWeight() { return weight_; } public static final int TRANSFER_FIELD_NUMBER = 6; private volatile java.lang.Object transfer_; /** *
     * Forward requests to proxy service
     * 
* * string transfer = 6; * @return The transfer. */ @java.lang.Override public java.lang.String getTransfer() { java.lang.Object ref = transfer_; 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(); transfer_ = s; return s; } } /** *
     * Forward requests to proxy service
     * 
* * string transfer = 6; * @return The bytes for transfer. */ @java.lang.Override public com.google.protobuf.ByteString getTransferBytes() { java.lang.Object ref = transfer_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); transfer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ISOLATE_FIELD_NUMBER = 7; private boolean isolate_; /** *
     * Whether to isolate the SET, after isolation, no traffic will be allocated
     * 
* * bool isolate = 7; * @return The isolate. */ @java.lang.Override public boolean getIsolate() { return isolate_; } public static final int NAME_FIELD_NUMBER = 8; private volatile java.lang.Object name_; /** *
     * name desition name
     * 
* * string name = 8; * @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; } } /** *
     * name desition name
     * 
* * string name = 8; * @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; } } 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(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); if (priority_ != 0) { output.writeUInt32(4, priority_); } if (weight_ != 0) { output.writeUInt32(5, weight_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transfer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, transfer_); } if (isolate_ != false) { output.writeBool(7, isolate_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, name_); } 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(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, labels__); } if (priority_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, priority_); } if (weight_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, weight_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transfer_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, transfer_); } if (isolate_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, isolate_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, name_); } 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup other = (com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup) obj; if (!getService() .equals(other.getService())) return false; if (!getNamespace() .equals(other.getNamespace())) return false; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (getPriority() != other.getPriority()) return false; if (getWeight() != other.getWeight()) return false; if (!getTransfer() .equals(other.getTransfer())) return false; if (getIsolate() != other.getIsolate()) return false; if (!getName() .equals(other.getName())) 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) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (37 * hash) + PRIORITY_FIELD_NUMBER; hash = (53 * hash) + getPriority(); hash = (37 * hash) + WEIGHT_FIELD_NUMBER; hash = (53 * hash) + getWeight(); hash = (37 * hash) + TRANSFER_FIELD_NUMBER; hash = (53 * hash) + getTransfer().hashCode(); hash = (37 * hash) + ISOLATE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsolate()); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup 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(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup 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 v1.DestinationGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.DestinationGroup) com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_DestinationGroup_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 3: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 3: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_DestinationGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); service_ = ""; namespace_ = ""; internalGetMutableLabels().clear(); priority_ = 0; weight_ = 0; transfer_ = ""; isolate_ = false; name_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_DestinationGroup_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup build() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup result = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup(this); int from_bitField0_ = bitField0_; result.service_ = service_; result.namespace_ = namespace_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.priority_ = priority_; result.weight_ = weight_; result.transfer_ = transfer_; result.isolate_ = isolate_; result.name_ = name_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.getDefaultInstance()) return this; if (!other.getService().isEmpty()) { service_ = other.service_; onChanged(); } if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (other.getPriority() != 0) { setPriority(other.getPriority()); } if (other.getWeight() != 0) { setWeight(other.getWeight()); } if (!other.getTransfer().isEmpty()) { transfer_ = other.transfer_; onChanged(); } if (other.getIsolate() != false) { setIsolate(other.getIsolate()); } if (!other.getName().isEmpty()) { name_ = other.name_; 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: { service_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { namespace_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableLabels().getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } // case 26 case 32: { priority_ = input.readUInt32(); break; } // case 32 case 40: { weight_ = input.readUInt32(); break; } // case 40 case 50: { transfer_ = input.readStringRequireUtf8(); break; } // case 50 case 56: { isolate_ = input.readBool(); break; } // case 56 case 66: { name_ = input.readStringRequireUtf8(); break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // 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 service_ = ""; /** *
       * Templated service and namespace
       * 
* * string service = 1; * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Templated service and namespace
       * 
* * string service = 1; * @return The bytes for service. */ public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); service_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Templated service and namespace
       * 
* * string service = 1; * @param value The service to set. * @return This builder for chaining. */ public Builder setService( java.lang.String value) { if (value == null) { throw new NullPointerException(); } service_ = value; onChanged(); return this; } /** *
       * Templated service and namespace
       * 
* * string service = 1; * @return This builder for chaining. */ public Builder clearService() { service_ = getDefaultInstance().getService(); onChanged(); return this; } /** *
       * Templated service and namespace
       * 
* * string service = 1; * @param value The bytes for service to set. * @return This builder for chaining. */ public Builder setServiceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); service_ = value; onChanged(); return this; } private java.lang.Object namespace_ = ""; /** * string namespace = 2; * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } else { return (java.lang.String) ref; } } /** * string namespace = 2; * @return The bytes for namespace. */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string namespace = 2; * @param value The namespace to set. * @return This builder for chaining. */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); return this; } /** * string namespace = 2; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** * string namespace = 2; * @param value The bytes for namespace to set. * @return This builder for chaining. */ public Builder setNamespaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); namespace_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
       * Templated service example label
       * Value supports regular matching
       * 
* * map<string, .v1.MatchString> labels = 3; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
       * Templated service example label
       * Value supports regular matching
       * 
* * map<string, .v1.MatchString> labels = 3; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * Templated service example label
       * Value supports regular matching
       * 
* * map<string, .v1.MatchString> labels = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getLabelsOrDefault( java.lang.String key, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * Templated service example label
       * Value supports regular matching
       * 
* * map<string, .v1.MatchString> labels = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
       * Templated service example label
       * Value supports regular matching
       * 
* * map<string, .v1.MatchString> labels = 3; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
       * Templated service example label
       * Value supports regular matching
       * 
* * map<string, .v1.MatchString> labels = 3; */ public Builder putLabels( java.lang.String key, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
       * Templated service example label
       * Value supports regular matching
       * 
* * map<string, .v1.MatchString> labels = 3; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private int priority_ ; /** *
       * According to the service name and service instance Metadata Filter the
       * qualified service instance subset Service instance subset can set priority
       * and weight Priority: integer, range [0, 9], the highest priority is 0
       * Weight: Integer
       * Press priority routing, if there is high priority, low priority will not
       * use If there is a subset of the same priority, then assign by weight
       * Priority and weight can be not set / set up one / set two
       * If the section is set priority, some are not set, it is considered that the
       * priority is not set. If the part is set, some is not set, it is considered
       * that the weight is not set to 0 If you have no weight, you think the weight
       * is the same
       * 
* * uint32 priority = 4; * @return The priority. */ @java.lang.Override public int getPriority() { return priority_; } /** *
       * According to the service name and service instance Metadata Filter the
       * qualified service instance subset Service instance subset can set priority
       * and weight Priority: integer, range [0, 9], the highest priority is 0
       * Weight: Integer
       * Press priority routing, if there is high priority, low priority will not
       * use If there is a subset of the same priority, then assign by weight
       * Priority and weight can be not set / set up one / set two
       * If the section is set priority, some are not set, it is considered that the
       * priority is not set. If the part is set, some is not set, it is considered
       * that the weight is not set to 0 If you have no weight, you think the weight
       * is the same
       * 
* * uint32 priority = 4; * @param value The priority to set. * @return This builder for chaining. */ public Builder setPriority(int value) { priority_ = value; onChanged(); return this; } /** *
       * According to the service name and service instance Metadata Filter the
       * qualified service instance subset Service instance subset can set priority
       * and weight Priority: integer, range [0, 9], the highest priority is 0
       * Weight: Integer
       * Press priority routing, if there is high priority, low priority will not
       * use If there is a subset of the same priority, then assign by weight
       * Priority and weight can be not set / set up one / set two
       * If the section is set priority, some are not set, it is considered that the
       * priority is not set. If the part is set, some is not set, it is considered
       * that the weight is not set to 0 If you have no weight, you think the weight
       * is the same
       * 
* * uint32 priority = 4; * @return This builder for chaining. */ public Builder clearPriority() { priority_ = 0; onChanged(); return this; } private int weight_ ; /** * uint32 weight = 5; * @return The weight. */ @java.lang.Override public int getWeight() { return weight_; } /** * uint32 weight = 5; * @param value The weight to set. * @return This builder for chaining. */ public Builder setWeight(int value) { weight_ = value; onChanged(); return this; } /** * uint32 weight = 5; * @return This builder for chaining. */ public Builder clearWeight() { weight_ = 0; onChanged(); return this; } private java.lang.Object transfer_ = ""; /** *
       * Forward requests to proxy service
       * 
* * string transfer = 6; * @return The transfer. */ public java.lang.String getTransfer() { java.lang.Object ref = transfer_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transfer_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Forward requests to proxy service
       * 
* * string transfer = 6; * @return The bytes for transfer. */ public com.google.protobuf.ByteString getTransferBytes() { java.lang.Object ref = transfer_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); transfer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Forward requests to proxy service
       * 
* * string transfer = 6; * @param value The transfer to set. * @return This builder for chaining. */ public Builder setTransfer( java.lang.String value) { if (value == null) { throw new NullPointerException(); } transfer_ = value; onChanged(); return this; } /** *
       * Forward requests to proxy service
       * 
* * string transfer = 6; * @return This builder for chaining. */ public Builder clearTransfer() { transfer_ = getDefaultInstance().getTransfer(); onChanged(); return this; } /** *
       * Forward requests to proxy service
       * 
* * string transfer = 6; * @param value The bytes for transfer to set. * @return This builder for chaining. */ public Builder setTransferBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transfer_ = value; onChanged(); return this; } private boolean isolate_ ; /** *
       * Whether to isolate the SET, after isolation, no traffic will be allocated
       * 
* * bool isolate = 7; * @return The isolate. */ @java.lang.Override public boolean getIsolate() { return isolate_; } /** *
       * Whether to isolate the SET, after isolation, no traffic will be allocated
       * 
* * bool isolate = 7; * @param value The isolate to set. * @return This builder for chaining. */ public Builder setIsolate(boolean value) { isolate_ = value; onChanged(); return this; } /** *
       * Whether to isolate the SET, after isolation, no traffic will be allocated
       * 
* * bool isolate = 7; * @return This builder for chaining. */ public Builder clearIsolate() { isolate_ = false; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * name desition name
       * 
* * string name = 8; * @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; } } /** *
       * name desition name
       * 
* * string name = 8; * @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; } } /** *
       * name desition name
       * 
* * string name = 8; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * name desition name
       * 
* * string name = 8; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * name desition name
       * 
* * string name = 8; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } @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:v1.DestinationGroup) } // @@protoc_insertion_point(class_scope:v1.DestinationGroup) private static final com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DestinationGroup 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SourceMatchOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.SourceMatch) com.google.protobuf.MessageOrBuilder { /** * .v1.SourceMatch.Type type = 1; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * .v1.SourceMatch.Type type = 1; * @return The type. */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Type getType(); /** *
     * header key or query key
     * 
* * string key = 2; * @return The key. */ java.lang.String getKey(); /** *
     * header key or query key
     * 
* * string key = 2; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** *
     * header value or query value
     * 
* * .v1.MatchString value = 3; * @return Whether the value field is set. */ boolean hasValue(); /** *
     * header value or query value
     * 
* * .v1.MatchString value = 3; * @return The value. */ com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getValue(); /** *
     * header value or query value
     * 
* * .v1.MatchString value = 3; */ com.tencent.polaris.specification.api.v1.model.ModelProto.MatchStringOrBuilder getValueOrBuilder(); } /** *
   * SourceMatch
   * 
* * Protobuf type {@code v1.SourceMatch} */ public static final class SourceMatch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.SourceMatch) SourceMatchOrBuilder { private static final long serialVersionUID = 0L; // Use SourceMatch.newBuilder() to construct. private SourceMatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SourceMatch() { type_ = 0; key_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SourceMatch(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_SourceMatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_SourceMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Builder.class); } /** *
     * label type for gateway request
     * 
* * Protobuf enum {@code v1.SourceMatch.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** *
       * custom arguments
       * 
* * CUSTOM = 0; */ CUSTOM(0), /** *
       * method, match the http post/get/put/delete or grpc method
       * 
* * METHOD = 1; */ METHOD(1), /** *
       * header, match the http header, dubbo attachment, grpc header
       * 
* * HEADER = 2; */ HEADER(2), /** *
       * query, match the http query, dubbo argument
       * 
* * QUERY = 3; */ QUERY(3), /** *
       * caller host ip
       * 
* * CALLER_IP = 4; */ CALLER_IP(4), /** *
       * path, math the http url
       * 
* * PATH = 5; */ PATH(5), /** *
       * cookie match http cookie
       * 
* * COOKIE = 6; */ COOKIE(6), UNRECOGNIZED(-1), ; /** *
       * custom arguments
       * 
* * CUSTOM = 0; */ public static final int CUSTOM_VALUE = 0; /** *
       * method, match the http post/get/put/delete or grpc method
       * 
* * METHOD = 1; */ public static final int METHOD_VALUE = 1; /** *
       * header, match the http header, dubbo attachment, grpc header
       * 
* * HEADER = 2; */ public static final int HEADER_VALUE = 2; /** *
       * query, match the http query, dubbo argument
       * 
* * QUERY = 3; */ public static final int QUERY_VALUE = 3; /** *
       * caller host ip
       * 
* * CALLER_IP = 4; */ public static final int CALLER_IP_VALUE = 4; /** *
       * path, math the http url
       * 
* * PATH = 5; */ public static final int PATH_VALUE = 5; /** *
       * cookie match http cookie
       * 
* * COOKIE = 6; */ public static final int COOKIE_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Type forNumber(int value) { switch (value) { case 0: return CUSTOM; case 1: return METHOD; case 2: return HEADER; case 3: return QUERY; case 4: return CALLER_IP; case 5: return PATH; case 6: return COOKIE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Type findValueByNumber(int number) { return Type.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Type(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:v1.SourceMatch.Type) } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * .v1.SourceMatch.Type type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .v1.SourceMatch.Type type = 1; * @return The type. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Type getType() { @SuppressWarnings("deprecation") com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Type result = com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Type.valueOf(type_); return result == null ? com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Type.UNRECOGNIZED : result; } public static final int KEY_FIELD_NUMBER = 2; private volatile java.lang.Object key_; /** *
     * header key or query key
     * 
* * string key = 2; * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; } } /** *
     * header key or query key
     * 
* * string key = 2; * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 3; private com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString value_; /** *
     * header value or query value
     * 
* * .v1.MatchString value = 3; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return value_ != null; } /** *
     * header value or query value
     * 
* * .v1.MatchString value = 3; * @return The value. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getValue() { return value_ == null ? com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.getDefaultInstance() : value_; } /** *
     * header value or query value
     * 
* * .v1.MatchString value = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchStringOrBuilder getValueOrBuilder() { return getValue(); } 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 (type_ != com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Type.CUSTOM.getNumber()) { output.writeEnum(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); } if (value_ != null) { output.writeMessage(3, getValue()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Type.CUSTOM.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getValue()); } 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch other = (com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch) obj; if (type_ != other.type_) return false; if (!getKey() .equals(other.getKey())) return false; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch 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(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch 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; } /** *
     * SourceMatch
     * 
* * Protobuf type {@code v1.SourceMatch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.SourceMatch) com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_SourceMatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_SourceMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.class, com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); type_ = 0; key_ = ""; if (valueBuilder_ == null) { value_ = null; } else { value_ = null; valueBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.internal_static_v1_SourceMatch_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch build() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch result = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch(this); result.type_ = type_; result.key_ = key_; if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); } if (other.hasValue()) { mergeValue(other.getValue()); } 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 8: { type_ = input.readEnum(); break; } // case 8 case 18: { key_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { input.readMessage( getValueFieldBuilder().getBuilder(), extensionRegistry); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int type_ = 0; /** * .v1.SourceMatch.Type type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .v1.SourceMatch.Type type = 1; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * .v1.SourceMatch.Type type = 1; * @return The type. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Type getType() { @SuppressWarnings("deprecation") com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Type result = com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Type.valueOf(type_); return result == null ? com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Type.UNRECOGNIZED : result; } /** * .v1.SourceMatch.Type type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .v1.SourceMatch.Type type = 1; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private java.lang.Object key_ = ""; /** *
       * header key or query key
       * 
* * string key = 2; * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * header key or query key
       * 
* * string key = 2; * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * header key or query key
       * 
* * string key = 2; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** *
       * header key or query key
       * 
* * string key = 2; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** *
       * header key or query key
       * 
* * string key = 2; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; onChanged(); return this; } private com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString value_; private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.Builder, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchStringOrBuilder> valueBuilder_; /** *
       * header value or query value
       * 
* * .v1.MatchString value = 3; * @return Whether the value field is set. */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** *
       * header value or query value
       * 
* * .v1.MatchString value = 3; * @return The value. */ public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getValue() { if (valueBuilder_ == null) { return value_ == null ? com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** *
       * header value or query value
       * 
* * .v1.MatchString value = 3; */ public Builder setValue(com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } return this; } /** *
       * header value or query value
       * 
* * .v1.MatchString value = 3; */ public Builder setValue( com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * header value or query value
       * 
* * .v1.MatchString value = 3; */ public Builder mergeValue(com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString value) { if (valueBuilder_ == null) { if (value_ != null) { value_ = com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } return this; } /** *
       * header value or query value
       * 
* * .v1.MatchString value = 3; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** *
       * header value or query value
       * 
* * .v1.MatchString value = 3; */ public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** *
       * header value or query value
       * 
* * .v1.MatchString value = 3; */ public com.tencent.polaris.specification.api.v1.model.ModelProto.MatchStringOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.getDefaultInstance() : value_; } } /** *
       * header value or query value
       * 
* * .v1.MatchString value = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.Builder, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchStringOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString.Builder, com.tencent.polaris.specification.api.v1.model.ModelProto.MatchStringOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @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:v1.SourceMatch) } // @@protoc_insertion_point(class_scope:v1.SourceMatch) private static final com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SourceMatch 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 com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_Routing_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_Routing_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_Route_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_Route_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_Route_ExtendInfoEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_Route_ExtendInfoEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_Source_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_Source_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_Source_MetadataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_Source_MetadataEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_Destination_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_Destination_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_Destination_MetadataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_Destination_MetadataEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_RouteRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_RouteRule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_RouteRule_ExtendInfoEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_RouteRule_ExtendInfoEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_MetadataFailover_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_MetadataFailover_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_MetadataFailover_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_MetadataFailover_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_MetadataRoutingConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_MetadataRoutingConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_MetadataRoutingConfig_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_MetadataRoutingConfig_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_RuleRoutingConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_RuleRoutingConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_SubRuleRouting_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_SubRuleRouting_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_SourceService_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_SourceService_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_DestinationGroup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_DestinationGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_DestinationGroup_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_DestinationGroup_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_SourceMatch_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_SourceMatch_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\rrouting.proto\022\002v1\032\036google/protobuf/wra" + "ppers.proto\032\031google/protobuf/any.proto\032\013" + "model.proto\"\226\003\n\007Routing\022-\n\007service\030\001 \001(\013" + "2\034.google.protobuf.StringValue\022/\n\tnamesp" + "ace\030\002 \001(\0132\034.google.protobuf.StringValue\022" + "\033\n\010inbounds\030\003 \003(\0132\t.v1.Route\022\034\n\toutbound" + "s\030\004 \003(\0132\t.v1.Route\022+\n\005ctime\030\005 \001(\0132\034.goog" + "le.protobuf.StringValue\022+\n\005mtime\030\006 \001(\0132\034" + ".google.protobuf.StringValue\022.\n\010revision" + "\030\007 \001(\0132\034.google.protobuf.StringValue\022B\n\r" + "service_token\030\010 \001(\0132\034.google.protobuf.St" + "ringValueR\rservice_token\022\034\n\005rules\030\025 \003(\0132" + "\r.v1.RouteRuleJ\004\010\t\020\025\"\255\001\n\005Route\022\033\n\007source" + "s\030\001 \003(\0132\n.v1.Source\022%\n\014destinations\030\002 \003(" + "\0132\017.v1.Destination\022-\n\nextendInfo\030\003 \003(\0132\031" + ".v1.Route.ExtendInfoEntry\0321\n\017ExtendInfoE" + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\326\001\n" + "\006Source\022-\n\007service\030\001 \001(\0132\034.google.protob" + "uf.StringValue\022/\n\tnamespace\030\002 \001(\0132\034.goog" + "le.protobuf.StringValue\022*\n\010metadata\030\003 \003(" + "\0132\030.v1.Source.MetadataEntry\032@\n\rMetadataE" + "ntry\022\013\n\003key\030\001 \001(\t\022\036\n\005value\030\002 \001(\0132\017.v1.Ma" + "tchString:\0028\001\"\307\003\n\013Destination\022-\n\007service" + "\030\001 \001(\0132\034.google.protobuf.StringValue\022/\n\t" + "namespace\030\002 \001(\0132\034.google.protobuf.String" + "Value\022/\n\010metadata\030\003 \003(\0132\035.v1.Destination" + ".MetadataEntry\022.\n\010priority\030\004 \001(\0132\034.googl" + "e.protobuf.UInt32Value\022,\n\006weight\030\005 \001(\0132\034" + ".google.protobuf.UInt32Value\022.\n\010transfer" + "\030\006 \001(\0132\034.google.protobuf.StringValue\022+\n\007" + "isolate\030\007 \001(\0132\032.google.protobuf.BoolValu" + "e\022*\n\004name\030\010 \001(\0132\034.google.protobuf.String" + "Value\032@\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\036\n\005v" + "alue\030\002 \001(\0132\017.v1.MatchString:\0028\001\"\215\003\n\tRout" + "eRule\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\021\n\tnames" + "pace\030\003 \001(\t\022\016\n\006enable\030\004 \001(\010\0229\n\016routing_po" + "licy\030\005 \001(\0162\021.v1.RoutingPolicyR\016routing_p" + "olicy\022<\n\016routing_config\030\006 \001(\0132\024.google.p" + "rotobuf.AnyR\016routing_config\022\020\n\010revision\030" + "\007 \001(\t\022\r\n\005ctime\030\010 \001(\t\022\r\n\005mtime\030\t \001(\t\022\r\n\005e" + "time\030\n \001(\t\022\020\n\010priority\030\013 \001(\r\022\023\n\013descript" + "ion\030\014 \001(\t\0221\n\nextendInfo\030\024 \003(\0132\035.v1.Route" + "Rule.ExtendInfoEntry\0321\n\017ExtendInfoEntry\022" + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\345\001\n\020Meta" + "dataFailover\022:\n\016failover_range\030\001 \001(\0162\".v" + "1.MetadataFailover.FailoverRange\0220\n\006labe" + "ls\030\002 \003(\0132 .v1.MetadataFailover.LabelsEnt" + "ry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\t:\0028\001\"4\n\rFailoverRange\022\007\n\003ALL\020\000\022\n\n\006O" + "THERS\020\001\022\016\n\nOTHER_KEYS\020\002\"\311\001\n\025MetadataRout" + "ingConfig\022\017\n\007service\030\001 \001(\t\022\021\n\tnamespace\030" + "\002 \001(\t\0225\n\006labels\030\003 \003(\0132%.v1.MetadataRouti" + "ngConfig.LabelsEntry\022&\n\010failover\030\004 \001(\0132\024" + ".v1.MetadataFailover\032-\n\013LabelsEntry\022\013\n\003k" + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\206\001\n\021RuleRout" + "ingConfig\022\"\n\007sources\030\001 \003(\0132\021.v1.SourceSe" + "rvice\022*\n\014destinations\030\002 \003(\0132\024.v1.Destina" + "tionGroup\022!\n\005rules\030\003 \003(\0132\022.v1.SubRuleRou" + "ting\"n\n\016SubRuleRouting\022\014\n\004name\030\001 \001(\t\022\"\n\007" + "sources\030\002 \003(\0132\021.v1.SourceService\022*\n\014dest" + "inations\030\003 \003(\0132\024.v1.DestinationGroup\"W\n\r" + "SourceService\022\017\n\007service\030\001 \001(\t\022\021\n\tnamesp" + "ace\030\002 \001(\t\022\"\n\targuments\030\003 \003(\0132\017.v1.Source" + "Match\"\373\001\n\020DestinationGroup\022\017\n\007service\030\001 " + "\001(\t\022\021\n\tnamespace\030\002 \001(\t\0220\n\006labels\030\003 \003(\0132 " + ".v1.DestinationGroup.LabelsEntry\022\020\n\010prio" + "rity\030\004 \001(\r\022\016\n\006weight\030\005 \001(\r\022\020\n\010transfer\030\006" + " \001(\t\022\017\n\007isolate\030\007 \001(\010\022\014\n\004name\030\010 \001(\t\032>\n\013L" + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\036\n\005value\030\002 \001(\0132\017" + ".v1.MatchString:\0028\001\"\272\001\n\013SourceMatch\022\"\n\004t" + "ype\030\001 \001(\0162\024.v1.SourceMatch.Type\022\013\n\003key\030\002" + " \001(\t\022\036\n\005value\030\003 \001(\0132\017.v1.MatchString\"Z\n\004" + "Type\022\n\n\006CUSTOM\020\000\022\n\n\006METHOD\020\001\022\n\n\006HEADER\020\002" + "\022\t\n\005QUERY\020\003\022\r\n\tCALLER_IP\020\004\022\010\n\004PATH\020\005\022\n\n\006" + "COOKIE\020\006*3\n\rRoutingPolicy\022\016\n\nRulePolicy\020" + "\000\022\022\n\016MetadataPolicy\020\001B\215\001\n7com.tencent.po" + "laris.specification.api.v1.traffic.manag" + "eB\014RoutingProtoZDgithub.com/polarismesh/" + "specification/source/go/api/v1/traffic_m" + "anageb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.WrappersProto.getDescriptor(), com.google.protobuf.AnyProto.getDescriptor(), com.tencent.polaris.specification.api.v1.model.ModelProto.getDescriptor(), }); internal_static_v1_Routing_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_v1_Routing_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_Routing_descriptor, new java.lang.String[] { "Service", "Namespace", "Inbounds", "Outbounds", "Ctime", "Mtime", "Revision", "ServiceToken", "Rules", }); internal_static_v1_Route_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_v1_Route_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_Route_descriptor, new java.lang.String[] { "Sources", "Destinations", "ExtendInfo", }); internal_static_v1_Route_ExtendInfoEntry_descriptor = internal_static_v1_Route_descriptor.getNestedTypes().get(0); internal_static_v1_Route_ExtendInfoEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_Route_ExtendInfoEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_v1_Source_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_v1_Source_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_Source_descriptor, new java.lang.String[] { "Service", "Namespace", "Metadata", }); internal_static_v1_Source_MetadataEntry_descriptor = internal_static_v1_Source_descriptor.getNestedTypes().get(0); internal_static_v1_Source_MetadataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_Source_MetadataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_v1_Destination_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_v1_Destination_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_Destination_descriptor, new java.lang.String[] { "Service", "Namespace", "Metadata", "Priority", "Weight", "Transfer", "Isolate", "Name", }); internal_static_v1_Destination_MetadataEntry_descriptor = internal_static_v1_Destination_descriptor.getNestedTypes().get(0); internal_static_v1_Destination_MetadataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_Destination_MetadataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_v1_RouteRule_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_v1_RouteRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_RouteRule_descriptor, new java.lang.String[] { "Id", "Name", "Namespace", "Enable", "RoutingPolicy", "RoutingConfig", "Revision", "Ctime", "Mtime", "Etime", "Priority", "Description", "ExtendInfo", }); internal_static_v1_RouteRule_ExtendInfoEntry_descriptor = internal_static_v1_RouteRule_descriptor.getNestedTypes().get(0); internal_static_v1_RouteRule_ExtendInfoEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_RouteRule_ExtendInfoEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_v1_MetadataFailover_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_v1_MetadataFailover_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_MetadataFailover_descriptor, new java.lang.String[] { "FailoverRange", "Labels", }); internal_static_v1_MetadataFailover_LabelsEntry_descriptor = internal_static_v1_MetadataFailover_descriptor.getNestedTypes().get(0); internal_static_v1_MetadataFailover_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_MetadataFailover_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_v1_MetadataRoutingConfig_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_v1_MetadataRoutingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_MetadataRoutingConfig_descriptor, new java.lang.String[] { "Service", "Namespace", "Labels", "Failover", }); internal_static_v1_MetadataRoutingConfig_LabelsEntry_descriptor = internal_static_v1_MetadataRoutingConfig_descriptor.getNestedTypes().get(0); internal_static_v1_MetadataRoutingConfig_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_MetadataRoutingConfig_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_v1_RuleRoutingConfig_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_v1_RuleRoutingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_RuleRoutingConfig_descriptor, new java.lang.String[] { "Sources", "Destinations", "Rules", }); internal_static_v1_SubRuleRouting_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_v1_SubRuleRouting_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_SubRuleRouting_descriptor, new java.lang.String[] { "Name", "Sources", "Destinations", }); internal_static_v1_SourceService_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_v1_SourceService_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_SourceService_descriptor, new java.lang.String[] { "Service", "Namespace", "Arguments", }); internal_static_v1_DestinationGroup_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_v1_DestinationGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_DestinationGroup_descriptor, new java.lang.String[] { "Service", "Namespace", "Labels", "Priority", "Weight", "Transfer", "Isolate", "Name", }); internal_static_v1_DestinationGroup_LabelsEntry_descriptor = internal_static_v1_DestinationGroup_descriptor.getNestedTypes().get(0); internal_static_v1_DestinationGroup_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_DestinationGroup_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_v1_SourceMatch_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_v1_SourceMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_SourceMatch_descriptor, new java.lang.String[] { "Type", "Key", "Value", }); com.google.protobuf.WrappersProto.getDescriptor(); com.google.protobuf.AnyProto.getDescriptor(); com.tencent.polaris.specification.api.v1.model.ModelProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy