Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
alluxio.grpc.PAcl Maven / Gradle / Ivy
// Generated by the protocol buffer alluxio.shaded.client.com.iler. DO NOT EDIT!
// source: grpc/file_system_master.proto
package alluxio.grpc;
/**
* Protobuf type {@code alluxio.grpc.file.PAcl}
*/
public final class PAcl extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:alluxio.grpc.file.PAcl)
PAclOrBuilder {
private static final long serialVersionUID = 0L;
// Use PAcl.newBuilder() to construct.
private PAcl(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PAcl() {
owner_ = "";
owningGroup_ = "";
entries_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PAcl();
}
@java.lang.Override
public final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_PAcl_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_PAcl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.grpc.PAcl.class, alluxio.grpc.PAcl.Builder.class);
}
private int bitField0_;
public static final int OWNER_FIELD_NUMBER = 1;
private volatile java.lang.Object owner_;
/**
* optional string owner = 1;
* @return Whether the owner field is set.
*/
@java.lang.Override
public boolean hasOwner() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string owner = 1;
* @return The owner.
*/
@java.lang.Override
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
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()) {
owner_ = s;
}
return s;
}
}
/**
* optional string owner = 1;
* @return The bytes for owner.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString
getOwnerBytes() {
java.lang.Object ref = owner_;
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);
owner_ = 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 ENTRIES_FIELD_NUMBER = 3;
private java.util.List entries_;
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
@java.lang.Override
public java.util.List getEntriesList() {
return entries_;
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
@java.lang.Override
public java.util.List
getEntriesOrBuilderList() {
return entries_;
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
@java.lang.Override
public int getEntriesCount() {
return entries_.size();
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
@java.lang.Override
public alluxio.grpc.PAclEntry getEntries(int index) {
return entries_.get(index);
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
@java.lang.Override
public alluxio.grpc.PAclEntryOrBuilder getEntriesOrBuilder(
int index) {
return entries_.get(index);
}
public static final int MODE_FIELD_NUMBER = 4;
private int mode_;
/**
* optional int32 mode = 4;
* @return Whether the mode field is set.
*/
@java.lang.Override
public boolean hasMode() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 mode = 4;
* @return The mode.
*/
@java.lang.Override
public int getMode() {
return mode_;
}
public static final int ISDEFAULT_FIELD_NUMBER = 5;
private boolean isDefault_;
/**
* optional bool isDefault = 5;
* @return Whether the isDefault field is set.
*/
@java.lang.Override
public boolean hasIsDefault() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bool isDefault = 5;
* @return The isDefault.
*/
@java.lang.Override
public boolean getIsDefault() {
return isDefault_;
}
public static final int ISDEFAULTEMPTY_FIELD_NUMBER = 6;
private boolean isDefaultEmpty_;
/**
* optional bool isDefaultEmpty = 6;
* @return Whether the isDefaultEmpty field is set.
*/
@java.lang.Override
public boolean hasIsDefaultEmpty() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional bool isDefaultEmpty = 6;
* @return The isDefaultEmpty.
*/
@java.lang.Override
public boolean getIsDefaultEmpty() {
return isDefaultEmpty_;
}
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, owner_);
}
if (((bitField0_ & 0x00000002) != 0)) {
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, owningGroup_);
}
for (int i = 0; i < entries_.size(); i++) {
output.writeMessage(3, entries_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt32(4, mode_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(5, isDefault_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(6, isDefaultEmpty_);
}
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, owner_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(2, owningGroup_);
}
for (int i = 0; i < entries_.size(); i++) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteMessageSize(3, entries_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt32Size(4, mode_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteBoolSize(5, isDefault_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteBoolSize(6, isDefaultEmpty_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof alluxio.grpc.PAcl)) {
return super.equals(obj);
}
alluxio.grpc.PAcl other = (alluxio.grpc.PAcl) obj;
if (hasOwner() != other.hasOwner()) return false;
if (hasOwner()) {
if (!getOwner()
.equals(other.getOwner())) return false;
}
if (hasOwningGroup() != other.hasOwningGroup()) return false;
if (hasOwningGroup()) {
if (!getOwningGroup()
.equals(other.getOwningGroup())) return false;
}
if (!getEntriesList()
.equals(other.getEntriesList())) return false;
if (hasMode() != other.hasMode()) return false;
if (hasMode()) {
if (getMode()
!= other.getMode()) return false;
}
if (hasIsDefault() != other.hasIsDefault()) return false;
if (hasIsDefault()) {
if (getIsDefault()
!= other.getIsDefault()) return false;
}
if (hasIsDefaultEmpty() != other.hasIsDefaultEmpty()) return false;
if (hasIsDefaultEmpty()) {
if (getIsDefaultEmpty()
!= other.getIsDefaultEmpty()) 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 (hasOwner()) {
hash = (37 * hash) + OWNER_FIELD_NUMBER;
hash = (53 * hash) + getOwner().hashCode();
}
if (hasOwningGroup()) {
hash = (37 * hash) + OWNINGGROUP_FIELD_NUMBER;
hash = (53 * hash) + getOwningGroup().hashCode();
}
if (getEntriesCount() > 0) {
hash = (37 * hash) + ENTRIES_FIELD_NUMBER;
hash = (53 * hash) + getEntriesList().hashCode();
}
if (hasMode()) {
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + getMode();
}
if (hasIsDefault()) {
hash = (37 * hash) + ISDEFAULT_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
getIsDefault());
}
if (hasIsDefaultEmpty()) {
hash = (37 * hash) + ISDEFAULTEMPTY_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
getIsDefaultEmpty());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static alluxio.grpc.PAcl parseFrom(
java.nio.ByteBuffer data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.PAcl parseFrom(
java.nio.ByteBuffer data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.grpc.PAcl parseFrom(
alluxio.shaded.client.com.google.protobuf.ByteString data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.PAcl parseFrom(
alluxio.shaded.client.com.google.protobuf.ByteString data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.grpc.PAcl parseFrom(byte[] data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.PAcl parseFrom(
byte[] data,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static alluxio.grpc.PAcl parseFrom(java.alluxio.shaded.client.io.InputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static alluxio.grpc.PAcl parseFrom(
java.alluxio.shaded.client.io.InputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static alluxio.grpc.PAcl parseDelimitedFrom(java.alluxio.shaded.client.io.InputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static alluxio.grpc.PAcl parseDelimitedFrom(
java.alluxio.shaded.client.io.InputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static alluxio.grpc.PAcl parseFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static alluxio.grpc.PAcl parseFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.alluxio.shaded.client.io.IOException {
return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(alluxio.grpc.PAcl prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code alluxio.grpc.file.PAcl}
*/
public static final class Builder extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:alluxio.grpc.file.PAcl)
alluxio.grpc.PAclOrBuilder {
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_PAcl_descriptor;
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_PAcl_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.grpc.PAcl.class, alluxio.grpc.PAcl.Builder.class);
}
// Construct using alluxio.grpc.PAcl.newBuilder()
private Builder() {
}
private Builder(
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
owner_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
owningGroup_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (entriesBuilder_ == null) {
entries_ = java.util.Collections.emptyList();
} else {
entries_ = null;
entriesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
mode_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
isDefault_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
isDefaultEmpty_ = false;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_PAcl_descriptor;
}
@java.lang.Override
public alluxio.grpc.PAcl getDefaultInstanceForType() {
return alluxio.grpc.PAcl.getDefaultInstance();
}
@java.lang.Override
public alluxio.grpc.PAcl build() {
alluxio.grpc.PAcl result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public alluxio.grpc.PAcl buildPartial() {
alluxio.grpc.PAcl result = new alluxio.grpc.PAcl(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.owner_ = owner_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.owningGroup_ = owningGroup_;
if (entriesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
entries_ = java.util.Collections.unmodifiableList(entries_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.entries_ = entries_;
} else {
result.entries_ = entriesBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.mode_ = mode_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.isDefault_ = isDefault_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.isDefaultEmpty_ = isDefaultEmpty_;
to_bitField0_ |= 0x00000010;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
alluxio.shaded.client.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(alluxio.shaded.client.com.google.protobuf.Message other) {
if (other instanceof alluxio.grpc.PAcl) {
return mergeFrom((alluxio.grpc.PAcl)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.grpc.PAcl other) {
if (other == alluxio.grpc.PAcl.getDefaultInstance()) return this;
if (other.hasOwner()) {
bitField0_ |= 0x00000001;
owner_ = other.owner_;
onChanged();
}
if (other.hasOwningGroup()) {
bitField0_ |= 0x00000002;
owningGroup_ = other.owningGroup_;
onChanged();
}
if (entriesBuilder_ == null) {
if (!other.entries_.isEmpty()) {
if (entries_.isEmpty()) {
entries_ = other.entries_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureEntriesIsMutable();
entries_.addAll(other.entries_);
}
onChanged();
}
} else {
if (!other.entries_.isEmpty()) {
if (entriesBuilder_.isEmpty()) {
entriesBuilder_.dispose();
entriesBuilder_ = null;
entries_ = other.entries_;
bitField0_ = (bitField0_ & ~0x00000004);
entriesBuilder_ =
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEntriesFieldBuilder() : null;
} else {
entriesBuilder_.addAllMessages(other.entries_);
}
}
}
if (other.hasMode()) {
setMode(other.getMode());
}
if (other.hasIsDefault()) {
setIsDefault(other.getIsDefault());
}
if (other.hasIsDefaultEmpty()) {
setIsDefaultEmpty(other.getIsDefaultEmpty());
}
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: {
owner_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
owningGroup_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
alluxio.grpc.PAclEntry m =
input.readMessage(
alluxio.grpc.PAclEntry.PARSER,
extensionRegistry);
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
entries_.add(m);
} else {
entriesBuilder_.addMessage(m);
}
break;
} // case 26
case 32: {
mode_ = input.readInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
isDefault_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
isDefaultEmpty_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 48
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 owner_ = "";
/**
* optional string owner = 1;
* @return Whether the owner field is set.
*/
public boolean hasOwner() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string owner = 1;
* @return The owner.
*/
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
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()) {
owner_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string owner = 1;
* @return The bytes for owner.
*/
public alluxio.shaded.client.com.google.protobuf.ByteString
getOwnerBytes() {
java.lang.Object ref = owner_;
if (ref instanceof String) {
alluxio.shaded.client.com.google.protobuf.ByteString b =
alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
owner_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
/**
* optional string owner = 1;
* @param value The owner to set.
* @return This builder for chaining.
*/
public Builder setOwner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
owner_ = value;
onChanged();
return this;
}
/**
* optional string owner = 1;
* @return This builder for chaining.
*/
public Builder clearOwner() {
bitField0_ = (bitField0_ & ~0x00000001);
owner_ = getDefaultInstance().getOwner();
onChanged();
return this;
}
/**
* optional string owner = 1;
* @param value The bytes for owner to set.
* @return This builder for chaining.
*/
public Builder setOwnerBytes(
alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
owner_ = 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 entries_ =
java.util.Collections.emptyList();
private void ensureEntriesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
entries_ = new java.util.ArrayList(entries_);
bitField0_ |= 0x00000004;
}
}
private alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3<
alluxio.grpc.PAclEntry, alluxio.grpc.PAclEntry.Builder, alluxio.grpc.PAclEntryOrBuilder> entriesBuilder_;
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public java.util.List getEntriesList() {
if (entriesBuilder_ == null) {
return java.util.Collections.unmodifiableList(entries_);
} else {
return entriesBuilder_.getMessageList();
}
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public int getEntriesCount() {
if (entriesBuilder_ == null) {
return entries_.size();
} else {
return entriesBuilder_.getCount();
}
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public alluxio.grpc.PAclEntry getEntries(int index) {
if (entriesBuilder_ == null) {
return entries_.get(index);
} else {
return entriesBuilder_.getMessage(index);
}
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public Builder setEntries(
int index, alluxio.grpc.PAclEntry value) {
if (entriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntriesIsMutable();
entries_.set(index, value);
onChanged();
} else {
entriesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public Builder setEntries(
int index, alluxio.grpc.PAclEntry.Builder builderForValue) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
entries_.set(index, builderForValue.build());
onChanged();
} else {
entriesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public Builder addEntries(alluxio.grpc.PAclEntry value) {
if (entriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntriesIsMutable();
entries_.add(value);
onChanged();
} else {
entriesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public Builder addEntries(
int index, alluxio.grpc.PAclEntry value) {
if (entriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntriesIsMutable();
entries_.add(index, value);
onChanged();
} else {
entriesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public Builder addEntries(
alluxio.grpc.PAclEntry.Builder builderForValue) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
entries_.add(builderForValue.build());
onChanged();
} else {
entriesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public Builder addEntries(
int index, alluxio.grpc.PAclEntry.Builder builderForValue) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
entries_.add(index, builderForValue.build());
onChanged();
} else {
entriesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public Builder addAllEntries(
java.lang.Iterable values) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
alluxio.shaded.client.com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, entries_);
onChanged();
} else {
entriesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public Builder clearEntries() {
if (entriesBuilder_ == null) {
entries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
entriesBuilder_.clear();
}
return this;
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public Builder removeEntries(int index) {
if (entriesBuilder_ == null) {
ensureEntriesIsMutable();
entries_.remove(index);
onChanged();
} else {
entriesBuilder_.remove(index);
}
return this;
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public alluxio.grpc.PAclEntry.Builder getEntriesBuilder(
int index) {
return getEntriesFieldBuilder().getBuilder(index);
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public alluxio.grpc.PAclEntryOrBuilder getEntriesOrBuilder(
int index) {
if (entriesBuilder_ == null) {
return entries_.get(index); } else {
return entriesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public java.util.List
getEntriesOrBuilderList() {
if (entriesBuilder_ != null) {
return entriesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(entries_);
}
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public alluxio.grpc.PAclEntry.Builder addEntriesBuilder() {
return getEntriesFieldBuilder().addBuilder(
alluxio.grpc.PAclEntry.getDefaultInstance());
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public alluxio.grpc.PAclEntry.Builder addEntriesBuilder(
int index) {
return getEntriesFieldBuilder().addBuilder(
index, alluxio.grpc.PAclEntry.getDefaultInstance());
}
/**
* repeated .alluxio.grpc.file.PAclEntry entries = 3;
*/
public java.util.List
getEntriesBuilderList() {
return getEntriesFieldBuilder().getBuilderList();
}
private alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3<
alluxio.grpc.PAclEntry, alluxio.grpc.PAclEntry.Builder, alluxio.grpc.PAclEntryOrBuilder>
getEntriesFieldBuilder() {
if (entriesBuilder_ == null) {
entriesBuilder_ = new alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3<
alluxio.grpc.PAclEntry, alluxio.grpc.PAclEntry.Builder, alluxio.grpc.PAclEntryOrBuilder>(
entries_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
entries_ = null;
}
return entriesBuilder_;
}
private int mode_ ;
/**
* optional int32 mode = 4;
* @return Whether the mode field is set.
*/
@java.lang.Override
public boolean hasMode() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int32 mode = 4;
* @return The mode.
*/
@java.lang.Override
public int getMode() {
return mode_;
}
/**
* optional int32 mode = 4;
* @param value The mode to set.
* @return This builder for chaining.
*/
public Builder setMode(int value) {
bitField0_ |= 0x00000008;
mode_ = value;
onChanged();
return this;
}
/**
* optional int32 mode = 4;
* @return This builder for chaining.
*/
public Builder clearMode() {
bitField0_ = (bitField0_ & ~0x00000008);
mode_ = 0;
onChanged();
return this;
}
private boolean isDefault_ ;
/**
* optional bool isDefault = 5;
* @return Whether the isDefault field is set.
*/
@java.lang.Override
public boolean hasIsDefault() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional bool isDefault = 5;
* @return The isDefault.
*/
@java.lang.Override
public boolean getIsDefault() {
return isDefault_;
}
/**
* optional bool isDefault = 5;
* @param value The isDefault to set.
* @return This builder for chaining.
*/
public Builder setIsDefault(boolean value) {
bitField0_ |= 0x00000010;
isDefault_ = value;
onChanged();
return this;
}
/**
* optional bool isDefault = 5;
* @return This builder for chaining.
*/
public Builder clearIsDefault() {
bitField0_ = (bitField0_ & ~0x00000010);
isDefault_ = false;
onChanged();
return this;
}
private boolean isDefaultEmpty_ ;
/**
* optional bool isDefaultEmpty = 6;
* @return Whether the isDefaultEmpty field is set.
*/
@java.lang.Override
public boolean hasIsDefaultEmpty() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional bool isDefaultEmpty = 6;
* @return The isDefaultEmpty.
*/
@java.lang.Override
public boolean getIsDefaultEmpty() {
return isDefaultEmpty_;
}
/**
* optional bool isDefaultEmpty = 6;
* @param value The isDefaultEmpty to set.
* @return This builder for chaining.
*/
public Builder setIsDefaultEmpty(boolean value) {
bitField0_ |= 0x00000020;
isDefaultEmpty_ = value;
onChanged();
return this;
}
/**
* optional bool isDefaultEmpty = 6;
* @return This builder for chaining.
*/
public Builder clearIsDefaultEmpty() {
bitField0_ = (bitField0_ & ~0x00000020);
isDefaultEmpty_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:alluxio.grpc.file.PAcl)
}
// @@protoc_insertion_point(class_scope:alluxio.grpc.file.PAcl)
private static final alluxio.grpc.PAcl DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new alluxio.grpc.PAcl();
}
public static alluxio.grpc.PAcl 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 PAcl parsePartialFrom(
alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (alluxio.shaded.client.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.alluxio.shaded.client.io.IOException e) {
throw new alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static alluxio.shaded.client.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public alluxio.grpc.PAcl getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}