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

com.v2ray.core.app.router.Config Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: v2ray.com/core/app/router/config.proto

package com.v2ray.core.app.router;

/**
 * Protobuf type {@code v2ray.core.app.router.Config}
 */
public  final class Config extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:v2ray.core.app.router.Config)
    ConfigOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Config.newBuilder() to construct.
  private Config(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private Config() {
    domainStrategy_ = 0;
    rule_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Config(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 8: {
            int rawValue = input.readEnum();

            domainStrategy_ = rawValue;
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
              rule_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            rule_.add(
                input.readMessage(com.v2ray.core.app.router.RoutingRule.parser(), extensionRegistry));
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
        rule_ = java.util.Collections.unmodifiableList(rule_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.v2ray.core.app.router.ConfigOuterClass.internal_static_v2ray_core_app_router_Config_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.v2ray.core.app.router.ConfigOuterClass.internal_static_v2ray_core_app_router_Config_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.v2ray.core.app.router.Config.class, com.v2ray.core.app.router.Config.Builder.class);
  }

  /**
   * Protobuf enum {@code v2ray.core.app.router.Config.DomainStrategy}
   */
  public enum DomainStrategy
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * 
     * Use domain as is.
     * 
* * AsIs = 0; */ AsIs(0), /** *
     * Always resolve IP for domains.
     * 
* * UseIp = 1; */ UseIp(1), /** *
     * Resolve to IP if the domain doesn't match any rules.
     * 
* * IpIfNonMatch = 2; */ IpIfNonMatch(2), /** *
     * Resolve to IP if any rule requires IP matching.
     * 
* * IpOnDemand = 3; */ IpOnDemand(3), UNRECOGNIZED(-1), ; /** *
     * Use domain as is.
     * 
* * AsIs = 0; */ public static final int AsIs_VALUE = 0; /** *
     * Always resolve IP for domains.
     * 
* * UseIp = 1; */ public static final int UseIp_VALUE = 1; /** *
     * Resolve to IP if the domain doesn't match any rules.
     * 
* * IpIfNonMatch = 2; */ public static final int IpIfNonMatch_VALUE = 2; /** *
     * Resolve to IP if any rule requires IP matching.
     * 
* * IpOnDemand = 3; */ public static final int IpOnDemand_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DomainStrategy valueOf(int value) { return forNumber(value); } public static DomainStrategy forNumber(int value) { switch (value) { case 0: return AsIs; case 1: return UseIp; case 2: return IpIfNonMatch; case 3: return IpOnDemand; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< DomainStrategy> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DomainStrategy findValueByNumber(int number) { return DomainStrategy.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 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.v2ray.core.app.router.Config.getDescriptor().getEnumTypes().get(0); } private static final DomainStrategy[] VALUES = values(); public static DomainStrategy 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 DomainStrategy(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:v2ray.core.app.router.Config.DomainStrategy) } private int bitField0_; public static final int DOMAIN_STRATEGY_FIELD_NUMBER = 1; private int domainStrategy_; /** * .v2ray.core.app.router.Config.DomainStrategy domain_strategy = 1; */ public int getDomainStrategyValue() { return domainStrategy_; } /** * .v2ray.core.app.router.Config.DomainStrategy domain_strategy = 1; */ public com.v2ray.core.app.router.Config.DomainStrategy getDomainStrategy() { com.v2ray.core.app.router.Config.DomainStrategy result = com.v2ray.core.app.router.Config.DomainStrategy.valueOf(domainStrategy_); return result == null ? com.v2ray.core.app.router.Config.DomainStrategy.UNRECOGNIZED : result; } public static final int RULE_FIELD_NUMBER = 2; private java.util.List rule_; /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public java.util.List getRuleList() { return rule_; } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public java.util.List getRuleOrBuilderList() { return rule_; } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public int getRuleCount() { return rule_.size(); } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public com.v2ray.core.app.router.RoutingRule getRule(int index) { return rule_.get(index); } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public com.v2ray.core.app.router.RoutingRuleOrBuilder getRuleOrBuilder( int index) { return rule_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (domainStrategy_ != com.v2ray.core.app.router.Config.DomainStrategy.AsIs.getNumber()) { output.writeEnum(1, domainStrategy_); } for (int i = 0; i < rule_.size(); i++) { output.writeMessage(2, rule_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (domainStrategy_ != com.v2ray.core.app.router.Config.DomainStrategy.AsIs.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, domainStrategy_); } for (int i = 0; i < rule_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, rule_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.v2ray.core.app.router.Config)) { return super.equals(obj); } com.v2ray.core.app.router.Config other = (com.v2ray.core.app.router.Config) obj; boolean result = true; result = result && domainStrategy_ == other.domainStrategy_; result = result && getRuleList() .equals(other.getRuleList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DOMAIN_STRATEGY_FIELD_NUMBER; hash = (53 * hash) + domainStrategy_; if (getRuleCount() > 0) { hash = (37 * hash) + RULE_FIELD_NUMBER; hash = (53 * hash) + getRuleList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.v2ray.core.app.router.Config parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.v2ray.core.app.router.Config parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.v2ray.core.app.router.Config parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.v2ray.core.app.router.Config parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.v2ray.core.app.router.Config parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.v2ray.core.app.router.Config parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.v2ray.core.app.router.Config parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.v2ray.core.app.router.Config 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.v2ray.core.app.router.Config parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.v2ray.core.app.router.Config 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.v2ray.core.app.router.Config parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.v2ray.core.app.router.Config parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.v2ray.core.app.router.Config prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 v2ray.core.app.router.Config} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:v2ray.core.app.router.Config) com.v2ray.core.app.router.ConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.v2ray.core.app.router.ConfigOuterClass.internal_static_v2ray_core_app_router_Config_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.v2ray.core.app.router.ConfigOuterClass.internal_static_v2ray_core_app_router_Config_fieldAccessorTable .ensureFieldAccessorsInitialized( com.v2ray.core.app.router.Config.class, com.v2ray.core.app.router.Config.Builder.class); } // Construct using com.v2ray.core.app.router.Config.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRuleFieldBuilder(); } } public Builder clear() { super.clear(); domainStrategy_ = 0; if (ruleBuilder_ == null) { rule_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { ruleBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.v2ray.core.app.router.ConfigOuterClass.internal_static_v2ray_core_app_router_Config_descriptor; } public com.v2ray.core.app.router.Config getDefaultInstanceForType() { return com.v2ray.core.app.router.Config.getDefaultInstance(); } public com.v2ray.core.app.router.Config build() { com.v2ray.core.app.router.Config result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.v2ray.core.app.router.Config buildPartial() { com.v2ray.core.app.router.Config result = new com.v2ray.core.app.router.Config(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.domainStrategy_ = domainStrategy_; if (ruleBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { rule_ = java.util.Collections.unmodifiableList(rule_); bitField0_ = (bitField0_ & ~0x00000002); } result.rule_ = rule_; } else { result.rule_ = ruleBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.v2ray.core.app.router.Config) { return mergeFrom((com.v2ray.core.app.router.Config)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.v2ray.core.app.router.Config other) { if (other == com.v2ray.core.app.router.Config.getDefaultInstance()) return this; if (other.domainStrategy_ != 0) { setDomainStrategyValue(other.getDomainStrategyValue()); } if (ruleBuilder_ == null) { if (!other.rule_.isEmpty()) { if (rule_.isEmpty()) { rule_ = other.rule_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRuleIsMutable(); rule_.addAll(other.rule_); } onChanged(); } } else { if (!other.rule_.isEmpty()) { if (ruleBuilder_.isEmpty()) { ruleBuilder_.dispose(); ruleBuilder_ = null; rule_ = other.rule_; bitField0_ = (bitField0_ & ~0x00000002); ruleBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRuleFieldBuilder() : null; } else { ruleBuilder_.addAllMessages(other.rule_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.v2ray.core.app.router.Config parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.v2ray.core.app.router.Config) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int domainStrategy_ = 0; /** * .v2ray.core.app.router.Config.DomainStrategy domain_strategy = 1; */ public int getDomainStrategyValue() { return domainStrategy_; } /** * .v2ray.core.app.router.Config.DomainStrategy domain_strategy = 1; */ public Builder setDomainStrategyValue(int value) { domainStrategy_ = value; onChanged(); return this; } /** * .v2ray.core.app.router.Config.DomainStrategy domain_strategy = 1; */ public com.v2ray.core.app.router.Config.DomainStrategy getDomainStrategy() { com.v2ray.core.app.router.Config.DomainStrategy result = com.v2ray.core.app.router.Config.DomainStrategy.valueOf(domainStrategy_); return result == null ? com.v2ray.core.app.router.Config.DomainStrategy.UNRECOGNIZED : result; } /** * .v2ray.core.app.router.Config.DomainStrategy domain_strategy = 1; */ public Builder setDomainStrategy(com.v2ray.core.app.router.Config.DomainStrategy value) { if (value == null) { throw new NullPointerException(); } domainStrategy_ = value.getNumber(); onChanged(); return this; } /** * .v2ray.core.app.router.Config.DomainStrategy domain_strategy = 1; */ public Builder clearDomainStrategy() { domainStrategy_ = 0; onChanged(); return this; } private java.util.List rule_ = java.util.Collections.emptyList(); private void ensureRuleIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { rule_ = new java.util.ArrayList(rule_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.v2ray.core.app.router.RoutingRule, com.v2ray.core.app.router.RoutingRule.Builder, com.v2ray.core.app.router.RoutingRuleOrBuilder> ruleBuilder_; /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public java.util.List getRuleList() { if (ruleBuilder_ == null) { return java.util.Collections.unmodifiableList(rule_); } else { return ruleBuilder_.getMessageList(); } } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public int getRuleCount() { if (ruleBuilder_ == null) { return rule_.size(); } else { return ruleBuilder_.getCount(); } } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public com.v2ray.core.app.router.RoutingRule getRule(int index) { if (ruleBuilder_ == null) { return rule_.get(index); } else { return ruleBuilder_.getMessage(index); } } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public Builder setRule( int index, com.v2ray.core.app.router.RoutingRule value) { if (ruleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRuleIsMutable(); rule_.set(index, value); onChanged(); } else { ruleBuilder_.setMessage(index, value); } return this; } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public Builder setRule( int index, com.v2ray.core.app.router.RoutingRule.Builder builderForValue) { if (ruleBuilder_ == null) { ensureRuleIsMutable(); rule_.set(index, builderForValue.build()); onChanged(); } else { ruleBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public Builder addRule(com.v2ray.core.app.router.RoutingRule value) { if (ruleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRuleIsMutable(); rule_.add(value); onChanged(); } else { ruleBuilder_.addMessage(value); } return this; } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public Builder addRule( int index, com.v2ray.core.app.router.RoutingRule value) { if (ruleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRuleIsMutable(); rule_.add(index, value); onChanged(); } else { ruleBuilder_.addMessage(index, value); } return this; } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public Builder addRule( com.v2ray.core.app.router.RoutingRule.Builder builderForValue) { if (ruleBuilder_ == null) { ensureRuleIsMutable(); rule_.add(builderForValue.build()); onChanged(); } else { ruleBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public Builder addRule( int index, com.v2ray.core.app.router.RoutingRule.Builder builderForValue) { if (ruleBuilder_ == null) { ensureRuleIsMutable(); rule_.add(index, builderForValue.build()); onChanged(); } else { ruleBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public Builder addAllRule( java.lang.Iterable values) { if (ruleBuilder_ == null) { ensureRuleIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rule_); onChanged(); } else { ruleBuilder_.addAllMessages(values); } return this; } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public Builder clearRule() { if (ruleBuilder_ == null) { rule_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { ruleBuilder_.clear(); } return this; } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public Builder removeRule(int index) { if (ruleBuilder_ == null) { ensureRuleIsMutable(); rule_.remove(index); onChanged(); } else { ruleBuilder_.remove(index); } return this; } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public com.v2ray.core.app.router.RoutingRule.Builder getRuleBuilder( int index) { return getRuleFieldBuilder().getBuilder(index); } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public com.v2ray.core.app.router.RoutingRuleOrBuilder getRuleOrBuilder( int index) { if (ruleBuilder_ == null) { return rule_.get(index); } else { return ruleBuilder_.getMessageOrBuilder(index); } } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public java.util.List getRuleOrBuilderList() { if (ruleBuilder_ != null) { return ruleBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rule_); } } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public com.v2ray.core.app.router.RoutingRule.Builder addRuleBuilder() { return getRuleFieldBuilder().addBuilder( com.v2ray.core.app.router.RoutingRule.getDefaultInstance()); } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public com.v2ray.core.app.router.RoutingRule.Builder addRuleBuilder( int index) { return getRuleFieldBuilder().addBuilder( index, com.v2ray.core.app.router.RoutingRule.getDefaultInstance()); } /** * repeated .v2ray.core.app.router.RoutingRule rule = 2; */ public java.util.List getRuleBuilderList() { return getRuleFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.v2ray.core.app.router.RoutingRule, com.v2ray.core.app.router.RoutingRule.Builder, com.v2ray.core.app.router.RoutingRuleOrBuilder> getRuleFieldBuilder() { if (ruleBuilder_ == null) { ruleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.v2ray.core.app.router.RoutingRule, com.v2ray.core.app.router.RoutingRule.Builder, com.v2ray.core.app.router.RoutingRuleOrBuilder>( rule_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); rule_ = null; } return ruleBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:v2ray.core.app.router.Config) } // @@protoc_insertion_point(class_scope:v2ray.core.app.router.Config) private static final com.v2ray.core.app.router.Config DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.v2ray.core.app.router.Config(); } public static com.v2ray.core.app.router.Config getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Config parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Config(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.v2ray.core.app.router.Config getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy