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

alluxio.grpc.MountPOptions Maven / Gradle / Ivy

There is a newer version: 313
Show newest version
// Generated by the protocol buffer alluxio.shaded.client.com.iler.  DO NOT EDIT!
// source: grpc/file_system_master.proto

package alluxio.grpc;

/**
 * Protobuf type {@code alluxio.grpc.file.MountPOptions}
 */
public final class MountPOptions extends
    alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:alluxio.grpc.file.MountPOptions)
    MountPOptionsOrBuilder {
private static final long serialVersionUID = 0L;
  // Use MountPOptions.newBuilder() to construct.
  private MountPOptions(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private MountPOptions() {
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new MountPOptions();
  }

  @java.lang.Override
  public final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_MountPOptions_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected alluxio.shaded.client.com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 2:
        return internalGetProperties();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_MountPOptions_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            alluxio.grpc.MountPOptions.class, alluxio.grpc.MountPOptions.Builder.class);
  }

  private int bitField0_;
  public static final int READONLY_FIELD_NUMBER = 1;
  private boolean readOnly_;
  /**
   * optional bool readOnly = 1;
   * @return Whether the readOnly field is set.
   */
  @java.lang.Override
  public boolean hasReadOnly() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional bool readOnly = 1;
   * @return The readOnly.
   */
  @java.lang.Override
  public boolean getReadOnly() {
    return readOnly_;
  }

  public static final int PROPERTIES_FIELD_NUMBER = 2;
  private static final class PropertiesDefaultEntryHolder {
    static final alluxio.shaded.client.com.google.protobuf.MapEntry<
        java.lang.String, java.lang.String> defaultEntry =
            alluxio.shaded.client.com.google.protobuf.MapEntry
            .newDefaultInstance(
                alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_MountPOptions_PropertiesEntry_descriptor, 
                alluxio.shaded.client.com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                alluxio.shaded.client.com.google.protobuf.WireFormat.FieldType.STRING,
                "");
  }
  private alluxio.shaded.client.com.google.protobuf.MapField<
      java.lang.String, java.lang.String> properties_;
  private alluxio.shaded.client.com.google.protobuf.MapField
  internalGetProperties() {
    if (properties_ == null) {
      return alluxio.shaded.client.com.google.protobuf.MapField.emptyMapField(
          PropertiesDefaultEntryHolder.defaultEntry);
    }
    return properties_;
  }

  public int getPropertiesCount() {
    return internalGetProperties().getMap().size();
  }
  /**
   * map<string, string> properties = 2;
   */

  @java.lang.Override
  public boolean containsProperties(
      java.lang.String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    return internalGetProperties().getMap().containsKey(key);
  }
  /**
   * Use {@link #getPropertiesMap()} instead.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map getProperties() {
    return getPropertiesMap();
  }
  /**
   * map<string, string> properties = 2;
   */
  @java.lang.Override

  public java.util.Map getPropertiesMap() {
    return internalGetProperties().getMap();
  }
  /**
   * map<string, string> properties = 2;
   */
  @java.lang.Override

  public java.lang.String getPropertiesOrDefault(
      java.lang.String key,
      java.lang.String defaultValue) {
    if (key == null) { throw new NullPointerException("map key"); }
    java.util.Map map =
        internalGetProperties().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * map<string, string> properties = 2;
   */
  @java.lang.Override

  public java.lang.String getPropertiesOrThrow(
      java.lang.String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    java.util.Map map =
        internalGetProperties().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int SHARED_FIELD_NUMBER = 3;
  private boolean shared_;
  /**
   * optional bool shared = 3;
   * @return Whether the shared field is set.
   */
  @java.lang.Override
  public boolean hasShared() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional bool shared = 3;
   * @return The shared.
   */
  @java.lang.Override
  public boolean getShared() {
    return shared_;
  }

  public static final int COMMONOPTIONS_FIELD_NUMBER = 4;
  private alluxio.grpc.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions_;
  /**
   * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4;
   * @return Whether the alluxio.shaded.client.com.onOptions field is set.
   */
  @java.lang.Override
  public boolean hasCommonOptions() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4;
   * @return The alluxio.shaded.client.com.onOptions.
   */
  @java.lang.Override
  public alluxio.grpc.FileSystemMasterCommonPOptions getCommonOptions() {
    return alluxio.shaded.client.com.onOptions_ == null ? alluxio.grpc.FileSystemMasterCommonPOptions.getDefaultInstance() : alluxio.shaded.client.com.onOptions_;
  }
  /**
   * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4;
   */
  @java.lang.Override
  public alluxio.grpc.FileSystemMasterCommonPOptionsOrBuilder getCommonOptionsOrBuilder() {
    return alluxio.shaded.client.com.onOptions_ == null ? alluxio.grpc.FileSystemMasterCommonPOptions.getDefaultInstance() : alluxio.shaded.client.com.onOptions_;
  }

  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(alluxio.shaded.client.com.google.protobuf.CodedOutputStream output)
                      throws java.alluxio.shaded.client.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeBool(1, readOnly_);
    }
    alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
      .serializeStringMapTo(
        output,
        internalGetProperties(),
        PropertiesDefaultEntryHolder.defaultEntry,
        2);
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeBool(3, shared_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(4, getCommonOptions());
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteBoolSize(1, readOnly_);
    }
    for (java.util.Map.Entry entry
         : internalGetProperties().getMap().entrySet()) {
      alluxio.shaded.client.com.google.protobuf.MapEntry
      properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
          .alluxio.shaded.client.com.uteMessageSize(2, properties__);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteBoolSize(3, shared_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteMessageSize(4, getCommonOptions());
    }
    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 alluxio.grpc.MountPOptions)) {
      return super.equals(obj);
    }
    alluxio.grpc.MountPOptions other = (alluxio.grpc.MountPOptions) obj;

    if (hasReadOnly() != other.hasReadOnly()) return false;
    if (hasReadOnly()) {
      if (getReadOnly()
          != other.getReadOnly()) return false;
    }
    if (!internalGetProperties().equals(
        other.internalGetProperties())) return false;
    if (hasShared() != other.hasShared()) return false;
    if (hasShared()) {
      if (getShared()
          != other.getShared()) return false;
    }
    if (hasCommonOptions() != other.hasCommonOptions()) return false;
    if (hasCommonOptions()) {
      if (!getCommonOptions()
          .equals(other.getCommonOptions())) 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 (hasReadOnly()) {
      hash = (37 * hash) + READONLY_FIELD_NUMBER;
      hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
          getReadOnly());
    }
    if (!internalGetProperties().getMap().isEmpty()) {
      hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
      hash = (53 * hash) + internalGetProperties().hashCode();
    }
    if (hasShared()) {
      hash = (37 * hash) + SHARED_FIELD_NUMBER;
      hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
          getShared());
    }
    if (hasCommonOptions()) {
      hash = (37 * hash) + COMMONOPTIONS_FIELD_NUMBER;
      hash = (53 * hash) + getCommonOptions().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static alluxio.grpc.MountPOptions parseFrom(
      java.nio.ByteBuffer data)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static alluxio.grpc.MountPOptions parseFrom(
      java.nio.ByteBuffer data,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static alluxio.grpc.MountPOptions parseFrom(
      alluxio.shaded.client.com.google.protobuf.ByteString data)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static alluxio.grpc.MountPOptions parseFrom(
      alluxio.shaded.client.com.google.protobuf.ByteString data,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static alluxio.grpc.MountPOptions parseFrom(byte[] data)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static alluxio.grpc.MountPOptions parseFrom(
      byte[] data,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static alluxio.grpc.MountPOptions parseFrom(java.alluxio.shaded.client.io.InputStream input)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static alluxio.grpc.MountPOptions parseFrom(
      java.alluxio.shaded.client.io.InputStream input,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static alluxio.grpc.MountPOptions parseDelimitedFrom(java.alluxio.shaded.client.io.InputStream input)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static alluxio.grpc.MountPOptions parseDelimitedFrom(
      java.alluxio.shaded.client.io.InputStream input,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static alluxio.grpc.MountPOptions parseFrom(
      alluxio.shaded.client.com.google.protobuf.CodedInputStream input)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static alluxio.grpc.MountPOptions parseFrom(
      alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.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(alluxio.grpc.MountPOptions 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(
      alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code alluxio.grpc.file.MountPOptions}
   */
  public static final class Builder extends
      alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:alluxio.grpc.file.MountPOptions)
      alluxio.grpc.MountPOptionsOrBuilder {
    public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_MountPOptions_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected alluxio.shaded.client.com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 2:
          return internalGetProperties();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected alluxio.shaded.client.com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 2:
          return internalGetMutableProperties();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_MountPOptions_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              alluxio.grpc.MountPOptions.class, alluxio.grpc.MountPOptions.Builder.class);
    }

    // Construct using alluxio.grpc.MountPOptions.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getCommonOptionsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      readOnly_ = false;
      bitField0_ = (bitField0_ & ~0x00000001);
      internalGetMutableProperties().clear();
      shared_ = false;
      bitField0_ = (bitField0_ & ~0x00000004);
      if (alluxio.shaded.client.com.onOptionsBuilder_ == null) {
        alluxio.shaded.client.com.onOptions_ = null;
      } else {
        alluxio.shaded.client.com.onOptionsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000008);
      return this;
    }

    @java.lang.Override
    public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_MountPOptions_descriptor;
    }

    @java.lang.Override
    public alluxio.grpc.MountPOptions getDefaultInstanceForType() {
      return alluxio.grpc.MountPOptions.getDefaultInstance();
    }

    @java.lang.Override
    public alluxio.grpc.MountPOptions build() {
      alluxio.grpc.MountPOptions result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public alluxio.grpc.MountPOptions buildPartial() {
      alluxio.grpc.MountPOptions result = new alluxio.grpc.MountPOptions(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.readOnly_ = readOnly_;
        to_bitField0_ |= 0x00000001;
      }
      result.properties_ = internalGetProperties();
      result.properties_.makeImmutable();
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.shared_ = shared_;
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        if (alluxio.shaded.client.com.onOptionsBuilder_ == null) {
          result.alluxio.shaded.client.com.onOptions_ = alluxio.shaded.client.com.onOptions_;
        } else {
          result.alluxio.shaded.client.com.onOptions_ = alluxio.shaded.client.com.onOptionsBuilder_.build();
        }
        to_bitField0_ |= 0x00000004;
      }
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        alluxio.shaded.client.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(alluxio.shaded.client.com.google.protobuf.Message other) {
      if (other instanceof alluxio.grpc.MountPOptions) {
        return mergeFrom((alluxio.grpc.MountPOptions)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(alluxio.grpc.MountPOptions other) {
      if (other == alluxio.grpc.MountPOptions.getDefaultInstance()) return this;
      if (other.hasReadOnly()) {
        setReadOnly(other.getReadOnly());
      }
      internalGetMutableProperties().mergeFrom(
          other.internalGetProperties());
      if (other.hasShared()) {
        setShared(other.getShared());
      }
      if (other.hasCommonOptions()) {
        mergeCommonOptions(other.getCommonOptions());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
        alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.alluxio.shaded.client.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {
              readOnly_ = input.readBool();
              bitField0_ |= 0x00000001;
              break;
            } // case 8
            case 18: {
              alluxio.shaded.client.com.google.protobuf.MapEntry
              properties__ = input.readMessage(
                  PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
              internalGetMutableProperties().getMutableMap().put(
                  properties__.getKey(), properties__.getValue());
              break;
            } // case 18
            case 24: {
              shared_ = input.readBool();
              bitField0_ |= 0x00000004;
              break;
            } // case 24
            case 34: {
              input.readMessage(
                  getCommonOptionsFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private boolean readOnly_ ;
    /**
     * optional bool readOnly = 1;
     * @return Whether the readOnly field is set.
     */
    @java.lang.Override
    public boolean hasReadOnly() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional bool readOnly = 1;
     * @return The readOnly.
     */
    @java.lang.Override
    public boolean getReadOnly() {
      return readOnly_;
    }
    /**
     * optional bool readOnly = 1;
     * @param value The readOnly to set.
     * @return This builder for chaining.
     */
    public Builder setReadOnly(boolean value) {
      bitField0_ |= 0x00000001;
      readOnly_ = value;
      onChanged();
      return this;
    }
    /**
     * optional bool readOnly = 1;
     * @return This builder for chaining.
     */
    public Builder clearReadOnly() {
      bitField0_ = (bitField0_ & ~0x00000001);
      readOnly_ = false;
      onChanged();
      return this;
    }

    private alluxio.shaded.client.com.google.protobuf.MapField<
        java.lang.String, java.lang.String> properties_;
    private alluxio.shaded.client.com.google.protobuf.MapField
    internalGetProperties() {
      if (properties_ == null) {
        return alluxio.shaded.client.com.google.protobuf.MapField.emptyMapField(
            PropertiesDefaultEntryHolder.defaultEntry);
      }
      return properties_;
    }
    private alluxio.shaded.client.com.google.protobuf.MapField
    internalGetMutableProperties() {
      onChanged();;
      if (properties_ == null) {
        properties_ = alluxio.shaded.client.com.google.protobuf.MapField.newMapField(
            PropertiesDefaultEntryHolder.defaultEntry);
      }
      if (!properties_.isMutable()) {
        properties_ = properties_.copy();
      }
      return properties_;
    }

    public int getPropertiesCount() {
      return internalGetProperties().getMap().size();
    }
    /**
     * map<string, string> properties = 2;
     */

    @java.lang.Override
    public boolean containsProperties(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      return internalGetProperties().getMap().containsKey(key);
    }
    /**
     * Use {@link #getPropertiesMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map getProperties() {
      return getPropertiesMap();
    }
    /**
     * map<string, string> properties = 2;
     */
    @java.lang.Override

    public java.util.Map getPropertiesMap() {
      return internalGetProperties().getMap();
    }
    /**
     * map<string, string> properties = 2;
     */
    @java.lang.Override

    public java.lang.String getPropertiesOrDefault(
        java.lang.String key,
        java.lang.String defaultValue) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map map =
          internalGetProperties().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * map<string, string> properties = 2;
     */
    @java.lang.Override

    public java.lang.String getPropertiesOrThrow(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map map =
          internalGetProperties().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearProperties() {
      internalGetMutableProperties().getMutableMap()
          .clear();
      return this;
    }
    /**
     * map<string, string> properties = 2;
     */

    public Builder removeProperties(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      internalGetMutableProperties().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map
    getMutableProperties() {
      return internalGetMutableProperties().getMutableMap();
    }
    /**
     * map<string, string> properties = 2;
     */
    public Builder putProperties(
        java.lang.String key,
        java.lang.String value) {
      if (key == null) { throw new NullPointerException("map key"); }
      if (value == null) {
  throw new NullPointerException("map value");
}

      internalGetMutableProperties().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * map<string, string> properties = 2;
     */

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

    private boolean shared_ ;
    /**
     * optional bool shared = 3;
     * @return Whether the shared field is set.
     */
    @java.lang.Override
    public boolean hasShared() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional bool shared = 3;
     * @return The shared.
     */
    @java.lang.Override
    public boolean getShared() {
      return shared_;
    }
    /**
     * optional bool shared = 3;
     * @param value The shared to set.
     * @return This builder for chaining.
     */
    public Builder setShared(boolean value) {
      bitField0_ |= 0x00000004;
      shared_ = value;
      onChanged();
      return this;
    }
    /**
     * optional bool shared = 3;
     * @return This builder for chaining.
     */
    public Builder clearShared() {
      bitField0_ = (bitField0_ & ~0x00000004);
      shared_ = false;
      onChanged();
      return this;
    }

    private alluxio.grpc.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions_;
    private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
        alluxio.grpc.FileSystemMasterCommonPOptions, alluxio.grpc.FileSystemMasterCommonPOptions.Builder, alluxio.grpc.FileSystemMasterCommonPOptionsOrBuilder> alluxio.shaded.client.com.onOptionsBuilder_;
    /**
     * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4;
     * @return Whether the alluxio.shaded.client.com.onOptions field is set.
     */
    public boolean hasCommonOptions() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4;
     * @return The alluxio.shaded.client.com.onOptions.
     */
    public alluxio.grpc.FileSystemMasterCommonPOptions getCommonOptions() {
      if (alluxio.shaded.client.com.onOptionsBuilder_ == null) {
        return alluxio.shaded.client.com.onOptions_ == null ? alluxio.grpc.FileSystemMasterCommonPOptions.getDefaultInstance() : alluxio.shaded.client.com.onOptions_;
      } else {
        return alluxio.shaded.client.com.onOptionsBuilder_.getMessage();
      }
    }
    /**
     * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4;
     */
    public Builder setCommonOptions(alluxio.grpc.FileSystemMasterCommonPOptions value) {
      if (alluxio.shaded.client.com.onOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        alluxio.shaded.client.com.onOptions_ = value;
        onChanged();
      } else {
        alluxio.shaded.client.com.onOptionsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      return this;
    }
    /**
     * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4;
     */
    public Builder setCommonOptions(
        alluxio.grpc.FileSystemMasterCommonPOptions.Builder builderForValue) {
      if (alluxio.shaded.client.com.onOptionsBuilder_ == null) {
        alluxio.shaded.client.com.onOptions_ = builderForValue.build();
        onChanged();
      } else {
        alluxio.shaded.client.com.onOptionsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000008;
      return this;
    }
    /**
     * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4;
     */
    public Builder mergeCommonOptions(alluxio.grpc.FileSystemMasterCommonPOptions value) {
      if (alluxio.shaded.client.com.onOptionsBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0) &&
            alluxio.shaded.client.com.onOptions_ != null &&
            alluxio.shaded.client.com.onOptions_ != alluxio.grpc.FileSystemMasterCommonPOptions.getDefaultInstance()) {
          alluxio.shaded.client.com.onOptions_ =
            alluxio.grpc.FileSystemMasterCommonPOptions.newBuilder(alluxio.shaded.client.com.onOptions_).mergeFrom(value).buildPartial();
        } else {
          alluxio.shaded.client.com.onOptions_ = value;
        }
        onChanged();
      } else {
        alluxio.shaded.client.com.onOptionsBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000008;
      return this;
    }
    /**
     * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4;
     */
    public Builder clearCommonOptions() {
      if (alluxio.shaded.client.com.onOptionsBuilder_ == null) {
        alluxio.shaded.client.com.onOptions_ = null;
        onChanged();
      } else {
        alluxio.shaded.client.com.onOptionsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000008);
      return this;
    }
    /**
     * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4;
     */
    public alluxio.grpc.FileSystemMasterCommonPOptions.Builder getCommonOptionsBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return getCommonOptionsFieldBuilder().getBuilder();
    }
    /**
     * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4;
     */
    public alluxio.grpc.FileSystemMasterCommonPOptionsOrBuilder getCommonOptionsOrBuilder() {
      if (alluxio.shaded.client.com.onOptionsBuilder_ != null) {
        return alluxio.shaded.client.com.onOptionsBuilder_.getMessageOrBuilder();
      } else {
        return alluxio.shaded.client.com.onOptions_ == null ?
            alluxio.grpc.FileSystemMasterCommonPOptions.getDefaultInstance() : alluxio.shaded.client.com.onOptions_;
      }
    }
    /**
     * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4;
     */
    private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
        alluxio.grpc.FileSystemMasterCommonPOptions, alluxio.grpc.FileSystemMasterCommonPOptions.Builder, alluxio.grpc.FileSystemMasterCommonPOptionsOrBuilder> 
        getCommonOptionsFieldBuilder() {
      if (alluxio.shaded.client.com.onOptionsBuilder_ == null) {
        alluxio.shaded.client.com.onOptionsBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
            alluxio.grpc.FileSystemMasterCommonPOptions, alluxio.grpc.FileSystemMasterCommonPOptions.Builder, alluxio.grpc.FileSystemMasterCommonPOptionsOrBuilder>(
                getCommonOptions(),
                getParentForChildren(),
                isClean());
        alluxio.shaded.client.com.onOptions_ = null;
      }
      return alluxio.shaded.client.com.onOptionsBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:alluxio.grpc.file.MountPOptions)
  }

  // @@protoc_insertion_point(class_scope:alluxio.grpc.file.MountPOptions)
  private static final alluxio.grpc.MountPOptions DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new alluxio.grpc.MountPOptions();
  }

  public static alluxio.grpc.MountPOptions getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  @java.lang.Deprecated public static final alluxio.shaded.client.com.google.protobuf.Parser
      PARSER = new alluxio.shaded.client.com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public MountPOptions parsePartialFrom(
        alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
        alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (alluxio.shaded.client.com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.alluxio.shaded.client.io.IOException e) {
        throw new alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

  public static alluxio.shaded.client.com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public alluxio.shaded.client.com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public alluxio.grpc.MountPOptions getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy