
alluxio.proto.shared.Acl Maven / Gradle / Ivy
// Generated by the protocol buffer alluxio.shaded.client.com.iler. DO NOT EDIT!
// source: proto/shared/acl.proto
package alluxio.proto.shared;
public final class Acl {
private Acl() {}
public static void registerAllExtensions(
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
alluxio.shaded.client.com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* next available id: 3
*
*
* Protobuf enum {@code alluxio.proto.shared.AclAction}
*/
public enum AclAction
implements alluxio.shaded.client.com.google.protobuf.ProtocolMessageEnum {
/**
* READ = 0;
*/
READ(0),
/**
* WRITE = 1;
*/
WRITE(1),
/**
* EXECUTE = 2;
*/
EXECUTE(2),
;
/**
* READ = 0;
*/
public static final int READ_VALUE = 0;
/**
* WRITE = 1;
*/
public static final int WRITE_VALUE = 1;
/**
* EXECUTE = 2;
*/
public static final int EXECUTE_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AclAction valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static AclAction forNumber(int value) {
switch (value) {
case 0: return READ;
case 1: return WRITE;
case 2: return EXECUTE;
default: return null;
}
}
public static alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap<
AclAction> internalValueMap =
new alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap() {
public AclAction findValueByNumber(int number) {
return AclAction.forNumber(number);
}
};
public final alluxio.shaded.client.com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final alluxio.shaded.client.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return alluxio.proto.shared.Acl.getDescriptor().getEnumTypes().get(0);
}
private static final AclAction[] VALUES = values();
public static AclAction valueOf(
alluxio.shaded.client.com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private AclAction(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:alluxio.proto.shared.AclAction)
}
/**
*
* next available id: 6
*
*
* Protobuf enum {@code alluxio.proto.shared.AclEntryType}
*/
public enum AclEntryType
implements alluxio.shaded.client.com.google.protobuf.ProtocolMessageEnum {
/**
* OWNER = 0;
*/
OWNER(0),
/**
* NAMED_USER = 1;
*/
NAMED_USER(1),
/**
* OWNING_GROUP = 2;
*/
OWNING_GROUP(2),
/**
* NAMED_GROUP = 3;
*/
NAMED_GROUP(3),
/**
* MASK = 4;
*/
MASK(4),
/**
* OTHER = 5;
*/
OTHER(5),
;
/**
* OWNER = 0;
*/
public static final int OWNER_VALUE = 0;
/**
* NAMED_USER = 1;
*/
public static final int NAMED_USER_VALUE = 1;
/**
* OWNING_GROUP = 2;
*/
public static final int OWNING_GROUP_VALUE = 2;
/**
* NAMED_GROUP = 3;
*/
public static final int NAMED_GROUP_VALUE = 3;
/**
* MASK = 4;
*/
public static final int MASK_VALUE = 4;
/**
* OTHER = 5;
*/
public static final int OTHER_VALUE = 5;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AclEntryType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static AclEntryType forNumber(int value) {
switch (value) {
case 0: return OWNER;
case 1: return NAMED_USER;
case 2: return OWNING_GROUP;
case 3: return NAMED_GROUP;
case 4: return MASK;
case 5: return OTHER;
default: return null;
}
}
public static alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap<
AclEntryType> internalValueMap =
new alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap() {
public AclEntryType findValueByNumber(int number) {
return AclEntryType.forNumber(number);
}
};
public final alluxio.shaded.client.com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final alluxio.shaded.client.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return alluxio.proto.shared.Acl.getDescriptor().getEnumTypes().get(1);
}
private static final AclEntryType[] VALUES = values();
public static AclEntryType valueOf(
alluxio.shaded.client.com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private AclEntryType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:alluxio.proto.shared.AclEntryType)
}
public interface AclActionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:alluxio.proto.shared.AclActions)
alluxio.shaded.client.com.google.protobuf.MessageOrBuilder {
/**
* repeated .alluxio.proto.shared.AclAction actions = 1;
* @return A list containing the actions.
*/
java.util.List getActionsList();
/**
* repeated .alluxio.proto.shared.AclAction actions = 1;
* @return The count of actions.
*/
int getActionsCount();
/**
* repeated .alluxio.proto.shared.AclAction actions = 1;
* @param index The index of the element to return.
* @return The actions at the given index.
*/
alluxio.proto.shared.Acl.AclAction getActions(int index);
}
/**
*
* next available id: 2
*
*
* Protobuf type {@code alluxio.proto.shared.AclActions}
*/
public static final class AclActions extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:alluxio.proto.shared.AclActions)
AclActionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use AclActions.newBuilder() to construct.
private AclActions(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AclActions() {
actions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AclActions();
}
@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.proto.shared.Acl.internal_static_alluxio_proto_shared_AclActions_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.shared.Acl.internal_static_alluxio_proto_shared_AclActions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.shared.Acl.AclActions.class, alluxio.proto.shared.Acl.AclActions.Builder.class);
}
public static final int ACTIONS_FIELD_NUMBER = 1;
private java.util.List actions_;
private static final alluxio.shaded.client.com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, alluxio.proto.shared.Acl.AclAction> actions_converter_ =
new alluxio.shaded.client.com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, alluxio.proto.shared.Acl.AclAction>() {
public alluxio.proto.shared.Acl.AclAction convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
alluxio.proto.shared.Acl.AclAction result = alluxio.proto.shared.Acl.AclAction.valueOf(from);
return result == null ? alluxio.proto.shared.Acl.AclAction.READ : result;
}
};
/**
* repeated .alluxio.proto.shared.AclAction actions = 1;
* @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.proto.shared.Acl.AclAction>(actions_, actions_converter_);
}
/**
* repeated .alluxio.proto.shared.AclAction actions = 1;
* @return The count of actions.
*/
@java.lang.Override
public int getActionsCount() {
return actions_.size();
}
/**
* repeated .alluxio.proto.shared.AclAction actions = 1;
* @param index The index of the element to return.
* @return The actions at the given index.
*/
@java.lang.Override
public alluxio.proto.shared.Acl.AclAction getActions(int index) {
return actions_converter_.convert(actions_.get(index));
}
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 {
for (int i = 0; i < actions_.size(); i++) {
output.writeEnum(1, actions_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
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();
}
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.proto.shared.Acl.AclActions)) {
return super.equals(obj);
}
alluxio.proto.shared.Acl.AclActions other = (alluxio.proto.shared.Acl.AclActions) obj;
if (!actions_.equals(other.actions_)) 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 (getActionsCount() > 0) {
hash = (37 * hash) + ACTIONS_FIELD_NUMBER;
hash = (53 * hash) + actions_.hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static alluxio.proto.shared.Acl.AclActions parseFrom(
java.nio.ByteBuffer data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.shared.Acl.AclActions 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.proto.shared.Acl.AclActions parseFrom(
alluxio.shaded.client.com.google.protobuf.ByteString data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.shared.Acl.AclActions 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.proto.shared.Acl.AclActions parseFrom(byte[] data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.shared.Acl.AclActions 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.proto.shared.Acl.AclActions 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.proto.shared.Acl.AclActions 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.proto.shared.Acl.AclActions 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.proto.shared.Acl.AclActions 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.proto.shared.Acl.AclActions 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.proto.shared.Acl.AclActions 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.proto.shared.Acl.AclActions 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;
}
/**
*
* next available id: 2
*
*
* Protobuf type {@code alluxio.proto.shared.AclActions}
*/
public static final class Builder extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:alluxio.proto.shared.AclActions)
alluxio.proto.shared.Acl.AclActionsOrBuilder {
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.shared.Acl.internal_static_alluxio_proto_shared_AclActions_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.shared.Acl.internal_static_alluxio_proto_shared_AclActions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.shared.Acl.AclActions.class, alluxio.proto.shared.Acl.AclActions.Builder.class);
}
// Construct using alluxio.proto.shared.Acl.AclActions.newBuilder()
private Builder() {
}
private Builder(
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
actions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.proto.shared.Acl.internal_static_alluxio_proto_shared_AclActions_descriptor;
}
@java.lang.Override
public alluxio.proto.shared.Acl.AclActions getDefaultInstanceForType() {
return alluxio.proto.shared.Acl.AclActions.getDefaultInstance();
}
@java.lang.Override
public alluxio.proto.shared.Acl.AclActions build() {
alluxio.proto.shared.Acl.AclActions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public alluxio.proto.shared.Acl.AclActions buildPartial() {
alluxio.proto.shared.Acl.AclActions result = new alluxio.proto.shared.Acl.AclActions(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
actions_ = java.util.Collections.unmodifiableList(actions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.actions_ = actions_;
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.proto.shared.Acl.AclActions) {
return mergeFrom((alluxio.proto.shared.Acl.AclActions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.proto.shared.Acl.AclActions other) {
if (other == alluxio.proto.shared.Acl.AclActions.getDefaultInstance()) return this;
if (!other.actions_.isEmpty()) {
if (actions_.isEmpty()) {
actions_ = other.actions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureActionsIsMutable();
actions_.addAll(other.actions_);
}
onChanged();
}
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.proto.shared.Acl.AclAction tmpValue =
alluxio.proto.shared.Acl.AclAction.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(1, tmpRaw);
} else {
ensureActionsIsMutable();
actions_.add(tmpRaw);
}
break;
} // case 8
case 10: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int tmpRaw = input.readEnum();
alluxio.proto.shared.Acl.AclAction tmpValue =
alluxio.proto.shared.Acl.AclAction.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(1, tmpRaw);
} else {
ensureActionsIsMutable();
actions_.add(tmpRaw);
}
}
input.popLimit(oldLimit);
break;
} // case 10
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.util.List actions_ =
java.util.Collections.emptyList();
private void ensureActionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
actions_ = new java.util.ArrayList(actions_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated .alluxio.proto.shared.AclAction actions = 1;
* @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.proto.shared.Acl.AclAction>(actions_, actions_converter_);
}
/**
* repeated .alluxio.proto.shared.AclAction actions = 1;
* @return The count of actions.
*/
public int getActionsCount() {
return actions_.size();
}
/**
* repeated .alluxio.proto.shared.AclAction actions = 1;
* @param index The index of the element to return.
* @return The actions at the given index.
*/
public alluxio.proto.shared.Acl.AclAction getActions(int index) {
return actions_converter_.convert(actions_.get(index));
}
/**
* repeated .alluxio.proto.shared.AclAction actions = 1;
* @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.proto.shared.Acl.AclAction value) {
if (value == null) {
throw new NullPointerException();
}
ensureActionsIsMutable();
actions_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .alluxio.proto.shared.AclAction actions = 1;
* @param value The actions to add.
* @return This builder for chaining.
*/
public Builder addActions(alluxio.proto.shared.Acl.AclAction value) {
if (value == null) {
throw new NullPointerException();
}
ensureActionsIsMutable();
actions_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .alluxio.proto.shared.AclAction actions = 1;
* @param values The actions to add.
* @return This builder for chaining.
*/
public Builder addAllActions(
java.lang.Iterable extends alluxio.proto.shared.Acl.AclAction> values) {
ensureActionsIsMutable();
for (alluxio.proto.shared.Acl.AclAction value : values) {
actions_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .alluxio.proto.shared.AclAction actions = 1;
* @return This builder for chaining.
*/
public Builder clearActions() {
actions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
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.proto.shared.AclActions)
}
// @@protoc_insertion_point(class_scope:alluxio.proto.shared.AclActions)
private static final alluxio.proto.shared.Acl.AclActions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new alluxio.proto.shared.Acl.AclActions();
}
public static alluxio.proto.shared.Acl.AclActions 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 AclActions 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.proto.shared.Acl.AclActions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AclEntryOrBuilder extends
// @@protoc_insertion_point(interface_extends:alluxio.proto.shared.AclEntry)
alluxio.shaded.client.com.google.protobuf.MessageOrBuilder {
/**
* optional .alluxio.proto.shared.AclEntryType type = 1;
* @return Whether the type field is set.
*/
boolean hasType();
/**
* optional .alluxio.proto.shared.AclEntryType type = 1;
* @return The type.
*/
alluxio.proto.shared.Acl.AclEntryType getType();
/**
* optional string subject = 2;
* @return Whether the subject field is set.
*/
boolean hasSubject();
/**
* optional string subject = 2;
* @return The subject.
*/
java.lang.String getSubject();
/**
* optional string subject = 2;
* @return The bytes for subject.
*/
alluxio.shaded.client.com.google.protobuf.ByteString
getSubjectBytes();
/**
* repeated .alluxio.proto.shared.AclAction actions = 3;
* @return A list containing the actions.
*/
java.util.List getActionsList();
/**
* repeated .alluxio.proto.shared.AclAction actions = 3;
* @return The count of actions.
*/
int getActionsCount();
/**
* repeated .alluxio.proto.shared.AclAction actions = 3;
* @param index The index of the element to return.
* @return The actions at the given index.
*/
alluxio.proto.shared.Acl.AclAction getActions(int index);
/**
* optional bool isDefault = 4;
* @return Whether the isDefault field is set.
*/
boolean hasIsDefault();
/**
* optional bool isDefault = 4;
* @return The isDefault.
*/
boolean getIsDefault();
}
/**
*
* next available id: 5
*
*
* Protobuf type {@code alluxio.proto.shared.AclEntry}
*/
public static final class AclEntry extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:alluxio.proto.shared.AclEntry)
AclEntryOrBuilder {
private static final long serialVersionUID = 0L;
// Use AclEntry.newBuilder() to construct.
private AclEntry(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AclEntry() {
type_ = 0;
subject_ = "";
actions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AclEntry();
}
@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.proto.shared.Acl.internal_static_alluxio_proto_shared_AclEntry_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.shared.Acl.internal_static_alluxio_proto_shared_AclEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.shared.Acl.AclEntry.class, alluxio.proto.shared.Acl.AclEntry.Builder.class);
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* optional .alluxio.proto.shared.AclEntryType type = 1;
* @return Whether the type field is set.
*/
@java.lang.Override public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .alluxio.proto.shared.AclEntryType type = 1;
* @return The type.
*/
@java.lang.Override public alluxio.proto.shared.Acl.AclEntryType getType() {
@SuppressWarnings("deprecation")
alluxio.proto.shared.Acl.AclEntryType result = alluxio.proto.shared.Acl.AclEntryType.valueOf(type_);
return result == null ? alluxio.proto.shared.Acl.AclEntryType.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.proto.shared.Acl.AclAction> actions_converter_ =
new alluxio.shaded.client.com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, alluxio.proto.shared.Acl.AclAction>() {
public alluxio.proto.shared.Acl.AclAction convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
alluxio.proto.shared.Acl.AclAction result = alluxio.proto.shared.Acl.AclAction.valueOf(from);
return result == null ? alluxio.proto.shared.Acl.AclAction.READ : result;
}
};
/**
* repeated .alluxio.proto.shared.AclAction 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.proto.shared.Acl.AclAction>(actions_, actions_converter_);
}
/**
* repeated .alluxio.proto.shared.AclAction actions = 3;
* @return The count of actions.
*/
@java.lang.Override
public int getActionsCount() {
return actions_.size();
}
/**
* repeated .alluxio.proto.shared.AclAction actions = 3;
* @param index The index of the element to return.
* @return The actions at the given index.
*/
@java.lang.Override
public alluxio.proto.shared.Acl.AclAction 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.proto.shared.Acl.AclEntry)) {
return super.equals(obj);
}
alluxio.proto.shared.Acl.AclEntry other = (alluxio.proto.shared.Acl.AclEntry) 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.proto.shared.Acl.AclEntry parseFrom(
java.nio.ByteBuffer data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.shared.Acl.AclEntry 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.proto.shared.Acl.AclEntry parseFrom(
alluxio.shaded.client.com.google.protobuf.ByteString data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.shared.Acl.AclEntry 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.proto.shared.Acl.AclEntry parseFrom(byte[] data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.shared.Acl.AclEntry 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.proto.shared.Acl.AclEntry 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.proto.shared.Acl.AclEntry 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.proto.shared.Acl.AclEntry 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.proto.shared.Acl.AclEntry 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.proto.shared.Acl.AclEntry 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.proto.shared.Acl.AclEntry 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.proto.shared.Acl.AclEntry 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;
}
/**
*
* next available id: 5
*
*
* Protobuf type {@code alluxio.proto.shared.AclEntry}
*/
public static final class Builder extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:alluxio.proto.shared.AclEntry)
alluxio.proto.shared.Acl.AclEntryOrBuilder {
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.shared.Acl.internal_static_alluxio_proto_shared_AclEntry_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.shared.Acl.internal_static_alluxio_proto_shared_AclEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.shared.Acl.AclEntry.class, alluxio.proto.shared.Acl.AclEntry.Builder.class);
}
// Construct using alluxio.proto.shared.Acl.AclEntry.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.proto.shared.Acl.internal_static_alluxio_proto_shared_AclEntry_descriptor;
}
@java.lang.Override
public alluxio.proto.shared.Acl.AclEntry getDefaultInstanceForType() {
return alluxio.proto.shared.Acl.AclEntry.getDefaultInstance();
}
@java.lang.Override
public alluxio.proto.shared.Acl.AclEntry build() {
alluxio.proto.shared.Acl.AclEntry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public alluxio.proto.shared.Acl.AclEntry buildPartial() {
alluxio.proto.shared.Acl.AclEntry result = new alluxio.proto.shared.Acl.AclEntry(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.proto.shared.Acl.AclEntry) {
return mergeFrom((alluxio.proto.shared.Acl.AclEntry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.proto.shared.Acl.AclEntry other) {
if (other == alluxio.proto.shared.Acl.AclEntry.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.proto.shared.Acl.AclEntryType tmpValue =
alluxio.proto.shared.Acl.AclEntryType.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.proto.shared.Acl.AclAction tmpValue =
alluxio.proto.shared.Acl.AclAction.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.proto.shared.Acl.AclAction tmpValue =
alluxio.proto.shared.Acl.AclAction.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.proto.shared.AclEntryType type = 1;
* @return Whether the type field is set.
*/
@java.lang.Override public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .alluxio.proto.shared.AclEntryType type = 1;
* @return The type.
*/
@java.lang.Override
public alluxio.proto.shared.Acl.AclEntryType getType() {
@SuppressWarnings("deprecation")
alluxio.proto.shared.Acl.AclEntryType result = alluxio.proto.shared.Acl.AclEntryType.valueOf(type_);
return result == null ? alluxio.proto.shared.Acl.AclEntryType.OWNER : result;
}
/**
* optional .alluxio.proto.shared.AclEntryType type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(alluxio.proto.shared.Acl.AclEntryType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .alluxio.proto.shared.AclEntryType 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.proto.shared.AclAction 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.proto.shared.Acl.AclAction>(actions_, actions_converter_);
}
/**
* repeated .alluxio.proto.shared.AclAction actions = 3;
* @return The count of actions.
*/
public int getActionsCount() {
return actions_.size();
}
/**
* repeated .alluxio.proto.shared.AclAction actions = 3;
* @param index The index of the element to return.
* @return The actions at the given index.
*/
public alluxio.proto.shared.Acl.AclAction getActions(int index) {
return actions_converter_.convert(actions_.get(index));
}
/**
* repeated .alluxio.proto.shared.AclAction 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.proto.shared.Acl.AclAction value) {
if (value == null) {
throw new NullPointerException();
}
ensureActionsIsMutable();
actions_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .alluxio.proto.shared.AclAction actions = 3;
* @param value The actions to add.
* @return This builder for chaining.
*/
public Builder addActions(alluxio.proto.shared.Acl.AclAction value) {
if (value == null) {
throw new NullPointerException();
}
ensureActionsIsMutable();
actions_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .alluxio.proto.shared.AclAction actions = 3;
* @param values The actions to add.
* @return This builder for chaining.
*/
public Builder addAllActions(
java.lang.Iterable extends alluxio.proto.shared.Acl.AclAction> values) {
ensureActionsIsMutable();
for (alluxio.proto.shared.Acl.AclAction value : values) {
actions_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .alluxio.proto.shared.AclAction 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.proto.shared.AclEntry)
}
// @@protoc_insertion_point(class_scope:alluxio.proto.shared.AclEntry)
private static final alluxio.proto.shared.Acl.AclEntry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new alluxio.proto.shared.Acl.AclEntry();
}
public static alluxio.proto.shared.Acl.AclEntry 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 AclEntry 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.proto.shared.Acl.AclEntry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NamedAclActionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:alluxio.proto.shared.NamedAclActions)
alluxio.shaded.client.com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
* @return Whether the name field is set.
*/
boolean hasName();
/**
* optional string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
* optional string name = 1;
* @return The bytes for name.
*/
alluxio.shaded.client.com.google.protobuf.ByteString
getNameBytes();
/**
* optional .alluxio.proto.shared.AclActions actions = 2;
* @return Whether the actions field is set.
*/
boolean hasActions();
/**
* optional .alluxio.proto.shared.AclActions actions = 2;
* @return The actions.
*/
alluxio.proto.shared.Acl.AclActions getActions();
/**
* optional .alluxio.proto.shared.AclActions actions = 2;
*/
alluxio.proto.shared.Acl.AclActionsOrBuilder getActionsOrBuilder();
}
/**
*
* AclActions for a String name.
* next available id: 3
*
*
* Protobuf type {@code alluxio.proto.shared.NamedAclActions}
*/
public static final class NamedAclActions extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:alluxio.proto.shared.NamedAclActions)
NamedAclActionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use NamedAclActions.newBuilder() to construct.
private NamedAclActions(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NamedAclActions() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NamedAclActions();
}
@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.proto.shared.Acl.internal_static_alluxio_proto_shared_NamedAclActions_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.shared.Acl.internal_static_alluxio_proto_shared_NamedAclActions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.shared.Acl.NamedAclActions.class, alluxio.proto.shared.Acl.NamedAclActions.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
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);
name_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
public static final int ACTIONS_FIELD_NUMBER = 2;
private alluxio.proto.shared.Acl.AclActions actions_;
/**
* optional .alluxio.proto.shared.AclActions actions = 2;
* @return Whether the actions field is set.
*/
@java.lang.Override
public boolean hasActions() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .alluxio.proto.shared.AclActions actions = 2;
* @return The actions.
*/
@java.lang.Override
public alluxio.proto.shared.Acl.AclActions getActions() {
return actions_ == null ? alluxio.proto.shared.Acl.AclActions.getDefaultInstance() : actions_;
}
/**
* optional .alluxio.proto.shared.AclActions actions = 2;
*/
@java.lang.Override
public alluxio.proto.shared.Acl.AclActionsOrBuilder getActionsOrBuilder() {
return actions_ == null ? alluxio.proto.shared.Acl.AclActions.getDefaultInstance() : actions_;
}
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, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getActions());
}
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, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteMessageSize(2, getActions());
}
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.proto.shared.Acl.NamedAclActions)) {
return super.equals(obj);
}
alluxio.proto.shared.Acl.NamedAclActions other = (alluxio.proto.shared.Acl.NamedAclActions) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasActions() != other.hasActions()) return false;
if (hasActions()) {
if (!getActions()
.equals(other.getActions())) 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 (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasActions()) {
hash = (37 * hash) + ACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getActions().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static alluxio.proto.shared.Acl.NamedAclActions parseFrom(
java.nio.ByteBuffer data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.shared.Acl.NamedAclActions 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.proto.shared.Acl.NamedAclActions parseFrom(
alluxio.shaded.client.com.google.protobuf.ByteString data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.shared.Acl.NamedAclActions 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.proto.shared.Acl.NamedAclActions parseFrom(byte[] data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.shared.Acl.NamedAclActions 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.proto.shared.Acl.NamedAclActions 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.proto.shared.Acl.NamedAclActions 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.proto.shared.Acl.NamedAclActions 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.proto.shared.Acl.NamedAclActions 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.proto.shared.Acl.NamedAclActions 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.proto.shared.Acl.NamedAclActions 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.proto.shared.Acl.NamedAclActions 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;
}
/**
*
* AclActions for a String name.
* next available id: 3
*
*
* Protobuf type {@code alluxio.proto.shared.NamedAclActions}
*/
public static final class Builder extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:alluxio.proto.shared.NamedAclActions)
alluxio.proto.shared.Acl.NamedAclActionsOrBuilder {
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.shared.Acl.internal_static_alluxio_proto_shared_NamedAclActions_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.shared.Acl.internal_static_alluxio_proto_shared_NamedAclActions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.shared.Acl.NamedAclActions.class, alluxio.proto.shared.Acl.NamedAclActions.Builder.class);
}
// Construct using alluxio.proto.shared.Acl.NamedAclActions.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) {
getActionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (actionsBuilder_ == null) {
actions_ = null;
} else {
actionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.proto.shared.Acl.internal_static_alluxio_proto_shared_NamedAclActions_descriptor;
}
@java.lang.Override
public alluxio.proto.shared.Acl.NamedAclActions getDefaultInstanceForType() {
return alluxio.proto.shared.Acl.NamedAclActions.getDefaultInstance();
}
@java.lang.Override
public alluxio.proto.shared.Acl.NamedAclActions build() {
alluxio.proto.shared.Acl.NamedAclActions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public alluxio.proto.shared.Acl.NamedAclActions buildPartial() {
alluxio.proto.shared.Acl.NamedAclActions result = new alluxio.proto.shared.Acl.NamedAclActions(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) != 0)) {
if (actionsBuilder_ == null) {
result.actions_ = actions_;
} else {
result.actions_ = actionsBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
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.proto.shared.Acl.NamedAclActions) {
return mergeFrom((alluxio.proto.shared.Acl.NamedAclActions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.proto.shared.Acl.NamedAclActions other) {
if (other == alluxio.proto.shared.Acl.NamedAclActions.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasActions()) {
mergeActions(other.getActions());
}
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: {
name_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getActionsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
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 name_ = "";
/**
* optional string name = 1;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
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()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 1;
* @return The bytes for name.
*/
public alluxio.shaded.client.com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
alluxio.shaded.client.com.google.protobuf.ByteString b =
alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private alluxio.proto.shared.Acl.AclActions actions_;
private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.proto.shared.Acl.AclActions, alluxio.proto.shared.Acl.AclActions.Builder, alluxio.proto.shared.Acl.AclActionsOrBuilder> actionsBuilder_;
/**
* optional .alluxio.proto.shared.AclActions actions = 2;
* @return Whether the actions field is set.
*/
public boolean hasActions() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .alluxio.proto.shared.AclActions actions = 2;
* @return The actions.
*/
public alluxio.proto.shared.Acl.AclActions getActions() {
if (actionsBuilder_ == null) {
return actions_ == null ? alluxio.proto.shared.Acl.AclActions.getDefaultInstance() : actions_;
} else {
return actionsBuilder_.getMessage();
}
}
/**
* optional .alluxio.proto.shared.AclActions actions = 2;
*/
public Builder setActions(alluxio.proto.shared.Acl.AclActions value) {
if (actionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
actions_ = value;
onChanged();
} else {
actionsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .alluxio.proto.shared.AclActions actions = 2;
*/
public Builder setActions(
alluxio.proto.shared.Acl.AclActions.Builder builderForValue) {
if (actionsBuilder_ == null) {
actions_ = builderForValue.build();
onChanged();
} else {
actionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .alluxio.proto.shared.AclActions actions = 2;
*/
public Builder mergeActions(alluxio.proto.shared.Acl.AclActions value) {
if (actionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
actions_ != null &&
actions_ != alluxio.proto.shared.Acl.AclActions.getDefaultInstance()) {
actions_ =
alluxio.proto.shared.Acl.AclActions.newBuilder(actions_).mergeFrom(value).buildPartial();
} else {
actions_ = value;
}
onChanged();
} else {
actionsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .alluxio.proto.shared.AclActions actions = 2;
*/
public Builder clearActions() {
if (actionsBuilder_ == null) {
actions_ = null;
onChanged();
} else {
actionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .alluxio.proto.shared.AclActions actions = 2;
*/
public alluxio.proto.shared.Acl.AclActions.Builder getActionsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getActionsFieldBuilder().getBuilder();
}
/**
* optional .alluxio.proto.shared.AclActions actions = 2;
*/
public alluxio.proto.shared.Acl.AclActionsOrBuilder getActionsOrBuilder() {
if (actionsBuilder_ != null) {
return actionsBuilder_.getMessageOrBuilder();
} else {
return actions_ == null ?
alluxio.proto.shared.Acl.AclActions.getDefaultInstance() : actions_;
}
}
/**
* optional .alluxio.proto.shared.AclActions actions = 2;
*/
private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.proto.shared.Acl.AclActions, alluxio.proto.shared.Acl.AclActions.Builder, alluxio.proto.shared.Acl.AclActionsOrBuilder>
getActionsFieldBuilder() {
if (actionsBuilder_ == null) {
actionsBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.proto.shared.Acl.AclActions, alluxio.proto.shared.Acl.AclActions.Builder, alluxio.proto.shared.Acl.AclActionsOrBuilder>(
getActions(),
getParentForChildren(),
isClean());
actions_ = null;
}
return actionsBuilder_;
}
@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.proto.shared.NamedAclActions)
}
// @@protoc_insertion_point(class_scope:alluxio.proto.shared.NamedAclActions)
private static final alluxio.proto.shared.Acl.NamedAclActions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new alluxio.proto.shared.Acl.NamedAclActions();
}
public static alluxio.proto.shared.Acl.NamedAclActions 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 NamedAclActions 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.proto.shared.Acl.NamedAclActions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AccessControlListOrBuilder extends
// @@protoc_insertion_point(interface_extends:alluxio.proto.shared.AccessControlList)
alluxio.shaded.client.com.google.protobuf.MessageOrBuilder {
/**
* optional string owningUser = 1;
* @return Whether the owningUser field is set.
*/
boolean hasOwningUser();
/**
* optional string owningUser = 1;
* @return The owningUser.
*/
java.lang.String getOwningUser();
/**
* optional string owningUser = 1;
* @return The bytes for owningUser.
*/
alluxio.shaded.client.com.google.protobuf.ByteString
getOwningUserBytes();
/**
* optional string owningGroup = 2;
* @return Whether the owningGroup field is set.
*/
boolean hasOwningGroup();
/**
* optional string owningGroup = 2;
* @return The owningGroup.
*/
java.lang.String getOwningGroup();
/**
* optional string owningGroup = 2;
* @return The bytes for owningGroup.
*/
alluxio.shaded.client.com.google.protobuf.ByteString
getOwningGroupBytes();
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
java.util.List
getUserActionsList();
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
alluxio.proto.shared.Acl.NamedAclActions getUserActions(int index);
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
int getUserActionsCount();
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
java.util.List extends alluxio.proto.shared.Acl.NamedAclActionsOrBuilder>
getUserActionsOrBuilderList();
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
alluxio.proto.shared.Acl.NamedAclActionsOrBuilder getUserActionsOrBuilder(
int index);
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
java.util.List
getGroupActionsList();
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
alluxio.proto.shared.Acl.NamedAclActions getGroupActions(int index);
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
int getGroupActionsCount();
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
java.util.List extends alluxio.proto.shared.Acl.NamedAclActionsOrBuilder>
getGroupActionsOrBuilderList();
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
alluxio.proto.shared.Acl.NamedAclActionsOrBuilder getGroupActionsOrBuilder(
int index);
/**
* optional .alluxio.proto.shared.AclActions maskActions = 5;
* @return Whether the maskActions field is set.
*/
boolean hasMaskActions();
/**
* optional .alluxio.proto.shared.AclActions maskActions = 5;
* @return The maskActions.
*/
alluxio.proto.shared.Acl.AclActions getMaskActions();
/**
* optional .alluxio.proto.shared.AclActions maskActions = 5;
*/
alluxio.proto.shared.Acl.AclActionsOrBuilder getMaskActionsOrBuilder();
/**
* optional .alluxio.proto.shared.AclActions otherActions = 6;
* @return Whether the otherActions field is set.
*/
boolean hasOtherActions();
/**
* optional .alluxio.proto.shared.AclActions otherActions = 6;
* @return The otherActions.
*/
alluxio.proto.shared.Acl.AclActions getOtherActions();
/**
* optional .alluxio.proto.shared.AclActions otherActions = 6;
*/
alluxio.proto.shared.Acl.AclActionsOrBuilder getOtherActionsOrBuilder();
/**
* optional bool isDefault = 7;
* @return Whether the isDefault field is set.
*/
boolean hasIsDefault();
/**
* optional bool isDefault = 7;
* @return The isDefault.
*/
boolean getIsDefault();
/**
* optional bool isEmpty = 8;
* @return Whether the isEmpty field is set.
*/
boolean hasIsEmpty();
/**
* optional bool isEmpty = 8;
* @return The isEmpty.
*/
boolean getIsEmpty();
}
/**
*
* next available id: 9
*
*
* Protobuf type {@code alluxio.proto.shared.AccessControlList}
*/
public static final class AccessControlList extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:alluxio.proto.shared.AccessControlList)
AccessControlListOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccessControlList.newBuilder() to construct.
private AccessControlList(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccessControlList() {
owningUser_ = "";
owningGroup_ = "";
userActions_ = java.util.Collections.emptyList();
groupActions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AccessControlList();
}
@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.proto.shared.Acl.internal_static_alluxio_proto_shared_AccessControlList_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.shared.Acl.internal_static_alluxio_proto_shared_AccessControlList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.shared.Acl.AccessControlList.class, alluxio.proto.shared.Acl.AccessControlList.Builder.class);
}
private int bitField0_;
public static final int OWNINGUSER_FIELD_NUMBER = 1;
private volatile java.lang.Object owningUser_;
/**
* optional string owningUser = 1;
* @return Whether the owningUser field is set.
*/
@java.lang.Override
public boolean hasOwningUser() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string owningUser = 1;
* @return The owningUser.
*/
@java.lang.Override
public java.lang.String getOwningUser() {
java.lang.Object ref = owningUser_;
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()) {
owningUser_ = s;
}
return s;
}
}
/**
* optional string owningUser = 1;
* @return The bytes for owningUser.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString
getOwningUserBytes() {
java.lang.Object ref = owningUser_;
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);
owningUser_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
public static final int OWNINGGROUP_FIELD_NUMBER = 2;
private volatile java.lang.Object owningGroup_;
/**
* optional string owningGroup = 2;
* @return Whether the owningGroup field is set.
*/
@java.lang.Override
public boolean hasOwningGroup() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string owningGroup = 2;
* @return The owningGroup.
*/
@java.lang.Override
public java.lang.String getOwningGroup() {
java.lang.Object ref = owningGroup_;
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()) {
owningGroup_ = s;
}
return s;
}
}
/**
* optional string owningGroup = 2;
* @return The bytes for owningGroup.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString
getOwningGroupBytes() {
java.lang.Object ref = owningGroup_;
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);
owningGroup_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
public static final int USERACTIONS_FIELD_NUMBER = 3;
private java.util.List userActions_;
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
@java.lang.Override
public java.util.List getUserActionsList() {
return userActions_;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
@java.lang.Override
public java.util.List extends alluxio.proto.shared.Acl.NamedAclActionsOrBuilder>
getUserActionsOrBuilderList() {
return userActions_;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
@java.lang.Override
public int getUserActionsCount() {
return userActions_.size();
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
@java.lang.Override
public alluxio.proto.shared.Acl.NamedAclActions getUserActions(int index) {
return userActions_.get(index);
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
@java.lang.Override
public alluxio.proto.shared.Acl.NamedAclActionsOrBuilder getUserActionsOrBuilder(
int index) {
return userActions_.get(index);
}
public static final int GROUPACTIONS_FIELD_NUMBER = 4;
private java.util.List groupActions_;
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
@java.lang.Override
public java.util.List getGroupActionsList() {
return groupActions_;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
@java.lang.Override
public java.util.List extends alluxio.proto.shared.Acl.NamedAclActionsOrBuilder>
getGroupActionsOrBuilderList() {
return groupActions_;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
@java.lang.Override
public int getGroupActionsCount() {
return groupActions_.size();
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
@java.lang.Override
public alluxio.proto.shared.Acl.NamedAclActions getGroupActions(int index) {
return groupActions_.get(index);
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
@java.lang.Override
public alluxio.proto.shared.Acl.NamedAclActionsOrBuilder getGroupActionsOrBuilder(
int index) {
return groupActions_.get(index);
}
public static final int MASKACTIONS_FIELD_NUMBER = 5;
private alluxio.proto.shared.Acl.AclActions maskActions_;
/**
* optional .alluxio.proto.shared.AclActions maskActions = 5;
* @return Whether the maskActions field is set.
*/
@java.lang.Override
public boolean hasMaskActions() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .alluxio.proto.shared.AclActions maskActions = 5;
* @return The maskActions.
*/
@java.lang.Override
public alluxio.proto.shared.Acl.AclActions getMaskActions() {
return maskActions_ == null ? alluxio.proto.shared.Acl.AclActions.getDefaultInstance() : maskActions_;
}
/**
* optional .alluxio.proto.shared.AclActions maskActions = 5;
*/
@java.lang.Override
public alluxio.proto.shared.Acl.AclActionsOrBuilder getMaskActionsOrBuilder() {
return maskActions_ == null ? alluxio.proto.shared.Acl.AclActions.getDefaultInstance() : maskActions_;
}
public static final int OTHERACTIONS_FIELD_NUMBER = 6;
private alluxio.proto.shared.Acl.AclActions otherActions_;
/**
* optional .alluxio.proto.shared.AclActions otherActions = 6;
* @return Whether the otherActions field is set.
*/
@java.lang.Override
public boolean hasOtherActions() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .alluxio.proto.shared.AclActions otherActions = 6;
* @return The otherActions.
*/
@java.lang.Override
public alluxio.proto.shared.Acl.AclActions getOtherActions() {
return otherActions_ == null ? alluxio.proto.shared.Acl.AclActions.getDefaultInstance() : otherActions_;
}
/**
* optional .alluxio.proto.shared.AclActions otherActions = 6;
*/
@java.lang.Override
public alluxio.proto.shared.Acl.AclActionsOrBuilder getOtherActionsOrBuilder() {
return otherActions_ == null ? alluxio.proto.shared.Acl.AclActions.getDefaultInstance() : otherActions_;
}
public static final int ISDEFAULT_FIELD_NUMBER = 7;
private boolean isDefault_;
/**
* optional bool isDefault = 7;
* @return Whether the isDefault field is set.
*/
@java.lang.Override
public boolean hasIsDefault() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional bool isDefault = 7;
* @return The isDefault.
*/
@java.lang.Override
public boolean getIsDefault() {
return isDefault_;
}
public static final int ISEMPTY_FIELD_NUMBER = 8;
private boolean isEmpty_;
/**
* optional bool isEmpty = 8;
* @return Whether the isEmpty field is set.
*/
@java.lang.Override
public boolean hasIsEmpty() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional bool isEmpty = 8;
* @return The isEmpty.
*/
@java.lang.Override
public boolean getIsEmpty() {
return isEmpty_;
}
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, owningUser_);
}
if (((bitField0_ & 0x00000002) != 0)) {
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, owningGroup_);
}
for (int i = 0; i < userActions_.size(); i++) {
output.writeMessage(3, userActions_.get(i));
}
for (int i = 0; i < groupActions_.size(); i++) {
output.writeMessage(4, groupActions_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(5, getMaskActions());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(6, getOtherActions());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(7, isDefault_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(8, isEmpty_);
}
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, owningUser_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(2, owningGroup_);
}
for (int i = 0; i < userActions_.size(); i++) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteMessageSize(3, userActions_.get(i));
}
for (int i = 0; i < groupActions_.size(); i++) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteMessageSize(4, groupActions_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteMessageSize(5, getMaskActions());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteMessageSize(6, getOtherActions());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteBoolSize(7, isDefault_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteBoolSize(8, isEmpty_);
}
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.proto.shared.Acl.AccessControlList)) {
return super.equals(obj);
}
alluxio.proto.shared.Acl.AccessControlList other = (alluxio.proto.shared.Acl.AccessControlList) obj;
if (hasOwningUser() != other.hasOwningUser()) return false;
if (hasOwningUser()) {
if (!getOwningUser()
.equals(other.getOwningUser())) return false;
}
if (hasOwningGroup() != other.hasOwningGroup()) return false;
if (hasOwningGroup()) {
if (!getOwningGroup()
.equals(other.getOwningGroup())) return false;
}
if (!getUserActionsList()
.equals(other.getUserActionsList())) return false;
if (!getGroupActionsList()
.equals(other.getGroupActionsList())) return false;
if (hasMaskActions() != other.hasMaskActions()) return false;
if (hasMaskActions()) {
if (!getMaskActions()
.equals(other.getMaskActions())) return false;
}
if (hasOtherActions() != other.hasOtherActions()) return false;
if (hasOtherActions()) {
if (!getOtherActions()
.equals(other.getOtherActions())) return false;
}
if (hasIsDefault() != other.hasIsDefault()) return false;
if (hasIsDefault()) {
if (getIsDefault()
!= other.getIsDefault()) return false;
}
if (hasIsEmpty() != other.hasIsEmpty()) return false;
if (hasIsEmpty()) {
if (getIsEmpty()
!= other.getIsEmpty()) 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 (hasOwningUser()) {
hash = (37 * hash) + OWNINGUSER_FIELD_NUMBER;
hash = (53 * hash) + getOwningUser().hashCode();
}
if (hasOwningGroup()) {
hash = (37 * hash) + OWNINGGROUP_FIELD_NUMBER;
hash = (53 * hash) + getOwningGroup().hashCode();
}
if (getUserActionsCount() > 0) {
hash = (37 * hash) + USERACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getUserActionsList().hashCode();
}
if (getGroupActionsCount() > 0) {
hash = (37 * hash) + GROUPACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getGroupActionsList().hashCode();
}
if (hasMaskActions()) {
hash = (37 * hash) + MASKACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getMaskActions().hashCode();
}
if (hasOtherActions()) {
hash = (37 * hash) + OTHERACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOtherActions().hashCode();
}
if (hasIsDefault()) {
hash = (37 * hash) + ISDEFAULT_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
getIsDefault());
}
if (hasIsEmpty()) {
hash = (37 * hash) + ISEMPTY_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
getIsEmpty());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static alluxio.proto.shared.Acl.AccessControlList parseFrom(
java.nio.ByteBuffer data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.shared.Acl.AccessControlList 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.proto.shared.Acl.AccessControlList parseFrom(
alluxio.shaded.client.com.google.protobuf.ByteString data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.shared.Acl.AccessControlList 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.proto.shared.Acl.AccessControlList parseFrom(byte[] data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.proto.shared.Acl.AccessControlList 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.proto.shared.Acl.AccessControlList 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.proto.shared.Acl.AccessControlList 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.proto.shared.Acl.AccessControlList 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.proto.shared.Acl.AccessControlList 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.proto.shared.Acl.AccessControlList 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.proto.shared.Acl.AccessControlList 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.proto.shared.Acl.AccessControlList 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;
}
/**
*
* next available id: 9
*
*
* Protobuf type {@code alluxio.proto.shared.AccessControlList}
*/
public static final class Builder extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:alluxio.proto.shared.AccessControlList)
alluxio.proto.shared.Acl.AccessControlListOrBuilder {
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.proto.shared.Acl.internal_static_alluxio_proto_shared_AccessControlList_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.proto.shared.Acl.internal_static_alluxio_proto_shared_AccessControlList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.proto.shared.Acl.AccessControlList.class, alluxio.proto.shared.Acl.AccessControlList.Builder.class);
}
// Construct using alluxio.proto.shared.Acl.AccessControlList.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) {
getUserActionsFieldBuilder();
getGroupActionsFieldBuilder();
getMaskActionsFieldBuilder();
getOtherActionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
owningUser_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
owningGroup_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (userActionsBuilder_ == null) {
userActions_ = java.util.Collections.emptyList();
} else {
userActions_ = null;
userActionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (groupActionsBuilder_ == null) {
groupActions_ = java.util.Collections.emptyList();
} else {
groupActions_ = null;
groupActionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (maskActionsBuilder_ == null) {
maskActions_ = null;
} else {
maskActionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (otherActionsBuilder_ == null) {
otherActions_ = null;
} else {
otherActionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
isDefault_ = false;
bitField0_ = (bitField0_ & ~0x00000040);
isEmpty_ = false;
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.proto.shared.Acl.internal_static_alluxio_proto_shared_AccessControlList_descriptor;
}
@java.lang.Override
public alluxio.proto.shared.Acl.AccessControlList getDefaultInstanceForType() {
return alluxio.proto.shared.Acl.AccessControlList.getDefaultInstance();
}
@java.lang.Override
public alluxio.proto.shared.Acl.AccessControlList build() {
alluxio.proto.shared.Acl.AccessControlList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public alluxio.proto.shared.Acl.AccessControlList buildPartial() {
alluxio.proto.shared.Acl.AccessControlList result = new alluxio.proto.shared.Acl.AccessControlList(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.owningUser_ = owningUser_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.owningGroup_ = owningGroup_;
if (userActionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
userActions_ = java.util.Collections.unmodifiableList(userActions_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.userActions_ = userActions_;
} else {
result.userActions_ = userActionsBuilder_.build();
}
if (groupActionsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
groupActions_ = java.util.Collections.unmodifiableList(groupActions_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.groupActions_ = groupActions_;
} else {
result.groupActions_ = groupActionsBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
if (maskActionsBuilder_ == null) {
result.maskActions_ = maskActions_;
} else {
result.maskActions_ = maskActionsBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
if (otherActionsBuilder_ == null) {
result.otherActions_ = otherActions_;
} else {
result.otherActions_ = otherActionsBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.isDefault_ = isDefault_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.isEmpty_ = isEmpty_;
to_bitField0_ |= 0x00000020;
}
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.proto.shared.Acl.AccessControlList) {
return mergeFrom((alluxio.proto.shared.Acl.AccessControlList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.proto.shared.Acl.AccessControlList other) {
if (other == alluxio.proto.shared.Acl.AccessControlList.getDefaultInstance()) return this;
if (other.hasOwningUser()) {
bitField0_ |= 0x00000001;
owningUser_ = other.owningUser_;
onChanged();
}
if (other.hasOwningGroup()) {
bitField0_ |= 0x00000002;
owningGroup_ = other.owningGroup_;
onChanged();
}
if (userActionsBuilder_ == null) {
if (!other.userActions_.isEmpty()) {
if (userActions_.isEmpty()) {
userActions_ = other.userActions_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureUserActionsIsMutable();
userActions_.addAll(other.userActions_);
}
onChanged();
}
} else {
if (!other.userActions_.isEmpty()) {
if (userActionsBuilder_.isEmpty()) {
userActionsBuilder_.dispose();
userActionsBuilder_ = null;
userActions_ = other.userActions_;
bitField0_ = (bitField0_ & ~0x00000004);
userActionsBuilder_ =
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUserActionsFieldBuilder() : null;
} else {
userActionsBuilder_.addAllMessages(other.userActions_);
}
}
}
if (groupActionsBuilder_ == null) {
if (!other.groupActions_.isEmpty()) {
if (groupActions_.isEmpty()) {
groupActions_ = other.groupActions_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureGroupActionsIsMutable();
groupActions_.addAll(other.groupActions_);
}
onChanged();
}
} else {
if (!other.groupActions_.isEmpty()) {
if (groupActionsBuilder_.isEmpty()) {
groupActionsBuilder_.dispose();
groupActionsBuilder_ = null;
groupActions_ = other.groupActions_;
bitField0_ = (bitField0_ & ~0x00000008);
groupActionsBuilder_ =
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGroupActionsFieldBuilder() : null;
} else {
groupActionsBuilder_.addAllMessages(other.groupActions_);
}
}
}
if (other.hasMaskActions()) {
mergeMaskActions(other.getMaskActions());
}
if (other.hasOtherActions()) {
mergeOtherActions(other.getOtherActions());
}
if (other.hasIsDefault()) {
setIsDefault(other.getIsDefault());
}
if (other.hasIsEmpty()) {
setIsEmpty(other.getIsEmpty());
}
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: {
owningUser_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
owningGroup_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
alluxio.proto.shared.Acl.NamedAclActions m =
input.readMessage(
alluxio.proto.shared.Acl.NamedAclActions.PARSER,
extensionRegistry);
if (userActionsBuilder_ == null) {
ensureUserActionsIsMutable();
userActions_.add(m);
} else {
userActionsBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
alluxio.proto.shared.Acl.NamedAclActions m =
input.readMessage(
alluxio.proto.shared.Acl.NamedAclActions.PARSER,
extensionRegistry);
if (groupActionsBuilder_ == null) {
ensureGroupActionsIsMutable();
groupActions_.add(m);
} else {
groupActionsBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
input.readMessage(
getMaskActionsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getOtherActionsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 56: {
isDefault_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 56
case 64: {
isEmpty_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object owningUser_ = "";
/**
* optional string owningUser = 1;
* @return Whether the owningUser field is set.
*/
public boolean hasOwningUser() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string owningUser = 1;
* @return The owningUser.
*/
public java.lang.String getOwningUser() {
java.lang.Object ref = owningUser_;
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()) {
owningUser_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string owningUser = 1;
* @return The bytes for owningUser.
*/
public alluxio.shaded.client.com.google.protobuf.ByteString
getOwningUserBytes() {
java.lang.Object ref = owningUser_;
if (ref instanceof String) {
alluxio.shaded.client.com.google.protobuf.ByteString b =
alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
owningUser_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
/**
* optional string owningUser = 1;
* @param value The owningUser to set.
* @return This builder for chaining.
*/
public Builder setOwningUser(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
owningUser_ = value;
onChanged();
return this;
}
/**
* optional string owningUser = 1;
* @return This builder for chaining.
*/
public Builder clearOwningUser() {
bitField0_ = (bitField0_ & ~0x00000001);
owningUser_ = getDefaultInstance().getOwningUser();
onChanged();
return this;
}
/**
* optional string owningUser = 1;
* @param value The bytes for owningUser to set.
* @return This builder for chaining.
*/
public Builder setOwningUserBytes(
alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
owningUser_ = value;
onChanged();
return this;
}
private java.lang.Object owningGroup_ = "";
/**
* optional string owningGroup = 2;
* @return Whether the owningGroup field is set.
*/
public boolean hasOwningGroup() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string owningGroup = 2;
* @return The owningGroup.
*/
public java.lang.String getOwningGroup() {
java.lang.Object ref = owningGroup_;
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()) {
owningGroup_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string owningGroup = 2;
* @return The bytes for owningGroup.
*/
public alluxio.shaded.client.com.google.protobuf.ByteString
getOwningGroupBytes() {
java.lang.Object ref = owningGroup_;
if (ref instanceof String) {
alluxio.shaded.client.com.google.protobuf.ByteString b =
alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
owningGroup_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
/**
* optional string owningGroup = 2;
* @param value The owningGroup to set.
* @return This builder for chaining.
*/
public Builder setOwningGroup(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
owningGroup_ = value;
onChanged();
return this;
}
/**
* optional string owningGroup = 2;
* @return This builder for chaining.
*/
public Builder clearOwningGroup() {
bitField0_ = (bitField0_ & ~0x00000002);
owningGroup_ = getDefaultInstance().getOwningGroup();
onChanged();
return this;
}
/**
* optional string owningGroup = 2;
* @param value The bytes for owningGroup to set.
* @return This builder for chaining.
*/
public Builder setOwningGroupBytes(
alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
owningGroup_ = value;
onChanged();
return this;
}
private java.util.List userActions_ =
java.util.Collections.emptyList();
private void ensureUserActionsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
userActions_ = new java.util.ArrayList(userActions_);
bitField0_ |= 0x00000004;
}
}
private alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3<
alluxio.proto.shared.Acl.NamedAclActions, alluxio.proto.shared.Acl.NamedAclActions.Builder, alluxio.proto.shared.Acl.NamedAclActionsOrBuilder> userActionsBuilder_;
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public java.util.List getUserActionsList() {
if (userActionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(userActions_);
} else {
return userActionsBuilder_.getMessageList();
}
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public int getUserActionsCount() {
if (userActionsBuilder_ == null) {
return userActions_.size();
} else {
return userActionsBuilder_.getCount();
}
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public alluxio.proto.shared.Acl.NamedAclActions getUserActions(int index) {
if (userActionsBuilder_ == null) {
return userActions_.get(index);
} else {
return userActionsBuilder_.getMessage(index);
}
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public Builder setUserActions(
int index, alluxio.proto.shared.Acl.NamedAclActions value) {
if (userActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUserActionsIsMutable();
userActions_.set(index, value);
onChanged();
} else {
userActionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public Builder setUserActions(
int index, alluxio.proto.shared.Acl.NamedAclActions.Builder builderForValue) {
if (userActionsBuilder_ == null) {
ensureUserActionsIsMutable();
userActions_.set(index, builderForValue.build());
onChanged();
} else {
userActionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public Builder addUserActions(alluxio.proto.shared.Acl.NamedAclActions value) {
if (userActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUserActionsIsMutable();
userActions_.add(value);
onChanged();
} else {
userActionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public Builder addUserActions(
int index, alluxio.proto.shared.Acl.NamedAclActions value) {
if (userActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUserActionsIsMutable();
userActions_.add(index, value);
onChanged();
} else {
userActionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public Builder addUserActions(
alluxio.proto.shared.Acl.NamedAclActions.Builder builderForValue) {
if (userActionsBuilder_ == null) {
ensureUserActionsIsMutable();
userActions_.add(builderForValue.build());
onChanged();
} else {
userActionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public Builder addUserActions(
int index, alluxio.proto.shared.Acl.NamedAclActions.Builder builderForValue) {
if (userActionsBuilder_ == null) {
ensureUserActionsIsMutable();
userActions_.add(index, builderForValue.build());
onChanged();
} else {
userActionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public Builder addAllUserActions(
java.lang.Iterable extends alluxio.proto.shared.Acl.NamedAclActions> values) {
if (userActionsBuilder_ == null) {
ensureUserActionsIsMutable();
alluxio.shaded.client.com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, userActions_);
onChanged();
} else {
userActionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public Builder clearUserActions() {
if (userActionsBuilder_ == null) {
userActions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
userActionsBuilder_.clear();
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public Builder removeUserActions(int index) {
if (userActionsBuilder_ == null) {
ensureUserActionsIsMutable();
userActions_.remove(index);
onChanged();
} else {
userActionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public alluxio.proto.shared.Acl.NamedAclActions.Builder getUserActionsBuilder(
int index) {
return getUserActionsFieldBuilder().getBuilder(index);
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public alluxio.proto.shared.Acl.NamedAclActionsOrBuilder getUserActionsOrBuilder(
int index) {
if (userActionsBuilder_ == null) {
return userActions_.get(index); } else {
return userActionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public java.util.List extends alluxio.proto.shared.Acl.NamedAclActionsOrBuilder>
getUserActionsOrBuilderList() {
if (userActionsBuilder_ != null) {
return userActionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(userActions_);
}
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public alluxio.proto.shared.Acl.NamedAclActions.Builder addUserActionsBuilder() {
return getUserActionsFieldBuilder().addBuilder(
alluxio.proto.shared.Acl.NamedAclActions.getDefaultInstance());
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public alluxio.proto.shared.Acl.NamedAclActions.Builder addUserActionsBuilder(
int index) {
return getUserActionsFieldBuilder().addBuilder(
index, alluxio.proto.shared.Acl.NamedAclActions.getDefaultInstance());
}
/**
* repeated .alluxio.proto.shared.NamedAclActions userActions = 3;
*/
public java.util.List
getUserActionsBuilderList() {
return getUserActionsFieldBuilder().getBuilderList();
}
private alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3<
alluxio.proto.shared.Acl.NamedAclActions, alluxio.proto.shared.Acl.NamedAclActions.Builder, alluxio.proto.shared.Acl.NamedAclActionsOrBuilder>
getUserActionsFieldBuilder() {
if (userActionsBuilder_ == null) {
userActionsBuilder_ = new alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3<
alluxio.proto.shared.Acl.NamedAclActions, alluxio.proto.shared.Acl.NamedAclActions.Builder, alluxio.proto.shared.Acl.NamedAclActionsOrBuilder>(
userActions_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
userActions_ = null;
}
return userActionsBuilder_;
}
private java.util.List groupActions_ =
java.util.Collections.emptyList();
private void ensureGroupActionsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
groupActions_ = new java.util.ArrayList(groupActions_);
bitField0_ |= 0x00000008;
}
}
private alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3<
alluxio.proto.shared.Acl.NamedAclActions, alluxio.proto.shared.Acl.NamedAclActions.Builder, alluxio.proto.shared.Acl.NamedAclActionsOrBuilder> groupActionsBuilder_;
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public java.util.List getGroupActionsList() {
if (groupActionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(groupActions_);
} else {
return groupActionsBuilder_.getMessageList();
}
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public int getGroupActionsCount() {
if (groupActionsBuilder_ == null) {
return groupActions_.size();
} else {
return groupActionsBuilder_.getCount();
}
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public alluxio.proto.shared.Acl.NamedAclActions getGroupActions(int index) {
if (groupActionsBuilder_ == null) {
return groupActions_.get(index);
} else {
return groupActionsBuilder_.getMessage(index);
}
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public Builder setGroupActions(
int index, alluxio.proto.shared.Acl.NamedAclActions value) {
if (groupActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupActionsIsMutable();
groupActions_.set(index, value);
onChanged();
} else {
groupActionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public Builder setGroupActions(
int index, alluxio.proto.shared.Acl.NamedAclActions.Builder builderForValue) {
if (groupActionsBuilder_ == null) {
ensureGroupActionsIsMutable();
groupActions_.set(index, builderForValue.build());
onChanged();
} else {
groupActionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public Builder addGroupActions(alluxio.proto.shared.Acl.NamedAclActions value) {
if (groupActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupActionsIsMutable();
groupActions_.add(value);
onChanged();
} else {
groupActionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public Builder addGroupActions(
int index, alluxio.proto.shared.Acl.NamedAclActions value) {
if (groupActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupActionsIsMutable();
groupActions_.add(index, value);
onChanged();
} else {
groupActionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public Builder addGroupActions(
alluxio.proto.shared.Acl.NamedAclActions.Builder builderForValue) {
if (groupActionsBuilder_ == null) {
ensureGroupActionsIsMutable();
groupActions_.add(builderForValue.build());
onChanged();
} else {
groupActionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public Builder addGroupActions(
int index, alluxio.proto.shared.Acl.NamedAclActions.Builder builderForValue) {
if (groupActionsBuilder_ == null) {
ensureGroupActionsIsMutable();
groupActions_.add(index, builderForValue.build());
onChanged();
} else {
groupActionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public Builder addAllGroupActions(
java.lang.Iterable extends alluxio.proto.shared.Acl.NamedAclActions> values) {
if (groupActionsBuilder_ == null) {
ensureGroupActionsIsMutable();
alluxio.shaded.client.com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, groupActions_);
onChanged();
} else {
groupActionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public Builder clearGroupActions() {
if (groupActionsBuilder_ == null) {
groupActions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
groupActionsBuilder_.clear();
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public Builder removeGroupActions(int index) {
if (groupActionsBuilder_ == null) {
ensureGroupActionsIsMutable();
groupActions_.remove(index);
onChanged();
} else {
groupActionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public alluxio.proto.shared.Acl.NamedAclActions.Builder getGroupActionsBuilder(
int index) {
return getGroupActionsFieldBuilder().getBuilder(index);
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public alluxio.proto.shared.Acl.NamedAclActionsOrBuilder getGroupActionsOrBuilder(
int index) {
if (groupActionsBuilder_ == null) {
return groupActions_.get(index); } else {
return groupActionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public java.util.List extends alluxio.proto.shared.Acl.NamedAclActionsOrBuilder>
getGroupActionsOrBuilderList() {
if (groupActionsBuilder_ != null) {
return groupActionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(groupActions_);
}
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public alluxio.proto.shared.Acl.NamedAclActions.Builder addGroupActionsBuilder() {
return getGroupActionsFieldBuilder().addBuilder(
alluxio.proto.shared.Acl.NamedAclActions.getDefaultInstance());
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public alluxio.proto.shared.Acl.NamedAclActions.Builder addGroupActionsBuilder(
int index) {
return getGroupActionsFieldBuilder().addBuilder(
index, alluxio.proto.shared.Acl.NamedAclActions.getDefaultInstance());
}
/**
* repeated .alluxio.proto.shared.NamedAclActions groupActions = 4;
*/
public java.util.List
getGroupActionsBuilderList() {
return getGroupActionsFieldBuilder().getBuilderList();
}
private alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3<
alluxio.proto.shared.Acl.NamedAclActions, alluxio.proto.shared.Acl.NamedAclActions.Builder, alluxio.proto.shared.Acl.NamedAclActionsOrBuilder>
getGroupActionsFieldBuilder() {
if (groupActionsBuilder_ == null) {
groupActionsBuilder_ = new alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3<
alluxio.proto.shared.Acl.NamedAclActions, alluxio.proto.shared.Acl.NamedAclActions.Builder, alluxio.proto.shared.Acl.NamedAclActionsOrBuilder>(
groupActions_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
groupActions_ = null;
}
return groupActionsBuilder_;
}
private alluxio.proto.shared.Acl.AclActions maskActions_;
private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.proto.shared.Acl.AclActions, alluxio.proto.shared.Acl.AclActions.Builder, alluxio.proto.shared.Acl.AclActionsOrBuilder> maskActionsBuilder_;
/**
* optional .alluxio.proto.shared.AclActions maskActions = 5;
* @return Whether the maskActions field is set.
*/
public boolean hasMaskActions() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .alluxio.proto.shared.AclActions maskActions = 5;
* @return The maskActions.
*/
public alluxio.proto.shared.Acl.AclActions getMaskActions() {
if (maskActionsBuilder_ == null) {
return maskActions_ == null ? alluxio.proto.shared.Acl.AclActions.getDefaultInstance() : maskActions_;
} else {
return maskActionsBuilder_.getMessage();
}
}
/**
* optional .alluxio.proto.shared.AclActions maskActions = 5;
*/
public Builder setMaskActions(alluxio.proto.shared.Acl.AclActions value) {
if (maskActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maskActions_ = value;
onChanged();
} else {
maskActionsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .alluxio.proto.shared.AclActions maskActions = 5;
*/
public Builder setMaskActions(
alluxio.proto.shared.Acl.AclActions.Builder builderForValue) {
if (maskActionsBuilder_ == null) {
maskActions_ = builderForValue.build();
onChanged();
} else {
maskActionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .alluxio.proto.shared.AclActions maskActions = 5;
*/
public Builder mergeMaskActions(alluxio.proto.shared.Acl.AclActions value) {
if (maskActionsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
maskActions_ != null &&
maskActions_ != alluxio.proto.shared.Acl.AclActions.getDefaultInstance()) {
maskActions_ =
alluxio.proto.shared.Acl.AclActions.newBuilder(maskActions_).mergeFrom(value).buildPartial();
} else {
maskActions_ = value;
}
onChanged();
} else {
maskActionsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .alluxio.proto.shared.AclActions maskActions = 5;
*/
public Builder clearMaskActions() {
if (maskActionsBuilder_ == null) {
maskActions_ = null;
onChanged();
} else {
maskActionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .alluxio.proto.shared.AclActions maskActions = 5;
*/
public alluxio.proto.shared.Acl.AclActions.Builder getMaskActionsBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getMaskActionsFieldBuilder().getBuilder();
}
/**
* optional .alluxio.proto.shared.AclActions maskActions = 5;
*/
public alluxio.proto.shared.Acl.AclActionsOrBuilder getMaskActionsOrBuilder() {
if (maskActionsBuilder_ != null) {
return maskActionsBuilder_.getMessageOrBuilder();
} else {
return maskActions_ == null ?
alluxio.proto.shared.Acl.AclActions.getDefaultInstance() : maskActions_;
}
}
/**
* optional .alluxio.proto.shared.AclActions maskActions = 5;
*/
private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.proto.shared.Acl.AclActions, alluxio.proto.shared.Acl.AclActions.Builder, alluxio.proto.shared.Acl.AclActionsOrBuilder>
getMaskActionsFieldBuilder() {
if (maskActionsBuilder_ == null) {
maskActionsBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.proto.shared.Acl.AclActions, alluxio.proto.shared.Acl.AclActions.Builder, alluxio.proto.shared.Acl.AclActionsOrBuilder>(
getMaskActions(),
getParentForChildren(),
isClean());
maskActions_ = null;
}
return maskActionsBuilder_;
}
private alluxio.proto.shared.Acl.AclActions otherActions_;
private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.proto.shared.Acl.AclActions, alluxio.proto.shared.Acl.AclActions.Builder, alluxio.proto.shared.Acl.AclActionsOrBuilder> otherActionsBuilder_;
/**
* optional .alluxio.proto.shared.AclActions otherActions = 6;
* @return Whether the otherActions field is set.
*/
public boolean hasOtherActions() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional .alluxio.proto.shared.AclActions otherActions = 6;
* @return The otherActions.
*/
public alluxio.proto.shared.Acl.AclActions getOtherActions() {
if (otherActionsBuilder_ == null) {
return otherActions_ == null ? alluxio.proto.shared.Acl.AclActions.getDefaultInstance() : otherActions_;
} else {
return otherActionsBuilder_.getMessage();
}
}
/**
* optional .alluxio.proto.shared.AclActions otherActions = 6;
*/
public Builder setOtherActions(alluxio.proto.shared.Acl.AclActions value) {
if (otherActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
otherActions_ = value;
onChanged();
} else {
otherActionsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .alluxio.proto.shared.AclActions otherActions = 6;
*/
public Builder setOtherActions(
alluxio.proto.shared.Acl.AclActions.Builder builderForValue) {
if (otherActionsBuilder_ == null) {
otherActions_ = builderForValue.build();
onChanged();
} else {
otherActionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .alluxio.proto.shared.AclActions otherActions = 6;
*/
public Builder mergeOtherActions(alluxio.proto.shared.Acl.AclActions value) {
if (otherActionsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
otherActions_ != null &&
otherActions_ != alluxio.proto.shared.Acl.AclActions.getDefaultInstance()) {
otherActions_ =
alluxio.proto.shared.Acl.AclActions.newBuilder(otherActions_).mergeFrom(value).buildPartial();
} else {
otherActions_ = value;
}
onChanged();
} else {
otherActionsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .alluxio.proto.shared.AclActions otherActions = 6;
*/
public Builder clearOtherActions() {
if (otherActionsBuilder_ == null) {
otherActions_ = null;
onChanged();
} else {
otherActionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* optional .alluxio.proto.shared.AclActions otherActions = 6;
*/
public alluxio.proto.shared.Acl.AclActions.Builder getOtherActionsBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getOtherActionsFieldBuilder().getBuilder();
}
/**
* optional .alluxio.proto.shared.AclActions otherActions = 6;
*/
public alluxio.proto.shared.Acl.AclActionsOrBuilder getOtherActionsOrBuilder() {
if (otherActionsBuilder_ != null) {
return otherActionsBuilder_.getMessageOrBuilder();
} else {
return otherActions_ == null ?
alluxio.proto.shared.Acl.AclActions.getDefaultInstance() : otherActions_;
}
}
/**
* optional .alluxio.proto.shared.AclActions otherActions = 6;
*/
private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.proto.shared.Acl.AclActions, alluxio.proto.shared.Acl.AclActions.Builder, alluxio.proto.shared.Acl.AclActionsOrBuilder>
getOtherActionsFieldBuilder() {
if (otherActionsBuilder_ == null) {
otherActionsBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.proto.shared.Acl.AclActions, alluxio.proto.shared.Acl.AclActions.Builder, alluxio.proto.shared.Acl.AclActionsOrBuilder>(
getOtherActions(),
getParentForChildren(),
isClean());
otherActions_ = null;
}
return otherActionsBuilder_;
}
private boolean isDefault_ ;
/**
* optional bool isDefault = 7;
* @return Whether the isDefault field is set.
*/
@java.lang.Override
public boolean hasIsDefault() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool isDefault = 7;
* @return The isDefault.
*/
@java.lang.Override
public boolean getIsDefault() {
return isDefault_;
}
/**
* optional bool isDefault = 7;
* @param value The isDefault to set.
* @return This builder for chaining.
*/
public Builder setIsDefault(boolean value) {
bitField0_ |= 0x00000040;
isDefault_ = value;
onChanged();
return this;
}
/**
* optional bool isDefault = 7;
* @return This builder for chaining.
*/
public Builder clearIsDefault() {
bitField0_ = (bitField0_ & ~0x00000040);
isDefault_ = false;
onChanged();
return this;
}
private boolean isEmpty_ ;
/**
* optional bool isEmpty = 8;
* @return Whether the isEmpty field is set.
*/
@java.lang.Override
public boolean hasIsEmpty() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional bool isEmpty = 8;
* @return The isEmpty.
*/
@java.lang.Override
public boolean getIsEmpty() {
return isEmpty_;
}
/**
* optional bool isEmpty = 8;
* @param value The isEmpty to set.
* @return This builder for chaining.
*/
public Builder setIsEmpty(boolean value) {
bitField0_ |= 0x00000080;
isEmpty_ = value;
onChanged();
return this;
}
/**
* optional bool isEmpty = 8;
* @return This builder for chaining.
*/
public Builder clearIsEmpty() {
bitField0_ = (bitField0_ & ~0x00000080);
isEmpty_ = 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.proto.shared.AccessControlList)
}
// @@protoc_insertion_point(class_scope:alluxio.proto.shared.AccessControlList)
private static final alluxio.proto.shared.Acl.AccessControlList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new alluxio.proto.shared.Acl.AccessControlList();
}
public static alluxio.proto.shared.Acl.AccessControlList 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 AccessControlList 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.proto.shared.Acl.AccessControlList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
internal_static_alluxio_proto_shared_AclActions_descriptor;
private static final
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_alluxio_proto_shared_AclActions_fieldAccessorTable;
private static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
internal_static_alluxio_proto_shared_AclEntry_descriptor;
private static final
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_alluxio_proto_shared_AclEntry_fieldAccessorTable;
private static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
internal_static_alluxio_proto_shared_NamedAclActions_descriptor;
private static final
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_alluxio_proto_shared_NamedAclActions_fieldAccessorTable;
private static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
internal_static_alluxio_proto_shared_AccessControlList_descriptor;
private static final
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_alluxio_proto_shared_AccessControlList_fieldAccessorTable;
public static alluxio.shaded.client.com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static alluxio.shaded.client.com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\026proto/shared/acl.proto\022\024alluxio.proto." +
"shared\">\n\nAclActions\0220\n\007actions\030\001 \003(\0162\037." +
"alluxio.proto.shared.AclAction\"\222\001\n\010AclEn" +
"try\0220\n\004type\030\001 \001(\0162\".alluxio.proto.shared" +
".AclEntryType\022\017\n\007subject\030\002 \001(\t\0220\n\007action" +
"s\030\003 \003(\0162\037.alluxio.proto.shared.AclAction" +
"\022\021\n\tisDefault\030\004 \001(\010\"R\n\017NamedAclActions\022\014" +
"\n\004name\030\001 \001(\t\0221\n\007actions\030\002 \001(\0132 .alluxio." +
"proto.shared.AclActions\"\310\002\n\021AccessContro" +
"lList\022\022\n\nowningUser\030\001 \001(\t\022\023\n\013owningGroup" +
"\030\002 \001(\t\022:\n\013userActions\030\003 \003(\0132%.alluxio.pr" +
"oto.shared.NamedAclActions\022;\n\014groupActio" +
"ns\030\004 \003(\0132%.alluxio.proto.shared.NamedAcl" +
"Actions\0225\n\013maskActions\030\005 \001(\0132 .alluxio.p" +
"roto.shared.AclActions\0226\n\014otherActions\030\006" +
" \001(\0132 .alluxio.proto.shared.AclActions\022\021" +
"\n\tisDefault\030\007 \001(\010\022\017\n\007isEmpty\030\010 \001(\010*-\n\tAc" +
"lAction\022\010\n\004READ\020\000\022\t\n\005WRITE\020\001\022\013\n\007EXECUTE\020" +
"\002*a\n\014AclEntryType\022\t\n\005OWNER\020\000\022\016\n\nNAMED_US" +
"ER\020\001\022\020\n\014OWNING_GROUP\020\002\022\017\n\013NAMED_GROUP\020\003\022" +
"\010\n\004MASK\020\004\022\t\n\005OTHER\020\005"
};
descriptor = alluxio.shaded.client.com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new alluxio.shaded.client.com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_alluxio_proto_shared_AclActions_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_alluxio_proto_shared_AclActions_fieldAccessorTable = new
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_alluxio_proto_shared_AclActions_descriptor,
new java.lang.String[] { "Actions", });
internal_static_alluxio_proto_shared_AclEntry_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_alluxio_proto_shared_AclEntry_fieldAccessorTable = new
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_alluxio_proto_shared_AclEntry_descriptor,
new java.lang.String[] { "Type", "Subject", "Actions", "IsDefault", });
internal_static_alluxio_proto_shared_NamedAclActions_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_alluxio_proto_shared_NamedAclActions_fieldAccessorTable = new
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_alluxio_proto_shared_NamedAclActions_descriptor,
new java.lang.String[] { "Name", "Actions", });
internal_static_alluxio_proto_shared_AccessControlList_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_alluxio_proto_shared_AccessControlList_fieldAccessorTable = new
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_alluxio_proto_shared_AccessControlList_descriptor,
new java.lang.String[] { "OwningUser", "OwningGroup", "UserActions", "GroupActions", "MaskActions", "OtherActions", "IsDefault", "IsEmpty", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy