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

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

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

package com.v2ray.core.app.policy;

/**
 * Protobuf type {@code v2ray.core.app.policy.Config}
 */
public  final class Config extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:v2ray.core.app.policy.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() {
  }

  @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 10: {
            if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
              level_ = com.google.protobuf.MapField.newMapField(
                  LevelDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000001;
            }
            com.google.protobuf.MapEntry
            level__ = input.readMessage(
                LevelDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            level_.getMutableMap().put(
                level__.getKey(), level__.getValue());
            break;
          }
          case 18: {
            com.v2ray.core.app.policy.SystemPolicy.Builder subBuilder = null;
            if (system_ != null) {
              subBuilder = system_.toBuilder();
            }
            system_ = input.readMessage(com.v2ray.core.app.policy.SystemPolicy.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(system_);
              system_ = subBuilder.buildPartial();
            }

            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.v2ray.core.app.policy.ConfigOuterClass.internal_static_v2ray_core_app_policy_Config_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 1:
        return internalGetLevel();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.v2ray.core.app.policy.ConfigOuterClass.internal_static_v2ray_core_app_policy_Config_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.v2ray.core.app.policy.Config.class, com.v2ray.core.app.policy.Config.Builder.class);
  }

  private int bitField0_;
  public static final int LEVEL_FIELD_NUMBER = 1;
  private static final class LevelDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.Integer, com.v2ray.core.app.policy.Policy> defaultEntry =
            com.google.protobuf.MapEntry
            .newDefaultInstance(
                com.v2ray.core.app.policy.ConfigOuterClass.internal_static_v2ray_core_app_policy_Config_LevelEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.UINT32,
                0,
                com.google.protobuf.WireFormat.FieldType.MESSAGE,
                com.v2ray.core.app.policy.Policy.getDefaultInstance());
  }
  private com.google.protobuf.MapField<
      java.lang.Integer, com.v2ray.core.app.policy.Policy> level_;
  private com.google.protobuf.MapField
  internalGetLevel() {
    if (level_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          LevelDefaultEntryHolder.defaultEntry);
    }
    return level_;
  }

  public int getLevelCount() {
    return internalGetLevel().getMap().size();
  }
  /**
   * map<uint32, .v2ray.core.app.policy.Policy> level = 1;
   */

  public boolean containsLevel(
      int key) {
    
    return internalGetLevel().getMap().containsKey(key);
  }
  /**
   * Use {@link #getLevelMap()} instead.
   */
  @java.lang.Deprecated
  public java.util.Map getLevel() {
    return getLevelMap();
  }
  /**
   * map<uint32, .v2ray.core.app.policy.Policy> level = 1;
   */

  public java.util.Map getLevelMap() {
    return internalGetLevel().getMap();
  }
  /**
   * map<uint32, .v2ray.core.app.policy.Policy> level = 1;
   */

  public com.v2ray.core.app.policy.Policy getLevelOrDefault(
      int key,
      com.v2ray.core.app.policy.Policy defaultValue) {
    
    java.util.Map map =
        internalGetLevel().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * map<uint32, .v2ray.core.app.policy.Policy> level = 1;
   */

  public com.v2ray.core.app.policy.Policy getLevelOrThrow(
      int key) {
    
    java.util.Map map =
        internalGetLevel().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int SYSTEM_FIELD_NUMBER = 2;
  private com.v2ray.core.app.policy.SystemPolicy system_;
  /**
   * .v2ray.core.app.policy.SystemPolicy system = 2;
   */
  public boolean hasSystem() {
    return system_ != null;
  }
  /**
   * .v2ray.core.app.policy.SystemPolicy system = 2;
   */
  public com.v2ray.core.app.policy.SystemPolicy getSystem() {
    return system_ == null ? com.v2ray.core.app.policy.SystemPolicy.getDefaultInstance() : system_;
  }
  /**
   * .v2ray.core.app.policy.SystemPolicy system = 2;
   */
  public com.v2ray.core.app.policy.SystemPolicyOrBuilder getSystemOrBuilder() {
    return getSystem();
  }

  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 {
    com.google.protobuf.GeneratedMessageV3
      .serializeIntegerMapTo(
        output,
        internalGetLevel(),
        LevelDefaultEntryHolder.defaultEntry,
        1);
    if (system_ != null) {
      output.writeMessage(2, getSystem());
    }
    unknownFields.writeTo(output);
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    for (java.util.Map.Entry entry
         : internalGetLevel().getMap().entrySet()) {
      com.google.protobuf.MapEntry
      level__ = LevelDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, level__);
    }
    if (system_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getSystem());
    }
    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.policy.Config)) {
      return super.equals(obj);
    }
    com.v2ray.core.app.policy.Config other = (com.v2ray.core.app.policy.Config) obj;

    boolean result = true;
    result = result && internalGetLevel().equals(
        other.internalGetLevel());
    result = result && (hasSystem() == other.hasSystem());
    if (hasSystem()) {
      result = result && getSystem()
          .equals(other.getSystem());
    }
    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();
    if (!internalGetLevel().getMap().isEmpty()) {
      hash = (37 * hash) + LEVEL_FIELD_NUMBER;
      hash = (53 * hash) + internalGetLevel().hashCode();
    }
    if (hasSystem()) {
      hash = (37 * hash) + SYSTEM_FIELD_NUMBER;
      hash = (53 * hash) + getSystem().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.v2ray.core.app.policy.Config parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.v2ray.core.app.policy.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.policy.Config parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.v2ray.core.app.policy.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.policy.Config parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.v2ray.core.app.policy.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.policy.Config parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.v2ray.core.app.policy.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.policy.Config parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.v2ray.core.app.policy.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.policy.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.policy.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.policy.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.policy.Config}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:v2ray.core.app.policy.Config)
      com.v2ray.core.app.policy.ConfigOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.v2ray.core.app.policy.ConfigOuterClass.internal_static_v2ray_core_app_policy_Config_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 1:
          return internalGetLevel();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 1:
          return internalGetMutableLevel();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.v2ray.core.app.policy.ConfigOuterClass.internal_static_v2ray_core_app_policy_Config_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.v2ray.core.app.policy.Config.class, com.v2ray.core.app.policy.Config.Builder.class);
    }

    // Construct using com.v2ray.core.app.policy.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) {
      }
    }
    public Builder clear() {
      super.clear();
      internalGetMutableLevel().clear();
      if (systemBuilder_ == null) {
        system_ = null;
      } else {
        system_ = null;
        systemBuilder_ = null;
      }
      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.v2ray.core.app.policy.ConfigOuterClass.internal_static_v2ray_core_app_policy_Config_descriptor;
    }

    public com.v2ray.core.app.policy.Config getDefaultInstanceForType() {
      return com.v2ray.core.app.policy.Config.getDefaultInstance();
    }

    public com.v2ray.core.app.policy.Config build() {
      com.v2ray.core.app.policy.Config result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.v2ray.core.app.policy.Config buildPartial() {
      com.v2ray.core.app.policy.Config result = new com.v2ray.core.app.policy.Config(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.level_ = internalGetLevel();
      result.level_.makeImmutable();
      if (systemBuilder_ == null) {
        result.system_ = system_;
      } else {
        result.system_ = systemBuilder_.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.policy.Config) {
        return mergeFrom((com.v2ray.core.app.policy.Config)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.v2ray.core.app.policy.Config other) {
      if (other == com.v2ray.core.app.policy.Config.getDefaultInstance()) return this;
      internalGetMutableLevel().mergeFrom(
          other.internalGetLevel());
      if (other.hasSystem()) {
        mergeSystem(other.getSystem());
      }
      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.policy.Config parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.v2ray.core.app.policy.Config) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private com.google.protobuf.MapField<
        java.lang.Integer, com.v2ray.core.app.policy.Policy> level_;
    private com.google.protobuf.MapField
    internalGetLevel() {
      if (level_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            LevelDefaultEntryHolder.defaultEntry);
      }
      return level_;
    }
    private com.google.protobuf.MapField
    internalGetMutableLevel() {
      onChanged();;
      if (level_ == null) {
        level_ = com.google.protobuf.MapField.newMapField(
            LevelDefaultEntryHolder.defaultEntry);
      }
      if (!level_.isMutable()) {
        level_ = level_.copy();
      }
      return level_;
    }

    public int getLevelCount() {
      return internalGetLevel().getMap().size();
    }
    /**
     * map<uint32, .v2ray.core.app.policy.Policy> level = 1;
     */

    public boolean containsLevel(
        int key) {
      
      return internalGetLevel().getMap().containsKey(key);
    }
    /**
     * Use {@link #getLevelMap()} instead.
     */
    @java.lang.Deprecated
    public java.util.Map getLevel() {
      return getLevelMap();
    }
    /**
     * map<uint32, .v2ray.core.app.policy.Policy> level = 1;
     */

    public java.util.Map getLevelMap() {
      return internalGetLevel().getMap();
    }
    /**
     * map<uint32, .v2ray.core.app.policy.Policy> level = 1;
     */

    public com.v2ray.core.app.policy.Policy getLevelOrDefault(
        int key,
        com.v2ray.core.app.policy.Policy defaultValue) {
      
      java.util.Map map =
          internalGetLevel().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * map<uint32, .v2ray.core.app.policy.Policy> level = 1;
     */

    public com.v2ray.core.app.policy.Policy getLevelOrThrow(
        int key) {
      
      java.util.Map map =
          internalGetLevel().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearLevel() {
      internalGetMutableLevel().getMutableMap()
          .clear();
      return this;
    }
    /**
     * map<uint32, .v2ray.core.app.policy.Policy> level = 1;
     */

    public Builder removeLevel(
        int key) {
      
      internalGetMutableLevel().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map
    getMutableLevel() {
      return internalGetMutableLevel().getMutableMap();
    }
    /**
     * map<uint32, .v2ray.core.app.policy.Policy> level = 1;
     */
    public Builder putLevel(
        int key,
        com.v2ray.core.app.policy.Policy value) {
      
      if (value == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableLevel().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * map<uint32, .v2ray.core.app.policy.Policy> level = 1;
     */

    public Builder putAllLevel(
        java.util.Map values) {
      internalGetMutableLevel().getMutableMap()
          .putAll(values);
      return this;
    }

    private com.v2ray.core.app.policy.SystemPolicy system_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.v2ray.core.app.policy.SystemPolicy, com.v2ray.core.app.policy.SystemPolicy.Builder, com.v2ray.core.app.policy.SystemPolicyOrBuilder> systemBuilder_;
    /**
     * .v2ray.core.app.policy.SystemPolicy system = 2;
     */
    public boolean hasSystem() {
      return systemBuilder_ != null || system_ != null;
    }
    /**
     * .v2ray.core.app.policy.SystemPolicy system = 2;
     */
    public com.v2ray.core.app.policy.SystemPolicy getSystem() {
      if (systemBuilder_ == null) {
        return system_ == null ? com.v2ray.core.app.policy.SystemPolicy.getDefaultInstance() : system_;
      } else {
        return systemBuilder_.getMessage();
      }
    }
    /**
     * .v2ray.core.app.policy.SystemPolicy system = 2;
     */
    public Builder setSystem(com.v2ray.core.app.policy.SystemPolicy value) {
      if (systemBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        system_ = value;
        onChanged();
      } else {
        systemBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .v2ray.core.app.policy.SystemPolicy system = 2;
     */
    public Builder setSystem(
        com.v2ray.core.app.policy.SystemPolicy.Builder builderForValue) {
      if (systemBuilder_ == null) {
        system_ = builderForValue.build();
        onChanged();
      } else {
        systemBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .v2ray.core.app.policy.SystemPolicy system = 2;
     */
    public Builder mergeSystem(com.v2ray.core.app.policy.SystemPolicy value) {
      if (systemBuilder_ == null) {
        if (system_ != null) {
          system_ =
            com.v2ray.core.app.policy.SystemPolicy.newBuilder(system_).mergeFrom(value).buildPartial();
        } else {
          system_ = value;
        }
        onChanged();
      } else {
        systemBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .v2ray.core.app.policy.SystemPolicy system = 2;
     */
    public Builder clearSystem() {
      if (systemBuilder_ == null) {
        system_ = null;
        onChanged();
      } else {
        system_ = null;
        systemBuilder_ = null;
      }

      return this;
    }
    /**
     * .v2ray.core.app.policy.SystemPolicy system = 2;
     */
    public com.v2ray.core.app.policy.SystemPolicy.Builder getSystemBuilder() {
      
      onChanged();
      return getSystemFieldBuilder().getBuilder();
    }
    /**
     * .v2ray.core.app.policy.SystemPolicy system = 2;
     */
    public com.v2ray.core.app.policy.SystemPolicyOrBuilder getSystemOrBuilder() {
      if (systemBuilder_ != null) {
        return systemBuilder_.getMessageOrBuilder();
      } else {
        return system_ == null ?
            com.v2ray.core.app.policy.SystemPolicy.getDefaultInstance() : system_;
      }
    }
    /**
     * .v2ray.core.app.policy.SystemPolicy system = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.v2ray.core.app.policy.SystemPolicy, com.v2ray.core.app.policy.SystemPolicy.Builder, com.v2ray.core.app.policy.SystemPolicyOrBuilder> 
        getSystemFieldBuilder() {
      if (systemBuilder_ == null) {
        systemBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.v2ray.core.app.policy.SystemPolicy, com.v2ray.core.app.policy.SystemPolicy.Builder, com.v2ray.core.app.policy.SystemPolicyOrBuilder>(
                getSystem(),
                getParentForChildren(),
                isClean());
        system_ = null;
      }
      return systemBuilder_;
    }
    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.policy.Config)
  }

  // @@protoc_insertion_point(class_scope:v2ray.core.app.policy.Config)
  private static final com.v2ray.core.app.policy.Config DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.v2ray.core.app.policy.Config();
  }

  public static com.v2ray.core.app.policy.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.policy.Config getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy