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

alluxio.grpc.PAclEntry 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.PAclEntry}
 */
public final class PAclEntry extends
    alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:alluxio.grpc.file.PAclEntry)
    PAclEntryOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PAclEntry.newBuilder() to construct.
  private PAclEntry(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private PAclEntry() {
    type_ = 0;
    subject_ = "";
    actions_ = java.util.Collections.emptyList();
  }

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

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

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

  private int bitField0_;
  public static final int TYPE_FIELD_NUMBER = 1;
  private int type_;
  /**
   * optional .alluxio.grpc.file.PAclEntryType type = 1;
   * @return Whether the type field is set.
   */
  @java.lang.Override public boolean hasType() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional .alluxio.grpc.file.PAclEntryType type = 1;
   * @return The type.
   */
  @java.lang.Override public alluxio.grpc.PAclEntryType getType() {
    @SuppressWarnings("deprecation")
    alluxio.grpc.PAclEntryType result = alluxio.grpc.PAclEntryType.valueOf(type_);
    return result == null ? alluxio.grpc.PAclEntryType.Owner : result;
  }

  public static final int SUBJECT_FIELD_NUMBER = 2;
  private volatile java.lang.Object subject_;
  /**
   * optional string subject = 2;
   * @return Whether the subject field is set.
   */
  @java.lang.Override
  public boolean hasSubject() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional string subject = 2;
   * @return The subject.
   */
  @java.lang.Override
  public java.lang.String getSubject() {
    java.lang.Object ref = subject_;
    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()) {
        subject_ = s;
      }
      return s;
    }
  }
  /**
   * optional string subject = 2;
   * @return The bytes for subject.
   */
  @java.lang.Override
  public alluxio.shaded.client.com.google.protobuf.ByteString
      getSubjectBytes() {
    java.lang.Object ref = subject_;
    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);
      subject_ = b;
      return b;
    } else {
      return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ACTIONS_FIELD_NUMBER = 3;
  private java.util.List actions_;
  private static final alluxio.shaded.client.com.google.protobuf.Internal.ListAdapter.Converter<
      java.lang.Integer, alluxio.grpc.PAclAction> actions_converter_ =
          new alluxio.shaded.client.com.google.protobuf.Internal.ListAdapter.Converter<
              java.lang.Integer, alluxio.grpc.PAclAction>() {
            public alluxio.grpc.PAclAction convert(java.lang.Integer from) {
              @SuppressWarnings("deprecation")
              alluxio.grpc.PAclAction result = alluxio.grpc.PAclAction.valueOf(from);
              return result == null ? alluxio.grpc.PAclAction.Read : result;
            }
          };
  /**
   * repeated .alluxio.grpc.file.PAclAction actions = 3;
   * @return A list containing the actions.
   */
  @java.lang.Override
  public java.util.List getActionsList() {
    return new alluxio.shaded.client.com.google.protobuf.Internal.ListAdapter<
        java.lang.Integer, alluxio.grpc.PAclAction>(actions_, actions_converter_);
  }
  /**
   * repeated .alluxio.grpc.file.PAclAction actions = 3;
   * @return The count of actions.
   */
  @java.lang.Override
  public int getActionsCount() {
    return actions_.size();
  }
  /**
   * repeated .alluxio.grpc.file.PAclAction actions = 3;
   * @param index The index of the element to return.
   * @return The actions at the given index.
   */
  @java.lang.Override
  public alluxio.grpc.PAclAction getActions(int index) {
    return actions_converter_.convert(actions_.get(index));
  }

  public static final int ISDEFAULT_FIELD_NUMBER = 4;
  private boolean isDefault_;
  /**
   * optional bool isDefault = 4;
   * @return Whether the isDefault field is set.
   */
  @java.lang.Override
  public boolean hasIsDefault() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional bool isDefault = 4;
   * @return The isDefault.
   */
  @java.lang.Override
  public boolean getIsDefault() {
    return isDefault_;
  }

  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.writeEnum(1, type_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subject_);
    }
    for (int i = 0; i < actions_.size(); i++) {
      output.writeEnum(3, actions_.get(i));
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeBool(4, isDefault_);
    }
    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.uteEnumSize(1, type_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(2, subject_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < actions_.size(); i++) {
        dataSize += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
          .alluxio.shaded.client.com.uteEnumSizeNoTag(actions_.get(i));
      }
      size += dataSize;
      size += 1 * actions_.size();
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteBoolSize(4, isDefault_);
    }
    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.PAclEntry)) {
      return super.equals(obj);
    }
    alluxio.grpc.PAclEntry other = (alluxio.grpc.PAclEntry) obj;

    if (hasType() != other.hasType()) return false;
    if (hasType()) {
      if (type_ != other.type_) return false;
    }
    if (hasSubject() != other.hasSubject()) return false;
    if (hasSubject()) {
      if (!getSubject()
          .equals(other.getSubject())) return false;
    }
    if (!actions_.equals(other.actions_)) return false;
    if (hasIsDefault() != other.hasIsDefault()) return false;
    if (hasIsDefault()) {
      if (getIsDefault()
          != other.getIsDefault()) 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 (hasType()) {
      hash = (37 * hash) + TYPE_FIELD_NUMBER;
      hash = (53 * hash) + type_;
    }
    if (hasSubject()) {
      hash = (37 * hash) + SUBJECT_FIELD_NUMBER;
      hash = (53 * hash) + getSubject().hashCode();
    }
    if (getActionsCount() > 0) {
      hash = (37 * hash) + ACTIONS_FIELD_NUMBER;
      hash = (53 * hash) + actions_.hashCode();
    }
    if (hasIsDefault()) {
      hash = (37 * hash) + ISDEFAULT_FIELD_NUMBER;
      hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
          getIsDefault());
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using alluxio.grpc.PAclEntry.newBuilder()
    private Builder() {

    }

    private Builder(
        alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      type_ = 0;
      bitField0_ = (bitField0_ & ~0x00000001);
      subject_ = "";
      bitField0_ = (bitField0_ & ~0x00000002);
      actions_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000004);
      isDefault_ = false;
      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_PAclEntry_descriptor;
    }

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

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

    @java.lang.Override
    public alluxio.grpc.PAclEntry buildPartial() {
      alluxio.grpc.PAclEntry result = new alluxio.grpc.PAclEntry(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        to_bitField0_ |= 0x00000001;
      }
      result.type_ = type_;
      if (((from_bitField0_ & 0x00000002) != 0)) {
        to_bitField0_ |= 0x00000002;
      }
      result.subject_ = subject_;
      if (((bitField0_ & 0x00000004) != 0)) {
        actions_ = java.util.Collections.unmodifiableList(actions_);
        bitField0_ = (bitField0_ & ~0x00000004);
      }
      result.actions_ = actions_;
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.isDefault_ = isDefault_;
        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.PAclEntry) {
        return mergeFrom((alluxio.grpc.PAclEntry)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(alluxio.grpc.PAclEntry other) {
      if (other == alluxio.grpc.PAclEntry.getDefaultInstance()) return this;
      if (other.hasType()) {
        setType(other.getType());
      }
      if (other.hasSubject()) {
        bitField0_ |= 0x00000002;
        subject_ = other.subject_;
        onChanged();
      }
      if (!other.actions_.isEmpty()) {
        if (actions_.isEmpty()) {
          actions_ = other.actions_;
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          ensureActionsIsMutable();
          actions_.addAll(other.actions_);
        }
        onChanged();
      }
      if (other.hasIsDefault()) {
        setIsDefault(other.getIsDefault());
      }
      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: {
              int tmpRaw = input.readEnum();
              alluxio.grpc.PAclEntryType tmpValue =
                  alluxio.grpc.PAclEntryType.forNumber(tmpRaw);
              if (tmpValue == null) {
                mergeUnknownVarintField(1, tmpRaw);
              } else {
                type_ = tmpRaw;
                bitField0_ |= 0x00000001;
              }
              break;
            } // case 8
            case 18: {
              subject_ = input.readBytes();
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 24: {
              int tmpRaw = input.readEnum();
              alluxio.grpc.PAclAction tmpValue =
                  alluxio.grpc.PAclAction.forNumber(tmpRaw);
              if (tmpValue == null) {
                mergeUnknownVarintField(3, tmpRaw);
              } else {
                ensureActionsIsMutable();
                actions_.add(tmpRaw);
              }
              break;
            } // case 24
            case 26: {
              int length = input.readRawVarint32();
              int oldLimit = input.pushLimit(length);
              while(input.getBytesUntilLimit() > 0) {
                int tmpRaw = input.readEnum();
                alluxio.grpc.PAclAction tmpValue =
                    alluxio.grpc.PAclAction.forNumber(tmpRaw);
                if (tmpValue == null) {
                  mergeUnknownVarintField(3, tmpRaw);
                } else {
                  ensureActionsIsMutable();
                  actions_.add(tmpRaw);
                }
              }
              input.popLimit(oldLimit);
              break;
            } // case 26
            case 32: {
              isDefault_ = input.readBool();
              bitField0_ |= 0x00000008;
              break;
            } // case 32
            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 int type_ = 0;
    /**
     * optional .alluxio.grpc.file.PAclEntryType type = 1;
     * @return Whether the type field is set.
     */
    @java.lang.Override public boolean hasType() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional .alluxio.grpc.file.PAclEntryType type = 1;
     * @return The type.
     */
    @java.lang.Override
    public alluxio.grpc.PAclEntryType getType() {
      @SuppressWarnings("deprecation")
      alluxio.grpc.PAclEntryType result = alluxio.grpc.PAclEntryType.valueOf(type_);
      return result == null ? alluxio.grpc.PAclEntryType.Owner : result;
    }
    /**
     * optional .alluxio.grpc.file.PAclEntryType type = 1;
     * @param value The type to set.
     * @return This builder for chaining.
     */
    public Builder setType(alluxio.grpc.PAclEntryType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000001;
      type_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * optional .alluxio.grpc.file.PAclEntryType type = 1;
     * @return This builder for chaining.
     */
    public Builder clearType() {
      bitField0_ = (bitField0_ & ~0x00000001);
      type_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object subject_ = "";
    /**
     * optional string subject = 2;
     * @return Whether the subject field is set.
     */
    public boolean hasSubject() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional string subject = 2;
     * @return The subject.
     */
    public java.lang.String getSubject() {
      java.lang.Object ref = subject_;
      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()) {
          subject_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string subject = 2;
     * @return The bytes for subject.
     */
    public alluxio.shaded.client.com.google.protobuf.ByteString
        getSubjectBytes() {
      java.lang.Object ref = subject_;
      if (ref instanceof String) {
        alluxio.shaded.client.com.google.protobuf.ByteString b = 
            alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        subject_ = b;
        return b;
      } else {
        return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string subject = 2;
     * @param value The subject to set.
     * @return This builder for chaining.
     */
    public Builder setSubject(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
      subject_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string subject = 2;
     * @return This builder for chaining.
     */
    public Builder clearSubject() {
      bitField0_ = (bitField0_ & ~0x00000002);
      subject_ = getDefaultInstance().getSubject();
      onChanged();
      return this;
    }
    /**
     * optional string subject = 2;
     * @param value The bytes for subject to set.
     * @return This builder for chaining.
     */
    public Builder setSubjectBytes(
        alluxio.shaded.client.com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
      subject_ = value;
      onChanged();
      return this;
    }

    private java.util.List actions_ =
      java.util.Collections.emptyList();
    private void ensureActionsIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        actions_ = new java.util.ArrayList(actions_);
        bitField0_ |= 0x00000004;
      }
    }
    /**
     * repeated .alluxio.grpc.file.PAclAction actions = 3;
     * @return A list containing the actions.
     */
    public java.util.List getActionsList() {
      return new alluxio.shaded.client.com.google.protobuf.Internal.ListAdapter<
          java.lang.Integer, alluxio.grpc.PAclAction>(actions_, actions_converter_);
    }
    /**
     * repeated .alluxio.grpc.file.PAclAction actions = 3;
     * @return The count of actions.
     */
    public int getActionsCount() {
      return actions_.size();
    }
    /**
     * repeated .alluxio.grpc.file.PAclAction actions = 3;
     * @param index The index of the element to return.
     * @return The actions at the given index.
     */
    public alluxio.grpc.PAclAction getActions(int index) {
      return actions_converter_.convert(actions_.get(index));
    }
    /**
     * repeated .alluxio.grpc.file.PAclAction actions = 3;
     * @param index The index to set the value at.
     * @param value The actions to set.
     * @return This builder for chaining.
     */
    public Builder setActions(
        int index, alluxio.grpc.PAclAction value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureActionsIsMutable();
      actions_.set(index, value.getNumber());
      onChanged();
      return this;
    }
    /**
     * repeated .alluxio.grpc.file.PAclAction actions = 3;
     * @param value The actions to add.
     * @return This builder for chaining.
     */
    public Builder addActions(alluxio.grpc.PAclAction value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureActionsIsMutable();
      actions_.add(value.getNumber());
      onChanged();
      return this;
    }
    /**
     * repeated .alluxio.grpc.file.PAclAction actions = 3;
     * @param values The actions to add.
     * @return This builder for chaining.
     */
    public Builder addAllActions(
        java.lang.Iterable values) {
      ensureActionsIsMutable();
      for (alluxio.grpc.PAclAction value : values) {
        actions_.add(value.getNumber());
      }
      onChanged();
      return this;
    }
    /**
     * repeated .alluxio.grpc.file.PAclAction actions = 3;
     * @return This builder for chaining.
     */
    public Builder clearActions() {
      actions_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }

    private boolean isDefault_ ;
    /**
     * optional bool isDefault = 4;
     * @return Whether the isDefault field is set.
     */
    @java.lang.Override
    public boolean hasIsDefault() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional bool isDefault = 4;
     * @return The isDefault.
     */
    @java.lang.Override
    public boolean getIsDefault() {
      return isDefault_;
    }
    /**
     * optional bool isDefault = 4;
     * @param value The isDefault to set.
     * @return This builder for chaining.
     */
    public Builder setIsDefault(boolean value) {
      bitField0_ |= 0x00000008;
      isDefault_ = value;
      onChanged();
      return this;
    }
    /**
     * optional bool isDefault = 4;
     * @return This builder for chaining.
     */
    public Builder clearIsDefault() {
      bitField0_ = (bitField0_ & ~0x00000008);
      isDefault_ = 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.PAclEntry)
  }

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

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy