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

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

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

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

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

  private int bitField0_;
  public static final int BLOCKSIZEBYTES_FIELD_NUMBER = 1;
  private long blockSizeBytes_;
  /**
   * optional int64 blockSizeBytes = 1;
   * @return Whether the blockSizeBytes field is set.
   */
  @java.lang.Override
  public boolean hasBlockSizeBytes() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional int64 blockSizeBytes = 1;
   * @return The blockSizeBytes.
   */
  @java.lang.Override
  public long getBlockSizeBytes() {
    return blockSizeBytes_;
  }

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

  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 REPLICATIONMAX_FIELD_NUMBER = 4;
  private int replicationMax_;
  /**
   * optional int32 replicationMax = 4;
   * @return Whether the replicationMax field is set.
   */
  @java.lang.Override
  public boolean hasReplicationMax() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional int32 replicationMax = 4;
   * @return The replicationMax.
   */
  @java.lang.Override
  public int getReplicationMax() {
    return replicationMax_;
  }

  public static final int REPLICATIONMIN_FIELD_NUMBER = 5;
  private int replicationMin_;
  /**
   * optional int32 replicationMin = 5;
   * @return Whether the replicationMin field is set.
   */
  @java.lang.Override
  public boolean hasReplicationMin() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional int32 replicationMin = 5;
   * @return The replicationMin.
   */
  @java.lang.Override
  public int getReplicationMin() {
    return replicationMin_;
  }

  public static final int REPLICATIONDURABLE_FIELD_NUMBER = 6;
  private int replicationDurable_;
  /**
   * optional int32 replicationDurable = 6;
   * @return Whether the replicationDurable field is set.
   */
  @java.lang.Override
  public boolean hasReplicationDurable() {
    return ((bitField0_ & 0x00000020) != 0);
  }
  /**
   * optional int32 replicationDurable = 6;
   * @return The replicationDurable.
   */
  @java.lang.Override
  public int getReplicationDurable() {
    return replicationDurable_;
  }

  public static final int WRITETIER_FIELD_NUMBER = 7;
  private int writeTier_;
  /**
   * optional int32 writeTier = 7;
   * @return Whether the writeTier field is set.
   */
  @java.lang.Override
  public boolean hasWriteTier() {
    return ((bitField0_ & 0x00000040) != 0);
  }
  /**
   * optional int32 writeTier = 7;
   * @return The writeTier.
   */
  @java.lang.Override
  public int getWriteTier() {
    return writeTier_;
  }

  public static final int WRITETYPE_FIELD_NUMBER = 8;
  private int writeType_;
  /**
   * optional .alluxio.grpc.file.WritePType writeType = 8 [default = CACHE_THROUGH];
   * @return Whether the writeType field is set.
   */
  @java.lang.Override public boolean hasWriteType() {
    return ((bitField0_ & 0x00000080) != 0);
  }
  /**
   * optional .alluxio.grpc.file.WritePType writeType = 8 [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 = 9;
  private alluxio.grpc.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions_;
  /**
   * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 9;
   * @return Whether the alluxio.shaded.client.com.onOptions field is set.
   */
  @java.lang.Override
  public boolean hasCommonOptions() {
    return ((bitField0_ & 0x00000100) != 0);
  }
  /**
   * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 9;
   * @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 = 9;
   */
  @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 PERSISTENCEWAITTIME_FIELD_NUMBER = 10;
  private long persistenceWaitTime_;
  /**
   * optional int64 persistenceWaitTime = 10;
   * @return Whether the persistenceWaitTime field is set.
   */
  @java.lang.Override
  public boolean hasPersistenceWaitTime() {
    return ((bitField0_ & 0x00000200) != 0);
  }
  /**
   * optional int64 persistenceWaitTime = 10;
   * @return The persistenceWaitTime.
   */
  @java.lang.Override
  public long getPersistenceWaitTime() {
    return persistenceWaitTime_;
  }

  public static final int XATTR_FIELD_NUMBER = 11;
  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_CreateFilePOptions_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 = 11;
   */

  @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 = 11;
   */
  @java.lang.Override

  public java.util.Map getXattrMap() {
    return internalGetXattr().getMap();
  }
  /**
   * map<string, bytes> xattr = 11;
   */
  @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 = 11;
   */
  @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 = 12;
  private int xattrPropStrat_;
  /**
   * optional .alluxio.grpc.file.XAttrPropagationStrategy xattrPropStrat = 12 [default = NEW_PATHS];
   * @return Whether the xattrPropStrat field is set.
   */
  @java.lang.Override public boolean hasXattrPropStrat() {
    return ((bitField0_ & 0x00000400) != 0);
  }
  /**
   * optional .alluxio.grpc.file.XAttrPropagationStrategy xattrPropStrat = 12 [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 OVERWRITE_FIELD_NUMBER = 13;
  private boolean overwrite_;
  /**
   * optional bool overwrite = 13;
   * @return Whether the overwrite field is set.
   */
  @java.lang.Override
  public boolean hasOverwrite() {
    return ((bitField0_ & 0x00000800) != 0);
  }
  /**
   * optional bool overwrite = 13;
   * @return The overwrite.
   */
  @java.lang.Override
  public boolean getOverwrite() {
    return overwrite_;
  }

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

  public static final int WORKERLOCATION_FIELD_NUMBER = 15;
  private alluxio.grpc.WorkerNetAddress workerLocation_;
  /**
   * 
   * If specified, the data will be written to the certain worker
   * 
* * optional .alluxio.grpc.WorkerNetAddress workerLocation = 15; * @return Whether the workerLocation field is set. */ @java.lang.Override public boolean hasWorkerLocation() { return ((bitField0_ & 0x00002000) != 0); } /** *
   * If specified, the data will be written to the certain worker
   * 
* * optional .alluxio.grpc.WorkerNetAddress workerLocation = 15; * @return The workerLocation. */ @java.lang.Override public alluxio.grpc.WorkerNetAddress getWorkerLocation() { return workerLocation_ == null ? alluxio.grpc.WorkerNetAddress.getDefaultInstance() : workerLocation_; } /** *
   * If specified, the data will be written to the certain worker
   * 
* * optional .alluxio.grpc.WorkerNetAddress workerLocation = 15; */ @java.lang.Override public alluxio.grpc.WorkerNetAddressOrBuilder getWorkerLocationOrBuilder() { return workerLocation_ == null ? alluxio.grpc.WorkerNetAddress.getDefaultInstance() : workerLocation_; } public static final int ISATOMICWRITE_FIELD_NUMBER = 16; private boolean isAtomicWrite_; /** * optional bool isAtomicWrite = 16; * @return Whether the isAtomicWrite field is set. */ @java.lang.Override public boolean hasIsAtomicWrite() { return ((bitField0_ & 0x00004000) != 0); } /** * optional bool isAtomicWrite = 16; * @return The isAtomicWrite. */ @java.lang.Override public boolean getIsAtomicWrite() { return isAtomicWrite_; } public static final int USEMULTIPARTUPLOAD_FIELD_NUMBER = 17; private boolean useMultipartUpload_; /** * optional bool useMultipartUpload = 17; * @return Whether the useMultipartUpload field is set. */ @java.lang.Override public boolean hasUseMultipartUpload() { return ((bitField0_ & 0x00008000) != 0); } /** * optional bool useMultipartUpload = 17; * @return The useMultipartUpload. */ @java.lang.Override public boolean getUseMultipartUpload() { return useMultipartUpload_; } 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.writeInt64(1, blockSizeBytes_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, recursive_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getMode()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(4, replicationMax_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeInt32(5, replicationMin_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeInt32(6, replicationDurable_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeInt32(7, writeTier_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeEnum(8, writeType_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(9, getCommonOptions()); } if (((bitField0_ & 0x00000200) != 0)) { output.writeInt64(10, persistenceWaitTime_); } alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetXattr(), XattrDefaultEntryHolder.defaultEntry, 11); if (((bitField0_ & 0x00000400) != 0)) { output.writeEnum(12, xattrPropStrat_); } if (((bitField0_ & 0x00000800) != 0)) { output.writeBool(13, overwrite_); } if (((bitField0_ & 0x00001000) != 0)) { output.writeBool(14, checkS3BucketPath_); } if (((bitField0_ & 0x00002000) != 0)) { output.writeMessage(15, getWorkerLocation()); } if (((bitField0_ & 0x00004000) != 0)) { output.writeBool(16, isAtomicWrite_); } if (((bitField0_ & 0x00008000) != 0)) { output.writeBool(17, useMultipartUpload_); } 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.uteInt64Size(1, blockSizeBytes_); } if (((bitField0_ & 0x00000002) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteBoolSize(2, recursive_); } 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.uteInt32Size(4, replicationMax_); } if (((bitField0_ & 0x00000010) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteInt32Size(5, replicationMin_); } if (((bitField0_ & 0x00000020) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteInt32Size(6, replicationDurable_); } if (((bitField0_ & 0x00000040) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteInt32Size(7, writeTier_); } if (((bitField0_ & 0x00000080) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteEnumSize(8, writeType_); } if (((bitField0_ & 0x00000100) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteMessageSize(9, getCommonOptions()); } if (((bitField0_ & 0x00000200) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteInt64Size(10, persistenceWaitTime_); } 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(11, xattr__); } if (((bitField0_ & 0x00000400) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteEnumSize(12, xattrPropStrat_); } if (((bitField0_ & 0x00000800) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteBoolSize(13, overwrite_); } if (((bitField0_ & 0x00001000) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteBoolSize(14, checkS3BucketPath_); } if (((bitField0_ & 0x00002000) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteMessageSize(15, getWorkerLocation()); } if (((bitField0_ & 0x00004000) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteBoolSize(16, isAtomicWrite_); } if (((bitField0_ & 0x00008000) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteBoolSize(17, useMultipartUpload_); } 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.CreateFilePOptions)) { return super.equals(obj); } alluxio.grpc.CreateFilePOptions other = (alluxio.grpc.CreateFilePOptions) obj; if (hasBlockSizeBytes() != other.hasBlockSizeBytes()) return false; if (hasBlockSizeBytes()) { if (getBlockSizeBytes() != other.getBlockSizeBytes()) return false; } if (hasRecursive() != other.hasRecursive()) return false; if (hasRecursive()) { if (getRecursive() != other.getRecursive()) return false; } if (hasMode() != other.hasMode()) return false; if (hasMode()) { if (!getMode() .equals(other.getMode())) return false; } if (hasReplicationMax() != other.hasReplicationMax()) return false; if (hasReplicationMax()) { if (getReplicationMax() != other.getReplicationMax()) return false; } if (hasReplicationMin() != other.hasReplicationMin()) return false; if (hasReplicationMin()) { if (getReplicationMin() != other.getReplicationMin()) return false; } if (hasReplicationDurable() != other.hasReplicationDurable()) return false; if (hasReplicationDurable()) { if (getReplicationDurable() != other.getReplicationDurable()) return false; } if (hasWriteTier() != other.hasWriteTier()) return false; if (hasWriteTier()) { if (getWriteTier() != other.getWriteTier()) 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 (hasPersistenceWaitTime() != other.hasPersistenceWaitTime()) return false; if (hasPersistenceWaitTime()) { if (getPersistenceWaitTime() != other.getPersistenceWaitTime()) return false; } if (!internalGetXattr().equals( other.internalGetXattr())) return false; if (hasXattrPropStrat() != other.hasXattrPropStrat()) return false; if (hasXattrPropStrat()) { if (xattrPropStrat_ != other.xattrPropStrat_) return false; } if (hasOverwrite() != other.hasOverwrite()) return false; if (hasOverwrite()) { if (getOverwrite() != other.getOverwrite()) return false; } if (hasCheckS3BucketPath() != other.hasCheckS3BucketPath()) return false; if (hasCheckS3BucketPath()) { if (getCheckS3BucketPath() != other.getCheckS3BucketPath()) return false; } if (hasWorkerLocation() != other.hasWorkerLocation()) return false; if (hasWorkerLocation()) { if (!getWorkerLocation() .equals(other.getWorkerLocation())) return false; } if (hasIsAtomicWrite() != other.hasIsAtomicWrite()) return false; if (hasIsAtomicWrite()) { if (getIsAtomicWrite() != other.getIsAtomicWrite()) return false; } if (hasUseMultipartUpload() != other.hasUseMultipartUpload()) return false; if (hasUseMultipartUpload()) { if (getUseMultipartUpload() != other.getUseMultipartUpload()) 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 (hasBlockSizeBytes()) { hash = (37 * hash) + BLOCKSIZEBYTES_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong( getBlockSizeBytes()); } if (hasRecursive()) { hash = (37 * hash) + RECURSIVE_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean( getRecursive()); } if (hasMode()) { hash = (37 * hash) + MODE_FIELD_NUMBER; hash = (53 * hash) + getMode().hashCode(); } if (hasReplicationMax()) { hash = (37 * hash) + REPLICATIONMAX_FIELD_NUMBER; hash = (53 * hash) + getReplicationMax(); } if (hasReplicationMin()) { hash = (37 * hash) + REPLICATIONMIN_FIELD_NUMBER; hash = (53 * hash) + getReplicationMin(); } if (hasReplicationDurable()) { hash = (37 * hash) + REPLICATIONDURABLE_FIELD_NUMBER; hash = (53 * hash) + getReplicationDurable(); } if (hasWriteTier()) { hash = (37 * hash) + WRITETIER_FIELD_NUMBER; hash = (53 * hash) + getWriteTier(); } 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 (hasPersistenceWaitTime()) { hash = (37 * hash) + PERSISTENCEWAITTIME_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong( getPersistenceWaitTime()); } 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 (hasOverwrite()) { hash = (37 * hash) + OVERWRITE_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean( getOverwrite()); } if (hasCheckS3BucketPath()) { hash = (37 * hash) + CHECKS3BUCKETPATH_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean( getCheckS3BucketPath()); } if (hasWorkerLocation()) { hash = (37 * hash) + WORKERLOCATION_FIELD_NUMBER; hash = (53 * hash) + getWorkerLocation().hashCode(); } if (hasIsAtomicWrite()) { hash = (37 * hash) + ISATOMICWRITE_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean( getIsAtomicWrite()); } if (hasUseMultipartUpload()) { hash = (37 * hash) + USEMULTIPARTUPLOAD_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean( getUseMultipartUpload()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static alluxio.grpc.CreateFilePOptions parseFrom( java.nio.ByteBuffer data) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.grpc.CreateFilePOptions 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.CreateFilePOptions 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.CreateFilePOptions 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.CreateFilePOptions parseFrom(byte[] data) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.grpc.CreateFilePOptions 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.CreateFilePOptions 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.CreateFilePOptions 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.CreateFilePOptions 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.CreateFilePOptions 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.CreateFilePOptions 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.CreateFilePOptions 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.CreateFilePOptions 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.CreateFilePOptions} */ public static final class Builder extends alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:alluxio.grpc.file.CreateFilePOptions) alluxio.grpc.CreateFilePOptionsOrBuilder { public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_CreateFilePOptions_descriptor; } @SuppressWarnings({"rawtypes"}) protected alluxio.shaded.client.com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 11: 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 11: 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_CreateFilePOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.grpc.CreateFilePOptions.class, alluxio.grpc.CreateFilePOptions.Builder.class); } // Construct using alluxio.grpc.CreateFilePOptions.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(); getWorkerLocationFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); blockSizeBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); recursive_ = false; bitField0_ = (bitField0_ & ~0x00000002); if (modeBuilder_ == null) { mode_ = null; } else { modeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); replicationMax_ = 0; bitField0_ = (bitField0_ & ~0x00000008); replicationMin_ = 0; bitField0_ = (bitField0_ & ~0x00000010); replicationDurable_ = 0; bitField0_ = (bitField0_ & ~0x00000020); writeTier_ = 0; bitField0_ = (bitField0_ & ~0x00000040); writeType_ = 3; bitField0_ = (bitField0_ & ~0x00000080); if (alluxio.shaded.client.com.onOptionsBuilder_ == null) { alluxio.shaded.client.com.onOptions_ = null; } else { alluxio.shaded.client.com.onOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); persistenceWaitTime_ = 0L; bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableXattr().clear(); xattrPropStrat_ = 1; bitField0_ = (bitField0_ & ~0x00000800); overwrite_ = false; bitField0_ = (bitField0_ & ~0x00001000); checkS3BucketPath_ = false; bitField0_ = (bitField0_ & ~0x00002000); if (workerLocationBuilder_ == null) { workerLocation_ = null; } else { workerLocationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); isAtomicWrite_ = false; bitField0_ = (bitField0_ & ~0x00008000); useMultipartUpload_ = false; bitField0_ = (bitField0_ & ~0x00010000); return this; } @java.lang.Override public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_CreateFilePOptions_descriptor; } @java.lang.Override public alluxio.grpc.CreateFilePOptions getDefaultInstanceForType() { return alluxio.grpc.CreateFilePOptions.getDefaultInstance(); } @java.lang.Override public alluxio.grpc.CreateFilePOptions build() { alluxio.grpc.CreateFilePOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public alluxio.grpc.CreateFilePOptions buildPartial() { alluxio.grpc.CreateFilePOptions result = new alluxio.grpc.CreateFilePOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.blockSizeBytes_ = blockSizeBytes_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.recursive_ = recursive_; 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)) { result.replicationMax_ = replicationMax_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.replicationMin_ = replicationMin_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.replicationDurable_ = replicationDurable_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.writeTier_ = writeTier_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { to_bitField0_ |= 0x00000080; } result.writeType_ = writeType_; if (((from_bitField0_ & 0x00000100) != 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_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { result.persistenceWaitTime_ = persistenceWaitTime_; to_bitField0_ |= 0x00000200; } result.xattr_ = internalGetXattr(); result.xattr_.makeImmutable(); if (((from_bitField0_ & 0x00000800) != 0)) { to_bitField0_ |= 0x00000400; } result.xattrPropStrat_ = xattrPropStrat_; if (((from_bitField0_ & 0x00001000) != 0)) { result.overwrite_ = overwrite_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00002000) != 0)) { result.checkS3BucketPath_ = checkS3BucketPath_; to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00004000) != 0)) { if (workerLocationBuilder_ == null) { result.workerLocation_ = workerLocation_; } else { result.workerLocation_ = workerLocationBuilder_.build(); } to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00008000) != 0)) { result.isAtomicWrite_ = isAtomicWrite_; to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00010000) != 0)) { result.useMultipartUpload_ = useMultipartUpload_; to_bitField0_ |= 0x00008000; } 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.CreateFilePOptions) { return mergeFrom((alluxio.grpc.CreateFilePOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.grpc.CreateFilePOptions other) { if (other == alluxio.grpc.CreateFilePOptions.getDefaultInstance()) return this; if (other.hasBlockSizeBytes()) { setBlockSizeBytes(other.getBlockSizeBytes()); } if (other.hasRecursive()) { setRecursive(other.getRecursive()); } if (other.hasMode()) { mergeMode(other.getMode()); } if (other.hasReplicationMax()) { setReplicationMax(other.getReplicationMax()); } if (other.hasReplicationMin()) { setReplicationMin(other.getReplicationMin()); } if (other.hasReplicationDurable()) { setReplicationDurable(other.getReplicationDurable()); } if (other.hasWriteTier()) { setWriteTier(other.getWriteTier()); } if (other.hasWriteType()) { setWriteType(other.getWriteType()); } if (other.hasCommonOptions()) { mergeCommonOptions(other.getCommonOptions()); } if (other.hasPersistenceWaitTime()) { setPersistenceWaitTime(other.getPersistenceWaitTime()); } internalGetMutableXattr().mergeFrom( other.internalGetXattr()); if (other.hasXattrPropStrat()) { setXattrPropStrat(other.getXattrPropStrat()); } if (other.hasOverwrite()) { setOverwrite(other.getOverwrite()); } if (other.hasCheckS3BucketPath()) { setCheckS3BucketPath(other.getCheckS3BucketPath()); } if (other.hasWorkerLocation()) { mergeWorkerLocation(other.getWorkerLocation()); } if (other.hasIsAtomicWrite()) { setIsAtomicWrite(other.getIsAtomicWrite()); } if (other.hasUseMultipartUpload()) { setUseMultipartUpload(other.getUseMultipartUpload()); } 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: { blockSizeBytes_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { recursive_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getModeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 32: { replicationMax_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { replicationMin_ = input.readInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { replicationDurable_ = input.readInt32(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { writeTier_ = input.readInt32(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { int tmpRaw = input.readEnum(); alluxio.grpc.WritePType tmpValue = alluxio.grpc.WritePType.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(8, tmpRaw); } else { writeType_ = tmpRaw; bitField0_ |= 0x00000080; } break; } // case 64 case 74: { input.readMessage( getCommonOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 80: { persistenceWaitTime_ = input.readInt64(); bitField0_ |= 0x00000200; break; } // case 80 case 90: { alluxio.shaded.client.com.google.protobuf.MapEntry xattr__ = input.readMessage( XattrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableXattr().getMutableMap().put( xattr__.getKey(), xattr__.getValue()); break; } // case 90 case 96: { int tmpRaw = input.readEnum(); alluxio.grpc.XAttrPropagationStrategy tmpValue = alluxio.grpc.XAttrPropagationStrategy.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(12, tmpRaw); } else { xattrPropStrat_ = tmpRaw; bitField0_ |= 0x00000800; } break; } // case 96 case 104: { overwrite_ = input.readBool(); bitField0_ |= 0x00001000; break; } // case 104 case 112: { checkS3BucketPath_ = input.readBool(); bitField0_ |= 0x00002000; break; } // case 112 case 122: { input.readMessage( getWorkerLocationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00004000; break; } // case 122 case 128: { isAtomicWrite_ = input.readBool(); bitField0_ |= 0x00008000; break; } // case 128 case 136: { useMultipartUpload_ = input.readBool(); bitField0_ |= 0x00010000; break; } // case 136 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 long blockSizeBytes_ ; /** * optional int64 blockSizeBytes = 1; * @return Whether the blockSizeBytes field is set. */ @java.lang.Override public boolean hasBlockSizeBytes() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int64 blockSizeBytes = 1; * @return The blockSizeBytes. */ @java.lang.Override public long getBlockSizeBytes() { return blockSizeBytes_; } /** * optional int64 blockSizeBytes = 1; * @param value The blockSizeBytes to set. * @return This builder for chaining. */ public Builder setBlockSizeBytes(long value) { bitField0_ |= 0x00000001; blockSizeBytes_ = value; onChanged(); return this; } /** * optional int64 blockSizeBytes = 1; * @return This builder for chaining. */ public Builder clearBlockSizeBytes() { bitField0_ = (bitField0_ & ~0x00000001); blockSizeBytes_ = 0L; onChanged(); return this; } private boolean recursive_ ; /** * optional bool recursive = 2; * @return Whether the recursive field is set. */ @java.lang.Override public boolean hasRecursive() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bool recursive = 2; * @return The recursive. */ @java.lang.Override public boolean getRecursive() { return recursive_; } /** * optional bool recursive = 2; * @param value The recursive to set. * @return This builder for chaining. */ public Builder setRecursive(boolean value) { bitField0_ |= 0x00000002; recursive_ = value; onChanged(); return this; } /** * optional bool recursive = 2; * @return This builder for chaining. */ public Builder clearRecursive() { bitField0_ = (bitField0_ & ~0x00000002); recursive_ = 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 replicationMax_ ; /** * optional int32 replicationMax = 4; * @return Whether the replicationMax field is set. */ @java.lang.Override public boolean hasReplicationMax() { return ((bitField0_ & 0x00000008) != 0); } /** * optional int32 replicationMax = 4; * @return The replicationMax. */ @java.lang.Override public int getReplicationMax() { return replicationMax_; } /** * optional int32 replicationMax = 4; * @param value The replicationMax to set. * @return This builder for chaining. */ public Builder setReplicationMax(int value) { bitField0_ |= 0x00000008; replicationMax_ = value; onChanged(); return this; } /** * optional int32 replicationMax = 4; * @return This builder for chaining. */ public Builder clearReplicationMax() { bitField0_ = (bitField0_ & ~0x00000008); replicationMax_ = 0; onChanged(); return this; } private int replicationMin_ ; /** * optional int32 replicationMin = 5; * @return Whether the replicationMin field is set. */ @java.lang.Override public boolean hasReplicationMin() { return ((bitField0_ & 0x00000010) != 0); } /** * optional int32 replicationMin = 5; * @return The replicationMin. */ @java.lang.Override public int getReplicationMin() { return replicationMin_; } /** * optional int32 replicationMin = 5; * @param value The replicationMin to set. * @return This builder for chaining. */ public Builder setReplicationMin(int value) { bitField0_ |= 0x00000010; replicationMin_ = value; onChanged(); return this; } /** * optional int32 replicationMin = 5; * @return This builder for chaining. */ public Builder clearReplicationMin() { bitField0_ = (bitField0_ & ~0x00000010); replicationMin_ = 0; onChanged(); return this; } private int replicationDurable_ ; /** * optional int32 replicationDurable = 6; * @return Whether the replicationDurable field is set. */ @java.lang.Override public boolean hasReplicationDurable() { return ((bitField0_ & 0x00000020) != 0); } /** * optional int32 replicationDurable = 6; * @return The replicationDurable. */ @java.lang.Override public int getReplicationDurable() { return replicationDurable_; } /** * optional int32 replicationDurable = 6; * @param value The replicationDurable to set. * @return This builder for chaining. */ public Builder setReplicationDurable(int value) { bitField0_ |= 0x00000020; replicationDurable_ = value; onChanged(); return this; } /** * optional int32 replicationDurable = 6; * @return This builder for chaining. */ public Builder clearReplicationDurable() { bitField0_ = (bitField0_ & ~0x00000020); replicationDurable_ = 0; onChanged(); return this; } private int writeTier_ ; /** * optional int32 writeTier = 7; * @return Whether the writeTier field is set. */ @java.lang.Override public boolean hasWriteTier() { return ((bitField0_ & 0x00000040) != 0); } /** * optional int32 writeTier = 7; * @return The writeTier. */ @java.lang.Override public int getWriteTier() { return writeTier_; } /** * optional int32 writeTier = 7; * @param value The writeTier to set. * @return This builder for chaining. */ public Builder setWriteTier(int value) { bitField0_ |= 0x00000040; writeTier_ = value; onChanged(); return this; } /** * optional int32 writeTier = 7; * @return This builder for chaining. */ public Builder clearWriteTier() { bitField0_ = (bitField0_ & ~0x00000040); writeTier_ = 0; onChanged(); return this; } private int writeType_ = 3; /** * optional .alluxio.grpc.file.WritePType writeType = 8 [default = CACHE_THROUGH]; * @return Whether the writeType field is set. */ @java.lang.Override public boolean hasWriteType() { return ((bitField0_ & 0x00000080) != 0); } /** * optional .alluxio.grpc.file.WritePType writeType = 8 [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 = 8 [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_ |= 0x00000080; writeType_ = value.getNumber(); onChanged(); return this; } /** * optional .alluxio.grpc.file.WritePType writeType = 8 [default = CACHE_THROUGH]; * @return This builder for chaining. */ public Builder clearWriteType() { bitField0_ = (bitField0_ & ~0x00000080); 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 = 9; * @return Whether the alluxio.shaded.client.com.onOptions field is set. */ public boolean hasCommonOptions() { return ((bitField0_ & 0x00000100) != 0); } /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 9; * @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 = 9; */ 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_ |= 0x00000100; return this; } /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 9; */ 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_ |= 0x00000100; return this; } /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 9; */ public Builder mergeCommonOptions(alluxio.grpc.FileSystemMasterCommonPOptions value) { if (alluxio.shaded.client.com.onOptionsBuilder_ == null) { if (((bitField0_ & 0x00000100) != 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_ |= 0x00000100; return this; } /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 9; */ 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_ & ~0x00000100); return this; } /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 9; */ public alluxio.grpc.FileSystemMasterCommonPOptions.Builder getCommonOptionsBuilder() { bitField0_ |= 0x00000100; onChanged(); return getCommonOptionsFieldBuilder().getBuilder(); } /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 9; */ 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 = 9; */ 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 long persistenceWaitTime_ ; /** * optional int64 persistenceWaitTime = 10; * @return Whether the persistenceWaitTime field is set. */ @java.lang.Override public boolean hasPersistenceWaitTime() { return ((bitField0_ & 0x00000200) != 0); } /** * optional int64 persistenceWaitTime = 10; * @return The persistenceWaitTime. */ @java.lang.Override public long getPersistenceWaitTime() { return persistenceWaitTime_; } /** * optional int64 persistenceWaitTime = 10; * @param value The persistenceWaitTime to set. * @return This builder for chaining. */ public Builder setPersistenceWaitTime(long value) { bitField0_ |= 0x00000200; persistenceWaitTime_ = value; onChanged(); return this; } /** * optional int64 persistenceWaitTime = 10; * @return This builder for chaining. */ public Builder clearPersistenceWaitTime() { bitField0_ = (bitField0_ & ~0x00000200); persistenceWaitTime_ = 0L; onChanged(); return this; } 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 = 11; */ @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 = 11; */ @java.lang.Override public java.util.Map getXattrMap() { return internalGetXattr().getMap(); } /** * map<string, bytes> xattr = 11; */ @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 = 11; */ @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 = 11; */ 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 = 11; */ 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 = 11; */ public Builder putAllXattr( java.util.Map values) { internalGetMutableXattr().getMutableMap() .putAll(values); return this; } private int xattrPropStrat_ = 1; /** * optional .alluxio.grpc.file.XAttrPropagationStrategy xattrPropStrat = 12 [default = NEW_PATHS]; * @return Whether the xattrPropStrat field is set. */ @java.lang.Override public boolean hasXattrPropStrat() { return ((bitField0_ & 0x00000800) != 0); } /** * optional .alluxio.grpc.file.XAttrPropagationStrategy xattrPropStrat = 12 [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 = 12 [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_ |= 0x00000800; xattrPropStrat_ = value.getNumber(); onChanged(); return this; } /** * optional .alluxio.grpc.file.XAttrPropagationStrategy xattrPropStrat = 12 [default = NEW_PATHS]; * @return This builder for chaining. */ public Builder clearXattrPropStrat() { bitField0_ = (bitField0_ & ~0x00000800); xattrPropStrat_ = 1; onChanged(); return this; } private boolean overwrite_ ; /** * optional bool overwrite = 13; * @return Whether the overwrite field is set. */ @java.lang.Override public boolean hasOverwrite() { return ((bitField0_ & 0x00001000) != 0); } /** * optional bool overwrite = 13; * @return The overwrite. */ @java.lang.Override public boolean getOverwrite() { return overwrite_; } /** * optional bool overwrite = 13; * @param value The overwrite to set. * @return This builder for chaining. */ public Builder setOverwrite(boolean value) { bitField0_ |= 0x00001000; overwrite_ = value; onChanged(); return this; } /** * optional bool overwrite = 13; * @return This builder for chaining. */ public Builder clearOverwrite() { bitField0_ = (bitField0_ & ~0x00001000); overwrite_ = false; onChanged(); return this; } private boolean checkS3BucketPath_ ; /** * optional bool checkS3BucketPath = 14; * @return Whether the checkS3BucketPath field is set. */ @java.lang.Override public boolean hasCheckS3BucketPath() { return ((bitField0_ & 0x00002000) != 0); } /** * optional bool checkS3BucketPath = 14; * @return The checkS3BucketPath. */ @java.lang.Override public boolean getCheckS3BucketPath() { return checkS3BucketPath_; } /** * optional bool checkS3BucketPath = 14; * @param value The checkS3BucketPath to set. * @return This builder for chaining. */ public Builder setCheckS3BucketPath(boolean value) { bitField0_ |= 0x00002000; checkS3BucketPath_ = value; onChanged(); return this; } /** * optional bool checkS3BucketPath = 14; * @return This builder for chaining. */ public Builder clearCheckS3BucketPath() { bitField0_ = (bitField0_ & ~0x00002000); checkS3BucketPath_ = false; onChanged(); return this; } private alluxio.grpc.WorkerNetAddress workerLocation_; private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.WorkerNetAddress, alluxio.grpc.WorkerNetAddress.Builder, alluxio.grpc.WorkerNetAddressOrBuilder> workerLocationBuilder_; /** *
     * If specified, the data will be written to the certain worker
     * 
* * optional .alluxio.grpc.WorkerNetAddress workerLocation = 15; * @return Whether the workerLocation field is set. */ public boolean hasWorkerLocation() { return ((bitField0_ & 0x00004000) != 0); } /** *
     * If specified, the data will be written to the certain worker
     * 
* * optional .alluxio.grpc.WorkerNetAddress workerLocation = 15; * @return The workerLocation. */ public alluxio.grpc.WorkerNetAddress getWorkerLocation() { if (workerLocationBuilder_ == null) { return workerLocation_ == null ? alluxio.grpc.WorkerNetAddress.getDefaultInstance() : workerLocation_; } else { return workerLocationBuilder_.getMessage(); } } /** *
     * If specified, the data will be written to the certain worker
     * 
* * optional .alluxio.grpc.WorkerNetAddress workerLocation = 15; */ public Builder setWorkerLocation(alluxio.grpc.WorkerNetAddress value) { if (workerLocationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } workerLocation_ = value; onChanged(); } else { workerLocationBuilder_.setMessage(value); } bitField0_ |= 0x00004000; return this; } /** *
     * If specified, the data will be written to the certain worker
     * 
* * optional .alluxio.grpc.WorkerNetAddress workerLocation = 15; */ public Builder setWorkerLocation( alluxio.grpc.WorkerNetAddress.Builder builderForValue) { if (workerLocationBuilder_ == null) { workerLocation_ = builderForValue.build(); onChanged(); } else { workerLocationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; return this; } /** *
     * If specified, the data will be written to the certain worker
     * 
* * optional .alluxio.grpc.WorkerNetAddress workerLocation = 15; */ public Builder mergeWorkerLocation(alluxio.grpc.WorkerNetAddress value) { if (workerLocationBuilder_ == null) { if (((bitField0_ & 0x00004000) != 0) && workerLocation_ != null && workerLocation_ != alluxio.grpc.WorkerNetAddress.getDefaultInstance()) { workerLocation_ = alluxio.grpc.WorkerNetAddress.newBuilder(workerLocation_).mergeFrom(value).buildPartial(); } else { workerLocation_ = value; } onChanged(); } else { workerLocationBuilder_.mergeFrom(value); } bitField0_ |= 0x00004000; return this; } /** *
     * If specified, the data will be written to the certain worker
     * 
* * optional .alluxio.grpc.WorkerNetAddress workerLocation = 15; */ public Builder clearWorkerLocation() { if (workerLocationBuilder_ == null) { workerLocation_ = null; onChanged(); } else { workerLocationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); return this; } /** *
     * If specified, the data will be written to the certain worker
     * 
* * optional .alluxio.grpc.WorkerNetAddress workerLocation = 15; */ public alluxio.grpc.WorkerNetAddress.Builder getWorkerLocationBuilder() { bitField0_ |= 0x00004000; onChanged(); return getWorkerLocationFieldBuilder().getBuilder(); } /** *
     * If specified, the data will be written to the certain worker
     * 
* * optional .alluxio.grpc.WorkerNetAddress workerLocation = 15; */ public alluxio.grpc.WorkerNetAddressOrBuilder getWorkerLocationOrBuilder() { if (workerLocationBuilder_ != null) { return workerLocationBuilder_.getMessageOrBuilder(); } else { return workerLocation_ == null ? alluxio.grpc.WorkerNetAddress.getDefaultInstance() : workerLocation_; } } /** *
     * If specified, the data will be written to the certain worker
     * 
* * optional .alluxio.grpc.WorkerNetAddress workerLocation = 15; */ private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.WorkerNetAddress, alluxio.grpc.WorkerNetAddress.Builder, alluxio.grpc.WorkerNetAddressOrBuilder> getWorkerLocationFieldBuilder() { if (workerLocationBuilder_ == null) { workerLocationBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.WorkerNetAddress, alluxio.grpc.WorkerNetAddress.Builder, alluxio.grpc.WorkerNetAddressOrBuilder>( getWorkerLocation(), getParentForChildren(), isClean()); workerLocation_ = null; } return workerLocationBuilder_; } private boolean isAtomicWrite_ ; /** * optional bool isAtomicWrite = 16; * @return Whether the isAtomicWrite field is set. */ @java.lang.Override public boolean hasIsAtomicWrite() { return ((bitField0_ & 0x00008000) != 0); } /** * optional bool isAtomicWrite = 16; * @return The isAtomicWrite. */ @java.lang.Override public boolean getIsAtomicWrite() { return isAtomicWrite_; } /** * optional bool isAtomicWrite = 16; * @param value The isAtomicWrite to set. * @return This builder for chaining. */ public Builder setIsAtomicWrite(boolean value) { bitField0_ |= 0x00008000; isAtomicWrite_ = value; onChanged(); return this; } /** * optional bool isAtomicWrite = 16; * @return This builder for chaining. */ public Builder clearIsAtomicWrite() { bitField0_ = (bitField0_ & ~0x00008000); isAtomicWrite_ = false; onChanged(); return this; } private boolean useMultipartUpload_ ; /** * optional bool useMultipartUpload = 17; * @return Whether the useMultipartUpload field is set. */ @java.lang.Override public boolean hasUseMultipartUpload() { return ((bitField0_ & 0x00010000) != 0); } /** * optional bool useMultipartUpload = 17; * @return The useMultipartUpload. */ @java.lang.Override public boolean getUseMultipartUpload() { return useMultipartUpload_; } /** * optional bool useMultipartUpload = 17; * @param value The useMultipartUpload to set. * @return This builder for chaining. */ public Builder setUseMultipartUpload(boolean value) { bitField0_ |= 0x00010000; useMultipartUpload_ = value; onChanged(); return this; } /** * optional bool useMultipartUpload = 17; * @return This builder for chaining. */ public Builder clearUseMultipartUpload() { bitField0_ = (bitField0_ & ~0x00010000); useMultipartUpload_ = 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.CreateFilePOptions) } // @@protoc_insertion_point(class_scope:alluxio.grpc.file.CreateFilePOptions) private static final alluxio.grpc.CreateFilePOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new alluxio.grpc.CreateFilePOptions(); } public static alluxio.grpc.CreateFilePOptions 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 CreateFilePOptions 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.CreateFilePOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy