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

alluxio.grpc.CreateDirectoryPOptions Maven / Gradle / Ivy

// 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.CreateDirectoryPOptions}
 */
public final class CreateDirectoryPOptions extends
    alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:alluxio.grpc.file.CreateDirectoryPOptions)
    CreateDirectoryPOptionsOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CreateDirectoryPOptions.newBuilder() to construct.
  private CreateDirectoryPOptions(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private CreateDirectoryPOptions() {
    writeType_ = 3;
    xattrPropStrat_ = 1;
  }

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

  @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_CreateDirectoryPOptions_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected alluxio.shaded.client.com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 6:
        return internalGetXattr();
      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_CreateDirectoryPOptions_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            alluxio.grpc.CreateDirectoryPOptions.class, alluxio.grpc.CreateDirectoryPOptions.Builder.class);
  }

  private int bitField0_;
  public static final int RECURSIVE_FIELD_NUMBER = 1;
  private boolean recursive_;
  /**
   * optional bool recursive = 1;
   * @return Whether the recursive field is set.
   */
  @java.lang.Override
  public boolean hasRecursive() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional bool recursive = 1;
   * @return The recursive.
   */
  @java.lang.Override
  public boolean getRecursive() {
    return recursive_;
  }

  public static final int ALLOWEXISTS_FIELD_NUMBER = 2;
  private boolean allowExists_;
  /**
   * optional bool allowExists = 2;
   * @return Whether the allowExists field is set.
   */
  @java.lang.Override
  public boolean hasAllowExists() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional bool allowExists = 2;
   * @return The allowExists.
   */
  @java.lang.Override
  public boolean getAllowExists() {
    return allowExists_;
  }

  public static final int MODE_FIELD_NUMBER = 3;
  private alluxio.grpc.PMode mode_;
  /**
   * optional .alluxio.grpc.PMode mode = 3;
   * @return Whether the mode field is set.
   */
  @java.lang.Override
  public boolean hasMode() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional .alluxio.grpc.PMode mode = 3;
   * @return The mode.
   */
  @java.lang.Override
  public alluxio.grpc.PMode getMode() {
    return mode_ == null ? alluxio.grpc.PMode.getDefaultInstance() : mode_;
  }
  /**
   * optional .alluxio.grpc.PMode mode = 3;
   */
  @java.lang.Override
  public alluxio.grpc.PModeOrBuilder getModeOrBuilder() {
    return mode_ == null ? alluxio.grpc.PMode.getDefaultInstance() : mode_;
  }

  public static final int WRITETYPE_FIELD_NUMBER = 4;
  private int writeType_;
  /**
   * optional .alluxio.grpc.file.WritePType writeType = 4 [default = CACHE_THROUGH];
   * @return Whether the writeType field is set.
   */
  @java.lang.Override public boolean hasWriteType() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional .alluxio.grpc.file.WritePType writeType = 4 [default = CACHE_THROUGH];
   * @return The writeType.
   */
  @java.lang.Override public alluxio.grpc.WritePType getWriteType() {
    @SuppressWarnings("deprecation")
    alluxio.grpc.WritePType result = alluxio.grpc.WritePType.valueOf(writeType_);
    return result == null ? alluxio.grpc.WritePType.CACHE_THROUGH : result;
  }

  public static final int COMMONOPTIONS_FIELD_NUMBER = 5;
  private alluxio.grpc.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions_;
  /**
   * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 5;
   * @return Whether the alluxio.shaded.client.com.onOptions field is set.
   */
  @java.lang.Override
  public boolean hasCommonOptions() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 5;
   * @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 = 5;
   */
  @java.lang.Override
  public alluxio.grpc.FileSystemMasterCommonPOptionsOrBuilder getCommonOptionsOrBuilder() {
    return alluxio.shaded.client.com.onOptions_ == null ? alluxio.grpc.FileSystemMasterCommonPOptions.getDefaultInstance() : alluxio.shaded.client.com.onOptions_;
  }

  public static final int XATTR_FIELD_NUMBER = 6;
  private static final class XattrDefaultEntryHolder {
    static final alluxio.shaded.client.com.google.protobuf.MapEntry<
        java.lang.String, alluxio.shaded.client.com.google.protobuf.ByteString> defaultEntry =
            alluxio.shaded.client.com.google.protobuf.MapEntry
            .newDefaultInstance(
                alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_CreateDirectoryPOptions_XattrEntry_descriptor, 
                alluxio.shaded.client.com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                alluxio.shaded.client.com.google.protobuf.WireFormat.FieldType.BYTES,
                alluxio.shaded.client.com.google.protobuf.ByteString.EMPTY);
  }
  private alluxio.shaded.client.com.google.protobuf.MapField<
      java.lang.String, alluxio.shaded.client.com.google.protobuf.ByteString> xattr_;
  private alluxio.shaded.client.com.google.protobuf.MapField
  internalGetXattr() {
    if (xattr_ == null) {
      return alluxio.shaded.client.com.google.protobuf.MapField.emptyMapField(
          XattrDefaultEntryHolder.defaultEntry);
    }
    return xattr_;
  }

  public int getXattrCount() {
    return internalGetXattr().getMap().size();
  }
  /**
   * map<string, bytes> xattr = 6;
   */

  @java.lang.Override
  public boolean containsXattr(
      java.lang.String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    return internalGetXattr().getMap().containsKey(key);
  }
  /**
   * Use {@link #getXattrMap()} instead.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map getXattr() {
    return getXattrMap();
  }
  /**
   * map<string, bytes> xattr = 6;
   */
  @java.lang.Override

  public java.util.Map getXattrMap() {
    return internalGetXattr().getMap();
  }
  /**
   * map<string, bytes> xattr = 6;
   */
  @java.lang.Override

  public alluxio.shaded.client.com.google.protobuf.ByteString getXattrOrDefault(
      java.lang.String key,
      alluxio.shaded.client.com.google.protobuf.ByteString defaultValue) {
    if (key == null) { throw new NullPointerException("map key"); }
    java.util.Map map =
        internalGetXattr().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * map<string, bytes> xattr = 6;
   */
  @java.lang.Override

  public alluxio.shaded.client.com.google.protobuf.ByteString getXattrOrThrow(
      java.lang.String key) {
    if (key == null) { throw new NullPointerException("map key"); }
    java.util.Map map =
        internalGetXattr().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  public static final int XATTRPROPSTRAT_FIELD_NUMBER = 7;
  private int xattrPropStrat_;
  /**
   * optional .alluxio.grpc.file.XAttrPropagationStrategy xattrPropStrat = 7 [default = NEW_PATHS];
   * @return Whether the xattrPropStrat field is set.
   */
  @java.lang.Override public boolean hasXattrPropStrat() {
    return ((bitField0_ & 0x00000020) != 0);
  }
  /**
   * optional .alluxio.grpc.file.XAttrPropagationStrategy xattrPropStrat = 7 [default = NEW_PATHS];
   * @return The xattrPropStrat.
   */
  @java.lang.Override public alluxio.grpc.XAttrPropagationStrategy getXattrPropStrat() {
    @SuppressWarnings("deprecation")
    alluxio.grpc.XAttrPropagationStrategy result = alluxio.grpc.XAttrPropagationStrategy.valueOf(xattrPropStrat_);
    return result == null ? alluxio.grpc.XAttrPropagationStrategy.NEW_PATHS : result;
  }

  public static final int CHECKS3BUCKETPATH_FIELD_NUMBER = 8;
  private boolean checkS3BucketPath_;
  /**
   * optional bool checkS3BucketPath = 8;
   * @return Whether the checkS3BucketPath field is set.
   */
  @java.lang.Override
  public boolean hasCheckS3BucketPath() {
    return ((bitField0_ & 0x00000040) != 0);
  }
  /**
   * optional bool checkS3BucketPath = 8;
   * @return The checkS3BucketPath.
   */
  @java.lang.Override
  public boolean getCheckS3BucketPath() {
    return checkS3BucketPath_;
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    if (hasMode()) {
      if (!getMode().isInitialized()) {
        memoizedIsInitialized = 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, recursive_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeBool(2, allowExists_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(3, getMode());
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeEnum(4, writeType_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeMessage(5, getCommonOptions());
    }
    alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
      .serializeStringMapTo(
        output,
        internalGetXattr(),
        XattrDefaultEntryHolder.defaultEntry,
        6);
    if (((bitField0_ & 0x00000020) != 0)) {
      output.writeEnum(7, xattrPropStrat_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      output.writeBool(8, checkS3BucketPath_);
    }
    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, recursive_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteBoolSize(2, allowExists_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteMessageSize(3, getMode());
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteEnumSize(4, writeType_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteMessageSize(5, getCommonOptions());
    }
    for (java.util.Map.Entry entry
         : internalGetXattr().getMap().entrySet()) {
      alluxio.shaded.client.com.google.protobuf.MapEntry
      xattr__ = XattrDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
          .alluxio.shaded.client.com.uteMessageSize(6, xattr__);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteEnumSize(7, xattrPropStrat_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteBoolSize(8, checkS3BucketPath_);
    }
    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.CreateDirectoryPOptions)) {
      return super.equals(obj);
    }
    alluxio.grpc.CreateDirectoryPOptions other = (alluxio.grpc.CreateDirectoryPOptions) obj;

    if (hasRecursive() != other.hasRecursive()) return false;
    if (hasRecursive()) {
      if (getRecursive()
          != other.getRecursive()) return false;
    }
    if (hasAllowExists() != other.hasAllowExists()) return false;
    if (hasAllowExists()) {
      if (getAllowExists()
          != other.getAllowExists()) return false;
    }
    if (hasMode() != other.hasMode()) return false;
    if (hasMode()) {
      if (!getMode()
          .equals(other.getMode())) return false;
    }
    if (hasWriteType() != other.hasWriteType()) return false;
    if (hasWriteType()) {
      if (writeType_ != other.writeType_) return false;
    }
    if (hasCommonOptions() != other.hasCommonOptions()) return false;
    if (hasCommonOptions()) {
      if (!getCommonOptions()
          .equals(other.getCommonOptions())) return false;
    }
    if (!internalGetXattr().equals(
        other.internalGetXattr())) return false;
    if (hasXattrPropStrat() != other.hasXattrPropStrat()) return false;
    if (hasXattrPropStrat()) {
      if (xattrPropStrat_ != other.xattrPropStrat_) return false;
    }
    if (hasCheckS3BucketPath() != other.hasCheckS3BucketPath()) return false;
    if (hasCheckS3BucketPath()) {
      if (getCheckS3BucketPath()
          != other.getCheckS3BucketPath()) 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 (hasRecursive()) {
      hash = (37 * hash) + RECURSIVE_FIELD_NUMBER;
      hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
          getRecursive());
    }
    if (hasAllowExists()) {
      hash = (37 * hash) + ALLOWEXISTS_FIELD_NUMBER;
      hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
          getAllowExists());
    }
    if (hasMode()) {
      hash = (37 * hash) + MODE_FIELD_NUMBER;
      hash = (53 * hash) + getMode().hashCode();
    }
    if (hasWriteType()) {
      hash = (37 * hash) + WRITETYPE_FIELD_NUMBER;
      hash = (53 * hash) + writeType_;
    }
    if (hasCommonOptions()) {
      hash = (37 * hash) + COMMONOPTIONS_FIELD_NUMBER;
      hash = (53 * hash) + getCommonOptions().hashCode();
    }
    if (!internalGetXattr().getMap().isEmpty()) {
      hash = (37 * hash) + XATTR_FIELD_NUMBER;
      hash = (53 * hash) + internalGetXattr().hashCode();
    }
    if (hasXattrPropStrat()) {
      hash = (37 * hash) + XATTRPROPSTRAT_FIELD_NUMBER;
      hash = (53 * hash) + xattrPropStrat_;
    }
    if (hasCheckS3BucketPath()) {
      hash = (37 * hash) + CHECKS3BUCKETPATH_FIELD_NUMBER;
      hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
          getCheckS3BucketPath());
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static alluxio.grpc.CreateDirectoryPOptions parseFrom(
      java.nio.ByteBuffer data)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static alluxio.grpc.CreateDirectoryPOptions 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.CreateDirectoryPOptions 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.CreateDirectoryPOptions 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.CreateDirectoryPOptions parseFrom(byte[] data)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static alluxio.grpc.CreateDirectoryPOptions 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.CreateDirectoryPOptions 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.CreateDirectoryPOptions 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.CreateDirectoryPOptions 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.CreateDirectoryPOptions 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.CreateDirectoryPOptions 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.CreateDirectoryPOptions 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.CreateDirectoryPOptions 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.CreateDirectoryPOptions}
   */
  public static final class Builder extends
      alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:alluxio.grpc.file.CreateDirectoryPOptions)
      alluxio.grpc.CreateDirectoryPOptionsOrBuilder {
    public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_CreateDirectoryPOptions_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected alluxio.shaded.client.com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 6:
          return internalGetXattr();
        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 6:
          return internalGetMutableXattr();
        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_CreateDirectoryPOptions_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              alluxio.grpc.CreateDirectoryPOptions.class, alluxio.grpc.CreateDirectoryPOptions.Builder.class);
    }

    // Construct using alluxio.grpc.CreateDirectoryPOptions.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) {
        getModeFieldBuilder();
        getCommonOptionsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      recursive_ = false;
      bitField0_ = (bitField0_ & ~0x00000001);
      allowExists_ = false;
      bitField0_ = (bitField0_ & ~0x00000002);
      if (modeBuilder_ == null) {
        mode_ = null;
      } else {
        modeBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000004);
      writeType_ = 3;
      bitField0_ = (bitField0_ & ~0x00000008);
      if (alluxio.shaded.client.com.onOptionsBuilder_ == null) {
        alluxio.shaded.client.com.onOptions_ = null;
      } else {
        alluxio.shaded.client.com.onOptionsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000010);
      internalGetMutableXattr().clear();
      xattrPropStrat_ = 1;
      bitField0_ = (bitField0_ & ~0x00000040);
      checkS3BucketPath_ = false;
      bitField0_ = (bitField0_ & ~0x00000080);
      return this;
    }

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

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

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

    @java.lang.Override
    public alluxio.grpc.CreateDirectoryPOptions buildPartial() {
      alluxio.grpc.CreateDirectoryPOptions result = new alluxio.grpc.CreateDirectoryPOptions(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.recursive_ = recursive_;
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.allowExists_ = allowExists_;
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        if (modeBuilder_ == null) {
          result.mode_ = mode_;
        } else {
          result.mode_ = modeBuilder_.build();
        }
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        to_bitField0_ |= 0x00000008;
      }
      result.writeType_ = writeType_;
      if (((from_bitField0_ & 0x00000010) != 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_ |= 0x00000010;
      }
      result.xattr_ = internalGetXattr();
      result.xattr_.makeImmutable();
      if (((from_bitField0_ & 0x00000040) != 0)) {
        to_bitField0_ |= 0x00000020;
      }
      result.xattrPropStrat_ = xattrPropStrat_;
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.checkS3BucketPath_ = checkS3BucketPath_;
        to_bitField0_ |= 0x00000040;
      }
      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.CreateDirectoryPOptions) {
        return mergeFrom((alluxio.grpc.CreateDirectoryPOptions)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(alluxio.grpc.CreateDirectoryPOptions other) {
      if (other == alluxio.grpc.CreateDirectoryPOptions.getDefaultInstance()) return this;
      if (other.hasRecursive()) {
        setRecursive(other.getRecursive());
      }
      if (other.hasAllowExists()) {
        setAllowExists(other.getAllowExists());
      }
      if (other.hasMode()) {
        mergeMode(other.getMode());
      }
      if (other.hasWriteType()) {
        setWriteType(other.getWriteType());
      }
      if (other.hasCommonOptions()) {
        mergeCommonOptions(other.getCommonOptions());
      }
      internalGetMutableXattr().mergeFrom(
          other.internalGetXattr());
      if (other.hasXattrPropStrat()) {
        setXattrPropStrat(other.getXattrPropStrat());
      }
      if (other.hasCheckS3BucketPath()) {
        setCheckS3BucketPath(other.getCheckS3BucketPath());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      if (hasMode()) {
        if (!getMode().isInitialized()) {
          return false;
        }
      }
      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: {
              recursive_ = input.readBool();
              bitField0_ |= 0x00000001;
              break;
            } // case 8
            case 16: {
              allowExists_ = input.readBool();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 26: {
              input.readMessage(
                  getModeFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 32: {
              int tmpRaw = input.readEnum();
              alluxio.grpc.WritePType tmpValue =
                  alluxio.grpc.WritePType.forNumber(tmpRaw);
              if (tmpValue == null) {
                mergeUnknownVarintField(4, tmpRaw);
              } else {
                writeType_ = tmpRaw;
                bitField0_ |= 0x00000008;
              }
              break;
            } // case 32
            case 42: {
              input.readMessage(
                  getCommonOptionsFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000010;
              break;
            } // case 42
            case 50: {
              alluxio.shaded.client.com.google.protobuf.MapEntry
              xattr__ = input.readMessage(
                  XattrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
              internalGetMutableXattr().getMutableMap().put(
                  xattr__.getKey(), xattr__.getValue());
              break;
            } // case 50
            case 56: {
              int tmpRaw = input.readEnum();
              alluxio.grpc.XAttrPropagationStrategy tmpValue =
                  alluxio.grpc.XAttrPropagationStrategy.forNumber(tmpRaw);
              if (tmpValue == null) {
                mergeUnknownVarintField(7, tmpRaw);
              } else {
                xattrPropStrat_ = tmpRaw;
                bitField0_ |= 0x00000040;
              }
              break;
            } // case 56
            case 64: {
              checkS3BucketPath_ = input.readBool();
              bitField0_ |= 0x00000080;
              break;
            } // case 64
            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 recursive_ ;
    /**
     * optional bool recursive = 1;
     * @return Whether the recursive field is set.
     */
    @java.lang.Override
    public boolean hasRecursive() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional bool recursive = 1;
     * @return The recursive.
     */
    @java.lang.Override
    public boolean getRecursive() {
      return recursive_;
    }
    /**
     * optional bool recursive = 1;
     * @param value The recursive to set.
     * @return This builder for chaining.
     */
    public Builder setRecursive(boolean value) {
      bitField0_ |= 0x00000001;
      recursive_ = value;
      onChanged();
      return this;
    }
    /**
     * optional bool recursive = 1;
     * @return This builder for chaining.
     */
    public Builder clearRecursive() {
      bitField0_ = (bitField0_ & ~0x00000001);
      recursive_ = false;
      onChanged();
      return this;
    }

    private boolean allowExists_ ;
    /**
     * optional bool allowExists = 2;
     * @return Whether the allowExists field is set.
     */
    @java.lang.Override
    public boolean hasAllowExists() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional bool allowExists = 2;
     * @return The allowExists.
     */
    @java.lang.Override
    public boolean getAllowExists() {
      return allowExists_;
    }
    /**
     * optional bool allowExists = 2;
     * @param value The allowExists to set.
     * @return This builder for chaining.
     */
    public Builder setAllowExists(boolean value) {
      bitField0_ |= 0x00000002;
      allowExists_ = value;
      onChanged();
      return this;
    }
    /**
     * optional bool allowExists = 2;
     * @return This builder for chaining.
     */
    public Builder clearAllowExists() {
      bitField0_ = (bitField0_ & ~0x00000002);
      allowExists_ = false;
      onChanged();
      return this;
    }

    private alluxio.grpc.PMode mode_;
    private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
        alluxio.grpc.PMode, alluxio.grpc.PMode.Builder, alluxio.grpc.PModeOrBuilder> modeBuilder_;
    /**
     * optional .alluxio.grpc.PMode mode = 3;
     * @return Whether the mode field is set.
     */
    public boolean hasMode() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional .alluxio.grpc.PMode mode = 3;
     * @return The mode.
     */
    public alluxio.grpc.PMode getMode() {
      if (modeBuilder_ == null) {
        return mode_ == null ? alluxio.grpc.PMode.getDefaultInstance() : mode_;
      } else {
        return modeBuilder_.getMessage();
      }
    }
    /**
     * optional .alluxio.grpc.PMode mode = 3;
     */
    public Builder setMode(alluxio.grpc.PMode value) {
      if (modeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        mode_ = value;
        onChanged();
      } else {
        modeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      return this;
    }
    /**
     * optional .alluxio.grpc.PMode mode = 3;
     */
    public Builder setMode(
        alluxio.grpc.PMode.Builder builderForValue) {
      if (modeBuilder_ == null) {
        mode_ = builderForValue.build();
        onChanged();
      } else {
        modeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      return this;
    }
    /**
     * optional .alluxio.grpc.PMode mode = 3;
     */
    public Builder mergeMode(alluxio.grpc.PMode value) {
      if (modeBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0) &&
            mode_ != null &&
            mode_ != alluxio.grpc.PMode.getDefaultInstance()) {
          mode_ =
            alluxio.grpc.PMode.newBuilder(mode_).mergeFrom(value).buildPartial();
        } else {
          mode_ = value;
        }
        onChanged();
      } else {
        modeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000004;
      return this;
    }
    /**
     * optional .alluxio.grpc.PMode mode = 3;
     */
    public Builder clearMode() {
      if (modeBuilder_ == null) {
        mode_ = null;
        onChanged();
      } else {
        modeBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000004);
      return this;
    }
    /**
     * optional .alluxio.grpc.PMode mode = 3;
     */
    public alluxio.grpc.PMode.Builder getModeBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getModeFieldBuilder().getBuilder();
    }
    /**
     * optional .alluxio.grpc.PMode mode = 3;
     */
    public alluxio.grpc.PModeOrBuilder getModeOrBuilder() {
      if (modeBuilder_ != null) {
        return modeBuilder_.getMessageOrBuilder();
      } else {
        return mode_ == null ?
            alluxio.grpc.PMode.getDefaultInstance() : mode_;
      }
    }
    /**
     * optional .alluxio.grpc.PMode mode = 3;
     */
    private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
        alluxio.grpc.PMode, alluxio.grpc.PMode.Builder, alluxio.grpc.PModeOrBuilder> 
        getModeFieldBuilder() {
      if (modeBuilder_ == null) {
        modeBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
            alluxio.grpc.PMode, alluxio.grpc.PMode.Builder, alluxio.grpc.PModeOrBuilder>(
                getMode(),
                getParentForChildren(),
                isClean());
        mode_ = null;
      }
      return modeBuilder_;
    }

    private int writeType_ = 3;
    /**
     * optional .alluxio.grpc.file.WritePType writeType = 4 [default = CACHE_THROUGH];
     * @return Whether the writeType field is set.
     */
    @java.lang.Override public boolean hasWriteType() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional .alluxio.grpc.file.WritePType writeType = 4 [default = CACHE_THROUGH];
     * @return The writeType.
     */
    @java.lang.Override
    public alluxio.grpc.WritePType getWriteType() {
      @SuppressWarnings("deprecation")
      alluxio.grpc.WritePType result = alluxio.grpc.WritePType.valueOf(writeType_);
      return result == null ? alluxio.grpc.WritePType.CACHE_THROUGH : result;
    }
    /**
     * optional .alluxio.grpc.file.WritePType writeType = 4 [default = CACHE_THROUGH];
     * @param value The writeType to set.
     * @return This builder for chaining.
     */
    public Builder setWriteType(alluxio.grpc.WritePType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000008;
      writeType_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * optional .alluxio.grpc.file.WritePType writeType = 4 [default = CACHE_THROUGH];
     * @return This builder for chaining.
     */
    public Builder clearWriteType() {
      bitField0_ = (bitField0_ & ~0x00000008);
      writeType_ = 3;
      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 = 5;
     * @return Whether the alluxio.shaded.client.com.onOptions field is set.
     */
    public boolean hasCommonOptions() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 5;
     * @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 = 5;
     */
    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_ |= 0x00000010;
      return this;
    }
    /**
     * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 5;
     */
    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_ |= 0x00000010;
      return this;
    }
    /**
     * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 5;
     */
    public Builder mergeCommonOptions(alluxio.grpc.FileSystemMasterCommonPOptions value) {
      if (alluxio.shaded.client.com.onOptionsBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 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_ |= 0x00000010;
      return this;
    }
    /**
     * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 5;
     */
    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_ & ~0x00000010);
      return this;
    }
    /**
     * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 5;
     */
    public alluxio.grpc.FileSystemMasterCommonPOptions.Builder getCommonOptionsBuilder() {
      bitField0_ |= 0x00000010;
      onChanged();
      return getCommonOptionsFieldBuilder().getBuilder();
    }
    /**
     * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 5;
     */
    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 = 5;
     */
    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_;
    }

    private alluxio.shaded.client.com.google.protobuf.MapField<
        java.lang.String, alluxio.shaded.client.com.google.protobuf.ByteString> xattr_;
    private alluxio.shaded.client.com.google.protobuf.MapField
    internalGetXattr() {
      if (xattr_ == null) {
        return alluxio.shaded.client.com.google.protobuf.MapField.emptyMapField(
            XattrDefaultEntryHolder.defaultEntry);
      }
      return xattr_;
    }
    private alluxio.shaded.client.com.google.protobuf.MapField
    internalGetMutableXattr() {
      onChanged();;
      if (xattr_ == null) {
        xattr_ = alluxio.shaded.client.com.google.protobuf.MapField.newMapField(
            XattrDefaultEntryHolder.defaultEntry);
      }
      if (!xattr_.isMutable()) {
        xattr_ = xattr_.copy();
      }
      return xattr_;
    }

    public int getXattrCount() {
      return internalGetXattr().getMap().size();
    }
    /**
     * map<string, bytes> xattr = 6;
     */

    @java.lang.Override
    public boolean containsXattr(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      return internalGetXattr().getMap().containsKey(key);
    }
    /**
     * Use {@link #getXattrMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map getXattr() {
      return getXattrMap();
    }
    /**
     * map<string, bytes> xattr = 6;
     */
    @java.lang.Override

    public java.util.Map getXattrMap() {
      return internalGetXattr().getMap();
    }
    /**
     * map<string, bytes> xattr = 6;
     */
    @java.lang.Override

    public alluxio.shaded.client.com.google.protobuf.ByteString getXattrOrDefault(
        java.lang.String key,
        alluxio.shaded.client.com.google.protobuf.ByteString defaultValue) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map map =
          internalGetXattr().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * map<string, bytes> xattr = 6;
     */
    @java.lang.Override

    public alluxio.shaded.client.com.google.protobuf.ByteString getXattrOrThrow(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map map =
          internalGetXattr().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearXattr() {
      internalGetMutableXattr().getMutableMap()
          .clear();
      return this;
    }
    /**
     * map<string, bytes> xattr = 6;
     */

    public Builder removeXattr(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      internalGetMutableXattr().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map
    getMutableXattr() {
      return internalGetMutableXattr().getMutableMap();
    }
    /**
     * map<string, bytes> xattr = 6;
     */
    public Builder putXattr(
        java.lang.String key,
        alluxio.shaded.client.com.google.protobuf.ByteString value) {
      if (key == null) { throw new NullPointerException("map key"); }
      if (value == null) {
  throw new NullPointerException("map value");
}

      internalGetMutableXattr().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * map<string, bytes> xattr = 6;
     */

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

    private int xattrPropStrat_ = 1;
    /**
     * optional .alluxio.grpc.file.XAttrPropagationStrategy xattrPropStrat = 7 [default = NEW_PATHS];
     * @return Whether the xattrPropStrat field is set.
     */
    @java.lang.Override public boolean hasXattrPropStrat() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     * optional .alluxio.grpc.file.XAttrPropagationStrategy xattrPropStrat = 7 [default = NEW_PATHS];
     * @return The xattrPropStrat.
     */
    @java.lang.Override
    public alluxio.grpc.XAttrPropagationStrategy getXattrPropStrat() {
      @SuppressWarnings("deprecation")
      alluxio.grpc.XAttrPropagationStrategy result = alluxio.grpc.XAttrPropagationStrategy.valueOf(xattrPropStrat_);
      return result == null ? alluxio.grpc.XAttrPropagationStrategy.NEW_PATHS : result;
    }
    /**
     * optional .alluxio.grpc.file.XAttrPropagationStrategy xattrPropStrat = 7 [default = NEW_PATHS];
     * @param value The xattrPropStrat to set.
     * @return This builder for chaining.
     */
    public Builder setXattrPropStrat(alluxio.grpc.XAttrPropagationStrategy value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000040;
      xattrPropStrat_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * optional .alluxio.grpc.file.XAttrPropagationStrategy xattrPropStrat = 7 [default = NEW_PATHS];
     * @return This builder for chaining.
     */
    public Builder clearXattrPropStrat() {
      bitField0_ = (bitField0_ & ~0x00000040);
      xattrPropStrat_ = 1;
      onChanged();
      return this;
    }

    private boolean checkS3BucketPath_ ;
    /**
     * optional bool checkS3BucketPath = 8;
     * @return Whether the checkS3BucketPath field is set.
     */
    @java.lang.Override
    public boolean hasCheckS3BucketPath() {
      return ((bitField0_ & 0x00000080) != 0);
    }
    /**
     * optional bool checkS3BucketPath = 8;
     * @return The checkS3BucketPath.
     */
    @java.lang.Override
    public boolean getCheckS3BucketPath() {
      return checkS3BucketPath_;
    }
    /**
     * optional bool checkS3BucketPath = 8;
     * @param value The checkS3BucketPath to set.
     * @return This builder for chaining.
     */
    public Builder setCheckS3BucketPath(boolean value) {
      bitField0_ |= 0x00000080;
      checkS3BucketPath_ = value;
      onChanged();
      return this;
    }
    /**
     * optional bool checkS3BucketPath = 8;
     * @return This builder for chaining.
     */
    public Builder clearCheckS3BucketPath() {
      bitField0_ = (bitField0_ & ~0x00000080);
      checkS3BucketPath_ = false;
      onChanged();
      return this;
    }
    @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.CreateDirectoryPOptions)
  }

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

  public static alluxio.grpc.CreateDirectoryPOptions 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 CreateDirectoryPOptions 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.CreateDirectoryPOptions getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy