alluxio.grpc.UfsStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alluxio-shaded-hadoop3-client Show documentation
Show all versions of alluxio-shaded-hadoop3-client Show documentation
Shaded Alluxio Client Module for hadoop 3
// Generated by the protocol buffer alluxio.shaded.client.com.iler. DO NOT EDIT!
// source: grpc/block_worker.proto
package alluxio.grpc;
/**
* Protobuf type {@code alluxio.grpc.block.UfsStatus}
*/
public final class UfsStatus extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:alluxio.grpc.block.UfsStatus)
UfsStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use UfsStatus.newBuilder() to construct.
private UfsStatus(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private UfsStatus() {
name_ = "";
owner_ = "";
group_ = "";
ufsFullPath_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UfsStatus();
}
@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.BlockWorkerProto.internal_static_alluxio_grpc_block_UfsStatus_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 7:
return internalGetXattr();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_UfsStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.grpc.UfsStatus.class, alluxio.grpc.UfsStatus.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 IS_DIRECTORY_FIELD_NUMBER = 2;
private boolean isDirectory_;
/**
* optional bool is_directory = 2;
* @return Whether the isDirectory field is set.
*/
@java.lang.Override
public boolean hasIsDirectory() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bool is_directory = 2;
* @return The isDirectory.
*/
@java.lang.Override
public boolean getIsDirectory() {
return isDirectory_;
}
public static final int LAST_MODIFIED_TIME_MS_FIELD_NUMBER = 3;
private long lastModifiedTimeMs_;
/**
* optional int64 last_modified_time_ms = 3;
* @return Whether the lastModifiedTimeMs field is set.
*/
@java.lang.Override
public boolean hasLastModifiedTimeMs() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 last_modified_time_ms = 3;
* @return The lastModifiedTimeMs.
*/
@java.lang.Override
public long getLastModifiedTimeMs() {
return lastModifiedTimeMs_;
}
public static final int OWNER_FIELD_NUMBER = 4;
private volatile java.lang.Object owner_;
/**
* optional string owner = 4;
* @return Whether the owner field is set.
*/
@java.lang.Override
public boolean hasOwner() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string owner = 4;
* @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 = 4;
* @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 GROUP_FIELD_NUMBER = 5;
private volatile java.lang.Object group_;
/**
* optional string group = 5;
* @return Whether the group field is set.
*/
@java.lang.Override
public boolean hasGroup() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string group = 5;
* @return The group.
*/
@java.lang.Override
public java.lang.String getGroup() {
java.lang.Object ref = group_;
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()) {
group_ = s;
}
return s;
}
}
/**
* optional string group = 5;
* @return The bytes for group.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
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);
group_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
public static final int MODE_FIELD_NUMBER = 6;
private int mode_;
/**
* optional int32 mode = 6;
* @return Whether the mode field is set.
*/
@java.lang.Override
public boolean hasMode() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 mode = 6;
* @return The mode.
*/
@java.lang.Override
public int getMode() {
return mode_;
}
public static final int XATTR_FIELD_NUMBER = 7;
private static final class XattrDefaultEntryHolder {
static final alluxio.shaded.client.com.google.protobuf.MapEntry<
java.lang.String, alluxio.shaded.client.com.google.protobuf.ByteString> defaultEntry =
alluxio.shaded.client.com.google.protobuf.MapEntry
.newDefaultInstance(
alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_UfsStatus_XattrEntry_descriptor,
alluxio.shaded.client.com.google.protobuf.WireFormat.FieldType.STRING,
"",
alluxio.shaded.client.com.google.protobuf.WireFormat.FieldType.BYTES,
alluxio.shaded.client.com.google.protobuf.ByteString.EMPTY);
}
private alluxio.shaded.client.com.google.protobuf.MapField<
java.lang.String, alluxio.shaded.client.com.google.protobuf.ByteString> xattr_;
private alluxio.shaded.client.com.google.protobuf.MapField
internalGetXattr() {
if (xattr_ == null) {
return alluxio.shaded.client.com.google.protobuf.MapField.emptyMapField(
XattrDefaultEntryHolder.defaultEntry);
}
return xattr_;
}
public int getXattrCount() {
return internalGetXattr().getMap().size();
}
/**
* map<string, bytes> xattr = 7;
*/
@java.lang.Override
public boolean containsXattr(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetXattr().getMap().containsKey(key);
}
/**
* Use {@link #getXattrMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getXattr() {
return getXattrMap();
}
/**
* map<string, bytes> xattr = 7;
*/
@java.lang.Override
public java.util.Map getXattrMap() {
return internalGetXattr().getMap();
}
/**
* map<string, bytes> xattr = 7;
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString getXattrOrDefault(
java.lang.String key,
alluxio.shaded.client.com.google.protobuf.ByteString defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetXattr().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, bytes> xattr = 7;
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString getXattrOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetXattr().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int UFS_FULL_PATH_FIELD_NUMBER = 8;
private volatile java.lang.Object ufsFullPath_;
/**
* optional string ufs_full_path = 8;
* @return Whether the ufsFullPath field is set.
*/
@java.lang.Override
public boolean hasUfsFullPath() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string ufs_full_path = 8;
* @return The ufsFullPath.
*/
@java.lang.Override
public java.lang.String getUfsFullPath() {
java.lang.Object ref = ufsFullPath_;
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()) {
ufsFullPath_ = s;
}
return s;
}
}
/**
* optional string ufs_full_path = 8;
* @return The bytes for ufsFullPath.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString
getUfsFullPathBytes() {
java.lang.Object ref = ufsFullPath_;
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);
ufsFullPath_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
public static final int UFS_FILE_STATUS_FIELD_NUMBER = 100;
private alluxio.grpc.UfsFileStatus ufsFileStatus_;
/**
* optional .alluxio.grpc.block.UfsFileStatus ufs_file_status = 100;
* @return Whether the ufsFileStatus field is set.
*/
@java.lang.Override
public boolean hasUfsFileStatus() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .alluxio.grpc.block.UfsFileStatus ufs_file_status = 100;
* @return The ufsFileStatus.
*/
@java.lang.Override
public alluxio.grpc.UfsFileStatus getUfsFileStatus() {
return ufsFileStatus_ == null ? alluxio.grpc.UfsFileStatus.getDefaultInstance() : ufsFileStatus_;
}
/**
* optional .alluxio.grpc.block.UfsFileStatus ufs_file_status = 100;
*/
@java.lang.Override
public alluxio.grpc.UfsFileStatusOrBuilder getUfsFileStatusOrBuilder() {
return ufsFileStatus_ == null ? alluxio.grpc.UfsFileStatus.getDefaultInstance() : ufsFileStatus_;
}
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.writeBool(2, isDirectory_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, lastModifiedTimeMs_);
}
if (((bitField0_ & 0x00000008) != 0)) {
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 4, owner_);
}
if (((bitField0_ & 0x00000010) != 0)) {
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 5, group_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt32(6, mode_);
}
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetXattr(),
XattrDefaultEntryHolder.defaultEntry,
7);
if (((bitField0_ & 0x00000040) != 0)) {
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 8, ufsFullPath_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(100, getUfsFileStatus());
}
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.uteBoolSize(2, isDirectory_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(3, lastModifiedTimeMs_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(4, owner_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(5, group_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt32Size(6, mode_);
}
for (java.util.Map.Entry entry
: internalGetXattr().getMap().entrySet()) {
alluxio.shaded.client.com.google.protobuf.MapEntry
xattr__ = XattrDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteMessageSize(7, xattr__);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(8, ufsFullPath_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteMessageSize(100, getUfsFileStatus());
}
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.UfsStatus)) {
return super.equals(obj);
}
alluxio.grpc.UfsStatus other = (alluxio.grpc.UfsStatus) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasIsDirectory() != other.hasIsDirectory()) return false;
if (hasIsDirectory()) {
if (getIsDirectory()
!= other.getIsDirectory()) return false;
}
if (hasLastModifiedTimeMs() != other.hasLastModifiedTimeMs()) return false;
if (hasLastModifiedTimeMs()) {
if (getLastModifiedTimeMs()
!= other.getLastModifiedTimeMs()) return false;
}
if (hasOwner() != other.hasOwner()) return false;
if (hasOwner()) {
if (!getOwner()
.equals(other.getOwner())) return false;
}
if (hasGroup() != other.hasGroup()) return false;
if (hasGroup()) {
if (!getGroup()
.equals(other.getGroup())) return false;
}
if (hasMode() != other.hasMode()) return false;
if (hasMode()) {
if (getMode()
!= other.getMode()) return false;
}
if (!internalGetXattr().equals(
other.internalGetXattr())) return false;
if (hasUfsFullPath() != other.hasUfsFullPath()) return false;
if (hasUfsFullPath()) {
if (!getUfsFullPath()
.equals(other.getUfsFullPath())) return false;
}
if (hasUfsFileStatus() != other.hasUfsFileStatus()) return false;
if (hasUfsFileStatus()) {
if (!getUfsFileStatus()
.equals(other.getUfsFileStatus())) 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 (hasIsDirectory()) {
hash = (37 * hash) + IS_DIRECTORY_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
getIsDirectory());
}
if (hasLastModifiedTimeMs()) {
hash = (37 * hash) + LAST_MODIFIED_TIME_MS_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getLastModifiedTimeMs());
}
if (hasOwner()) {
hash = (37 * hash) + OWNER_FIELD_NUMBER;
hash = (53 * hash) + getOwner().hashCode();
}
if (hasGroup()) {
hash = (37 * hash) + GROUP_FIELD_NUMBER;
hash = (53 * hash) + getGroup().hashCode();
}
if (hasMode()) {
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + getMode();
}
if (!internalGetXattr().getMap().isEmpty()) {
hash = (37 * hash) + XATTR_FIELD_NUMBER;
hash = (53 * hash) + internalGetXattr().hashCode();
}
if (hasUfsFullPath()) {
hash = (37 * hash) + UFS_FULL_PATH_FIELD_NUMBER;
hash = (53 * hash) + getUfsFullPath().hashCode();
}
if (hasUfsFileStatus()) {
hash = (37 * hash) + UFS_FILE_STATUS_FIELD_NUMBER;
hash = (53 * hash) + getUfsFileStatus().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static alluxio.grpc.UfsStatus parseFrom(
java.nio.ByteBuffer data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.UfsStatus 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.UfsStatus 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.UfsStatus 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.UfsStatus parseFrom(byte[] data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.UfsStatus 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.UfsStatus 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.UfsStatus 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.UfsStatus 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.UfsStatus 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.UfsStatus 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.UfsStatus 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.UfsStatus 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.block.UfsStatus}
*/
public static final class Builder extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:alluxio.grpc.block.UfsStatus)
alluxio.grpc.UfsStatusOrBuilder {
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_UfsStatus_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected alluxio.shaded.client.com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 7:
return internalGetXattr();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected alluxio.shaded.client.com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 7:
return internalGetMutableXattr();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_UfsStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.grpc.UfsStatus.class, alluxio.grpc.UfsStatus.Builder.class);
}
// Construct using alluxio.grpc.UfsStatus.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) {
getUfsFileStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
isDirectory_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
lastModifiedTimeMs_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
owner_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
group_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
mode_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
internalGetMutableXattr().clear();
ufsFullPath_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
if (ufsFileStatusBuilder_ == null) {
ufsFileStatus_ = null;
} else {
ufsFileStatusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_UfsStatus_descriptor;
}
@java.lang.Override
public alluxio.grpc.UfsStatus getDefaultInstanceForType() {
return alluxio.grpc.UfsStatus.getDefaultInstance();
}
@java.lang.Override
public alluxio.grpc.UfsStatus build() {
alluxio.grpc.UfsStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public alluxio.grpc.UfsStatus buildPartial() {
alluxio.grpc.UfsStatus result = new alluxio.grpc.UfsStatus(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)) {
result.isDirectory_ = isDirectory_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lastModifiedTimeMs_ = lastModifiedTimeMs_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.owner_ = owner_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.group_ = group_;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.mode_ = mode_;
to_bitField0_ |= 0x00000020;
}
result.xattr_ = internalGetXattr();
result.xattr_.makeImmutable();
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.ufsFullPath_ = ufsFullPath_;
if (((from_bitField0_ & 0x00000100) != 0)) {
if (ufsFileStatusBuilder_ == null) {
result.ufsFileStatus_ = ufsFileStatus_;
} else {
result.ufsFileStatus_ = ufsFileStatusBuilder_.build();
}
to_bitField0_ |= 0x00000080;
}
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.UfsStatus) {
return mergeFrom((alluxio.grpc.UfsStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.grpc.UfsStatus other) {
if (other == alluxio.grpc.UfsStatus.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasIsDirectory()) {
setIsDirectory(other.getIsDirectory());
}
if (other.hasLastModifiedTimeMs()) {
setLastModifiedTimeMs(other.getLastModifiedTimeMs());
}
if (other.hasOwner()) {
bitField0_ |= 0x00000008;
owner_ = other.owner_;
onChanged();
}
if (other.hasGroup()) {
bitField0_ |= 0x00000010;
group_ = other.group_;
onChanged();
}
if (other.hasMode()) {
setMode(other.getMode());
}
internalGetMutableXattr().mergeFrom(
other.internalGetXattr());
if (other.hasUfsFullPath()) {
bitField0_ |= 0x00000080;
ufsFullPath_ = other.ufsFullPath_;
onChanged();
}
if (other.hasUfsFileStatus()) {
mergeUfsFileStatus(other.getUfsFileStatus());
}
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 16: {
isDirectory_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
lastModifiedTimeMs_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
owner_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
group_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 42
case 48: {
mode_ = input.readInt32();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58: {
alluxio.shaded.client.com.google.protobuf.MapEntry
xattr__ = input.readMessage(
XattrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableXattr().getMutableMap().put(
xattr__.getKey(), xattr__.getValue());
break;
} // case 58
case 66: {
ufsFullPath_ = input.readBytes();
bitField0_ |= 0x00000080;
break;
} // case 66
case 802: {
input.readMessage(
getUfsFileStatusFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 802
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 boolean isDirectory_ ;
/**
* optional bool is_directory = 2;
* @return Whether the isDirectory field is set.
*/
@java.lang.Override
public boolean hasIsDirectory() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bool is_directory = 2;
* @return The isDirectory.
*/
@java.lang.Override
public boolean getIsDirectory() {
return isDirectory_;
}
/**
* optional bool is_directory = 2;
* @param value The isDirectory to set.
* @return This builder for chaining.
*/
public Builder setIsDirectory(boolean value) {
bitField0_ |= 0x00000002;
isDirectory_ = value;
onChanged();
return this;
}
/**
* optional bool is_directory = 2;
* @return This builder for chaining.
*/
public Builder clearIsDirectory() {
bitField0_ = (bitField0_ & ~0x00000002);
isDirectory_ = false;
onChanged();
return this;
}
private long lastModifiedTimeMs_ ;
/**
* optional int64 last_modified_time_ms = 3;
* @return Whether the lastModifiedTimeMs field is set.
*/
@java.lang.Override
public boolean hasLastModifiedTimeMs() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 last_modified_time_ms = 3;
* @return The lastModifiedTimeMs.
*/
@java.lang.Override
public long getLastModifiedTimeMs() {
return lastModifiedTimeMs_;
}
/**
* optional int64 last_modified_time_ms = 3;
* @param value The lastModifiedTimeMs to set.
* @return This builder for chaining.
*/
public Builder setLastModifiedTimeMs(long value) {
bitField0_ |= 0x00000004;
lastModifiedTimeMs_ = value;
onChanged();
return this;
}
/**
* optional int64 last_modified_time_ms = 3;
* @return This builder for chaining.
*/
public Builder clearLastModifiedTimeMs() {
bitField0_ = (bitField0_ & ~0x00000004);
lastModifiedTimeMs_ = 0L;
onChanged();
return this;
}
private java.lang.Object owner_ = "";
/**
* optional string owner = 4;
* @return Whether the owner field is set.
*/
public boolean hasOwner() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string owner = 4;
* @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 = 4;
* @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 = 4;
* @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_ |= 0x00000008;
owner_ = value;
onChanged();
return this;
}
/**
* optional string owner = 4;
* @return This builder for chaining.
*/
public Builder clearOwner() {
bitField0_ = (bitField0_ & ~0x00000008);
owner_ = getDefaultInstance().getOwner();
onChanged();
return this;
}
/**
* optional string owner = 4;
* @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_ |= 0x00000008;
owner_ = value;
onChanged();
return this;
}
private java.lang.Object group_ = "";
/**
* optional string group = 5;
* @return Whether the group field is set.
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string group = 5;
* @return The group.
*/
public java.lang.String getGroup() {
java.lang.Object ref = group_;
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()) {
group_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string group = 5;
* @return The bytes for group.
*/
public alluxio.shaded.client.com.google.protobuf.ByteString
getGroupBytes() {
java.lang.Object ref = group_;
if (ref instanceof String) {
alluxio.shaded.client.com.google.protobuf.ByteString b =
alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
group_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
/**
* optional string group = 5;
* @param value The group to set.
* @return This builder for chaining.
*/
public Builder setGroup(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
group_ = value;
onChanged();
return this;
}
/**
* optional string group = 5;
* @return This builder for chaining.
*/
public Builder clearGroup() {
bitField0_ = (bitField0_ & ~0x00000010);
group_ = getDefaultInstance().getGroup();
onChanged();
return this;
}
/**
* optional string group = 5;
* @param value The bytes for group to set.
* @return This builder for chaining.
*/
public Builder setGroupBytes(
alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
group_ = value;
onChanged();
return this;
}
private int mode_ ;
/**
* optional int32 mode = 6;
* @return Whether the mode field is set.
*/
@java.lang.Override
public boolean hasMode() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 mode = 6;
* @return The mode.
*/
@java.lang.Override
public int getMode() {
return mode_;
}
/**
* optional int32 mode = 6;
* @param value The mode to set.
* @return This builder for chaining.
*/
public Builder setMode(int value) {
bitField0_ |= 0x00000020;
mode_ = value;
onChanged();
return this;
}
/**
* optional int32 mode = 6;
* @return This builder for chaining.
*/
public Builder clearMode() {
bitField0_ = (bitField0_ & ~0x00000020);
mode_ = 0;
onChanged();
return this;
}
private alluxio.shaded.client.com.google.protobuf.MapField<
java.lang.String, alluxio.shaded.client.com.google.protobuf.ByteString> xattr_;
private alluxio.shaded.client.com.google.protobuf.MapField
internalGetXattr() {
if (xattr_ == null) {
return alluxio.shaded.client.com.google.protobuf.MapField.emptyMapField(
XattrDefaultEntryHolder.defaultEntry);
}
return xattr_;
}
private alluxio.shaded.client.com.google.protobuf.MapField
internalGetMutableXattr() {
onChanged();;
if (xattr_ == null) {
xattr_ = alluxio.shaded.client.com.google.protobuf.MapField.newMapField(
XattrDefaultEntryHolder.defaultEntry);
}
if (!xattr_.isMutable()) {
xattr_ = xattr_.copy();
}
return xattr_;
}
public int getXattrCount() {
return internalGetXattr().getMap().size();
}
/**
* map<string, bytes> xattr = 7;
*/
@java.lang.Override
public boolean containsXattr(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetXattr().getMap().containsKey(key);
}
/**
* Use {@link #getXattrMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getXattr() {
return getXattrMap();
}
/**
* map<string, bytes> xattr = 7;
*/
@java.lang.Override
public java.util.Map getXattrMap() {
return internalGetXattr().getMap();
}
/**
* map<string, bytes> xattr = 7;
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString getXattrOrDefault(
java.lang.String key,
alluxio.shaded.client.com.google.protobuf.ByteString defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetXattr().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, bytes> xattr = 7;
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString getXattrOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetXattr().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearXattr() {
internalGetMutableXattr().getMutableMap()
.clear();
return this;
}
/**
* map<string, bytes> xattr = 7;
*/
public Builder removeXattr(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableXattr().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableXattr() {
return internalGetMutableXattr().getMutableMap();
}
/**
* map<string, bytes> xattr = 7;
*/
public Builder putXattr(
java.lang.String key,
alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableXattr().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, bytes> xattr = 7;
*/
public Builder putAllXattr(
java.util.Map values) {
internalGetMutableXattr().getMutableMap()
.putAll(values);
return this;
}
private java.lang.Object ufsFullPath_ = "";
/**
* optional string ufs_full_path = 8;
* @return Whether the ufsFullPath field is set.
*/
public boolean hasUfsFullPath() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string ufs_full_path = 8;
* @return The ufsFullPath.
*/
public java.lang.String getUfsFullPath() {
java.lang.Object ref = ufsFullPath_;
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()) {
ufsFullPath_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string ufs_full_path = 8;
* @return The bytes for ufsFullPath.
*/
public alluxio.shaded.client.com.google.protobuf.ByteString
getUfsFullPathBytes() {
java.lang.Object ref = ufsFullPath_;
if (ref instanceof String) {
alluxio.shaded.client.com.google.protobuf.ByteString b =
alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ufsFullPath_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
/**
* optional string ufs_full_path = 8;
* @param value The ufsFullPath to set.
* @return This builder for chaining.
*/
public Builder setUfsFullPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
ufsFullPath_ = value;
onChanged();
return this;
}
/**
* optional string ufs_full_path = 8;
* @return This builder for chaining.
*/
public Builder clearUfsFullPath() {
bitField0_ = (bitField0_ & ~0x00000080);
ufsFullPath_ = getDefaultInstance().getUfsFullPath();
onChanged();
return this;
}
/**
* optional string ufs_full_path = 8;
* @param value The bytes for ufsFullPath to set.
* @return This builder for chaining.
*/
public Builder setUfsFullPathBytes(
alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
ufsFullPath_ = value;
onChanged();
return this;
}
private alluxio.grpc.UfsFileStatus ufsFileStatus_;
private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.grpc.UfsFileStatus, alluxio.grpc.UfsFileStatus.Builder, alluxio.grpc.UfsFileStatusOrBuilder> ufsFileStatusBuilder_;
/**
* optional .alluxio.grpc.block.UfsFileStatus ufs_file_status = 100;
* @return Whether the ufsFileStatus field is set.
*/
public boolean hasUfsFileStatus() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional .alluxio.grpc.block.UfsFileStatus ufs_file_status = 100;
* @return The ufsFileStatus.
*/
public alluxio.grpc.UfsFileStatus getUfsFileStatus() {
if (ufsFileStatusBuilder_ == null) {
return ufsFileStatus_ == null ? alluxio.grpc.UfsFileStatus.getDefaultInstance() : ufsFileStatus_;
} else {
return ufsFileStatusBuilder_.getMessage();
}
}
/**
* optional .alluxio.grpc.block.UfsFileStatus ufs_file_status = 100;
*/
public Builder setUfsFileStatus(alluxio.grpc.UfsFileStatus value) {
if (ufsFileStatusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ufsFileStatus_ = value;
onChanged();
} else {
ufsFileStatusBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .alluxio.grpc.block.UfsFileStatus ufs_file_status = 100;
*/
public Builder setUfsFileStatus(
alluxio.grpc.UfsFileStatus.Builder builderForValue) {
if (ufsFileStatusBuilder_ == null) {
ufsFileStatus_ = builderForValue.build();
onChanged();
} else {
ufsFileStatusBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .alluxio.grpc.block.UfsFileStatus ufs_file_status = 100;
*/
public Builder mergeUfsFileStatus(alluxio.grpc.UfsFileStatus value) {
if (ufsFileStatusBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
ufsFileStatus_ != null &&
ufsFileStatus_ != alluxio.grpc.UfsFileStatus.getDefaultInstance()) {
ufsFileStatus_ =
alluxio.grpc.UfsFileStatus.newBuilder(ufsFileStatus_).mergeFrom(value).buildPartial();
} else {
ufsFileStatus_ = value;
}
onChanged();
} else {
ufsFileStatusBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .alluxio.grpc.block.UfsFileStatus ufs_file_status = 100;
*/
public Builder clearUfsFileStatus() {
if (ufsFileStatusBuilder_ == null) {
ufsFileStatus_ = null;
onChanged();
} else {
ufsFileStatusBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
/**
* optional .alluxio.grpc.block.UfsFileStatus ufs_file_status = 100;
*/
public alluxio.grpc.UfsFileStatus.Builder getUfsFileStatusBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getUfsFileStatusFieldBuilder().getBuilder();
}
/**
* optional .alluxio.grpc.block.UfsFileStatus ufs_file_status = 100;
*/
public alluxio.grpc.UfsFileStatusOrBuilder getUfsFileStatusOrBuilder() {
if (ufsFileStatusBuilder_ != null) {
return ufsFileStatusBuilder_.getMessageOrBuilder();
} else {
return ufsFileStatus_ == null ?
alluxio.grpc.UfsFileStatus.getDefaultInstance() : ufsFileStatus_;
}
}
/**
* optional .alluxio.grpc.block.UfsFileStatus ufs_file_status = 100;
*/
private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.grpc.UfsFileStatus, alluxio.grpc.UfsFileStatus.Builder, alluxio.grpc.UfsFileStatusOrBuilder>
getUfsFileStatusFieldBuilder() {
if (ufsFileStatusBuilder_ == null) {
ufsFileStatusBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.grpc.UfsFileStatus, alluxio.grpc.UfsFileStatus.Builder, alluxio.grpc.UfsFileStatusOrBuilder>(
getUfsFileStatus(),
getParentForChildren(),
isClean());
ufsFileStatus_ = null;
}
return ufsFileStatusBuilder_;
}
@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.block.UfsStatus)
}
// @@protoc_insertion_point(class_scope:alluxio.grpc.block.UfsStatus)
private static final alluxio.grpc.UfsStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new alluxio.grpc.UfsStatus();
}
public static alluxio.grpc.UfsStatus 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 UfsStatus 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.UfsStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}