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

alluxio.grpc.SetAclPRequest Maven / Gradle / Ivy

// Generated by the protocol buffer alluxio.shaded.client.com.iler.  DO NOT EDIT!
// source: grpc/file_system_master.proto

package alluxio.grpc;

/**
 * Protobuf type {@code alluxio.grpc.file.SetAclPRequest}
 */
public final class SetAclPRequest extends
    alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:alluxio.grpc.file.SetAclPRequest)
    SetAclPRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SetAclPRequest.newBuilder() to construct.
  private SetAclPRequest(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private SetAclPRequest() {
    path_ = "";
    action_ = 0;
    entries_ = java.util.Collections.emptyList();
  }

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

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

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

  private int bitField0_;
  public static final int PATH_FIELD_NUMBER = 1;
  private volatile java.lang.Object path_;
  /**
   * 
   ** the path of the file or directory 
   * 
* * optional string path = 1; * @return Whether the path field is set. */ @java.lang.Override public boolean hasPath() { return ((bitField0_ & 0x00000001) != 0); } /** *
   ** the path of the file or directory 
   * 
* * optional string path = 1; * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { alluxio.shaded.client.com.google.protobuf.ByteString bs = (alluxio.shaded.client.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } } /** *
   ** the path of the file or directory 
   * 
* * optional string path = 1; * @return The bytes for path. */ @java.lang.Override public alluxio.shaded.client.com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { alluxio.shaded.client.com.google.protobuf.ByteString b = alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (alluxio.shaded.client.com.google.protobuf.ByteString) ref; } } public static final int ACTION_FIELD_NUMBER = 2; private int action_; /** *
   ** the set action to perform 
   * 
* * optional .alluxio.grpc.file.SetAclAction action = 2; * @return Whether the action field is set. */ @java.lang.Override public boolean hasAction() { return ((bitField0_ & 0x00000002) != 0); } /** *
   ** the set action to perform 
   * 
* * optional .alluxio.grpc.file.SetAclAction action = 2; * @return The action. */ @java.lang.Override public alluxio.grpc.SetAclAction getAction() { @SuppressWarnings("deprecation") alluxio.grpc.SetAclAction result = alluxio.grpc.SetAclAction.valueOf(action_); return result == null ? alluxio.grpc.SetAclAction.REPLACE : result; } public static final int ENTRIES_FIELD_NUMBER = 3; private java.util.List entries_; /** *
   ** the list of ACL entries 
   * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ @java.lang.Override public java.util.List getEntriesList() { return entries_; } /** *
   ** the list of ACL entries 
   * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ @java.lang.Override public java.util.List getEntriesOrBuilderList() { return entries_; } /** *
   ** the list of ACL entries 
   * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** *
   ** the list of ACL entries 
   * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ @java.lang.Override public alluxio.grpc.PAclEntry getEntries(int index) { return entries_.get(index); } /** *
   ** the list of ACL entries 
   * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ @java.lang.Override public alluxio.grpc.PAclEntryOrBuilder getEntriesOrBuilder( int index) { return entries_.get(index); } public static final int OPTIONS_FIELD_NUMBER = 4; private alluxio.grpc.SetAclPOptions options_; /** *
   ** the method options 
   * 
* * optional .alluxio.grpc.file.SetAclPOptions options = 4; * @return Whether the options field is set. */ @java.lang.Override public boolean hasOptions() { return ((bitField0_ & 0x00000004) != 0); } /** *
   ** the method options 
   * 
* * optional .alluxio.grpc.file.SetAclPOptions options = 4; * @return The options. */ @java.lang.Override public alluxio.grpc.SetAclPOptions getOptions() { return options_ == null ? alluxio.grpc.SetAclPOptions.getDefaultInstance() : options_; } /** *
   ** the method options 
   * 
* * optional .alluxio.grpc.file.SetAclPOptions options = 4; */ @java.lang.Override public alluxio.grpc.SetAclPOptionsOrBuilder getOptionsOrBuilder() { return options_ == null ? alluxio.grpc.SetAclPOptions.getDefaultInstance() : options_; } 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)) { alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, action_); } for (int i = 0; i < entries_.size(); i++) { output.writeMessage(3, entries_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getOptions()); } 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.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(1, path_); } if (((bitField0_ & 0x00000002) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteEnumSize(2, action_); } for (int i = 0; i < entries_.size(); i++) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteMessageSize(3, entries_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteMessageSize(4, getOptions()); } 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.SetAclPRequest)) { return super.equals(obj); } alluxio.grpc.SetAclPRequest other = (alluxio.grpc.SetAclPRequest) obj; if (hasPath() != other.hasPath()) return false; if (hasPath()) { if (!getPath() .equals(other.getPath())) return false; } if (hasAction() != other.hasAction()) return false; if (hasAction()) { if (action_ != other.action_) return false; } if (!getEntriesList() .equals(other.getEntriesList())) return false; if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { if (!getOptions() .equals(other.getOptions())) 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 (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (hasAction()) { hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + action_; } if (getEntriesCount() > 0) { hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntriesList().hashCode(); } if (hasOptions()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static alluxio.grpc.SetAclPRequest parseFrom( java.nio.ByteBuffer data) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.grpc.SetAclPRequest 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.SetAclPRequest 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.SetAclPRequest 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.SetAclPRequest parseFrom(byte[] data) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.grpc.SetAclPRequest 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.SetAclPRequest 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.SetAclPRequest 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.SetAclPRequest 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.SetAclPRequest 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.SetAclPRequest 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.SetAclPRequest 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.SetAclPRequest 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.SetAclPRequest} */ public static final class Builder extends alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:alluxio.grpc.file.SetAclPRequest) alluxio.grpc.SetAclPRequestOrBuilder { public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_SetAclPRequest_descriptor; } @java.lang.Override protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_SetAclPRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.grpc.SetAclPRequest.class, alluxio.grpc.SetAclPRequest.Builder.class); } // Construct using alluxio.grpc.SetAclPRequest.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) { getEntriesFieldBuilder(); getOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); path_ = ""; bitField0_ = (bitField0_ & ~0x00000001); action_ = 0; bitField0_ = (bitField0_ & ~0x00000002); if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); } else { entries_ = null; entriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (optionsBuilder_ == null) { options_ = null; } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_SetAclPRequest_descriptor; } @java.lang.Override public alluxio.grpc.SetAclPRequest getDefaultInstanceForType() { return alluxio.grpc.SetAclPRequest.getDefaultInstance(); } @java.lang.Override public alluxio.grpc.SetAclPRequest build() { alluxio.grpc.SetAclPRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public alluxio.grpc.SetAclPRequest buildPartial() { alluxio.grpc.SetAclPRequest result = new alluxio.grpc.SetAclPRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.path_ = path_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.action_ = action_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000004); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } to_bitField0_ |= 0x00000004; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( alluxio.shaded.client.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(alluxio.shaded.client.com.google.protobuf.Message other) { if (other instanceof alluxio.grpc.SetAclPRequest) { return mergeFrom((alluxio.grpc.SetAclPRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.grpc.SetAclPRequest other) { if (other == alluxio.grpc.SetAclPRequest.getDefaultInstance()) return this; if (other.hasPath()) { bitField0_ |= 0x00000001; path_ = other.path_; onChanged(); } if (other.hasAction()) { setAction(other.getAction()); } if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureEntriesIsMutable(); entries_.addAll(other.entries_); } onChanged(); } } else { if (!other.entries_.isEmpty()) { if (entriesBuilder_.isEmpty()) { entriesBuilder_.dispose(); entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000004); entriesBuilder_ = alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } } } if (other.hasOptions()) { mergeOptions(other.getOptions()); } 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 10: { path_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { int tmpRaw = input.readEnum(); alluxio.grpc.SetAclAction tmpValue = alluxio.grpc.SetAclAction.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(2, tmpRaw); } else { action_ = tmpRaw; bitField0_ |= 0x00000002; } break; } // case 16 case 26: { alluxio.grpc.PAclEntry m = input.readMessage( alluxio.grpc.PAclEntry.PARSER, extensionRegistry); if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(m); } else { entriesBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage( getOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object path_ = ""; /** *
     ** the path of the file or directory 
     * 
* * optional string path = 1; * @return Whether the path field is set. */ public boolean hasPath() { return ((bitField0_ & 0x00000001) != 0); } /** *
     ** the path of the file or directory 
     * 
* * optional string path = 1; * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { alluxio.shaded.client.com.google.protobuf.ByteString bs = (alluxio.shaded.client.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     ** the path of the file or directory 
     * 
* * optional string path = 1; * @return The bytes for path. */ public alluxio.shaded.client.com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { alluxio.shaded.client.com.google.protobuf.ByteString b = alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (alluxio.shaded.client.com.google.protobuf.ByteString) ref; } } /** *
     ** the path of the file or directory 
     * 
* * optional string path = 1; * @param value The path to set. * @return This builder for chaining. */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } /** *
     ** the path of the file or directory 
     * 
* * optional string path = 1; * @return This builder for chaining. */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000001); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** *
     ** the path of the file or directory 
     * 
* * optional string path = 1; * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes( alluxio.shaded.client.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } private int action_ = 0; /** *
     ** the set action to perform 
     * 
* * optional .alluxio.grpc.file.SetAclAction action = 2; * @return Whether the action field is set. */ @java.lang.Override public boolean hasAction() { return ((bitField0_ & 0x00000002) != 0); } /** *
     ** the set action to perform 
     * 
* * optional .alluxio.grpc.file.SetAclAction action = 2; * @return The action. */ @java.lang.Override public alluxio.grpc.SetAclAction getAction() { @SuppressWarnings("deprecation") alluxio.grpc.SetAclAction result = alluxio.grpc.SetAclAction.valueOf(action_); return result == null ? alluxio.grpc.SetAclAction.REPLACE : result; } /** *
     ** the set action to perform 
     * 
* * optional .alluxio.grpc.file.SetAclAction action = 2; * @param value The action to set. * @return This builder for chaining. */ public Builder setAction(alluxio.grpc.SetAclAction value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; action_ = value.getNumber(); onChanged(); return this; } /** *
     ** the set action to perform 
     * 
* * optional .alluxio.grpc.file.SetAclAction action = 2; * @return This builder for chaining. */ public Builder clearAction() { bitField0_ = (bitField0_ & ~0x00000002); action_ = 0; onChanged(); return this; } private java.util.List entries_ = java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000004; } } private alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3< alluxio.grpc.PAclEntry, alluxio.grpc.PAclEntry.Builder, alluxio.grpc.PAclEntryOrBuilder> entriesBuilder_; /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { return entriesBuilder_.getMessageList(); } } /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public int getEntriesCount() { if (entriesBuilder_ == null) { return entries_.size(); } else { return entriesBuilder_.getCount(); } } /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public alluxio.grpc.PAclEntry getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessage(index); } } /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public Builder setEntries( int index, alluxio.grpc.PAclEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); } else { entriesBuilder_.setMessage(index, value); } return this; } /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public Builder setEntries( int index, alluxio.grpc.PAclEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public Builder addEntries(alluxio.grpc.PAclEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(value); onChanged(); } else { entriesBuilder_.addMessage(value); } return this; } /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public Builder addEntries( int index, alluxio.grpc.PAclEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(index, value); onChanged(); } else { entriesBuilder_.addMessage(index, value); } return this; } /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public Builder addEntries( alluxio.grpc.PAclEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public Builder addEntries( int index, alluxio.grpc.PAclEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public Builder addAllEntries( java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); alluxio.shaded.client.com.google.protobuf.AbstractMessageLite.Builder.addAll( values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); } return this; } /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public Builder clearEntries() { if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { entriesBuilder_.clear(); } return this; } /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.remove(index); onChanged(); } else { entriesBuilder_.remove(index); } return this; } /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public alluxio.grpc.PAclEntry.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(index); } /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public alluxio.grpc.PAclEntryOrBuilder getEntriesOrBuilder( int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public java.util.List getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entries_); } } /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public alluxio.grpc.PAclEntry.Builder addEntriesBuilder() { return getEntriesFieldBuilder().addBuilder( alluxio.grpc.PAclEntry.getDefaultInstance()); } /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public alluxio.grpc.PAclEntry.Builder addEntriesBuilder( int index) { return getEntriesFieldBuilder().addBuilder( index, alluxio.grpc.PAclEntry.getDefaultInstance()); } /** *
     ** the list of ACL entries 
     * 
* * repeated .alluxio.grpc.file.PAclEntry entries = 3; */ public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3< alluxio.grpc.PAclEntry, alluxio.grpc.PAclEntry.Builder, alluxio.grpc.PAclEntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3< alluxio.grpc.PAclEntry, alluxio.grpc.PAclEntry.Builder, alluxio.grpc.PAclEntryOrBuilder>( entries_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } private alluxio.grpc.SetAclPOptions options_; private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.SetAclPOptions, alluxio.grpc.SetAclPOptions.Builder, alluxio.grpc.SetAclPOptionsOrBuilder> optionsBuilder_; /** *
     ** the method options 
     * 
* * optional .alluxio.grpc.file.SetAclPOptions options = 4; * @return Whether the options field is set. */ public boolean hasOptions() { return ((bitField0_ & 0x00000008) != 0); } /** *
     ** the method options 
     * 
* * optional .alluxio.grpc.file.SetAclPOptions options = 4; * @return The options. */ public alluxio.grpc.SetAclPOptions getOptions() { if (optionsBuilder_ == null) { return options_ == null ? alluxio.grpc.SetAclPOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } } /** *
     ** the method options 
     * 
* * optional .alluxio.grpc.file.SetAclPOptions options = 4; */ public Builder setOptions(alluxio.grpc.SetAclPOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } options_ = value; onChanged(); } else { optionsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** *
     ** the method options 
     * 
* * optional .alluxio.grpc.file.SetAclPOptions options = 4; */ public Builder setOptions( alluxio.grpc.SetAclPOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** *
     ** the method options 
     * 
* * optional .alluxio.grpc.file.SetAclPOptions options = 4; */ public Builder mergeOptions(alluxio.grpc.SetAclPOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && options_ != null && options_ != alluxio.grpc.SetAclPOptions.getDefaultInstance()) { options_ = alluxio.grpc.SetAclPOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** *
     ** the method options 
     * 
* * optional .alluxio.grpc.file.SetAclPOptions options = 4; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** *
     ** the method options 
     * 
* * optional .alluxio.grpc.file.SetAclPOptions options = 4; */ public alluxio.grpc.SetAclPOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** *
     ** the method options 
     * 
* * optional .alluxio.grpc.file.SetAclPOptions options = 4; */ public alluxio.grpc.SetAclPOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_ == null ? alluxio.grpc.SetAclPOptions.getDefaultInstance() : options_; } } /** *
     ** the method options 
     * 
* * optional .alluxio.grpc.file.SetAclPOptions options = 4; */ private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.SetAclPOptions, alluxio.grpc.SetAclPOptions.Builder, alluxio.grpc.SetAclPOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.SetAclPOptions, alluxio.grpc.SetAclPOptions.Builder, alluxio.grpc.SetAclPOptionsOrBuilder>( getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } @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.SetAclPRequest) } // @@protoc_insertion_point(class_scope:alluxio.grpc.file.SetAclPRequest) private static final alluxio.grpc.SetAclPRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new alluxio.grpc.SetAclPRequest(); } public static alluxio.grpc.SetAclPRequest 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 SetAclPRequest 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.SetAclPRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy