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

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

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: lane.proto

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

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface TrafficEntryOrBuilder extends
      // @@protoc_insertion_point(interface_extends:v1.TrafficEntry)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * 标记流量入口类型
     * type == "polarismesh.cn/gateway/spring-cloud-gateway", 则 selector 为
     * ServiceGatewaySelector type == "polarismesh.cn/service, 则 selector 为
     * ServiceSelector
     * 
* * string type = 1; * @return The type. */ java.lang.String getType(); /** *
     * 标记流量入口类型
     * type == "polarismesh.cn/gateway/spring-cloud-gateway", 则 selector 为
     * ServiceGatewaySelector type == "polarismesh.cn/service, 则 selector 为
     * ServiceSelector
     * 
* * string type = 1; * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); /** * .google.protobuf.Any selector = 2; * @return Whether the selector field is set. */ boolean hasSelector(); /** * .google.protobuf.Any selector = 2; * @return The selector. */ com.google.protobuf.Any getSelector(); /** * .google.protobuf.Any selector = 2; */ com.google.protobuf.AnyOrBuilder getSelectorOrBuilder(); } /** *
   * 流量入口
   * 
* * Protobuf type {@code v1.TrafficEntry} */ public static final class TrafficEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.TrafficEntry) TrafficEntryOrBuilder { private static final long serialVersionUID = 0L; // Use TrafficEntry.newBuilder() to construct. private TrafficEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TrafficEntry() { type_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TrafficEntry(); } @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.LaneProto.internal_static_v1_TrafficEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_TrafficEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.class, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** *
     * 标记流量入口类型
     * type == "polarismesh.cn/gateway/spring-cloud-gateway", 则 selector 为
     * ServiceGatewaySelector type == "polarismesh.cn/service, 则 selector 为
     * ServiceSelector
     * 
* * string type = 1; * @return The type. */ @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; 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(); type_ = s; return s; } } /** *
     * 标记流量入口类型
     * type == "polarismesh.cn/gateway/spring-cloud-gateway", 则 selector 为
     * ServiceGatewaySelector type == "polarismesh.cn/service, 则 selector 为
     * ServiceSelector
     * 
* * string type = 1; * @return The bytes for type. */ @java.lang.Override public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SELECTOR_FIELD_NUMBER = 2; private com.google.protobuf.Any selector_; /** * .google.protobuf.Any selector = 2; * @return Whether the selector field is set. */ @java.lang.Override public boolean hasSelector() { return selector_ != null; } /** * .google.protobuf.Any selector = 2; * @return The selector. */ @java.lang.Override public com.google.protobuf.Any getSelector() { return selector_ == null ? com.google.protobuf.Any.getDefaultInstance() : selector_; } /** * .google.protobuf.Any selector = 2; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getSelectorOrBuilder() { return getSelector(); } 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(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (selector_ != null) { output.writeMessage(2, getSelector()); } 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(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (selector_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getSelector()); } 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.LaneProto.TrafficEntry)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry other = (com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry) obj; if (!getType() .equals(other.getType())) return false; if (hasSelector() != other.hasSelector()) return false; if (hasSelector()) { if (!getSelector() .equals(other.getSelector())) 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) + getType().hashCode(); if (hasSelector()) { hash = (37 * hash) + SELECTOR_FIELD_NUMBER; hash = (53 * hash) + getSelector().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry 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.LaneProto.TrafficEntry 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.LaneProto.TrafficEntry 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.LaneProto.TrafficEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry 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.LaneProto.TrafficEntry 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.LaneProto.TrafficEntry 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.LaneProto.TrafficEntry 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.LaneProto.TrafficEntry 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.LaneProto.TrafficEntry 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.LaneProto.TrafficEntry 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.LaneProto.TrafficEntry 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.TrafficEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.TrafficEntry) com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_TrafficEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_TrafficEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.class, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); type_ = ""; if (selectorBuilder_ == null) { selector_ = null; } else { selector_ = null; selectorBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_TrafficEntry_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry build() { com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry result = new com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry(this); result.type_ = type_; if (selectorBuilder_ == null) { result.selector_ = selector_; } else { result.selector_ = selectorBuilder_.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.LaneProto.TrafficEntry) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; onChanged(); } if (other.hasSelector()) { mergeSelector(other.getSelector()); } 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: { type_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { input.readMessage( getSelectorFieldBuilder().getBuilder(), extensionRegistry); 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 java.lang.Object type_ = ""; /** *
       * 标记流量入口类型
       * type == "polarismesh.cn/gateway/spring-cloud-gateway", 则 selector 为
       * ServiceGatewaySelector type == "polarismesh.cn/service, 则 selector 为
       * ServiceSelector
       * 
* * string type = 1; * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 标记流量入口类型
       * type == "polarismesh.cn/gateway/spring-cloud-gateway", 则 selector 为
       * ServiceGatewaySelector type == "polarismesh.cn/service, 则 selector 为
       * ServiceSelector
       * 
* * string type = 1; * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 标记流量入口类型
       * type == "polarismesh.cn/gateway/spring-cloud-gateway", 则 selector 为
       * ServiceGatewaySelector type == "polarismesh.cn/service, 则 selector 为
       * ServiceSelector
       * 
* * string type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); return this; } /** *
       * 标记流量入口类型
       * type == "polarismesh.cn/gateway/spring-cloud-gateway", 则 selector 为
       * ServiceGatewaySelector type == "polarismesh.cn/service, 则 selector 为
       * ServiceSelector
       * 
* * string type = 1; * @return This builder for chaining. */ public Builder clearType() { type_ = getDefaultInstance().getType(); onChanged(); return this; } /** *
       * 标记流量入口类型
       * type == "polarismesh.cn/gateway/spring-cloud-gateway", 则 selector 为
       * ServiceGatewaySelector type == "polarismesh.cn/service, 则 selector 为
       * ServiceSelector
       * 
* * string type = 1; * @param value The bytes for type to set. * @return This builder for chaining. */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; onChanged(); return this; } private com.google.protobuf.Any selector_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> selectorBuilder_; /** * .google.protobuf.Any selector = 2; * @return Whether the selector field is set. */ public boolean hasSelector() { return selectorBuilder_ != null || selector_ != null; } /** * .google.protobuf.Any selector = 2; * @return The selector. */ public com.google.protobuf.Any getSelector() { if (selectorBuilder_ == null) { return selector_ == null ? com.google.protobuf.Any.getDefaultInstance() : selector_; } else { return selectorBuilder_.getMessage(); } } /** * .google.protobuf.Any selector = 2; */ public Builder setSelector(com.google.protobuf.Any value) { if (selectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } selector_ = value; onChanged(); } else { selectorBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Any selector = 2; */ public Builder setSelector( com.google.protobuf.Any.Builder builderForValue) { if (selectorBuilder_ == null) { selector_ = builderForValue.build(); onChanged(); } else { selectorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Any selector = 2; */ public Builder mergeSelector(com.google.protobuf.Any value) { if (selectorBuilder_ == null) { if (selector_ != null) { selector_ = com.google.protobuf.Any.newBuilder(selector_).mergeFrom(value).buildPartial(); } else { selector_ = value; } onChanged(); } else { selectorBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Any selector = 2; */ public Builder clearSelector() { if (selectorBuilder_ == null) { selector_ = null; onChanged(); } else { selector_ = null; selectorBuilder_ = null; } return this; } /** * .google.protobuf.Any selector = 2; */ public com.google.protobuf.Any.Builder getSelectorBuilder() { onChanged(); return getSelectorFieldBuilder().getBuilder(); } /** * .google.protobuf.Any selector = 2; */ public com.google.protobuf.AnyOrBuilder getSelectorOrBuilder() { if (selectorBuilder_ != null) { return selectorBuilder_.getMessageOrBuilder(); } else { return selector_ == null ? com.google.protobuf.Any.getDefaultInstance() : selector_; } } /** * .google.protobuf.Any selector = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getSelectorFieldBuilder() { if (selectorBuilder_ == null) { selectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getSelector(), getParentForChildren(), isClean()); selector_ = null; } return selectorBuilder_; } @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.TrafficEntry) } // @@protoc_insertion_point(class_scope:v1.TrafficEntry) private static final com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TrafficEntry 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.LaneProto.TrafficEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServiceGatewaySelectorOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.ServiceGatewaySelector) com.google.protobuf.MessageOrBuilder { /** * string namespace = 1; * @return The namespace. */ java.lang.String getNamespace(); /** * string namespace = 1; * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); /** * string service = 2; * @return The service. */ java.lang.String getService(); /** * string service = 2; * @return The bytes for service. */ com.google.protobuf.ByteString getServiceBytes(); /** *
     * 决定要不要部份
     * 
* * map<string, .v1.MatchString> labels = 3; */ int getLabelsCount(); /** *
     * 决定要不要部份
     * 
* * map<string, .v1.MatchString> labels = 3; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * 决定要不要部份
     * 
* * map<string, .v1.MatchString> labels = 3; */ java.util.Map getLabelsMap(); /** *
     * 决定要不要部份
     * 
* * 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); /** *
     * 决定要不要部份
     * 
* * map<string, .v1.MatchString> labels = 3; */ com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getLabelsOrThrow( java.lang.String key); } /** *
   * 微服务网关入口定义
   * 
* * Protobuf type {@code v1.ServiceGatewaySelector} */ public static final class ServiceGatewaySelector extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.ServiceGatewaySelector) ServiceGatewaySelectorOrBuilder { private static final long serialVersionUID = 0L; // Use ServiceGatewaySelector.newBuilder() to construct. private ServiceGatewaySelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ServiceGatewaySelector() { namespace_ = ""; service_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ServiceGatewaySelector(); } @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.LaneProto.internal_static_v1_ServiceGatewaySelector_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.LaneProto.internal_static_v1_ServiceGatewaySelector_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector.class, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector.Builder.class); } public static final int NAMESPACE_FIELD_NUMBER = 1; private volatile java.lang.Object namespace_; /** * string namespace = 1; * @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 = 1; * @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 SERVICE_FIELD_NUMBER = 2; private volatile java.lang.Object service_; /** * string service = 2; * @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; } } /** * string service = 2; * @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 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.LaneProto.internal_static_v1_ServiceGatewaySelector_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(); } /** *
     * 决定要不要部份
     * 
* * 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(); } /** *
     * 决定要不要部份
     * 
* * map<string, .v1.MatchString> labels = 3; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * 决定要不要部份
     * 
* * 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; } /** *
     * 决定要不要部份
     * 
* * 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); } 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(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, service_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); 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(namespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, service_); } 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__); } 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.LaneProto.ServiceGatewaySelector)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector other = (com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector) obj; if (!getNamespace() .equals(other.getNamespace())) return false; if (!getService() .equals(other.getService())) 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) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); 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.LaneProto.ServiceGatewaySelector parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector 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.LaneProto.ServiceGatewaySelector 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.LaneProto.ServiceGatewaySelector 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.LaneProto.ServiceGatewaySelector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector 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.LaneProto.ServiceGatewaySelector 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.LaneProto.ServiceGatewaySelector 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.LaneProto.ServiceGatewaySelector 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.LaneProto.ServiceGatewaySelector 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.LaneProto.ServiceGatewaySelector 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.LaneProto.ServiceGatewaySelector 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.LaneProto.ServiceGatewaySelector 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.ServiceGatewaySelector} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.ServiceGatewaySelector) com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelectorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_ServiceGatewaySelector_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.LaneProto.internal_static_v1_ServiceGatewaySelector_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector.class, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); namespace_ = ""; service_ = ""; internalGetMutableLabels().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_ServiceGatewaySelector_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector build() { com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector result = new com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector(this); int from_bitField0_ = bitField0_; result.namespace_ = namespace_; result.service_ = service_; 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.LaneProto.ServiceGatewaySelector) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector.getDefaultInstance()) return this; if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); } if (!other.getService().isEmpty()) { service_ = other.service_; onChanged(); } 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 10: { namespace_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { service_ = 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 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 namespace_ = ""; /** * string namespace = 1; * @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 = 1; * @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 = 1; * @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 = 1; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** * string namespace = 1; * @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.lang.Object service_ = ""; /** * string service = 2; * @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; } } /** * string service = 2; * @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; } } /** * string service = 2; * @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; } /** * string service = 2; * @return This builder for chaining. */ public Builder clearService() { service_ = getDefaultInstance().getService(); onChanged(); return this; } /** * string service = 2; * @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 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(); } /** *
       * 决定要不要部份
       * 
* * 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(); } /** *
       * 决定要不要部份
       * 
* * map<string, .v1.MatchString> labels = 3; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * 决定要不要部份
       * 
* * 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; } /** *
       * 决定要不要部份
       * 
* * 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; } /** *
       * 决定要不要部份
       * 
* * 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(); } /** *
       * 决定要不要部份
       * 
* * 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; } /** *
       * 决定要不要部份
       * 
* * map<string, .v1.MatchString> labels = 3; */ 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.ServiceGatewaySelector) } // @@protoc_insertion_point(class_scope:v1.ServiceGatewaySelector) private static final com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceGatewaySelector getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ServiceGatewaySelector 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.LaneProto.ServiceGatewaySelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServiceSelectorOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.ServiceSelector) com.google.protobuf.MessageOrBuilder { /** * string namespace = 1; * @return The namespace. */ java.lang.String getNamespace(); /** * string namespace = 1; * @return The bytes for namespace. */ com.google.protobuf.ByteString getNamespaceBytes(); /** * string service = 2; * @return The service. */ java.lang.String getService(); /** * string service = 2; * @return The bytes for service. */ com.google.protobuf.ByteString getServiceBytes(); /** *
     * 决定要不要部份
     * 
* * map<string, .v1.MatchString> labels = 3; */ int getLabelsCount(); /** *
     * 决定要不要部份
     * 
* * map<string, .v1.MatchString> labels = 3; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** *
     * 决定要不要部份
     * 
* * map<string, .v1.MatchString> labels = 3; */ java.util.Map getLabelsMap(); /** *
     * 决定要不要部份
     * 
* * 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); /** *
     * 决定要不要部份
     * 
* * map<string, .v1.MatchString> labels = 3; */ com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString getLabelsOrThrow( java.lang.String key); } /** *
   * 普通服务入口定义
   * 
* * Protobuf type {@code v1.ServiceSelector} */ public static final class ServiceSelector extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.ServiceSelector) ServiceSelectorOrBuilder { private static final long serialVersionUID = 0L; // Use ServiceSelector.newBuilder() to construct. private ServiceSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ServiceSelector() { namespace_ = ""; service_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ServiceSelector(); } @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.LaneProto.internal_static_v1_ServiceSelector_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.LaneProto.internal_static_v1_ServiceSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector.class, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector.Builder.class); } public static final int NAMESPACE_FIELD_NUMBER = 1; private volatile java.lang.Object namespace_; /** * string namespace = 1; * @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 = 1; * @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 SERVICE_FIELD_NUMBER = 2; private volatile java.lang.Object service_; /** * string service = 2; * @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; } } /** * string service = 2; * @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 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.LaneProto.internal_static_v1_ServiceSelector_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(); } /** *
     * 决定要不要部份
     * 
* * 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(); } /** *
     * 决定要不要部份
     * 
* * map<string, .v1.MatchString> labels = 3; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * 决定要不要部份
     * 
* * 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; } /** *
     * 决定要不要部份
     * 
* * 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); } 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(namespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, service_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); 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(namespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, service_); } 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__); } 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.LaneProto.ServiceSelector)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector other = (com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector) obj; if (!getNamespace() .equals(other.getNamespace())) return false; if (!getService() .equals(other.getService())) 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) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); hash = (37 * hash) + SERVICE_FIELD_NUMBER; hash = (53 * hash) + getService().hashCode(); 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.LaneProto.ServiceSelector parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector 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.LaneProto.ServiceSelector 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.LaneProto.ServiceSelector 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.LaneProto.ServiceSelector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector 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.LaneProto.ServiceSelector 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.LaneProto.ServiceSelector 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.LaneProto.ServiceSelector 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.LaneProto.ServiceSelector 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.LaneProto.ServiceSelector 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.LaneProto.ServiceSelector 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.LaneProto.ServiceSelector 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.ServiceSelector} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.ServiceSelector) com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelectorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_ServiceSelector_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.LaneProto.internal_static_v1_ServiceSelector_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector.class, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); namespace_ = ""; service_ = ""; internalGetMutableLabels().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_ServiceSelector_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector build() { com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector result = new com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector(this); int from_bitField0_ = bitField0_; result.namespace_ = namespace_; result.service_ = service_; 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.LaneProto.ServiceSelector) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector.getDefaultInstance()) return this; if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); } if (!other.getService().isEmpty()) { service_ = other.service_; onChanged(); } 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 10: { namespace_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { service_ = 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 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 namespace_ = ""; /** * string namespace = 1; * @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 = 1; * @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 = 1; * @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 = 1; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** * string namespace = 1; * @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.lang.Object service_ = ""; /** * string service = 2; * @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; } } /** * string service = 2; * @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; } } /** * string service = 2; * @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; } /** * string service = 2; * @return This builder for chaining. */ public Builder clearService() { service_ = getDefaultInstance().getService(); onChanged(); return this; } /** * string service = 2; * @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 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(); } /** *
       * 决定要不要部份
       * 
* * 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(); } /** *
       * 决定要不要部份
       * 
* * map<string, .v1.MatchString> labels = 3; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
       * 决定要不要部份
       * 
* * 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; } /** *
       * 决定要不要部份
       * 
* * 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; } /** *
       * 决定要不要部份
       * 
* * 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(); } /** *
       * 决定要不要部份
       * 
* * 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; } /** *
       * 决定要不要部份
       * 
* * map<string, .v1.MatchString> labels = 3; */ 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.ServiceSelector) } // @@protoc_insertion_point(class_scope:v1.ServiceSelector) private static final com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.ServiceSelector getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ServiceSelector 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.LaneProto.ServiceSelector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LaneGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.LaneGroup) com.google.protobuf.MessageOrBuilder { /** *
     * 泳道组 ID
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * 泳道组 ID
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * 泳道组名称
     * 
* * string name = 2; * @return The name. */ java.lang.String getName(); /** *
     * 泳道组名称
     * 
* * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.TrafficEntry entries = 3; */ java.util.List getEntriesList(); /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.TrafficEntry entries = 3; */ com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry getEntries(int index); /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.TrafficEntry entries = 3; */ int getEntriesCount(); /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.TrafficEntry entries = 3; */ java.util.List getEntriesOrBuilderList(); /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.TrafficEntry entries = 3; */ com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntryOrBuilder getEntriesOrBuilder( int index); /** *
     * 在泳道组内的服务列表信息
     * 
* * repeated .v1.DestinationGroup destinations = 4; */ java.util.List getDestinationsList(); /** *
     * 在泳道组内的服务列表信息
     * 
* * repeated .v1.DestinationGroup destinations = 4; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup getDestinations(int index); /** *
     * 在泳道组内的服务列表信息
     * 
* * repeated .v1.DestinationGroup destinations = 4; */ int getDestinationsCount(); /** *
     * 在泳道组内的服务列表信息
     * 
* * repeated .v1.DestinationGroup destinations = 4; */ java.util.List getDestinationsOrBuilderList(); /** *
     * 在泳道组内的服务列表信息
     * 
* * repeated .v1.DestinationGroup destinations = 4; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroupOrBuilder getDestinationsOrBuilder( int index); /** *
     * 泳道组描述信息
     * 
* * string revision = 7; * @return The revision. */ java.lang.String getRevision(); /** *
     * 泳道组描述信息
     * 
* * string revision = 7; * @return The bytes for revision. */ com.google.protobuf.ByteString getRevisionBytes(); /** *
     * 泳道组描述信息
     * 
* * string description = 8; * @return The description. */ java.lang.String getDescription(); /** *
     * 泳道组描述信息
     * 
* * string description = 8; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * 泳道组的创建时间
     * 
* * string ctime = 9; * @return The ctime. */ java.lang.String getCtime(); /** *
     * 泳道组的创建时间
     * 
* * string ctime = 9; * @return The bytes for ctime. */ com.google.protobuf.ByteString getCtimeBytes(); /** *
     * 泳道组的更新时间
     * 
* * string mtime = 10; * @return The mtime. */ java.lang.String getMtime(); /** *
     * 泳道组的更新时间
     * 
* * string mtime = 10; * @return The bytes for mtime. */ com.google.protobuf.ByteString getMtimeBytes(); /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.LaneRule rules = 11; */ java.util.List getRulesList(); /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.LaneRule rules = 11; */ com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule getRules(int index); /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.LaneRule rules = 11; */ int getRulesCount(); /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.LaneRule rules = 11; */ java.util.List getRulesOrBuilderList(); /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.LaneRule rules = 11; */ com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRuleOrBuilder getRulesOrBuilder( int index); /** *
     * 泳道组标签信息
     * 
* * map<string, string> metadata = 12; */ int getMetadataCount(); /** *
     * 泳道组标签信息
     * 
* * map<string, string> metadata = 12; */ boolean containsMetadata( java.lang.String key); /** * Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated java.util.Map getMetadata(); /** *
     * 泳道组标签信息
     * 
* * map<string, string> metadata = 12; */ java.util.Map getMetadataMap(); /** *
     * 泳道组标签信息
     * 
* * map<string, string> metadata = 12; */ /* nullable */ java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * 泳道组标签信息
     * 
* * map<string, string> metadata = 12; */ java.lang.String getMetadataOrThrow( java.lang.String key); /** *
     * 操作标志位
     * 
* * bool editable = 20 [json_name = "editable"]; * @return The editable. */ boolean getEditable(); /** * bool deleteable = 21 [json_name = "deleteable"]; * @return The deleteable. */ boolean getDeleteable(); } /** *
   * 泳道组实体定义
   * 
* * Protobuf type {@code v1.LaneGroup} */ public static final class LaneGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.LaneGroup) LaneGroupOrBuilder { private static final long serialVersionUID = 0L; // Use LaneGroup.newBuilder() to construct. private LaneGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LaneGroup() { id_ = ""; name_ = ""; entries_ = java.util.Collections.emptyList(); destinations_ = java.util.Collections.emptyList(); revision_ = ""; description_ = ""; ctime_ = ""; mtime_ = ""; rules_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LaneGroup(); } @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.LaneProto.internal_static_v1_LaneGroup_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 12: 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.LaneProto.internal_static_v1_LaneGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.class, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * 泳道组 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; } } /** *
     * 泳道组 ID
     * 
* * 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_; /** *
     * 泳道组名称
     * 
* * string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
     * 泳道组名称
     * 
* * string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENTRIES_FIELD_NUMBER = 3; private java.util.List entries_; /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.TrafficEntry entries = 3; */ @java.lang.Override public java.util.List getEntriesList() { return entries_; } /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.TrafficEntry entries = 3; */ @java.lang.Override public java.util.List getEntriesOrBuilderList() { return entries_; } /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.TrafficEntry entries = 3; */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.TrafficEntry entries = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry getEntries(int index) { return entries_.get(index); } /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.TrafficEntry entries = 3; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntryOrBuilder getEntriesOrBuilder( int index) { return entries_.get(index); } public static final int DESTINATIONS_FIELD_NUMBER = 4; private java.util.List destinations_; /** *
     * 在泳道组内的服务列表信息
     * 
* * repeated .v1.DestinationGroup destinations = 4; */ @java.lang.Override public java.util.List getDestinationsList() { return destinations_; } /** *
     * 在泳道组内的服务列表信息
     * 
* * repeated .v1.DestinationGroup destinations = 4; */ @java.lang.Override public java.util.List getDestinationsOrBuilderList() { return destinations_; } /** *
     * 在泳道组内的服务列表信息
     * 
* * repeated .v1.DestinationGroup destinations = 4; */ @java.lang.Override public int getDestinationsCount() { return destinations_.size(); } /** *
     * 在泳道组内的服务列表信息
     * 
* * repeated .v1.DestinationGroup destinations = 4; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup getDestinations(int index) { return destinations_.get(index); } /** *
     * 在泳道组内的服务列表信息
     * 
* * repeated .v1.DestinationGroup destinations = 4; */ @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 REVISION_FIELD_NUMBER = 7; private volatile java.lang.Object revision_; /** *
     * 泳道组描述信息
     * 
* * 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; } } /** *
     * 泳道组描述信息
     * 
* * 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 DESCRIPTION_FIELD_NUMBER = 8; private volatile java.lang.Object description_; /** *
     * 泳道组描述信息
     * 
* * string description = 8; * @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; } } /** *
     * 泳道组描述信息
     * 
* * string description = 8; * @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 CTIME_FIELD_NUMBER = 9; private volatile java.lang.Object ctime_; /** *
     * 泳道组的创建时间
     * 
* * string ctime = 9; * @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; } } /** *
     * 泳道组的创建时间
     * 
* * string ctime = 9; * @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 = 10; private volatile java.lang.Object mtime_; /** *
     * 泳道组的更新时间
     * 
* * string mtime = 10; * @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; } } /** *
     * 泳道组的更新时间
     * 
* * string mtime = 10; * @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 RULES_FIELD_NUMBER = 11; private java.util.List rules_; /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.LaneRule rules = 11; */ @java.lang.Override public java.util.List getRulesList() { return rules_; } /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.LaneRule rules = 11; */ @java.lang.Override public java.util.List getRulesOrBuilderList() { return rules_; } /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.LaneRule rules = 11; */ @java.lang.Override public int getRulesCount() { return rules_.size(); } /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.LaneRule rules = 11; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule getRules(int index) { return rules_.get(index); } /** *
     * 泳道组内的流量入口信息
     * 
* * repeated .v1.LaneRule rules = 11; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRuleOrBuilder getRulesOrBuilder( int index) { return rules_.get(index); } public static final int METADATA_FIELD_NUMBER = 12; private static final class MetadataDefaultEntryHolder { 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.LaneProto.internal_static_v1_LaneGroup_MetadataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> 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(); } /** *
     * 泳道组标签信息
     * 
* * map<string, string> metadata = 12; */ @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(); } /** *
     * 泳道组标签信息
     * 
* * map<string, string> metadata = 12; */ @java.lang.Override public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** *
     * 泳道组标签信息
     * 
* * map<string, string> metadata = 12; */ @java.lang.Override public java.lang.String getMetadataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * 泳道组标签信息
     * 
* * map<string, string> metadata = 12; */ @java.lang.Override public java.lang.String 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 EDITABLE_FIELD_NUMBER = 20; private boolean editable_; /** *
     * 操作标志位
     * 
* * bool editable = 20 [json_name = "editable"]; * @return The editable. */ @java.lang.Override public boolean getEditable() { return editable_; } public static final int DELETEABLE_FIELD_NUMBER = 21; private boolean deleteable_; /** * bool deleteable = 21 [json_name = "deleteable"]; * @return The deleteable. */ @java.lang.Override public boolean getDeleteable() { return deleteable_; } 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_); } for (int i = 0; i < entries_.size(); i++) { output.writeMessage(3, entries_.get(i)); } for (int i = 0; i < destinations_.size(); i++) { output.writeMessage(4, destinations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, revision_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ctime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, ctime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mtime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, mtime_); } for (int i = 0; i < rules_.size(); i++) { output.writeMessage(11, rules_.get(i)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 12); if (editable_ != false) { output.writeBool(20, editable_); } if (deleteable_ != false) { output.writeBool(21, deleteable_); } 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_); } for (int i = 0; i < entries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, entries_.get(i)); } for (int i = 0; i < destinations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, destinations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, revision_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ctime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, ctime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mtime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, mtime_); } for (int i = 0; i < rules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, rules_.get(i)); } 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(12, metadata__); } if (editable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(20, editable_); } if (deleteable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(21, deleteable_); } 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.LaneProto.LaneGroup)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup other = (com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (!getEntriesList() .equals(other.getEntriesList())) return false; if (!getDestinationsList() .equals(other.getDestinationsList())) return false; if (!getRevision() .equals(other.getRevision())) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getCtime() .equals(other.getCtime())) return false; if (!getMtime() .equals(other.getMtime())) return false; if (!getRulesList() .equals(other.getRulesList())) return false; if (!internalGetMetadata().equals( other.internalGetMetadata())) return false; if (getEditable() != other.getEditable()) return false; if (getDeleteable() != other.getDeleteable()) 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(); if (getEntriesCount() > 0) { hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntriesList().hashCode(); } if (getDestinationsCount() > 0) { hash = (37 * hash) + DESTINATIONS_FIELD_NUMBER; hash = (53 * hash) + getDestinationsList().hashCode(); } hash = (37 * hash) + REVISION_FIELD_NUMBER; hash = (53 * hash) + getRevision().hashCode(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + CTIME_FIELD_NUMBER; hash = (53 * hash) + getCtime().hashCode(); hash = (37 * hash) + MTIME_FIELD_NUMBER; hash = (53 * hash) + getMtime().hashCode(); if (getRulesCount() > 0) { hash = (37 * hash) + RULES_FIELD_NUMBER; hash = (53 * hash) + getRulesList().hashCode(); } if (!internalGetMetadata().getMap().isEmpty()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); } hash = (37 * hash) + EDITABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEditable()); hash = (37 * hash) + DELETEABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeleteable()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup 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.LaneProto.LaneGroup 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.LaneProto.LaneGroup 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.LaneProto.LaneGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup 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.LaneProto.LaneGroup 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.LaneProto.LaneGroup 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.LaneProto.LaneGroup 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.LaneProto.LaneGroup 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.LaneProto.LaneGroup 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.LaneProto.LaneGroup 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.LaneProto.LaneGroup 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.LaneGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.LaneGroup) com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_LaneGroup_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 12: return internalGetMetadata(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 12: 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.LaneProto.internal_static_v1_LaneGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.class, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; name_ = ""; if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); } else { entries_ = null; entriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (destinationsBuilder_ == null) { destinations_ = java.util.Collections.emptyList(); } else { destinations_ = null; destinationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); revision_ = ""; description_ = ""; ctime_ = ""; mtime_ = ""; if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); } else { rules_ = null; rulesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableMetadata().clear(); editable_ = false; deleteable_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_LaneGroup_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup build() { com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup result = new com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000001); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.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.revision_ = revision_; result.description_ = description_; result.ctime_ = ctime_; result.mtime_ = mtime_; if (rulesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { rules_ = java.util.Collections.unmodifiableList(rules_); bitField0_ = (bitField0_ & ~0x00000004); } result.rules_ = rules_; } else { result.rules_ = rulesBuilder_.build(); } result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); result.editable_ = editable_; result.deleteable_ = deleteable_; 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.LaneProto.LaneGroup) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntriesIsMutable(); entries_.addAll(other.entries_); } onChanged(); } } else { if (!other.entries_.isEmpty()) { if (entriesBuilder_.isEmpty()) { entriesBuilder_.dispose(); entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); entriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } } } 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 (!other.getRevision().isEmpty()) { revision_ = other.revision_; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getCtime().isEmpty()) { ctime_ = other.ctime_; onChanged(); } if (!other.getMtime().isEmpty()) { mtime_ = other.mtime_; onChanged(); } 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_); } } } internalGetMutableMetadata().mergeFrom( other.internalGetMetadata()); if (other.getEditable() != false) { setEditable(other.getEditable()); } if (other.getDeleteable() != false) { setDeleteable(other.getDeleteable()); } 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: { com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry m = input.readMessage( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.parser(), extensionRegistry); if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(m); } else { entriesBuilder_.addMessage(m); } break; } // case 26 case 34: { 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 34 case 58: { revision_ = input.readStringRequireUtf8(); break; } // case 58 case 66: { description_ = input.readStringRequireUtf8(); break; } // case 66 case 74: { ctime_ = input.readStringRequireUtf8(); break; } // case 74 case 82: { mtime_ = input.readStringRequireUtf8(); break; } // case 82 case 90: { com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule m = input.readMessage( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.parser(), extensionRegistry); if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(m); } else { rulesBuilder_.addMessage(m); } break; } // case 90 case 98: { com.google.protobuf.MapEntry metadata__ = input.readMessage( MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableMetadata().getMutableMap().put( metadata__.getKey(), metadata__.getValue()); break; } // case 98 case 160: { editable_ = input.readBool(); break; } // case 160 case 168: { deleteable_ = input.readBool(); break; } // case 168 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_ = ""; /** *
       * 泳道组 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; } } /** *
       * 泳道组 ID
       * 
* * 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; } } /** *
       * 泳道组 ID
       * 
* * 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; } /** *
       * 泳道组 ID
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * 泳道组 ID
       * 
* * 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_ = ""; /** *
       * 泳道组名称
       * 
* * string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 泳道组名称
       * 
* * string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 泳道组名称
       * 
* * string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * 泳道组名称
       * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * 泳道组名称
       * 
* * string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.util.List entries_ = java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntryOrBuilder> entriesBuilder_; /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { return entriesBuilder_.getMessageList(); } } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public int getEntriesCount() { if (entriesBuilder_ == null) { return entries_.size(); } else { return entriesBuilder_.getCount(); } } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessage(index); } } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public Builder setEntries( int index, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); } else { entriesBuilder_.setMessage(index, value); } return this; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public Builder setEntries( int index, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public Builder addEntries(com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(value); onChanged(); } else { entriesBuilder_.addMessage(value); } return this; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public Builder addEntries( int index, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(index, value); onChanged(); } else { entriesBuilder_.addMessage(index, value); } return this; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public Builder addEntries( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public Builder addEntries( int index, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public Builder addAllEntries( java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); } return this; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public Builder clearEntries() { if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entriesBuilder_.clear(); } return this; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.remove(index); onChanged(); } else { entriesBuilder_.remove(index); } return this; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(index); } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntryOrBuilder getEntriesOrBuilder( int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public java.util.List getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entries_); } } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.Builder addEntriesBuilder() { return getEntriesFieldBuilder().addBuilder( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.getDefaultInstance()); } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.Builder addEntriesBuilder( int index) { return getEntriesFieldBuilder().addBuilder( index, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.getDefaultInstance()); } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.TrafficEntry entries = 3; */ public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntry.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficEntryOrBuilder>( entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } 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_; /** *
       * 在泳道组内的服务列表信息
       * 
* * repeated .v1.DestinationGroup destinations = 4; */ public java.util.List getDestinationsList() { if (destinationsBuilder_ == null) { return java.util.Collections.unmodifiableList(destinations_); } else { return destinationsBuilder_.getMessageList(); } } /** *
       * 在泳道组内的服务列表信息
       * 
* * repeated .v1.DestinationGroup destinations = 4; */ public int getDestinationsCount() { if (destinationsBuilder_ == null) { return destinations_.size(); } else { return destinationsBuilder_.getCount(); } } /** *
       * 在泳道组内的服务列表信息
       * 
* * repeated .v1.DestinationGroup destinations = 4; */ 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); } } /** *
       * 在泳道组内的服务列表信息
       * 
* * repeated .v1.DestinationGroup destinations = 4; */ 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; } /** *
       * 在泳道组内的服务列表信息
       * 
* * repeated .v1.DestinationGroup destinations = 4; */ 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; } /** *
       * 在泳道组内的服务列表信息
       * 
* * repeated .v1.DestinationGroup destinations = 4; */ 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; } /** *
       * 在泳道组内的服务列表信息
       * 
* * repeated .v1.DestinationGroup destinations = 4; */ 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; } /** *
       * 在泳道组内的服务列表信息
       * 
* * repeated .v1.DestinationGroup destinations = 4; */ 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; } /** *
       * 在泳道组内的服务列表信息
       * 
* * repeated .v1.DestinationGroup destinations = 4; */ 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; } /** *
       * 在泳道组内的服务列表信息
       * 
* * repeated .v1.DestinationGroup destinations = 4; */ 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.DestinationGroup destinations = 4; */ public Builder clearDestinations() { if (destinationsBuilder_ == null) { destinations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { destinationsBuilder_.clear(); } return this; } /** *
       * 在泳道组内的服务列表信息
       * 
* * repeated .v1.DestinationGroup destinations = 4; */ public Builder removeDestinations(int index) { if (destinationsBuilder_ == null) { ensureDestinationsIsMutable(); destinations_.remove(index); onChanged(); } else { destinationsBuilder_.remove(index); } return this; } /** *
       * 在泳道组内的服务列表信息
       * 
* * repeated .v1.DestinationGroup destinations = 4; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.DestinationGroup.Builder getDestinationsBuilder( int index) { return getDestinationsFieldBuilder().getBuilder(index); } /** *
       * 在泳道组内的服务列表信息
       * 
* * repeated .v1.DestinationGroup destinations = 4; */ 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); } } /** *
       * 在泳道组内的服务列表信息
       * 
* * repeated .v1.DestinationGroup destinations = 4; */ public java.util.List getDestinationsOrBuilderList() { if (destinationsBuilder_ != null) { return destinationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(destinations_); } } /** *
       * 在泳道组内的服务列表信息
       * 
* * repeated .v1.DestinationGroup destinations = 4; */ 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()); } /** *
       * 在泳道组内的服务列表信息
       * 
* * repeated .v1.DestinationGroup destinations = 4; */ 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()); } /** *
       * 在泳道组内的服务列表信息
       * 
* * repeated .v1.DestinationGroup destinations = 4; */ 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.lang.Object revision_ = ""; /** *
       * 泳道组描述信息
       * 
* * 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; } } /** *
       * 泳道组描述信息
       * 
* * 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; } } /** *
       * 泳道组描述信息
       * 
* * 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; } /** *
       * 泳道组描述信息
       * 
* * string revision = 7; * @return This builder for chaining. */ public Builder clearRevision() { revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** *
       * 泳道组描述信息
       * 
* * 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 description_ = ""; /** *
       * 泳道组描述信息
       * 
* * string description = 8; * @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; } } /** *
       * 泳道组描述信息
       * 
* * string description = 8; * @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; } } /** *
       * 泳道组描述信息
       * 
* * string description = 8; * @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; } /** *
       * 泳道组描述信息
       * 
* * string description = 8; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * 泳道组描述信息
       * 
* * string description = 8; * @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 java.lang.Object ctime_ = ""; /** *
       * 泳道组的创建时间
       * 
* * string ctime = 9; * @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; } } /** *
       * 泳道组的创建时间
       * 
* * string ctime = 9; * @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; } } /** *
       * 泳道组的创建时间
       * 
* * string ctime = 9; * @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; } /** *
       * 泳道组的创建时间
       * 
* * string ctime = 9; * @return This builder for chaining. */ public Builder clearCtime() { ctime_ = getDefaultInstance().getCtime(); onChanged(); return this; } /** *
       * 泳道组的创建时间
       * 
* * string ctime = 9; * @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_ = ""; /** *
       * 泳道组的更新时间
       * 
* * string mtime = 10; * @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; } } /** *
       * 泳道组的更新时间
       * 
* * string mtime = 10; * @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; } } /** *
       * 泳道组的更新时间
       * 
* * string mtime = 10; * @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; } /** *
       * 泳道组的更新时间
       * 
* * string mtime = 10; * @return This builder for chaining. */ public Builder clearMtime() { mtime_ = getDefaultInstance().getMtime(); onChanged(); return this; } /** *
       * 泳道组的更新时间
       * 
* * string mtime = 10; * @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.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.LaneProto.LaneRule, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRuleOrBuilder> rulesBuilder_; /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ public java.util.List getRulesList() { if (rulesBuilder_ == null) { return java.util.Collections.unmodifiableList(rules_); } else { return rulesBuilder_.getMessageList(); } } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ public int getRulesCount() { if (rulesBuilder_ == null) { return rules_.size(); } else { return rulesBuilder_.getCount(); } } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule getRules(int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessage(index); } } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ public Builder setRules( int index, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.set(index, value); onChanged(); } else { rulesBuilder_.setMessage(index, value); } return this; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ public Builder setRules( int index, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.set(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ public Builder addRules(com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(value); onChanged(); } else { rulesBuilder_.addMessage(value); } return this; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ public Builder addRules( int index, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(index, value); onChanged(); } else { rulesBuilder_.addMessage(index, value); } return this; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ public Builder addRules( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ public Builder addRules( int index, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ 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; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ public Builder clearRules() { if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { rulesBuilder_.clear(); } return this; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ public Builder removeRules(int index) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.remove(index); onChanged(); } else { rulesBuilder_.remove(index); } return this; } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.Builder getRulesBuilder( int index) { return getRulesFieldBuilder().getBuilder(index); } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRuleOrBuilder getRulesOrBuilder( int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ public java.util.List getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rules_); } } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.Builder addRulesBuilder() { return getRulesFieldBuilder().addBuilder( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.getDefaultInstance()); } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.Builder addRulesBuilder( int index) { return getRulesFieldBuilder().addBuilder( index, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.getDefaultInstance()); } /** *
       * 泳道组内的流量入口信息
       * 
* * repeated .v1.LaneRule rules = 11; */ public java.util.List getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRuleOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRuleOrBuilder>( rules_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); rules_ = null; } return rulesBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> 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(); } /** *
       * 泳道组标签信息
       * 
* * map<string, string> metadata = 12; */ @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(); } /** *
       * 泳道组标签信息
       * 
* * map<string, string> metadata = 12; */ @java.lang.Override public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** *
       * 泳道组标签信息
       * 
* * map<string, string> metadata = 12; */ @java.lang.Override public java.lang.String getMetadataOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * 泳道组标签信息
       * 
* * map<string, string> metadata = 12; */ @java.lang.Override public java.lang.String 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; } /** *
       * 泳道组标签信息
       * 
* * map<string, string> metadata = 12; */ 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(); } /** *
       * 泳道组标签信息
       * 
* * map<string, string> metadata = 12; */ public Builder putMetadata( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMetadata().getMutableMap() .put(key, value); return this; } /** *
       * 泳道组标签信息
       * 
* * map<string, string> metadata = 12; */ public Builder putAllMetadata( java.util.Map values) { internalGetMutableMetadata().getMutableMap() .putAll(values); return this; } private boolean editable_ ; /** *
       * 操作标志位
       * 
* * bool editable = 20 [json_name = "editable"]; * @return The editable. */ @java.lang.Override public boolean getEditable() { return editable_; } /** *
       * 操作标志位
       * 
* * bool editable = 20 [json_name = "editable"]; * @param value The editable to set. * @return This builder for chaining. */ public Builder setEditable(boolean value) { editable_ = value; onChanged(); return this; } /** *
       * 操作标志位
       * 
* * bool editable = 20 [json_name = "editable"]; * @return This builder for chaining. */ public Builder clearEditable() { editable_ = false; onChanged(); return this; } private boolean deleteable_ ; /** * bool deleteable = 21 [json_name = "deleteable"]; * @return The deleteable. */ @java.lang.Override public boolean getDeleteable() { return deleteable_; } /** * bool deleteable = 21 [json_name = "deleteable"]; * @param value The deleteable to set. * @return This builder for chaining. */ public Builder setDeleteable(boolean value) { deleteable_ = value; onChanged(); return this; } /** * bool deleteable = 21 [json_name = "deleteable"]; * @return This builder for chaining. */ public Builder clearDeleteable() { deleteable_ = false; 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.LaneGroup) } // @@protoc_insertion_point(class_scope:v1.LaneGroup) private static final com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneGroup getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LaneGroup 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.LaneProto.LaneGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TrafficMatchRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.TrafficMatchRule) com.google.protobuf.MessageOrBuilder { /** *
     * 流量匹配规则,判断哪些流量需要进入泳道
     * 
* * repeated .v1.SourceMatch arguments = 4; */ java.util.List getArgumentsList(); /** *
     * 流量匹配规则,判断哪些流量需要进入泳道
     * 
* * repeated .v1.SourceMatch arguments = 4; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch getArguments(int index); /** *
     * 流量匹配规则,判断哪些流量需要进入泳道
     * 
* * repeated .v1.SourceMatch arguments = 4; */ int getArgumentsCount(); /** *
     * 流量匹配规则,判断哪些流量需要进入泳道
     * 
* * repeated .v1.SourceMatch arguments = 4; */ java.util.List getArgumentsOrBuilderList(); /** *
     * 流量匹配规则,判断哪些流量需要进入泳道
     * 
* * repeated .v1.SourceMatch arguments = 4; */ com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatchOrBuilder getArgumentsOrBuilder( int index); /** * .v1.TrafficMatchRule.TrafficMatchMode matchMode = 14; * @return The enum numeric value on the wire for matchMode. */ int getMatchModeValue(); /** * .v1.TrafficMatchRule.TrafficMatchMode matchMode = 14; * @return The matchMode. */ com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.TrafficMatchMode getMatchMode(); } /** *
   * TrafficMatchRule 流量匹配规则
   * 
* * Protobuf type {@code v1.TrafficMatchRule} */ public static final class TrafficMatchRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.TrafficMatchRule) TrafficMatchRuleOrBuilder { private static final long serialVersionUID = 0L; // Use TrafficMatchRule.newBuilder() to construct. private TrafficMatchRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TrafficMatchRule() { arguments_ = java.util.Collections.emptyList(); matchMode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TrafficMatchRule(); } @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.LaneProto.internal_static_v1_TrafficMatchRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_TrafficMatchRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.class, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.Builder.class); } /** *
     * 多个 SourceMatch 之间的判断关系
     * 
* * Protobuf enum {@code v1.TrafficMatchRule.TrafficMatchMode} */ public enum TrafficMatchMode implements com.google.protobuf.ProtocolMessageEnum { /** *
       * 与模式
       * 
* * AND = 0; */ AND(0), /** *
       * 或模式
       * 
* * OR = 1; */ OR(1), UNRECOGNIZED(-1), ; /** *
       * 与模式
       * 
* * AND = 0; */ public static final int AND_VALUE = 0; /** *
       * 或模式
       * 
* * OR = 1; */ public static final int OR_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 TrafficMatchMode 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 TrafficMatchMode forNumber(int value) { switch (value) { case 0: return AND; case 1: return OR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< TrafficMatchMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public TrafficMatchMode findValueByNumber(int number) { return TrafficMatchMode.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.LaneProto.TrafficMatchRule.getDescriptor().getEnumTypes().get(0); } private static final TrafficMatchMode[] VALUES = values(); public static TrafficMatchMode 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 TrafficMatchMode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:v1.TrafficMatchRule.TrafficMatchMode) } public static final int ARGUMENTS_FIELD_NUMBER = 4; private java.util.List arguments_; /** *
     * 流量匹配规则,判断哪些流量需要进入泳道
     * 
* * repeated .v1.SourceMatch arguments = 4; */ @java.lang.Override public java.util.List getArgumentsList() { return arguments_; } /** *
     * 流量匹配规则,判断哪些流量需要进入泳道
     * 
* * repeated .v1.SourceMatch arguments = 4; */ @java.lang.Override public java.util.List getArgumentsOrBuilderList() { return arguments_; } /** *
     * 流量匹配规则,判断哪些流量需要进入泳道
     * 
* * repeated .v1.SourceMatch arguments = 4; */ @java.lang.Override public int getArgumentsCount() { return arguments_.size(); } /** *
     * 流量匹配规则,判断哪些流量需要进入泳道
     * 
* * repeated .v1.SourceMatch arguments = 4; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch getArguments(int index) { return arguments_.get(index); } /** *
     * 流量匹配规则,判断哪些流量需要进入泳道
     * 
* * repeated .v1.SourceMatch arguments = 4; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatchOrBuilder getArgumentsOrBuilder( int index) { return arguments_.get(index); } public static final int MATCHMODE_FIELD_NUMBER = 14; private int matchMode_; /** * .v1.TrafficMatchRule.TrafficMatchMode matchMode = 14; * @return The enum numeric value on the wire for matchMode. */ @java.lang.Override public int getMatchModeValue() { return matchMode_; } /** * .v1.TrafficMatchRule.TrafficMatchMode matchMode = 14; * @return The matchMode. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.TrafficMatchMode getMatchMode() { @SuppressWarnings("deprecation") com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.TrafficMatchMode result = com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.TrafficMatchMode.valueOf(matchMode_); return result == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.TrafficMatchMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < arguments_.size(); i++) { output.writeMessage(4, arguments_.get(i)); } if (matchMode_ != com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.TrafficMatchMode.AND.getNumber()) { output.writeEnum(14, matchMode_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < arguments_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, arguments_.get(i)); } if (matchMode_ != com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.TrafficMatchMode.AND.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(14, matchMode_); } 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.LaneProto.TrafficMatchRule)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule other = (com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule) obj; if (!getArgumentsList() .equals(other.getArgumentsList())) return false; if (matchMode_ != other.matchMode_) 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 (getArgumentsCount() > 0) { hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER; hash = (53 * hash) + getArgumentsList().hashCode(); } hash = (37 * hash) + MATCHMODE_FIELD_NUMBER; hash = (53 * hash) + matchMode_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule 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.LaneProto.TrafficMatchRule 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.LaneProto.TrafficMatchRule 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.LaneProto.TrafficMatchRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule 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.LaneProto.TrafficMatchRule 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.LaneProto.TrafficMatchRule 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.LaneProto.TrafficMatchRule 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.LaneProto.TrafficMatchRule 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.LaneProto.TrafficMatchRule 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.LaneProto.TrafficMatchRule 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.LaneProto.TrafficMatchRule 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; } /** *
     * TrafficMatchRule 流量匹配规则
     * 
* * Protobuf type {@code v1.TrafficMatchRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.TrafficMatchRule) com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_TrafficMatchRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_TrafficMatchRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.class, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (argumentsBuilder_ == null) { arguments_ = java.util.Collections.emptyList(); } else { arguments_ = null; argumentsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); matchMode_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_TrafficMatchRule_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule build() { com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule result = new com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule(this); int from_bitField0_ = bitField0_; if (argumentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { arguments_ = java.util.Collections.unmodifiableList(arguments_); bitField0_ = (bitField0_ & ~0x00000001); } result.arguments_ = arguments_; } else { result.arguments_ = argumentsBuilder_.build(); } result.matchMode_ = matchMode_; 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.LaneProto.TrafficMatchRule) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.getDefaultInstance()) return this; 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_); } } } if (other.matchMode_ != 0) { setMatchModeValue(other.getMatchModeValue()); } 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 34: { 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 34 case 112: { matchMode_ = input.readEnum(); break; } // case 112 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 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_; /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ public java.util.List getArgumentsList() { if (argumentsBuilder_ == null) { return java.util.Collections.unmodifiableList(arguments_); } else { return argumentsBuilder_.getMessageList(); } } /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ public int getArgumentsCount() { if (argumentsBuilder_ == null) { return arguments_.size(); } else { return argumentsBuilder_.getCount(); } } /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ 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); } } /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ 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; } /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ 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; } /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ 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; } /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ 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; } /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ 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; } /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ 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; } /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ 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; } /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ public Builder clearArguments() { if (argumentsBuilder_ == null) { arguments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { argumentsBuilder_.clear(); } return this; } /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ public Builder removeArguments(int index) { if (argumentsBuilder_ == null) { ensureArgumentsIsMutable(); arguments_.remove(index); onChanged(); } else { argumentsBuilder_.remove(index); } return this; } /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ public com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.SourceMatch.Builder getArgumentsBuilder( int index) { return getArgumentsFieldBuilder().getBuilder(index); } /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ 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); } } /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ public java.util.List getArgumentsOrBuilderList() { if (argumentsBuilder_ != null) { return argumentsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(arguments_); } } /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ 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()); } /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ 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()); } /** *
       * 流量匹配规则,判断哪些流量需要进入泳道
       * 
* * repeated .v1.SourceMatch arguments = 4; */ 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_; } private int matchMode_ = 0; /** * .v1.TrafficMatchRule.TrafficMatchMode matchMode = 14; * @return The enum numeric value on the wire for matchMode. */ @java.lang.Override public int getMatchModeValue() { return matchMode_; } /** * .v1.TrafficMatchRule.TrafficMatchMode matchMode = 14; * @param value The enum numeric value on the wire for matchMode to set. * @return This builder for chaining. */ public Builder setMatchModeValue(int value) { matchMode_ = value; onChanged(); return this; } /** * .v1.TrafficMatchRule.TrafficMatchMode matchMode = 14; * @return The matchMode. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.TrafficMatchMode getMatchMode() { @SuppressWarnings("deprecation") com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.TrafficMatchMode result = com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.TrafficMatchMode.valueOf(matchMode_); return result == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.TrafficMatchMode.UNRECOGNIZED : result; } /** * .v1.TrafficMatchRule.TrafficMatchMode matchMode = 14; * @param value The matchMode to set. * @return This builder for chaining. */ public Builder setMatchMode(com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.TrafficMatchMode value) { if (value == null) { throw new NullPointerException(); } matchMode_ = value.getNumber(); onChanged(); return this; } /** * .v1.TrafficMatchRule.TrafficMatchMode matchMode = 14; * @return This builder for chaining. */ public Builder clearMatchMode() { matchMode_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:v1.TrafficMatchRule) } // @@protoc_insertion_point(class_scope:v1.TrafficMatchRule) private static final com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TrafficMatchRule 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.LaneProto.TrafficMatchRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LaneRuleOrBuilder extends // @@protoc_insertion_point(interface_extends:v1.LaneRule) 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(); /** * string name = 2; * @return The name. */ java.lang.String getName(); /** * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * 所属泳道组的名称
     * 
* * string group_name = 3; * @return The groupName. */ java.lang.String getGroupName(); /** *
     * 所属泳道组的名称
     * 
* * string group_name = 3; * @return The bytes for groupName. */ com.google.protobuf.ByteString getGroupNameBytes(); /** *
     * 流量匹配规则
     * 
* * .v1.TrafficMatchRule traffic_match_rule = 4; * @return Whether the trafficMatchRule field is set. */ boolean hasTrafficMatchRule(); /** *
     * 流量匹配规则
     * 
* * .v1.TrafficMatchRule traffic_match_rule = 4; * @return The trafficMatchRule. */ com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule getTrafficMatchRule(); /** *
     * 流量匹配规则
     * 
* * .v1.TrafficMatchRule traffic_match_rule = 4; */ com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRuleOrBuilder getTrafficMatchRuleOrBuilder(); /** *
     * 保存这个泳道的默认实例标签
     * 
* * string default_label_value = 5; * @return The defaultLabelValue. */ java.lang.String getDefaultLabelValue(); /** *
     * 保存这个泳道的默认实例标签
     * 
* * string default_label_value = 5; * @return The bytes for defaultLabelValue. */ com.google.protobuf.ByteString getDefaultLabelValueBytes(); /** *
     * 泳道规则是否启用
     * 
* * bool enable = 6; * @return The enable. */ boolean getEnable(); /** * .v1.LaneRule.LaneMatchMode match_mode = 7; * @return The enum numeric value on the wire for matchMode. */ int getMatchModeValue(); /** * .v1.LaneRule.LaneMatchMode match_mode = 7; * @return The matchMode. */ com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.LaneMatchMode getMatchMode(); /** *
     * revision routing version
     * 
* * string revision = 8; * @return The revision. */ java.lang.String getRevision(); /** *
     * revision routing version
     * 
* * string revision = 8; * @return The bytes for revision. */ com.google.protobuf.ByteString getRevisionBytes(); /** *
     * ctime create time of the rules
     * 
* * string ctime = 9; * @return The ctime. */ java.lang.String getCtime(); /** *
     * ctime create time of the rules
     * 
* * string ctime = 9; * @return The bytes for ctime. */ com.google.protobuf.ByteString getCtimeBytes(); /** *
     * mtime modify time of the rules
     * 
* * string mtime = 10; * @return The mtime. */ java.lang.String getMtime(); /** *
     * mtime modify time of the rules
     * 
* * string mtime = 10; * @return The bytes for mtime. */ com.google.protobuf.ByteString getMtimeBytes(); /** *
     * etime enable time of the rules
     * 
* * string etime = 11; * @return The etime. */ java.lang.String getEtime(); /** *
     * etime enable time of the rules
     * 
* * string etime = 11; * @return The bytes for etime. */ com.google.protobuf.ByteString getEtimeBytes(); /** *
     * priority rules priority
     * 
* * uint32 priority = 12; * @return The priority. */ int getPriority(); /** *
     * description simple description rules
     * 
* * string description = 13; * @return The description. */ java.lang.String getDescription(); /** *
     * description simple description rules
     * 
* * string description = 13; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** *
     * 属于该泳道的实例标签KEY,不填默认为lane
     * 
* * string label_key = 14; * @return The labelKey. */ java.lang.String getLabelKey(); /** *
     * 属于该泳道的实例标签KEY,不填默认为lane
     * 
* * string label_key = 14; * @return The bytes for labelKey. */ com.google.protobuf.ByteString getLabelKeyBytes(); } /** *
   * 泳道规则
   * 
* * Protobuf type {@code v1.LaneRule} */ public static final class LaneRule extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:v1.LaneRule) LaneRuleOrBuilder { private static final long serialVersionUID = 0L; // Use LaneRule.newBuilder() to construct. private LaneRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LaneRule() { id_ = ""; name_ = ""; groupName_ = ""; defaultLabelValue_ = ""; matchMode_ = 0; revision_ = ""; ctime_ = ""; mtime_ = ""; etime_ = ""; description_ = ""; labelKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LaneRule(); } @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.LaneProto.internal_static_v1_LaneRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_LaneRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.class, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.Builder.class); } /** * Protobuf enum {@code v1.LaneRule.LaneMatchMode} */ public enum LaneMatchMode implements com.google.protobuf.ProtocolMessageEnum { /** *
       * 严格匹配模式
       * 
* * STRICT = 0; */ STRICT(0), /** *
       * 宽松匹配模式
       * 
* * PERMISSIVE = 1; */ PERMISSIVE(1), UNRECOGNIZED(-1), ; /** *
       * 严格匹配模式
       * 
* * STRICT = 0; */ public static final int STRICT_VALUE = 0; /** *
       * 宽松匹配模式
       * 
* * PERMISSIVE = 1; */ public static final int PERMISSIVE_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 LaneMatchMode 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 LaneMatchMode forNumber(int value) { switch (value) { case 0: return STRICT; case 1: return PERMISSIVE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< LaneMatchMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public LaneMatchMode findValueByNumber(int number) { return LaneMatchMode.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.LaneProto.LaneRule.getDescriptor().getEnumTypes().get(0); } private static final LaneMatchMode[] VALUES = values(); public static LaneMatchMode 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 LaneMatchMode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:v1.LaneRule.LaneMatchMode) } 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_; /** * string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GROUP_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object groupName_; /** *
     * 所属泳道组的名称
     * 
* * string group_name = 3; * @return The groupName. */ @java.lang.Override public java.lang.String getGroupName() { java.lang.Object ref = groupName_; 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(); groupName_ = s; return s; } } /** *
     * 所属泳道组的名称
     * 
* * string group_name = 3; * @return The bytes for groupName. */ @java.lang.Override public com.google.protobuf.ByteString getGroupNameBytes() { java.lang.Object ref = groupName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TRAFFIC_MATCH_RULE_FIELD_NUMBER = 4; private com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule trafficMatchRule_; /** *
     * 流量匹配规则
     * 
* * .v1.TrafficMatchRule traffic_match_rule = 4; * @return Whether the trafficMatchRule field is set. */ @java.lang.Override public boolean hasTrafficMatchRule() { return trafficMatchRule_ != null; } /** *
     * 流量匹配规则
     * 
* * .v1.TrafficMatchRule traffic_match_rule = 4; * @return The trafficMatchRule. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule getTrafficMatchRule() { return trafficMatchRule_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.getDefaultInstance() : trafficMatchRule_; } /** *
     * 流量匹配规则
     * 
* * .v1.TrafficMatchRule traffic_match_rule = 4; */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRuleOrBuilder getTrafficMatchRuleOrBuilder() { return getTrafficMatchRule(); } public static final int DEFAULT_LABEL_VALUE_FIELD_NUMBER = 5; private volatile java.lang.Object defaultLabelValue_; /** *
     * 保存这个泳道的默认实例标签
     * 
* * string default_label_value = 5; * @return The defaultLabelValue. */ @java.lang.Override public java.lang.String getDefaultLabelValue() { java.lang.Object ref = defaultLabelValue_; 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(); defaultLabelValue_ = s; return s; } } /** *
     * 保存这个泳道的默认实例标签
     * 
* * string default_label_value = 5; * @return The bytes for defaultLabelValue. */ @java.lang.Override public com.google.protobuf.ByteString getDefaultLabelValueBytes() { java.lang.Object ref = defaultLabelValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultLabelValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENABLE_FIELD_NUMBER = 6; private boolean enable_; /** *
     * 泳道规则是否启用
     * 
* * bool enable = 6; * @return The enable. */ @java.lang.Override public boolean getEnable() { return enable_; } public static final int MATCH_MODE_FIELD_NUMBER = 7; private int matchMode_; /** * .v1.LaneRule.LaneMatchMode match_mode = 7; * @return The enum numeric value on the wire for matchMode. */ @java.lang.Override public int getMatchModeValue() { return matchMode_; } /** * .v1.LaneRule.LaneMatchMode match_mode = 7; * @return The matchMode. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.LaneMatchMode getMatchMode() { @SuppressWarnings("deprecation") com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.LaneMatchMode result = com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.LaneMatchMode.valueOf(matchMode_); return result == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.LaneMatchMode.UNRECOGNIZED : result; } public static final int REVISION_FIELD_NUMBER = 8; private volatile java.lang.Object revision_; /** *
     * revision routing version
     * 
* * string revision = 8; * @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 = 8; * @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 = 9; private volatile java.lang.Object ctime_; /** *
     * ctime create time of the rules
     * 
* * string ctime = 9; * @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 = 9; * @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 = 10; private volatile java.lang.Object mtime_; /** *
     * mtime modify time of the rules
     * 
* * string mtime = 10; * @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 = 10; * @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 = 11; private volatile java.lang.Object etime_; /** *
     * etime enable time of the rules
     * 
* * string etime = 11; * @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 = 11; * @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 = 12; private int priority_; /** *
     * priority rules priority
     * 
* * uint32 priority = 12; * @return The priority. */ @java.lang.Override public int getPriority() { return priority_; } public static final int DESCRIPTION_FIELD_NUMBER = 13; private volatile java.lang.Object description_; /** *
     * description simple description rules
     * 
* * string description = 13; * @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 = 13; * @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 LABEL_KEY_FIELD_NUMBER = 14; private volatile java.lang.Object labelKey_; /** *
     * 属于该泳道的实例标签KEY,不填默认为lane
     * 
* * string label_key = 14; * @return The labelKey. */ @java.lang.Override public java.lang.String getLabelKey() { java.lang.Object ref = labelKey_; 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(); labelKey_ = s; return s; } } /** *
     * 属于该泳道的实例标签KEY,不填默认为lane
     * 
* * string label_key = 14; * @return The bytes for labelKey. */ @java.lang.Override public com.google.protobuf.ByteString getLabelKeyBytes() { java.lang.Object ref = labelKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); labelKey_ = 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(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(groupName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, groupName_); } if (trafficMatchRule_ != null) { output.writeMessage(4, getTrafficMatchRule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLabelValue_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, defaultLabelValue_); } if (enable_ != false) { output.writeBool(6, enable_); } if (matchMode_ != com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.LaneMatchMode.STRICT.getNumber()) { output.writeEnum(7, matchMode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, revision_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ctime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, ctime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mtime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, mtime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etime_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etime_); } if (priority_ != 0) { output.writeUInt32(12, priority_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, labelKey_); } 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(groupName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, groupName_); } if (trafficMatchRule_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getTrafficMatchRule()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultLabelValue_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, defaultLabelValue_); } if (enable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, enable_); } if (matchMode_ != com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.LaneMatchMode.STRICT.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, matchMode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, revision_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ctime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, ctime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mtime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, mtime_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etime_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etime_); } if (priority_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(12, priority_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, description_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, labelKey_); } 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.LaneProto.LaneRule)) { return super.equals(obj); } com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule other = (com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (!getGroupName() .equals(other.getGroupName())) return false; if (hasTrafficMatchRule() != other.hasTrafficMatchRule()) return false; if (hasTrafficMatchRule()) { if (!getTrafficMatchRule() .equals(other.getTrafficMatchRule())) return false; } if (!getDefaultLabelValue() .equals(other.getDefaultLabelValue())) return false; if (getEnable() != other.getEnable()) return false; if (matchMode_ != other.matchMode_) 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 (!getLabelKey() .equals(other.getLabelKey())) 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) + GROUP_NAME_FIELD_NUMBER; hash = (53 * hash) + getGroupName().hashCode(); if (hasTrafficMatchRule()) { hash = (37 * hash) + TRAFFIC_MATCH_RULE_FIELD_NUMBER; hash = (53 * hash) + getTrafficMatchRule().hashCode(); } hash = (37 * hash) + DEFAULT_LABEL_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDefaultLabelValue().hashCode(); hash = (37 * hash) + ENABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnable()); hash = (37 * hash) + MATCH_MODE_FIELD_NUMBER; hash = (53 * hash) + matchMode_; 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(); hash = (37 * hash) + LABEL_KEY_FIELD_NUMBER; hash = (53 * hash) + getLabelKey().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule 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.LaneProto.LaneRule 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.LaneProto.LaneRule 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.LaneProto.LaneRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule 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.LaneProto.LaneRule 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.LaneProto.LaneRule 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.LaneProto.LaneRule 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.LaneProto.LaneRule 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.LaneProto.LaneRule 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.LaneProto.LaneRule 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.LaneProto.LaneRule 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.LaneRule} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v1.LaneRule) com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRuleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_LaneRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_LaneRule_fieldAccessorTable .ensureFieldAccessorsInitialized( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.class, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.Builder.class); } // Construct using com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; name_ = ""; groupName_ = ""; if (trafficMatchRuleBuilder_ == null) { trafficMatchRule_ = null; } else { trafficMatchRule_ = null; trafficMatchRuleBuilder_ = null; } defaultLabelValue_ = ""; enable_ = false; matchMode_ = 0; revision_ = ""; ctime_ = ""; mtime_ = ""; etime_ = ""; priority_ = 0; description_ = ""; labelKey_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.internal_static_v1_LaneRule_descriptor; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule getDefaultInstanceForType() { return com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.getDefaultInstance(); } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule build() { com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule buildPartial() { com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule result = new com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule(this); result.id_ = id_; result.name_ = name_; result.groupName_ = groupName_; if (trafficMatchRuleBuilder_ == null) { result.trafficMatchRule_ = trafficMatchRule_; } else { result.trafficMatchRule_ = trafficMatchRuleBuilder_.build(); } result.defaultLabelValue_ = defaultLabelValue_; result.enable_ = enable_; result.matchMode_ = matchMode_; result.revision_ = revision_; result.ctime_ = ctime_; result.mtime_ = mtime_; result.etime_ = etime_; result.priority_ = priority_; result.description_ = description_; result.labelKey_ = labelKey_; 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.LaneProto.LaneRule) { return mergeFrom((com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule other) { if (other == com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getGroupName().isEmpty()) { groupName_ = other.groupName_; onChanged(); } if (other.hasTrafficMatchRule()) { mergeTrafficMatchRule(other.getTrafficMatchRule()); } if (!other.getDefaultLabelValue().isEmpty()) { defaultLabelValue_ = other.defaultLabelValue_; onChanged(); } if (other.getEnable() != false) { setEnable(other.getEnable()); } if (other.matchMode_ != 0) { setMatchModeValue(other.getMatchModeValue()); } 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(); } if (!other.getLabelKey().isEmpty()) { labelKey_ = other.labelKey_; 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: { id_ = input.readStringRequireUtf8(); break; } // case 10 case 18: { name_ = input.readStringRequireUtf8(); break; } // case 18 case 26: { groupName_ = input.readStringRequireUtf8(); break; } // case 26 case 34: { input.readMessage( getTrafficMatchRuleFieldBuilder().getBuilder(), extensionRegistry); break; } // case 34 case 42: { defaultLabelValue_ = input.readStringRequireUtf8(); break; } // case 42 case 48: { enable_ = input.readBool(); break; } // case 48 case 56: { matchMode_ = input.readEnum(); break; } // case 56 case 66: { revision_ = input.readStringRequireUtf8(); break; } // case 66 case 74: { ctime_ = input.readStringRequireUtf8(); break; } // case 74 case 82: { mtime_ = input.readStringRequireUtf8(); break; } // case 82 case 90: { etime_ = input.readStringRequireUtf8(); break; } // case 90 case 96: { priority_ = input.readUInt32(); break; } // case 96 case 106: { description_ = input.readStringRequireUtf8(); break; } // case 106 case 114: { labelKey_ = input.readStringRequireUtf8(); break; } // case 114 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 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_ = ""; /** * string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object groupName_ = ""; /** *
       * 所属泳道组的名称
       * 
* * string group_name = 3; * @return The groupName. */ public java.lang.String getGroupName() { java.lang.Object ref = groupName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); groupName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 所属泳道组的名称
       * 
* * string group_name = 3; * @return The bytes for groupName. */ public com.google.protobuf.ByteString getGroupNameBytes() { java.lang.Object ref = groupName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 所属泳道组的名称
       * 
* * string group_name = 3; * @param value The groupName to set. * @return This builder for chaining. */ public Builder setGroupName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } groupName_ = value; onChanged(); return this; } /** *
       * 所属泳道组的名称
       * 
* * string group_name = 3; * @return This builder for chaining. */ public Builder clearGroupName() { groupName_ = getDefaultInstance().getGroupName(); onChanged(); return this; } /** *
       * 所属泳道组的名称
       * 
* * string group_name = 3; * @param value The bytes for groupName to set. * @return This builder for chaining. */ public Builder setGroupNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); groupName_ = value; onChanged(); return this; } private com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule trafficMatchRule_; private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRuleOrBuilder> trafficMatchRuleBuilder_; /** *
       * 流量匹配规则
       * 
* * .v1.TrafficMatchRule traffic_match_rule = 4; * @return Whether the trafficMatchRule field is set. */ public boolean hasTrafficMatchRule() { return trafficMatchRuleBuilder_ != null || trafficMatchRule_ != null; } /** *
       * 流量匹配规则
       * 
* * .v1.TrafficMatchRule traffic_match_rule = 4; * @return The trafficMatchRule. */ public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule getTrafficMatchRule() { if (trafficMatchRuleBuilder_ == null) { return trafficMatchRule_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.getDefaultInstance() : trafficMatchRule_; } else { return trafficMatchRuleBuilder_.getMessage(); } } /** *
       * 流量匹配规则
       * 
* * .v1.TrafficMatchRule traffic_match_rule = 4; */ public Builder setTrafficMatchRule(com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule value) { if (trafficMatchRuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } trafficMatchRule_ = value; onChanged(); } else { trafficMatchRuleBuilder_.setMessage(value); } return this; } /** *
       * 流量匹配规则
       * 
* * .v1.TrafficMatchRule traffic_match_rule = 4; */ public Builder setTrafficMatchRule( com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.Builder builderForValue) { if (trafficMatchRuleBuilder_ == null) { trafficMatchRule_ = builderForValue.build(); onChanged(); } else { trafficMatchRuleBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * 流量匹配规则
       * 
* * .v1.TrafficMatchRule traffic_match_rule = 4; */ public Builder mergeTrafficMatchRule(com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule value) { if (trafficMatchRuleBuilder_ == null) { if (trafficMatchRule_ != null) { trafficMatchRule_ = com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.newBuilder(trafficMatchRule_).mergeFrom(value).buildPartial(); } else { trafficMatchRule_ = value; } onChanged(); } else { trafficMatchRuleBuilder_.mergeFrom(value); } return this; } /** *
       * 流量匹配规则
       * 
* * .v1.TrafficMatchRule traffic_match_rule = 4; */ public Builder clearTrafficMatchRule() { if (trafficMatchRuleBuilder_ == null) { trafficMatchRule_ = null; onChanged(); } else { trafficMatchRule_ = null; trafficMatchRuleBuilder_ = null; } return this; } /** *
       * 流量匹配规则
       * 
* * .v1.TrafficMatchRule traffic_match_rule = 4; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.Builder getTrafficMatchRuleBuilder() { onChanged(); return getTrafficMatchRuleFieldBuilder().getBuilder(); } /** *
       * 流量匹配规则
       * 
* * .v1.TrafficMatchRule traffic_match_rule = 4; */ public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRuleOrBuilder getTrafficMatchRuleOrBuilder() { if (trafficMatchRuleBuilder_ != null) { return trafficMatchRuleBuilder_.getMessageOrBuilder(); } else { return trafficMatchRule_ == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.getDefaultInstance() : trafficMatchRule_; } } /** *
       * 流量匹配规则
       * 
* * .v1.TrafficMatchRule traffic_match_rule = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRuleOrBuilder> getTrafficMatchRuleFieldBuilder() { if (trafficMatchRuleBuilder_ == null) { trafficMatchRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRule.Builder, com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.TrafficMatchRuleOrBuilder>( getTrafficMatchRule(), getParentForChildren(), isClean()); trafficMatchRule_ = null; } return trafficMatchRuleBuilder_; } private java.lang.Object defaultLabelValue_ = ""; /** *
       * 保存这个泳道的默认实例标签
       * 
* * string default_label_value = 5; * @return The defaultLabelValue. */ public java.lang.String getDefaultLabelValue() { java.lang.Object ref = defaultLabelValue_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultLabelValue_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 保存这个泳道的默认实例标签
       * 
* * string default_label_value = 5; * @return The bytes for defaultLabelValue. */ public com.google.protobuf.ByteString getDefaultLabelValueBytes() { java.lang.Object ref = defaultLabelValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultLabelValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 保存这个泳道的默认实例标签
       * 
* * string default_label_value = 5; * @param value The defaultLabelValue to set. * @return This builder for chaining. */ public Builder setDefaultLabelValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } defaultLabelValue_ = value; onChanged(); return this; } /** *
       * 保存这个泳道的默认实例标签
       * 
* * string default_label_value = 5; * @return This builder for chaining. */ public Builder clearDefaultLabelValue() { defaultLabelValue_ = getDefaultInstance().getDefaultLabelValue(); onChanged(); return this; } /** *
       * 保存这个泳道的默认实例标签
       * 
* * string default_label_value = 5; * @param value The bytes for defaultLabelValue to set. * @return This builder for chaining. */ public Builder setDefaultLabelValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); defaultLabelValue_ = value; onChanged(); return this; } private boolean enable_ ; /** *
       * 泳道规则是否启用
       * 
* * bool enable = 6; * @return The enable. */ @java.lang.Override public boolean getEnable() { return enable_; } /** *
       * 泳道规则是否启用
       * 
* * bool enable = 6; * @param value The enable to set. * @return This builder for chaining. */ public Builder setEnable(boolean value) { enable_ = value; onChanged(); return this; } /** *
       * 泳道规则是否启用
       * 
* * bool enable = 6; * @return This builder for chaining. */ public Builder clearEnable() { enable_ = false; onChanged(); return this; } private int matchMode_ = 0; /** * .v1.LaneRule.LaneMatchMode match_mode = 7; * @return The enum numeric value on the wire for matchMode. */ @java.lang.Override public int getMatchModeValue() { return matchMode_; } /** * .v1.LaneRule.LaneMatchMode match_mode = 7; * @param value The enum numeric value on the wire for matchMode to set. * @return This builder for chaining. */ public Builder setMatchModeValue(int value) { matchMode_ = value; onChanged(); return this; } /** * .v1.LaneRule.LaneMatchMode match_mode = 7; * @return The matchMode. */ @java.lang.Override public com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.LaneMatchMode getMatchMode() { @SuppressWarnings("deprecation") com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.LaneMatchMode result = com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.LaneMatchMode.valueOf(matchMode_); return result == null ? com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.LaneMatchMode.UNRECOGNIZED : result; } /** * .v1.LaneRule.LaneMatchMode match_mode = 7; * @param value The matchMode to set. * @return This builder for chaining. */ public Builder setMatchMode(com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule.LaneMatchMode value) { if (value == null) { throw new NullPointerException(); } matchMode_ = value.getNumber(); onChanged(); return this; } /** * .v1.LaneRule.LaneMatchMode match_mode = 7; * @return This builder for chaining. */ public Builder clearMatchMode() { matchMode_ = 0; onChanged(); return this; } private java.lang.Object revision_ = ""; /** *
       * revision routing version
       * 
* * string revision = 8; * @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 = 8; * @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 = 8; * @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 = 8; * @return This builder for chaining. */ public Builder clearRevision() { revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** *
       * revision routing version
       * 
* * string revision = 8; * @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 = 9; * @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 = 9; * @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 = 9; * @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 = 9; * @return This builder for chaining. */ public Builder clearCtime() { ctime_ = getDefaultInstance().getCtime(); onChanged(); return this; } /** *
       * ctime create time of the rules
       * 
* * string ctime = 9; * @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 = 10; * @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 = 10; * @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 = 10; * @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 = 10; * @return This builder for chaining. */ public Builder clearMtime() { mtime_ = getDefaultInstance().getMtime(); onChanged(); return this; } /** *
       * mtime modify time of the rules
       * 
* * string mtime = 10; * @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 = 11; * @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 = 11; * @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 = 11; * @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 = 11; * @return This builder for chaining. */ public Builder clearEtime() { etime_ = getDefaultInstance().getEtime(); onChanged(); return this; } /** *
       * etime enable time of the rules
       * 
* * string etime = 11; * @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 = 12; * @return The priority. */ @java.lang.Override public int getPriority() { return priority_; } /** *
       * priority rules priority
       * 
* * uint32 priority = 12; * @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 = 12; * @return This builder for chaining. */ public Builder clearPriority() { priority_ = 0; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
       * description simple description rules
       * 
* * string description = 13; * @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 = 13; * @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 = 13; * @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 = 13; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
       * description simple description rules
       * 
* * string description = 13; * @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 java.lang.Object labelKey_ = ""; /** *
       * 属于该泳道的实例标签KEY,不填默认为lane
       * 
* * string label_key = 14; * @return The labelKey. */ public java.lang.String getLabelKey() { java.lang.Object ref = labelKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); labelKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 属于该泳道的实例标签KEY,不填默认为lane
       * 
* * string label_key = 14; * @return The bytes for labelKey. */ public com.google.protobuf.ByteString getLabelKeyBytes() { java.lang.Object ref = labelKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); labelKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 属于该泳道的实例标签KEY,不填默认为lane
       * 
* * string label_key = 14; * @param value The labelKey to set. * @return This builder for chaining. */ public Builder setLabelKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } labelKey_ = value; onChanged(); return this; } /** *
       * 属于该泳道的实例标签KEY,不填默认为lane
       * 
* * string label_key = 14; * @return This builder for chaining. */ public Builder clearLabelKey() { labelKey_ = getDefaultInstance().getLabelKey(); onChanged(); return this; } /** *
       * 属于该泳道的实例标签KEY,不填默认为lane
       * 
* * string label_key = 14; * @param value The bytes for labelKey to set. * @return This builder for chaining. */ public Builder setLabelKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); labelKey_ = 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.LaneRule) } // @@protoc_insertion_point(class_scope:v1.LaneRule) private static final com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule(); } public static com.tencent.polaris.specification.api.v1.traffic.manage.LaneProto.LaneRule getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LaneRule 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.LaneProto.LaneRule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_TrafficEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_TrafficEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_ServiceGatewaySelector_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_ServiceGatewaySelector_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_ServiceGatewaySelector_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_ServiceGatewaySelector_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_ServiceSelector_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_ServiceSelector_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_ServiceSelector_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_ServiceSelector_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_LaneGroup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_LaneGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_LaneGroup_MetadataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_LaneGroup_MetadataEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_TrafficMatchRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_TrafficMatchRule_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_v1_LaneRule_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_v1_LaneRule_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\nlane.proto\022\002v1\032\031google/protobuf/any.pr" + "oto\032\013model.proto\032\rrouting.proto\"D\n\014Traff" + "icEntry\022\014\n\004type\030\001 \001(\t\022&\n\010selector\030\002 \001(\0132" + "\024.google.protobuf.Any\"\264\001\n\026ServiceGateway" + "Selector\022\021\n\tnamespace\030\001 \001(\t\022\017\n\007service\030\002" + " \001(\t\0226\n\006labels\030\003 \003(\0132&.v1.ServiceGateway" + "Selector.LabelsEntry\032>\n\013LabelsEntry\022\013\n\003k" + "ey\030\001 \001(\t\022\036\n\005value\030\002 \001(\0132\017.v1.MatchString" + ":\0028\001\"\246\001\n\017ServiceSelector\022\021\n\tnamespace\030\001 " + "\001(\t\022\017\n\007service\030\002 \001(\t\022/\n\006labels\030\003 \003(\0132\037.v" + "1.ServiceSelector.LabelsEntry\032>\n\013LabelsE" + "ntry\022\013\n\003key\030\001 \001(\t\022\036\n\005value\030\002 \001(\0132\017.v1.Ma" + "tchString:\0028\001\"\362\002\n\tLaneGroup\022\n\n\002id\030\001 \001(\t\022" + "\014\n\004name\030\002 \001(\t\022!\n\007entries\030\003 \003(\0132\020.v1.Traf" + "ficEntry\022*\n\014destinations\030\004 \003(\0132\024.v1.Dest" + "inationGroup\022\020\n\010revision\030\007 \001(\t\022\023\n\013descri" + "ption\030\010 \001(\t\022\r\n\005ctime\030\t \001(\t\022\r\n\005mtime\030\n \001(" + "\t\022\033\n\005rules\030\013 \003(\0132\014.v1.LaneRule\022-\n\010metada" + "ta\030\014 \003(\0132\033.v1.LaneGroup.MetadataEntry\022\032\n" + "\010editable\030\024 \001(\010R\010editable\022\036\n\ndeleteable\030" + "\025 \001(\010R\ndeleteable\032/\n\rMetadataEntry\022\013\n\003ke" + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\225\001\n\020TrafficMa" + "tchRule\022\"\n\targuments\030\004 \003(\0132\017.v1.SourceMa" + "tch\0228\n\tmatchMode\030\016 \001(\0162%.v1.TrafficMatch" + "Rule.TrafficMatchMode\"#\n\020TrafficMatchMod" + "e\022\007\n\003AND\020\000\022\006\n\002OR\020\001\"\355\002\n\010LaneRule\022\n\n\002id\030\001 " + "\001(\t\022\014\n\004name\030\002 \001(\t\022\022\n\ngroup_name\030\003 \001(\t\0220\n" + "\022traffic_match_rule\030\004 \001(\0132\024.v1.TrafficMa" + "tchRule\022\033\n\023default_label_value\030\005 \001(\t\022\016\n\006" + "enable\030\006 \001(\010\022.\n\nmatch_mode\030\007 \001(\0162\032.v1.La" + "neRule.LaneMatchMode\022\020\n\010revision\030\010 \001(\t\022\r" + "\n\005ctime\030\t \001(\t\022\r\n\005mtime\030\n \001(\t\022\r\n\005etime\030\013 " + "\001(\t\022\020\n\010priority\030\014 \001(\r\022\023\n\013description\030\r \001" + "(\t\022\021\n\tlabel_key\030\016 \001(\t\"+\n\rLaneMatchMode\022\n" + "\n\006STRICT\020\000\022\016\n\nPERMISSIVE\020\001B\212\001\n7com.tence" + "nt.polaris.specification.api.v1.traffic." + "manageB\tLaneProtoZDgithub.com/polarismes" + "h/specification/source/go/api/v1/traffic" + "_manageb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), com.tencent.polaris.specification.api.v1.model.ModelProto.getDescriptor(), com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.getDescriptor(), }); internal_static_v1_TrafficEntry_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_v1_TrafficEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_TrafficEntry_descriptor, new java.lang.String[] { "Type", "Selector", }); internal_static_v1_ServiceGatewaySelector_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_v1_ServiceGatewaySelector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_ServiceGatewaySelector_descriptor, new java.lang.String[] { "Namespace", "Service", "Labels", }); internal_static_v1_ServiceGatewaySelector_LabelsEntry_descriptor = internal_static_v1_ServiceGatewaySelector_descriptor.getNestedTypes().get(0); internal_static_v1_ServiceGatewaySelector_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_ServiceGatewaySelector_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_v1_ServiceSelector_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_v1_ServiceSelector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_ServiceSelector_descriptor, new java.lang.String[] { "Namespace", "Service", "Labels", }); internal_static_v1_ServiceSelector_LabelsEntry_descriptor = internal_static_v1_ServiceSelector_descriptor.getNestedTypes().get(0); internal_static_v1_ServiceSelector_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_ServiceSelector_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_v1_LaneGroup_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_v1_LaneGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_LaneGroup_descriptor, new java.lang.String[] { "Id", "Name", "Entries", "Destinations", "Revision", "Description", "Ctime", "Mtime", "Rules", "Metadata", "Editable", "Deleteable", }); internal_static_v1_LaneGroup_MetadataEntry_descriptor = internal_static_v1_LaneGroup_descriptor.getNestedTypes().get(0); internal_static_v1_LaneGroup_MetadataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_LaneGroup_MetadataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_v1_TrafficMatchRule_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_v1_TrafficMatchRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_TrafficMatchRule_descriptor, new java.lang.String[] { "Arguments", "MatchMode", }); internal_static_v1_LaneRule_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_v1_LaneRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_v1_LaneRule_descriptor, new java.lang.String[] { "Id", "Name", "GroupName", "TrafficMatchRule", "DefaultLabelValue", "Enable", "MatchMode", "Revision", "Ctime", "Mtime", "Etime", "Priority", "Description", "LabelKey", }); com.google.protobuf.AnyProto.getDescriptor(); com.tencent.polaris.specification.api.v1.model.ModelProto.getDescriptor(); com.tencent.polaris.specification.api.v1.traffic.manage.RoutingProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy