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

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

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

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

  @java.lang.Override
  protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_LoadMetadataPOptions_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            alluxio.grpc.LoadMetadataPOptions.class, alluxio.grpc.LoadMetadataPOptions.Builder.class);
  }

  private int bitField0_;
  public static final int RECURSIVE_FIELD_NUMBER = 1;
  private boolean recursive_;
  /**
   * 
   ** whether to load metadata recursively 
   * 
* * optional bool recursive = 1; * @return Whether the recursive field is set. */ @java.lang.Override public boolean hasRecursive() { return ((bitField0_ & 0x00000001) != 0); } /** *
   ** whether to load metadata recursively 
   * 
* * optional bool recursive = 1; * @return The recursive. */ @java.lang.Override public boolean getRecursive() { return recursive_; } public static final int CREATEANCESTORS_FIELD_NUMBER = 2; private boolean createAncestors_; /** * optional bool createAncestors = 2; * @return Whether the createAncestors field is set. */ @java.lang.Override public boolean hasCreateAncestors() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bool createAncestors = 2; * @return The createAncestors. */ @java.lang.Override public boolean getCreateAncestors() { return createAncestors_; } public static final int LOADDESCENDANTTYPE_FIELD_NUMBER = 3; private int loadDescendantType_; /** * optional .alluxio.grpc.fscommon.LoadDescendantPType loadDescendantType = 3; * @return Whether the loadDescendantType field is set. */ @java.lang.Override public boolean hasLoadDescendantType() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .alluxio.grpc.fscommon.LoadDescendantPType loadDescendantType = 3; * @return The loadDescendantType. */ @java.lang.Override public alluxio.grpc.LoadDescendantPType getLoadDescendantType() { @SuppressWarnings("deprecation") alluxio.grpc.LoadDescendantPType result = alluxio.grpc.LoadDescendantPType.valueOf(loadDescendantType_); return result == null ? alluxio.grpc.LoadDescendantPType.NONE : result; } public static final int COMMONOPTIONS_FIELD_NUMBER = 4; private alluxio.grpc.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions_; /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4; * @return Whether the alluxio.shaded.client.com.onOptions field is set. */ @java.lang.Override public boolean hasCommonOptions() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4; * @return The alluxio.shaded.client.com.onOptions. */ @java.lang.Override public alluxio.grpc.FileSystemMasterCommonPOptions getCommonOptions() { return alluxio.shaded.client.com.onOptions_ == null ? alluxio.grpc.FileSystemMasterCommonPOptions.getDefaultInstance() : alluxio.shaded.client.com.onOptions_; } /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4; */ @java.lang.Override public alluxio.grpc.FileSystemMasterCommonPOptionsOrBuilder getCommonOptionsOrBuilder() { return alluxio.shaded.client.com.onOptions_ == null ? alluxio.grpc.FileSystemMasterCommonPOptions.getDefaultInstance() : alluxio.shaded.client.com.onOptions_; } public static final int LOADTYPE_FIELD_NUMBER = 5; private int loadType_; /** * optional .alluxio.grpc.file.LoadMetadataPType loadType = 5; * @return Whether the loadType field is set. */ @java.lang.Override public boolean hasLoadType() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .alluxio.grpc.file.LoadMetadataPType loadType = 5; * @return The loadType. */ @java.lang.Override public alluxio.grpc.LoadMetadataPType getLoadType() { @SuppressWarnings("deprecation") alluxio.grpc.LoadMetadataPType result = alluxio.grpc.LoadMetadataPType.valueOf(loadType_); return result == null ? alluxio.grpc.LoadMetadataPType.NEVER : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(alluxio.shaded.client.com.google.protobuf.CodedOutputStream output) throws java.alluxio.shaded.client.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, recursive_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, createAncestors_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(3, loadDescendantType_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getCommonOptions()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(5, loadType_); } 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, createAncestors_); } if (((bitField0_ & 0x00000004) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteEnumSize(3, loadDescendantType_); } if (((bitField0_ & 0x00000008) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteMessageSize(4, getCommonOptions()); } if (((bitField0_ & 0x00000010) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteEnumSize(5, loadType_); } 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.LoadMetadataPOptions)) { return super.equals(obj); } alluxio.grpc.LoadMetadataPOptions other = (alluxio.grpc.LoadMetadataPOptions) obj; if (hasRecursive() != other.hasRecursive()) return false; if (hasRecursive()) { if (getRecursive() != other.getRecursive()) return false; } if (hasCreateAncestors() != other.hasCreateAncestors()) return false; if (hasCreateAncestors()) { if (getCreateAncestors() != other.getCreateAncestors()) return false; } if (hasLoadDescendantType() != other.hasLoadDescendantType()) return false; if (hasLoadDescendantType()) { if (loadDescendantType_ != other.loadDescendantType_) return false; } if (hasCommonOptions() != other.hasCommonOptions()) return false; if (hasCommonOptions()) { if (!getCommonOptions() .equals(other.getCommonOptions())) return false; } if (hasLoadType() != other.hasLoadType()) return false; if (hasLoadType()) { if (loadType_ != other.loadType_) 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 (hasCreateAncestors()) { hash = (37 * hash) + CREATEANCESTORS_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean( getCreateAncestors()); } if (hasLoadDescendantType()) { hash = (37 * hash) + LOADDESCENDANTTYPE_FIELD_NUMBER; hash = (53 * hash) + loadDescendantType_; } if (hasCommonOptions()) { hash = (37 * hash) + COMMONOPTIONS_FIELD_NUMBER; hash = (53 * hash) + getCommonOptions().hashCode(); } if (hasLoadType()) { hash = (37 * hash) + LOADTYPE_FIELD_NUMBER; hash = (53 * hash) + loadType_; } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static alluxio.grpc.LoadMetadataPOptions parseFrom( java.nio.ByteBuffer data) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.grpc.LoadMetadataPOptions 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.LoadMetadataPOptions 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.LoadMetadataPOptions 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.LoadMetadataPOptions parseFrom(byte[] data) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.grpc.LoadMetadataPOptions 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.LoadMetadataPOptions 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.LoadMetadataPOptions 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.LoadMetadataPOptions 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.LoadMetadataPOptions 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.LoadMetadataPOptions 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.LoadMetadataPOptions 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.LoadMetadataPOptions 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.LoadMetadataPOptions} */ public static final class Builder extends alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:alluxio.grpc.file.LoadMetadataPOptions) alluxio.grpc.LoadMetadataPOptionsOrBuilder { public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_LoadMetadataPOptions_descriptor; } @java.lang.Override protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_LoadMetadataPOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.grpc.LoadMetadataPOptions.class, alluxio.grpc.LoadMetadataPOptions.Builder.class); } // Construct using alluxio.grpc.LoadMetadataPOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCommonOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); recursive_ = false; bitField0_ = (bitField0_ & ~0x00000001); createAncestors_ = false; bitField0_ = (bitField0_ & ~0x00000002); loadDescendantType_ = 0; bitField0_ = (bitField0_ & ~0x00000004); if (alluxio.shaded.client.com.onOptionsBuilder_ == null) { alluxio.shaded.client.com.onOptions_ = null; } else { alluxio.shaded.client.com.onOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); loadType_ = 0; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_LoadMetadataPOptions_descriptor; } @java.lang.Override public alluxio.grpc.LoadMetadataPOptions getDefaultInstanceForType() { return alluxio.grpc.LoadMetadataPOptions.getDefaultInstance(); } @java.lang.Override public alluxio.grpc.LoadMetadataPOptions build() { alluxio.grpc.LoadMetadataPOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public alluxio.grpc.LoadMetadataPOptions buildPartial() { alluxio.grpc.LoadMetadataPOptions result = new alluxio.grpc.LoadMetadataPOptions(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.createAncestors_ = createAncestors_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.loadDescendantType_ = loadDescendantType_; if (((from_bitField0_ & 0x00000008) != 0)) { if (alluxio.shaded.client.com.onOptionsBuilder_ == null) { result.alluxio.shaded.client.com.onOptions_ = alluxio.shaded.client.com.onOptions_; } else { result.alluxio.shaded.client.com.onOptions_ = alluxio.shaded.client.com.onOptionsBuilder_.build(); } to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000010; } result.loadType_ = loadType_; 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.LoadMetadataPOptions) { return mergeFrom((alluxio.grpc.LoadMetadataPOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.grpc.LoadMetadataPOptions other) { if (other == alluxio.grpc.LoadMetadataPOptions.getDefaultInstance()) return this; if (other.hasRecursive()) { setRecursive(other.getRecursive()); } if (other.hasCreateAncestors()) { setCreateAncestors(other.getCreateAncestors()); } if (other.hasLoadDescendantType()) { setLoadDescendantType(other.getLoadDescendantType()); } if (other.hasCommonOptions()) { mergeCommonOptions(other.getCommonOptions()); } if (other.hasLoadType()) { setLoadType(other.getLoadType()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( alluxio.shaded.client.com.google.protobuf.CodedInputStream input, alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.alluxio.shaded.client.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { recursive_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { createAncestors_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { int tmpRaw = input.readEnum(); alluxio.grpc.LoadDescendantPType tmpValue = alluxio.grpc.LoadDescendantPType.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(3, tmpRaw); } else { loadDescendantType_ = tmpRaw; bitField0_ |= 0x00000004; } break; } // case 24 case 34: { input.readMessage( getCommonOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { int tmpRaw = input.readEnum(); alluxio.grpc.LoadMetadataPType tmpValue = alluxio.grpc.LoadMetadataPType.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(5, tmpRaw); } else { loadType_ = tmpRaw; bitField0_ |= 0x00000010; } break; } // case 40 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_ ; /** *
     ** whether to load metadata recursively 
     * 
* * optional bool recursive = 1; * @return Whether the recursive field is set. */ @java.lang.Override public boolean hasRecursive() { return ((bitField0_ & 0x00000001) != 0); } /** *
     ** whether to load metadata recursively 
     * 
* * optional bool recursive = 1; * @return The recursive. */ @java.lang.Override public boolean getRecursive() { return recursive_; } /** *
     ** whether to load metadata recursively 
     * 
* * 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; } /** *
     ** whether to load metadata recursively 
     * 
* * optional bool recursive = 1; * @return This builder for chaining. */ public Builder clearRecursive() { bitField0_ = (bitField0_ & ~0x00000001); recursive_ = false; onChanged(); return this; } private boolean createAncestors_ ; /** * optional bool createAncestors = 2; * @return Whether the createAncestors field is set. */ @java.lang.Override public boolean hasCreateAncestors() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bool createAncestors = 2; * @return The createAncestors. */ @java.lang.Override public boolean getCreateAncestors() { return createAncestors_; } /** * optional bool createAncestors = 2; * @param value The createAncestors to set. * @return This builder for chaining. */ public Builder setCreateAncestors(boolean value) { bitField0_ |= 0x00000002; createAncestors_ = value; onChanged(); return this; } /** * optional bool createAncestors = 2; * @return This builder for chaining. */ public Builder clearCreateAncestors() { bitField0_ = (bitField0_ & ~0x00000002); createAncestors_ = false; onChanged(); return this; } private int loadDescendantType_ = 0; /** * optional .alluxio.grpc.fscommon.LoadDescendantPType loadDescendantType = 3; * @return Whether the loadDescendantType field is set. */ @java.lang.Override public boolean hasLoadDescendantType() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .alluxio.grpc.fscommon.LoadDescendantPType loadDescendantType = 3; * @return The loadDescendantType. */ @java.lang.Override public alluxio.grpc.LoadDescendantPType getLoadDescendantType() { @SuppressWarnings("deprecation") alluxio.grpc.LoadDescendantPType result = alluxio.grpc.LoadDescendantPType.valueOf(loadDescendantType_); return result == null ? alluxio.grpc.LoadDescendantPType.NONE : result; } /** * optional .alluxio.grpc.fscommon.LoadDescendantPType loadDescendantType = 3; * @param value The loadDescendantType to set. * @return This builder for chaining. */ public Builder setLoadDescendantType(alluxio.grpc.LoadDescendantPType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; loadDescendantType_ = value.getNumber(); onChanged(); return this; } /** * optional .alluxio.grpc.fscommon.LoadDescendantPType loadDescendantType = 3; * @return This builder for chaining. */ public Builder clearLoadDescendantType() { bitField0_ = (bitField0_ & ~0x00000004); loadDescendantType_ = 0; onChanged(); return this; } private alluxio.grpc.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions_; private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.FileSystemMasterCommonPOptions, alluxio.grpc.FileSystemMasterCommonPOptions.Builder, alluxio.grpc.FileSystemMasterCommonPOptionsOrBuilder> alluxio.shaded.client.com.onOptionsBuilder_; /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4; * @return Whether the alluxio.shaded.client.com.onOptions field is set. */ public boolean hasCommonOptions() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4; * @return The alluxio.shaded.client.com.onOptions. */ public alluxio.grpc.FileSystemMasterCommonPOptions getCommonOptions() { if (alluxio.shaded.client.com.onOptionsBuilder_ == null) { return alluxio.shaded.client.com.onOptions_ == null ? alluxio.grpc.FileSystemMasterCommonPOptions.getDefaultInstance() : alluxio.shaded.client.com.onOptions_; } else { return alluxio.shaded.client.com.onOptionsBuilder_.getMessage(); } } /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4; */ public Builder setCommonOptions(alluxio.grpc.FileSystemMasterCommonPOptions value) { if (alluxio.shaded.client.com.onOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } alluxio.shaded.client.com.onOptions_ = value; onChanged(); } else { alluxio.shaded.client.com.onOptionsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4; */ public Builder setCommonOptions( alluxio.grpc.FileSystemMasterCommonPOptions.Builder builderForValue) { if (alluxio.shaded.client.com.onOptionsBuilder_ == null) { alluxio.shaded.client.com.onOptions_ = builderForValue.build(); onChanged(); } else { alluxio.shaded.client.com.onOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4; */ public Builder mergeCommonOptions(alluxio.grpc.FileSystemMasterCommonPOptions value) { if (alluxio.shaded.client.com.onOptionsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && alluxio.shaded.client.com.onOptions_ != null && alluxio.shaded.client.com.onOptions_ != alluxio.grpc.FileSystemMasterCommonPOptions.getDefaultInstance()) { alluxio.shaded.client.com.onOptions_ = alluxio.grpc.FileSystemMasterCommonPOptions.newBuilder(alluxio.shaded.client.com.onOptions_).mergeFrom(value).buildPartial(); } else { alluxio.shaded.client.com.onOptions_ = value; } onChanged(); } else { alluxio.shaded.client.com.onOptionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4; */ public Builder clearCommonOptions() { if (alluxio.shaded.client.com.onOptionsBuilder_ == null) { alluxio.shaded.client.com.onOptions_ = null; onChanged(); } else { alluxio.shaded.client.com.onOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4; */ public alluxio.grpc.FileSystemMasterCommonPOptions.Builder getCommonOptionsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCommonOptionsFieldBuilder().getBuilder(); } /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4; */ public alluxio.grpc.FileSystemMasterCommonPOptionsOrBuilder getCommonOptionsOrBuilder() { if (alluxio.shaded.client.com.onOptionsBuilder_ != null) { return alluxio.shaded.client.com.onOptionsBuilder_.getMessageOrBuilder(); } else { return alluxio.shaded.client.com.onOptions_ == null ? alluxio.grpc.FileSystemMasterCommonPOptions.getDefaultInstance() : alluxio.shaded.client.com.onOptions_; } } /** * optional .alluxio.grpc.file.FileSystemMasterCommonPOptions alluxio.shaded.client.com.onOptions = 4; */ private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.FileSystemMasterCommonPOptions, alluxio.grpc.FileSystemMasterCommonPOptions.Builder, alluxio.grpc.FileSystemMasterCommonPOptionsOrBuilder> getCommonOptionsFieldBuilder() { if (alluxio.shaded.client.com.onOptionsBuilder_ == null) { alluxio.shaded.client.com.onOptionsBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.FileSystemMasterCommonPOptions, alluxio.grpc.FileSystemMasterCommonPOptions.Builder, alluxio.grpc.FileSystemMasterCommonPOptionsOrBuilder>( getCommonOptions(), getParentForChildren(), isClean()); alluxio.shaded.client.com.onOptions_ = null; } return alluxio.shaded.client.com.onOptionsBuilder_; } private int loadType_ = 0; /** * optional .alluxio.grpc.file.LoadMetadataPType loadType = 5; * @return Whether the loadType field is set. */ @java.lang.Override public boolean hasLoadType() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .alluxio.grpc.file.LoadMetadataPType loadType = 5; * @return The loadType. */ @java.lang.Override public alluxio.grpc.LoadMetadataPType getLoadType() { @SuppressWarnings("deprecation") alluxio.grpc.LoadMetadataPType result = alluxio.grpc.LoadMetadataPType.valueOf(loadType_); return result == null ? alluxio.grpc.LoadMetadataPType.NEVER : result; } /** * optional .alluxio.grpc.file.LoadMetadataPType loadType = 5; * @param value The loadType to set. * @return This builder for chaining. */ public Builder setLoadType(alluxio.grpc.LoadMetadataPType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; loadType_ = value.getNumber(); onChanged(); return this; } /** * optional .alluxio.grpc.file.LoadMetadataPType loadType = 5; * @return This builder for chaining. */ public Builder clearLoadType() { bitField0_ = (bitField0_ & ~0x00000010); loadType_ = 0; 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.LoadMetadataPOptions) } // @@protoc_insertion_point(class_scope:alluxio.grpc.file.LoadMetadataPOptions) private static final alluxio.grpc.LoadMetadataPOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new alluxio.grpc.LoadMetadataPOptions(); } public static alluxio.grpc.LoadMetadataPOptions 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 LoadMetadataPOptions 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.LoadMetadataPOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy