alluxio.grpc.FileInfo 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/file_system_master.proto
package alluxio.grpc;
/**
* Protobuf type {@code alluxio.grpc.file.FileInfo}
*/
public final class FileInfo extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:alluxio.grpc.file.FileInfo)
FileInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use FileInfo.newBuilder() to construct.
private FileInfo(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private FileInfo() {
name_ = "";
path_ = "";
ufsPath_ = "";
blockIds_ = emptyLongList();
owner_ = "";
group_ = "";
persistenceState_ = "";
fileBlockInfos_ = java.util.Collections.emptyList();
ttlAction_ = 0;
ufsFingerprint_ = "";
mediumType_ = alluxio.shaded.client.com.google.protobuf.LazyStringArrayList.EMPTY;
contentHash_ = "";
ufsType_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FileInfo();
}
@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_FileInfo_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected alluxio.shaded.client.com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 32:
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.FileSystemMasterProto.internal_static_alluxio_grpc_file_FileInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.grpc.FileInfo.class, alluxio.grpc.FileInfo.Builder.class);
}
private int bitField0_;
public static final int FILEID_FIELD_NUMBER = 1;
private long fileId_;
/**
* optional int64 fileId = 1;
* @return Whether the fileId field is set.
*/
@java.lang.Override
public boolean hasFileId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 fileId = 1;
* @return The fileId.
*/
@java.lang.Override
public long getFileId() {
return fileId_;
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* optional string name = 2;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string name = 2;
* @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 = 2;
* @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 PATH_FIELD_NUMBER = 3;
private volatile java.lang.Object path_;
/**
* optional string path = 3;
* @return Whether the path field is set.
*/
@java.lang.Override
public boolean hasPath() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string path = 3;
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
alluxio.shaded.client.com.google.protobuf.ByteString bs =
(alluxio.shaded.client.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
path_ = s;
}
return s;
}
}
/**
* optional string path = 3;
* @return The bytes for path.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
alluxio.shaded.client.com.google.protobuf.ByteString b =
alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
public static final int UFSPATH_FIELD_NUMBER = 4;
private volatile java.lang.Object ufsPath_;
/**
* optional string ufsPath = 4;
* @return Whether the ufsPath field is set.
*/
@java.lang.Override
public boolean hasUfsPath() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string ufsPath = 4;
* @return The ufsPath.
*/
@java.lang.Override
public java.lang.String getUfsPath() {
java.lang.Object ref = ufsPath_;
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()) {
ufsPath_ = s;
}
return s;
}
}
/**
* optional string ufsPath = 4;
* @return The bytes for ufsPath.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString
getUfsPathBytes() {
java.lang.Object ref = ufsPath_;
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);
ufsPath_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
public static final int LENGTH_FIELD_NUMBER = 5;
private long length_;
/**
* optional int64 length = 5;
* @return Whether the length field is set.
*/
@java.lang.Override
public boolean hasLength() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int64 length = 5;
* @return The length.
*/
@java.lang.Override
public long getLength() {
return length_;
}
public static final int BLOCKSIZEBYTES_FIELD_NUMBER = 6;
private long blockSizeBytes_;
/**
* optional int64 blockSizeBytes = 6;
* @return Whether the blockSizeBytes field is set.
*/
@java.lang.Override
public boolean hasBlockSizeBytes() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 blockSizeBytes = 6;
* @return The blockSizeBytes.
*/
@java.lang.Override
public long getBlockSizeBytes() {
return blockSizeBytes_;
}
public static final int CREATIONTIMEMS_FIELD_NUMBER = 7;
private long creationTimeMs_;
/**
* optional int64 creationTimeMs = 7;
* @return Whether the creationTimeMs field is set.
*/
@java.lang.Override
public boolean hasCreationTimeMs() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int64 creationTimeMs = 7;
* @return The creationTimeMs.
*/
@java.lang.Override
public long getCreationTimeMs() {
return creationTimeMs_;
}
public static final int COMPLETED_FIELD_NUMBER = 8;
private boolean alluxio.shaded.client.com.leted_;
/**
* optional bool alluxio.shaded.client.com.leted = 8;
* @return Whether the alluxio.shaded.client.com.leted field is set.
*/
@java.lang.Override
public boolean hasCompleted() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional bool alluxio.shaded.client.com.leted = 8;
* @return The alluxio.shaded.client.com.leted.
*/
@java.lang.Override
public boolean getCompleted() {
return alluxio.shaded.client.com.leted_;
}
public static final int FOLDER_FIELD_NUMBER = 9;
private boolean folder_;
/**
* optional bool folder = 9;
* @return Whether the folder field is set.
*/
@java.lang.Override
public boolean hasFolder() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional bool folder = 9;
* @return The folder.
*/
@java.lang.Override
public boolean getFolder() {
return folder_;
}
public static final int PINNED_FIELD_NUMBER = 10;
private boolean pinned_;
/**
* optional bool pinned = 10;
* @return Whether the pinned field is set.
*/
@java.lang.Override
public boolean hasPinned() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional bool pinned = 10;
* @return The pinned.
*/
@java.lang.Override
public boolean getPinned() {
return pinned_;
}
public static final int CACHEABLE_FIELD_NUMBER = 11;
private boolean cacheable_;
/**
* optional bool cacheable = 11;
* @return Whether the cacheable field is set.
*/
@java.lang.Override
public boolean hasCacheable() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional bool cacheable = 11;
* @return The cacheable.
*/
@java.lang.Override
public boolean getCacheable() {
return cacheable_;
}
public static final int PERSISTED_FIELD_NUMBER = 12;
private boolean persisted_;
/**
* optional bool persisted = 12;
* @return Whether the persisted field is set.
*/
@java.lang.Override
public boolean hasPersisted() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional bool persisted = 12;
* @return The persisted.
*/
@java.lang.Override
public boolean getPersisted() {
return persisted_;
}
public static final int BLOCKIDS_FIELD_NUMBER = 13;
private alluxio.shaded.client.com.google.protobuf.Internal.LongList blockIds_;
/**
* repeated int64 blockIds = 13;
* @return A list containing the blockIds.
*/
@java.lang.Override
public java.util.List
getBlockIdsList() {
return blockIds_;
}
/**
* repeated int64 blockIds = 13;
* @return The count of blockIds.
*/
public int getBlockIdsCount() {
return blockIds_.size();
}
/**
* repeated int64 blockIds = 13;
* @param index The index of the element to return.
* @return The blockIds at the given index.
*/
public long getBlockIds(int index) {
return blockIds_.getLong(index);
}
public static final int LASTMODIFICATIONTIMEMS_FIELD_NUMBER = 14;
private long lastModificationTimeMs_;
/**
* optional int64 lastModificationTimeMs = 14;
* @return Whether the lastModificationTimeMs field is set.
*/
@java.lang.Override
public boolean hasLastModificationTimeMs() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional int64 lastModificationTimeMs = 14;
* @return The lastModificationTimeMs.
*/
@java.lang.Override
public long getLastModificationTimeMs() {
return lastModificationTimeMs_;
}
public static final int TTL_FIELD_NUMBER = 15;
private long ttl_;
/**
* optional int64 ttl = 15;
* @return Whether the ttl field is set.
*/
@java.lang.Override
public boolean hasTtl() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional int64 ttl = 15;
* @return The ttl.
*/
@java.lang.Override
public long getTtl() {
return ttl_;
}
public static final int OWNER_FIELD_NUMBER = 16;
private volatile java.lang.Object owner_;
/**
* optional string owner = 16;
* @return Whether the owner field is set.
*/
@java.lang.Override
public boolean hasOwner() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional string owner = 16;
* @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 = 16;
* @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 = 17;
private volatile java.lang.Object group_;
/**
* optional string group = 17;
* @return Whether the group field is set.
*/
@java.lang.Override
public boolean hasGroup() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional string group = 17;
* @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 = 17;
* @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 = 18;
private int mode_;
/**
* optional int32 mode = 18;
* @return Whether the mode field is set.
*/
@java.lang.Override
public boolean hasMode() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
* optional int32 mode = 18;
* @return The mode.
*/
@java.lang.Override
public int getMode() {
return mode_;
}
public static final int PERSISTENCESTATE_FIELD_NUMBER = 19;
private volatile java.lang.Object persistenceState_;
/**
* optional string persistenceState = 19;
* @return Whether the persistenceState field is set.
*/
@java.lang.Override
public boolean hasPersistenceState() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
* optional string persistenceState = 19;
* @return The persistenceState.
*/
@java.lang.Override
public java.lang.String getPersistenceState() {
java.lang.Object ref = persistenceState_;
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()) {
persistenceState_ = s;
}
return s;
}
}
/**
* optional string persistenceState = 19;
* @return The bytes for persistenceState.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString
getPersistenceStateBytes() {
java.lang.Object ref = persistenceState_;
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);
persistenceState_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
public static final int MOUNTPOINT_FIELD_NUMBER = 20;
private boolean mountPoint_;
/**
* optional bool mountPoint = 20;
* @return Whether the mountPoint field is set.
*/
@java.lang.Override
public boolean hasMountPoint() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
* optional bool mountPoint = 20;
* @return The mountPoint.
*/
@java.lang.Override
public boolean getMountPoint() {
return mountPoint_;
}
public static final int FILEBLOCKINFOS_FIELD_NUMBER = 21;
private java.util.List fileBlockInfos_;
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
@java.lang.Override
public java.util.List getFileBlockInfosList() {
return fileBlockInfos_;
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
@java.lang.Override
public java.util.List
getFileBlockInfosOrBuilderList() {
return fileBlockInfos_;
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
@java.lang.Override
public int getFileBlockInfosCount() {
return fileBlockInfos_.size();
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
@java.lang.Override
public alluxio.grpc.FileBlockInfo getFileBlockInfos(int index) {
return fileBlockInfos_.get(index);
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
@java.lang.Override
public alluxio.grpc.FileBlockInfoOrBuilder getFileBlockInfosOrBuilder(
int index) {
return fileBlockInfos_.get(index);
}
public static final int TTLACTION_FIELD_NUMBER = 22;
private int ttlAction_;
/**
* optional .alluxio.grpc.TtlAction ttlAction = 22;
* @return Whether the ttlAction field is set.
*/
@java.lang.Override public boolean hasTtlAction() {
return ((bitField0_ & 0x00080000) != 0);
}
/**
* optional .alluxio.grpc.TtlAction ttlAction = 22;
* @return The ttlAction.
*/
@java.lang.Override public alluxio.grpc.TtlAction getTtlAction() {
@SuppressWarnings("deprecation")
alluxio.grpc.TtlAction result = alluxio.grpc.TtlAction.valueOf(ttlAction_);
return result == null ? alluxio.grpc.TtlAction.DELETE : result;
}
public static final int MOUNTID_FIELD_NUMBER = 23;
private long mountId_;
/**
* optional int64 mountId = 23;
* @return Whether the mountId field is set.
*/
@java.lang.Override
public boolean hasMountId() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
* optional int64 mountId = 23;
* @return The mountId.
*/
@java.lang.Override
public long getMountId() {
return mountId_;
}
public static final int INALLUXIOPERCENTAGE_FIELD_NUMBER = 24;
private int inAlluxioPercentage_;
/**
* optional int32 inAlluxioPercentage = 24;
* @return Whether the inAlluxioPercentage field is set.
*/
@java.lang.Override
public boolean hasInAlluxioPercentage() {
return ((bitField0_ & 0x00200000) != 0);
}
/**
* optional int32 inAlluxioPercentage = 24;
* @return The inAlluxioPercentage.
*/
@java.lang.Override
public int getInAlluxioPercentage() {
return inAlluxioPercentage_;
}
public static final int INMEMORYPERCENTAGE_FIELD_NUMBER = 25;
private int inMemoryPercentage_;
/**
* optional int32 inMemoryPercentage = 25;
* @return Whether the inMemoryPercentage field is set.
*/
@java.lang.Override
public boolean hasInMemoryPercentage() {
return ((bitField0_ & 0x00400000) != 0);
}
/**
* optional int32 inMemoryPercentage = 25;
* @return The inMemoryPercentage.
*/
@java.lang.Override
public int getInMemoryPercentage() {
return inMemoryPercentage_;
}
public static final int UFSFINGERPRINT_FIELD_NUMBER = 26;
private volatile java.lang.Object ufsFingerprint_;
/**
* optional string ufsFingerprint = 26;
* @return Whether the ufsFingerprint field is set.
*/
@java.lang.Override
public boolean hasUfsFingerprint() {
return ((bitField0_ & 0x00800000) != 0);
}
/**
* optional string ufsFingerprint = 26;
* @return The ufsFingerprint.
*/
@java.lang.Override
public java.lang.String getUfsFingerprint() {
java.lang.Object ref = ufsFingerprint_;
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()) {
ufsFingerprint_ = s;
}
return s;
}
}
/**
* optional string ufsFingerprint = 26;
* @return The bytes for ufsFingerprint.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString
getUfsFingerprintBytes() {
java.lang.Object ref = ufsFingerprint_;
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);
ufsFingerprint_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
public static final int ACL_FIELD_NUMBER = 27;
private alluxio.grpc.PAcl acl_;
/**
* optional .alluxio.grpc.file.PAcl acl = 27;
* @return Whether the acl field is set.
*/
@java.lang.Override
public boolean hasAcl() {
return ((bitField0_ & 0x01000000) != 0);
}
/**
* optional .alluxio.grpc.file.PAcl acl = 27;
* @return The acl.
*/
@java.lang.Override
public alluxio.grpc.PAcl getAcl() {
return acl_ == null ? alluxio.grpc.PAcl.getDefaultInstance() : acl_;
}
/**
* optional .alluxio.grpc.file.PAcl acl = 27;
*/
@java.lang.Override
public alluxio.grpc.PAclOrBuilder getAclOrBuilder() {
return acl_ == null ? alluxio.grpc.PAcl.getDefaultInstance() : acl_;
}
public static final int DEFAULTACL_FIELD_NUMBER = 28;
private alluxio.grpc.PAcl defaultAcl_;
/**
* optional .alluxio.grpc.file.PAcl defaultAcl = 28;
* @return Whether the defaultAcl field is set.
*/
@java.lang.Override
public boolean hasDefaultAcl() {
return ((bitField0_ & 0x02000000) != 0);
}
/**
* optional .alluxio.grpc.file.PAcl defaultAcl = 28;
* @return The defaultAcl.
*/
@java.lang.Override
public alluxio.grpc.PAcl getDefaultAcl() {
return defaultAcl_ == null ? alluxio.grpc.PAcl.getDefaultInstance() : defaultAcl_;
}
/**
* optional .alluxio.grpc.file.PAcl defaultAcl = 28;
*/
@java.lang.Override
public alluxio.grpc.PAclOrBuilder getDefaultAclOrBuilder() {
return defaultAcl_ == null ? alluxio.grpc.PAcl.getDefaultInstance() : defaultAcl_;
}
public static final int REPLICATIONMAX_FIELD_NUMBER = 29;
private int replicationMax_;
/**
* optional int32 replicationMax = 29;
* @return Whether the replicationMax field is set.
*/
@java.lang.Override
public boolean hasReplicationMax() {
return ((bitField0_ & 0x04000000) != 0);
}
/**
* optional int32 replicationMax = 29;
* @return The replicationMax.
*/
@java.lang.Override
public int getReplicationMax() {
return replicationMax_;
}
public static final int REPLICATIONMIN_FIELD_NUMBER = 30;
private int replicationMin_;
/**
* optional int32 replicationMin = 30;
* @return Whether the replicationMin field is set.
*/
@java.lang.Override
public boolean hasReplicationMin() {
return ((bitField0_ & 0x08000000) != 0);
}
/**
* optional int32 replicationMin = 30;
* @return The replicationMin.
*/
@java.lang.Override
public int getReplicationMin() {
return replicationMin_;
}
public static final int LASTACCESSTIMEMS_FIELD_NUMBER = 31;
private long lastAccessTimeMs_;
/**
* optional int64 lastAccessTimeMs = 31;
* @return Whether the lastAccessTimeMs field is set.
*/
@java.lang.Override
public boolean hasLastAccessTimeMs() {
return ((bitField0_ & 0x10000000) != 0);
}
/**
* optional int64 lastAccessTimeMs = 31;
* @return The lastAccessTimeMs.
*/
@java.lang.Override
public long getLastAccessTimeMs() {
return lastAccessTimeMs_;
}
public static final int XATTR_FIELD_NUMBER = 32;
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.FileSystemMasterProto.internal_static_alluxio_grpc_file_FileInfo_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 = 32;
*/
@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 = 32;
*/
@java.lang.Override
public java.util.Map getXattrMap() {
return internalGetXattr().getMap();
}
/**
* map<string, bytes> xattr = 32;
*/
@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 = 32;
*/
@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 MEDIUMTYPE_FIELD_NUMBER = 33;
private alluxio.shaded.client.com.google.protobuf.LazyStringList mediumType_;
/**
* repeated string mediumType = 33;
* @return A list containing the mediumType.
*/
public alluxio.shaded.client.com.google.protobuf.ProtocolStringList
getMediumTypeList() {
return mediumType_;
}
/**
* repeated string mediumType = 33;
* @return The count of mediumType.
*/
public int getMediumTypeCount() {
return mediumType_.size();
}
/**
* repeated string mediumType = 33;
* @param index The index of the element to return.
* @return The mediumType at the given index.
*/
public java.lang.String getMediumType(int index) {
return mediumType_.get(index);
}
/**
* repeated string mediumType = 33;
* @param index The index of the value to return.
* @return The bytes of the mediumType at the given index.
*/
public alluxio.shaded.client.com.google.protobuf.ByteString
getMediumTypeBytes(int index) {
return mediumType_.getByteString(index);
}
public static final int CONTENTHASH_FIELD_NUMBER = 34;
private volatile java.lang.Object contentHash_;
/**
* optional string contentHash = 34;
* @return Whether the contentHash field is set.
*/
@java.lang.Override
public boolean hasContentHash() {
return ((bitField0_ & 0x20000000) != 0);
}
/**
* optional string contentHash = 34;
* @return The contentHash.
*/
@java.lang.Override
public java.lang.String getContentHash() {
java.lang.Object ref = contentHash_;
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()) {
contentHash_ = s;
}
return s;
}
}
/**
* optional string contentHash = 34;
* @return The bytes for contentHash.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString
getContentHashBytes() {
java.lang.Object ref = contentHash_;
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);
contentHash_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
public static final int UFSTYPE_FIELD_NUMBER = 35;
private volatile java.lang.Object ufsType_;
/**
* optional string ufsType = 35;
* @return Whether the ufsType field is set.
*/
@java.lang.Override
public boolean hasUfsType() {
return ((bitField0_ & 0x40000000) != 0);
}
/**
* optional string ufsType = 35;
* @return The ufsType.
*/
@java.lang.Override
public java.lang.String getUfsType() {
java.lang.Object ref = ufsType_;
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()) {
ufsType_ = s;
}
return s;
}
}
/**
* optional string ufsType = 35;
* @return The bytes for ufsType.
*/
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.ByteString
getUfsTypeBytes() {
java.lang.Object ref = ufsType_;
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);
ufsType_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
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.writeInt64(1, fileId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (((bitField0_ & 0x00000004) != 0)) {
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, path_);
}
if (((bitField0_ & 0x00000008) != 0)) {
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ufsPath_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt64(5, length_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt64(6, blockSizeBytes_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt64(7, creationTimeMs_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeBool(8, alluxio.shaded.client.com.leted_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeBool(9, folder_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeBool(10, pinned_);
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeBool(11, cacheable_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeBool(12, persisted_);
}
for (int i = 0; i < blockIds_.size(); i++) {
output.writeInt64(13, blockIds_.getLong(i));
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeInt64(14, lastModificationTimeMs_);
}
if (((bitField0_ & 0x00002000) != 0)) {
output.writeInt64(15, ttl_);
}
if (((bitField0_ & 0x00004000) != 0)) {
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 16, owner_);
}
if (((bitField0_ & 0x00008000) != 0)) {
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 17, group_);
}
if (((bitField0_ & 0x00010000) != 0)) {
output.writeInt32(18, mode_);
}
if (((bitField0_ & 0x00020000) != 0)) {
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 19, persistenceState_);
}
if (((bitField0_ & 0x00040000) != 0)) {
output.writeBool(20, mountPoint_);
}
for (int i = 0; i < fileBlockInfos_.size(); i++) {
output.writeMessage(21, fileBlockInfos_.get(i));
}
if (((bitField0_ & 0x00080000) != 0)) {
output.writeEnum(22, ttlAction_);
}
if (((bitField0_ & 0x00100000) != 0)) {
output.writeInt64(23, mountId_);
}
if (((bitField0_ & 0x00200000) != 0)) {
output.writeInt32(24, inAlluxioPercentage_);
}
if (((bitField0_ & 0x00400000) != 0)) {
output.writeInt32(25, inMemoryPercentage_);
}
if (((bitField0_ & 0x00800000) != 0)) {
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 26, ufsFingerprint_);
}
if (((bitField0_ & 0x01000000) != 0)) {
output.writeMessage(27, getAcl());
}
if (((bitField0_ & 0x02000000) != 0)) {
output.writeMessage(28, getDefaultAcl());
}
if (((bitField0_ & 0x04000000) != 0)) {
output.writeInt32(29, replicationMax_);
}
if (((bitField0_ & 0x08000000) != 0)) {
output.writeInt32(30, replicationMin_);
}
if (((bitField0_ & 0x10000000) != 0)) {
output.writeInt64(31, lastAccessTimeMs_);
}
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetXattr(),
XattrDefaultEntryHolder.defaultEntry,
32);
for (int i = 0; i < mediumType_.size(); i++) {
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 33, mediumType_.getRaw(i));
}
if (((bitField0_ & 0x20000000) != 0)) {
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 34, contentHash_);
}
if (((bitField0_ & 0x40000000) != 0)) {
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 35, ufsType_);
}
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.uteInt64Size(1, fileId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(2, name_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(3, path_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(4, ufsPath_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(5, length_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(6, blockSizeBytes_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(7, creationTimeMs_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteBoolSize(8, alluxio.shaded.client.com.leted_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteBoolSize(9, folder_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteBoolSize(10, pinned_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteBoolSize(11, cacheable_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteBoolSize(12, persisted_);
}
{
int dataSize = 0;
for (int i = 0; i < blockIds_.size(); i++) {
dataSize += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64SizeNoTag(blockIds_.getLong(i));
}
size += dataSize;
size += 1 * getBlockIdsList().size();
}
if (((bitField0_ & 0x00001000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(14, lastModificationTimeMs_);
}
if (((bitField0_ & 0x00002000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(15, ttl_);
}
if (((bitField0_ & 0x00004000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(16, owner_);
}
if (((bitField0_ & 0x00008000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(17, group_);
}
if (((bitField0_ & 0x00010000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt32Size(18, mode_);
}
if (((bitField0_ & 0x00020000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(19, persistenceState_);
}
if (((bitField0_ & 0x00040000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteBoolSize(20, mountPoint_);
}
for (int i = 0; i < fileBlockInfos_.size(); i++) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteMessageSize(21, fileBlockInfos_.get(i));
}
if (((bitField0_ & 0x00080000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteEnumSize(22, ttlAction_);
}
if (((bitField0_ & 0x00100000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(23, mountId_);
}
if (((bitField0_ & 0x00200000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt32Size(24, inAlluxioPercentage_);
}
if (((bitField0_ & 0x00400000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt32Size(25, inMemoryPercentage_);
}
if (((bitField0_ & 0x00800000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(26, ufsFingerprint_);
}
if (((bitField0_ & 0x01000000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteMessageSize(27, getAcl());
}
if (((bitField0_ & 0x02000000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteMessageSize(28, getDefaultAcl());
}
if (((bitField0_ & 0x04000000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt32Size(29, replicationMax_);
}
if (((bitField0_ & 0x08000000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt32Size(30, replicationMin_);
}
if (((bitField0_ & 0x10000000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
.alluxio.shaded.client.com.uteInt64Size(31, lastAccessTimeMs_);
}
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(32, xattr__);
}
{
int dataSize = 0;
for (int i = 0; i < mediumType_.size(); i++) {
dataSize += alluxio.shaded.client.com.uteStringSizeNoTag(mediumType_.getRaw(i));
}
size += dataSize;
size += 2 * getMediumTypeList().size();
}
if (((bitField0_ & 0x20000000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(34, contentHash_);
}
if (((bitField0_ & 0x40000000) != 0)) {
size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(35, ufsType_);
}
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.FileInfo)) {
return super.equals(obj);
}
alluxio.grpc.FileInfo other = (alluxio.grpc.FileInfo) obj;
if (hasFileId() != other.hasFileId()) return false;
if (hasFileId()) {
if (getFileId()
!= other.getFileId()) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasPath() != other.hasPath()) return false;
if (hasPath()) {
if (!getPath()
.equals(other.getPath())) return false;
}
if (hasUfsPath() != other.hasUfsPath()) return false;
if (hasUfsPath()) {
if (!getUfsPath()
.equals(other.getUfsPath())) return false;
}
if (hasLength() != other.hasLength()) return false;
if (hasLength()) {
if (getLength()
!= other.getLength()) return false;
}
if (hasBlockSizeBytes() != other.hasBlockSizeBytes()) return false;
if (hasBlockSizeBytes()) {
if (getBlockSizeBytes()
!= other.getBlockSizeBytes()) return false;
}
if (hasCreationTimeMs() != other.hasCreationTimeMs()) return false;
if (hasCreationTimeMs()) {
if (getCreationTimeMs()
!= other.getCreationTimeMs()) return false;
}
if (hasCompleted() != other.hasCompleted()) return false;
if (hasCompleted()) {
if (getCompleted()
!= other.getCompleted()) return false;
}
if (hasFolder() != other.hasFolder()) return false;
if (hasFolder()) {
if (getFolder()
!= other.getFolder()) return false;
}
if (hasPinned() != other.hasPinned()) return false;
if (hasPinned()) {
if (getPinned()
!= other.getPinned()) return false;
}
if (hasCacheable() != other.hasCacheable()) return false;
if (hasCacheable()) {
if (getCacheable()
!= other.getCacheable()) return false;
}
if (hasPersisted() != other.hasPersisted()) return false;
if (hasPersisted()) {
if (getPersisted()
!= other.getPersisted()) return false;
}
if (!getBlockIdsList()
.equals(other.getBlockIdsList())) return false;
if (hasLastModificationTimeMs() != other.hasLastModificationTimeMs()) return false;
if (hasLastModificationTimeMs()) {
if (getLastModificationTimeMs()
!= other.getLastModificationTimeMs()) return false;
}
if (hasTtl() != other.hasTtl()) return false;
if (hasTtl()) {
if (getTtl()
!= other.getTtl()) 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 (hasPersistenceState() != other.hasPersistenceState()) return false;
if (hasPersistenceState()) {
if (!getPersistenceState()
.equals(other.getPersistenceState())) return false;
}
if (hasMountPoint() != other.hasMountPoint()) return false;
if (hasMountPoint()) {
if (getMountPoint()
!= other.getMountPoint()) return false;
}
if (!getFileBlockInfosList()
.equals(other.getFileBlockInfosList())) return false;
if (hasTtlAction() != other.hasTtlAction()) return false;
if (hasTtlAction()) {
if (ttlAction_ != other.ttlAction_) return false;
}
if (hasMountId() != other.hasMountId()) return false;
if (hasMountId()) {
if (getMountId()
!= other.getMountId()) return false;
}
if (hasInAlluxioPercentage() != other.hasInAlluxioPercentage()) return false;
if (hasInAlluxioPercentage()) {
if (getInAlluxioPercentage()
!= other.getInAlluxioPercentage()) return false;
}
if (hasInMemoryPercentage() != other.hasInMemoryPercentage()) return false;
if (hasInMemoryPercentage()) {
if (getInMemoryPercentage()
!= other.getInMemoryPercentage()) return false;
}
if (hasUfsFingerprint() != other.hasUfsFingerprint()) return false;
if (hasUfsFingerprint()) {
if (!getUfsFingerprint()
.equals(other.getUfsFingerprint())) return false;
}
if (hasAcl() != other.hasAcl()) return false;
if (hasAcl()) {
if (!getAcl()
.equals(other.getAcl())) return false;
}
if (hasDefaultAcl() != other.hasDefaultAcl()) return false;
if (hasDefaultAcl()) {
if (!getDefaultAcl()
.equals(other.getDefaultAcl())) return false;
}
if (hasReplicationMax() != other.hasReplicationMax()) return false;
if (hasReplicationMax()) {
if (getReplicationMax()
!= other.getReplicationMax()) return false;
}
if (hasReplicationMin() != other.hasReplicationMin()) return false;
if (hasReplicationMin()) {
if (getReplicationMin()
!= other.getReplicationMin()) return false;
}
if (hasLastAccessTimeMs() != other.hasLastAccessTimeMs()) return false;
if (hasLastAccessTimeMs()) {
if (getLastAccessTimeMs()
!= other.getLastAccessTimeMs()) return false;
}
if (!internalGetXattr().equals(
other.internalGetXattr())) return false;
if (!getMediumTypeList()
.equals(other.getMediumTypeList())) return false;
if (hasContentHash() != other.hasContentHash()) return false;
if (hasContentHash()) {
if (!getContentHash()
.equals(other.getContentHash())) return false;
}
if (hasUfsType() != other.hasUfsType()) return false;
if (hasUfsType()) {
if (!getUfsType()
.equals(other.getUfsType())) 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 (hasFileId()) {
hash = (37 * hash) + FILEID_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getFileId());
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasPath()) {
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
}
if (hasUfsPath()) {
hash = (37 * hash) + UFSPATH_FIELD_NUMBER;
hash = (53 * hash) + getUfsPath().hashCode();
}
if (hasLength()) {
hash = (37 * hash) + LENGTH_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getLength());
}
if (hasBlockSizeBytes()) {
hash = (37 * hash) + BLOCKSIZEBYTES_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getBlockSizeBytes());
}
if (hasCreationTimeMs()) {
hash = (37 * hash) + CREATIONTIMEMS_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getCreationTimeMs());
}
if (hasCompleted()) {
hash = (37 * hash) + COMPLETED_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
getCompleted());
}
if (hasFolder()) {
hash = (37 * hash) + FOLDER_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
getFolder());
}
if (hasPinned()) {
hash = (37 * hash) + PINNED_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
getPinned());
}
if (hasCacheable()) {
hash = (37 * hash) + CACHEABLE_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
getCacheable());
}
if (hasPersisted()) {
hash = (37 * hash) + PERSISTED_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
getPersisted());
}
if (getBlockIdsCount() > 0) {
hash = (37 * hash) + BLOCKIDS_FIELD_NUMBER;
hash = (53 * hash) + getBlockIdsList().hashCode();
}
if (hasLastModificationTimeMs()) {
hash = (37 * hash) + LASTMODIFICATIONTIMEMS_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getLastModificationTimeMs());
}
if (hasTtl()) {
hash = (37 * hash) + TTL_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getTtl());
}
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 (hasPersistenceState()) {
hash = (37 * hash) + PERSISTENCESTATE_FIELD_NUMBER;
hash = (53 * hash) + getPersistenceState().hashCode();
}
if (hasMountPoint()) {
hash = (37 * hash) + MOUNTPOINT_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
getMountPoint());
}
if (getFileBlockInfosCount() > 0) {
hash = (37 * hash) + FILEBLOCKINFOS_FIELD_NUMBER;
hash = (53 * hash) + getFileBlockInfosList().hashCode();
}
if (hasTtlAction()) {
hash = (37 * hash) + TTLACTION_FIELD_NUMBER;
hash = (53 * hash) + ttlAction_;
}
if (hasMountId()) {
hash = (37 * hash) + MOUNTID_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getMountId());
}
if (hasInAlluxioPercentage()) {
hash = (37 * hash) + INALLUXIOPERCENTAGE_FIELD_NUMBER;
hash = (53 * hash) + getInAlluxioPercentage();
}
if (hasInMemoryPercentage()) {
hash = (37 * hash) + INMEMORYPERCENTAGE_FIELD_NUMBER;
hash = (53 * hash) + getInMemoryPercentage();
}
if (hasUfsFingerprint()) {
hash = (37 * hash) + UFSFINGERPRINT_FIELD_NUMBER;
hash = (53 * hash) + getUfsFingerprint().hashCode();
}
if (hasAcl()) {
hash = (37 * hash) + ACL_FIELD_NUMBER;
hash = (53 * hash) + getAcl().hashCode();
}
if (hasDefaultAcl()) {
hash = (37 * hash) + DEFAULTACL_FIELD_NUMBER;
hash = (53 * hash) + getDefaultAcl().hashCode();
}
if (hasReplicationMax()) {
hash = (37 * hash) + REPLICATIONMAX_FIELD_NUMBER;
hash = (53 * hash) + getReplicationMax();
}
if (hasReplicationMin()) {
hash = (37 * hash) + REPLICATIONMIN_FIELD_NUMBER;
hash = (53 * hash) + getReplicationMin();
}
if (hasLastAccessTimeMs()) {
hash = (37 * hash) + LASTACCESSTIMEMS_FIELD_NUMBER;
hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
getLastAccessTimeMs());
}
if (!internalGetXattr().getMap().isEmpty()) {
hash = (37 * hash) + XATTR_FIELD_NUMBER;
hash = (53 * hash) + internalGetXattr().hashCode();
}
if (getMediumTypeCount() > 0) {
hash = (37 * hash) + MEDIUMTYPE_FIELD_NUMBER;
hash = (53 * hash) + getMediumTypeList().hashCode();
}
if (hasContentHash()) {
hash = (37 * hash) + CONTENTHASH_FIELD_NUMBER;
hash = (53 * hash) + getContentHash().hashCode();
}
if (hasUfsType()) {
hash = (37 * hash) + UFSTYPE_FIELD_NUMBER;
hash = (53 * hash) + getUfsType().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static alluxio.grpc.FileInfo parseFrom(
java.nio.ByteBuffer data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.FileInfo 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.FileInfo 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.FileInfo 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.FileInfo parseFrom(byte[] data)
throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static alluxio.grpc.FileInfo 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.FileInfo 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.FileInfo 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.FileInfo 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.FileInfo 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.FileInfo 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.FileInfo 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.FileInfo 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.FileInfo}
*/
public static final class Builder extends
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:alluxio.grpc.file.FileInfo)
alluxio.grpc.FileInfoOrBuilder {
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_FileInfo_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected alluxio.shaded.client.com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 32:
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 32:
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.FileSystemMasterProto.internal_static_alluxio_grpc_file_FileInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
alluxio.grpc.FileInfo.class, alluxio.grpc.FileInfo.Builder.class);
}
// Construct using alluxio.grpc.FileInfo.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) {
getFileBlockInfosFieldBuilder();
getAclFieldBuilder();
getDefaultAclFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
fileId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
path_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
ufsPath_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
length_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
blockSizeBytes_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
creationTimeMs_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
alluxio.shaded.client.com.leted_ = false;
bitField0_ = (bitField0_ & ~0x00000080);
folder_ = false;
bitField0_ = (bitField0_ & ~0x00000100);
pinned_ = false;
bitField0_ = (bitField0_ & ~0x00000200);
cacheable_ = false;
bitField0_ = (bitField0_ & ~0x00000400);
persisted_ = false;
bitField0_ = (bitField0_ & ~0x00000800);
blockIds_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00001000);
lastModificationTimeMs_ = 0L;
bitField0_ = (bitField0_ & ~0x00002000);
ttl_ = 0L;
bitField0_ = (bitField0_ & ~0x00004000);
owner_ = "";
bitField0_ = (bitField0_ & ~0x00008000);
group_ = "";
bitField0_ = (bitField0_ & ~0x00010000);
mode_ = 0;
bitField0_ = (bitField0_ & ~0x00020000);
persistenceState_ = "";
bitField0_ = (bitField0_ & ~0x00040000);
mountPoint_ = false;
bitField0_ = (bitField0_ & ~0x00080000);
if (fileBlockInfosBuilder_ == null) {
fileBlockInfos_ = java.util.Collections.emptyList();
} else {
fileBlockInfos_ = null;
fileBlockInfosBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00100000);
ttlAction_ = 0;
bitField0_ = (bitField0_ & ~0x00200000);
mountId_ = 0L;
bitField0_ = (bitField0_ & ~0x00400000);
inAlluxioPercentage_ = 0;
bitField0_ = (bitField0_ & ~0x00800000);
inMemoryPercentage_ = 0;
bitField0_ = (bitField0_ & ~0x01000000);
ufsFingerprint_ = "";
bitField0_ = (bitField0_ & ~0x02000000);
if (aclBuilder_ == null) {
acl_ = null;
} else {
aclBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x04000000);
if (defaultAclBuilder_ == null) {
defaultAcl_ = null;
} else {
defaultAclBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x08000000);
replicationMax_ = 0;
bitField0_ = (bitField0_ & ~0x10000000);
replicationMin_ = 0;
bitField0_ = (bitField0_ & ~0x20000000);
lastAccessTimeMs_ = 0L;
bitField0_ = (bitField0_ & ~0x40000000);
internalGetMutableXattr().clear();
mediumType_ = alluxio.shaded.client.com.google.protobuf.LazyStringArrayList.EMPTY;
bitField1_ = (bitField1_ & ~0x00000001);
contentHash_ = "";
bitField1_ = (bitField1_ & ~0x00000002);
ufsType_ = "";
bitField1_ = (bitField1_ & ~0x00000004);
return this;
}
@java.lang.Override
public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_FileInfo_descriptor;
}
@java.lang.Override
public alluxio.grpc.FileInfo getDefaultInstanceForType() {
return alluxio.grpc.FileInfo.getDefaultInstance();
}
@java.lang.Override
public alluxio.grpc.FileInfo build() {
alluxio.grpc.FileInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public alluxio.grpc.FileInfo buildPartial() {
alluxio.grpc.FileInfo result = new alluxio.grpc.FileInfo(this);
int from_bitField0_ = bitField0_;
int from_bitField1_ = bitField1_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.fileId_ = fileId_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.path_ = path_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.ufsPath_ = ufsPath_;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.length_ = length_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.blockSizeBytes_ = blockSizeBytes_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.creationTimeMs_ = creationTimeMs_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.alluxio.shaded.client.com.leted_ = alluxio.shaded.client.com.leted_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.folder_ = folder_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.pinned_ = pinned_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.cacheable_ = cacheable_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.persisted_ = persisted_;
to_bitField0_ |= 0x00000800;
}
if (((bitField0_ & 0x00001000) != 0)) {
blockIds_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00001000);
}
result.blockIds_ = blockIds_;
if (((from_bitField0_ & 0x00002000) != 0)) {
result.lastModificationTimeMs_ = lastModificationTimeMs_;
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.ttl_ = ttl_;
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
to_bitField0_ |= 0x00004000;
}
result.owner_ = owner_;
if (((from_bitField0_ & 0x00010000) != 0)) {
to_bitField0_ |= 0x00008000;
}
result.group_ = group_;
if (((from_bitField0_ & 0x00020000) != 0)) {
result.mode_ = mode_;
to_bitField0_ |= 0x00010000;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
to_bitField0_ |= 0x00020000;
}
result.persistenceState_ = persistenceState_;
if (((from_bitField0_ & 0x00080000) != 0)) {
result.mountPoint_ = mountPoint_;
to_bitField0_ |= 0x00040000;
}
if (fileBlockInfosBuilder_ == null) {
if (((bitField0_ & 0x00100000) != 0)) {
fileBlockInfos_ = java.util.Collections.unmodifiableList(fileBlockInfos_);
bitField0_ = (bitField0_ & ~0x00100000);
}
result.fileBlockInfos_ = fileBlockInfos_;
} else {
result.fileBlockInfos_ = fileBlockInfosBuilder_.build();
}
if (((from_bitField0_ & 0x00200000) != 0)) {
to_bitField0_ |= 0x00080000;
}
result.ttlAction_ = ttlAction_;
if (((from_bitField0_ & 0x00400000) != 0)) {
result.mountId_ = mountId_;
to_bitField0_ |= 0x00100000;
}
if (((from_bitField0_ & 0x00800000) != 0)) {
result.inAlluxioPercentage_ = inAlluxioPercentage_;
to_bitField0_ |= 0x00200000;
}
if (((from_bitField0_ & 0x01000000) != 0)) {
result.inMemoryPercentage_ = inMemoryPercentage_;
to_bitField0_ |= 0x00400000;
}
if (((from_bitField0_ & 0x02000000) != 0)) {
to_bitField0_ |= 0x00800000;
}
result.ufsFingerprint_ = ufsFingerprint_;
if (((from_bitField0_ & 0x04000000) != 0)) {
if (aclBuilder_ == null) {
result.acl_ = acl_;
} else {
result.acl_ = aclBuilder_.build();
}
to_bitField0_ |= 0x01000000;
}
if (((from_bitField0_ & 0x08000000) != 0)) {
if (defaultAclBuilder_ == null) {
result.defaultAcl_ = defaultAcl_;
} else {
result.defaultAcl_ = defaultAclBuilder_.build();
}
to_bitField0_ |= 0x02000000;
}
if (((from_bitField0_ & 0x10000000) != 0)) {
result.replicationMax_ = replicationMax_;
to_bitField0_ |= 0x04000000;
}
if (((from_bitField0_ & 0x20000000) != 0)) {
result.replicationMin_ = replicationMin_;
to_bitField0_ |= 0x08000000;
}
if (((from_bitField0_ & 0x40000000) != 0)) {
result.lastAccessTimeMs_ = lastAccessTimeMs_;
to_bitField0_ |= 0x10000000;
}
result.xattr_ = internalGetXattr();
result.xattr_.makeImmutable();
if (((bitField1_ & 0x00000001) != 0)) {
mediumType_ = mediumType_.getUnmodifiableView();
bitField1_ = (bitField1_ & ~0x00000001);
}
result.mediumType_ = mediumType_;
if (((from_bitField1_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x20000000;
}
result.contentHash_ = contentHash_;
if (((from_bitField1_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x40000000;
}
result.ufsType_ = ufsType_;
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.FileInfo) {
return mergeFrom((alluxio.grpc.FileInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(alluxio.grpc.FileInfo other) {
if (other == alluxio.grpc.FileInfo.getDefaultInstance()) return this;
if (other.hasFileId()) {
setFileId(other.getFileId());
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
onChanged();
}
if (other.hasPath()) {
bitField0_ |= 0x00000004;
path_ = other.path_;
onChanged();
}
if (other.hasUfsPath()) {
bitField0_ |= 0x00000008;
ufsPath_ = other.ufsPath_;
onChanged();
}
if (other.hasLength()) {
setLength(other.getLength());
}
if (other.hasBlockSizeBytes()) {
setBlockSizeBytes(other.getBlockSizeBytes());
}
if (other.hasCreationTimeMs()) {
setCreationTimeMs(other.getCreationTimeMs());
}
if (other.hasCompleted()) {
setCompleted(other.getCompleted());
}
if (other.hasFolder()) {
setFolder(other.getFolder());
}
if (other.hasPinned()) {
setPinned(other.getPinned());
}
if (other.hasCacheable()) {
setCacheable(other.getCacheable());
}
if (other.hasPersisted()) {
setPersisted(other.getPersisted());
}
if (!other.blockIds_.isEmpty()) {
if (blockIds_.isEmpty()) {
blockIds_ = other.blockIds_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureBlockIdsIsMutable();
blockIds_.addAll(other.blockIds_);
}
onChanged();
}
if (other.hasLastModificationTimeMs()) {
setLastModificationTimeMs(other.getLastModificationTimeMs());
}
if (other.hasTtl()) {
setTtl(other.getTtl());
}
if (other.hasOwner()) {
bitField0_ |= 0x00008000;
owner_ = other.owner_;
onChanged();
}
if (other.hasGroup()) {
bitField0_ |= 0x00010000;
group_ = other.group_;
onChanged();
}
if (other.hasMode()) {
setMode(other.getMode());
}
if (other.hasPersistenceState()) {
bitField0_ |= 0x00040000;
persistenceState_ = other.persistenceState_;
onChanged();
}
if (other.hasMountPoint()) {
setMountPoint(other.getMountPoint());
}
if (fileBlockInfosBuilder_ == null) {
if (!other.fileBlockInfos_.isEmpty()) {
if (fileBlockInfos_.isEmpty()) {
fileBlockInfos_ = other.fileBlockInfos_;
bitField0_ = (bitField0_ & ~0x00100000);
} else {
ensureFileBlockInfosIsMutable();
fileBlockInfos_.addAll(other.fileBlockInfos_);
}
onChanged();
}
} else {
if (!other.fileBlockInfos_.isEmpty()) {
if (fileBlockInfosBuilder_.isEmpty()) {
fileBlockInfosBuilder_.dispose();
fileBlockInfosBuilder_ = null;
fileBlockInfos_ = other.fileBlockInfos_;
bitField0_ = (bitField0_ & ~0x00100000);
fileBlockInfosBuilder_ =
alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFileBlockInfosFieldBuilder() : null;
} else {
fileBlockInfosBuilder_.addAllMessages(other.fileBlockInfos_);
}
}
}
if (other.hasTtlAction()) {
setTtlAction(other.getTtlAction());
}
if (other.hasMountId()) {
setMountId(other.getMountId());
}
if (other.hasInAlluxioPercentage()) {
setInAlluxioPercentage(other.getInAlluxioPercentage());
}
if (other.hasInMemoryPercentage()) {
setInMemoryPercentage(other.getInMemoryPercentage());
}
if (other.hasUfsFingerprint()) {
bitField0_ |= 0x02000000;
ufsFingerprint_ = other.ufsFingerprint_;
onChanged();
}
if (other.hasAcl()) {
mergeAcl(other.getAcl());
}
if (other.hasDefaultAcl()) {
mergeDefaultAcl(other.getDefaultAcl());
}
if (other.hasReplicationMax()) {
setReplicationMax(other.getReplicationMax());
}
if (other.hasReplicationMin()) {
setReplicationMin(other.getReplicationMin());
}
if (other.hasLastAccessTimeMs()) {
setLastAccessTimeMs(other.getLastAccessTimeMs());
}
internalGetMutableXattr().mergeFrom(
other.internalGetXattr());
if (!other.mediumType_.isEmpty()) {
if (mediumType_.isEmpty()) {
mediumType_ = other.mediumType_;
bitField1_ = (bitField1_ & ~0x00000001);
} else {
ensureMediumTypeIsMutable();
mediumType_.addAll(other.mediumType_);
}
onChanged();
}
if (other.hasContentHash()) {
bitField1_ |= 0x00000002;
contentHash_ = other.contentHash_;
onChanged();
}
if (other.hasUfsType()) {
bitField1_ |= 0x00000004;
ufsType_ = other.ufsType_;
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: {
fileId_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
name_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
path_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
ufsPath_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
length_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
blockSizeBytes_ = input.readInt64();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
creationTimeMs_ = input.readInt64();
bitField0_ |= 0x00000040;
break;
} // case 56
case 64: {
alluxio.shaded.client.com.leted_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
case 72: {
folder_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case 72
case 80: {
pinned_ = input.readBool();
bitField0_ |= 0x00000200;
break;
} // case 80
case 88: {
cacheable_ = input.readBool();
bitField0_ |= 0x00000400;
break;
} // case 88
case 96: {
persisted_ = input.readBool();
bitField0_ |= 0x00000800;
break;
} // case 96
case 104: {
long v = input.readInt64();
ensureBlockIdsIsMutable();
blockIds_.addLong(v);
break;
} // case 104
case 106: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureBlockIdsIsMutable();
while (input.getBytesUntilLimit() > 0) {
blockIds_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
} // case 106
case 112: {
lastModificationTimeMs_ = input.readInt64();
bitField0_ |= 0x00002000;
break;
} // case 112
case 120: {
ttl_ = input.readInt64();
bitField0_ |= 0x00004000;
break;
} // case 120
case 130: {
owner_ = input.readBytes();
bitField0_ |= 0x00008000;
break;
} // case 130
case 138: {
group_ = input.readBytes();
bitField0_ |= 0x00010000;
break;
} // case 138
case 144: {
mode_ = input.readInt32();
bitField0_ |= 0x00020000;
break;
} // case 144
case 154: {
persistenceState_ = input.readBytes();
bitField0_ |= 0x00040000;
break;
} // case 154
case 160: {
mountPoint_ = input.readBool();
bitField0_ |= 0x00080000;
break;
} // case 160
case 170: {
alluxio.grpc.FileBlockInfo m =
input.readMessage(
alluxio.grpc.FileBlockInfo.PARSER,
extensionRegistry);
if (fileBlockInfosBuilder_ == null) {
ensureFileBlockInfosIsMutable();
fileBlockInfos_.add(m);
} else {
fileBlockInfosBuilder_.addMessage(m);
}
break;
} // case 170
case 176: {
int tmpRaw = input.readEnum();
alluxio.grpc.TtlAction tmpValue =
alluxio.grpc.TtlAction.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(22, tmpRaw);
} else {
ttlAction_ = tmpRaw;
bitField0_ |= 0x00200000;
}
break;
} // case 176
case 184: {
mountId_ = input.readInt64();
bitField0_ |= 0x00400000;
break;
} // case 184
case 192: {
inAlluxioPercentage_ = input.readInt32();
bitField0_ |= 0x00800000;
break;
} // case 192
case 200: {
inMemoryPercentage_ = input.readInt32();
bitField0_ |= 0x01000000;
break;
} // case 200
case 210: {
ufsFingerprint_ = input.readBytes();
bitField0_ |= 0x02000000;
break;
} // case 210
case 218: {
input.readMessage(
getAclFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x04000000;
break;
} // case 218
case 226: {
input.readMessage(
getDefaultAclFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x08000000;
break;
} // case 226
case 232: {
replicationMax_ = input.readInt32();
bitField0_ |= 0x10000000;
break;
} // case 232
case 240: {
replicationMin_ = input.readInt32();
bitField0_ |= 0x20000000;
break;
} // case 240
case 248: {
lastAccessTimeMs_ = input.readInt64();
bitField0_ |= 0x40000000;
break;
} // case 248
case 258: {
alluxio.shaded.client.com.google.protobuf.MapEntry
xattr__ = input.readMessage(
XattrDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableXattr().getMutableMap().put(
xattr__.getKey(), xattr__.getValue());
break;
} // case 258
case 266: {
alluxio.shaded.client.com.google.protobuf.ByteString bs = input.readBytes();
ensureMediumTypeIsMutable();
mediumType_.add(bs);
break;
} // case 266
case 274: {
contentHash_ = input.readBytes();
bitField1_ |= 0x00000002;
break;
} // case 274
case 282: {
ufsType_ = input.readBytes();
bitField1_ |= 0x00000004;
break;
} // case 282
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 bitField1_;
private long fileId_ ;
/**
* optional int64 fileId = 1;
* @return Whether the fileId field is set.
*/
@java.lang.Override
public boolean hasFileId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 fileId = 1;
* @return The fileId.
*/
@java.lang.Override
public long getFileId() {
return fileId_;
}
/**
* optional int64 fileId = 1;
* @param value The fileId to set.
* @return This builder for chaining.
*/
public Builder setFileId(long value) {
bitField0_ |= 0x00000001;
fileId_ = value;
onChanged();
return this;
}
/**
* optional int64 fileId = 1;
* @return This builder for chaining.
*/
public Builder clearFileId() {
bitField0_ = (bitField0_ & ~0x00000001);
fileId_ = 0L;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* optional string name = 2;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string name = 2;
* @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 = 2;
* @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 = 2;
* @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_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 2;
* @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_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
* optional string path = 3;
* @return Whether the path field is set.
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string path = 3;
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
alluxio.shaded.client.com.google.protobuf.ByteString bs =
(alluxio.shaded.client.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
path_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string path = 3;
* @return The bytes for path.
*/
public alluxio.shaded.client.com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
alluxio.shaded.client.com.google.protobuf.ByteString b =
alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
/**
* optional string path = 3;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
path_ = value;
onChanged();
return this;
}
/**
* optional string path = 3;
* @return This builder for chaining.
*/
public Builder clearPath() {
bitField0_ = (bitField0_ & ~0x00000004);
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
* optional string path = 3;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
path_ = value;
onChanged();
return this;
}
private java.lang.Object ufsPath_ = "";
/**
* optional string ufsPath = 4;
* @return Whether the ufsPath field is set.
*/
public boolean hasUfsPath() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string ufsPath = 4;
* @return The ufsPath.
*/
public java.lang.String getUfsPath() {
java.lang.Object ref = ufsPath_;
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()) {
ufsPath_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string ufsPath = 4;
* @return The bytes for ufsPath.
*/
public alluxio.shaded.client.com.google.protobuf.ByteString
getUfsPathBytes() {
java.lang.Object ref = ufsPath_;
if (ref instanceof String) {
alluxio.shaded.client.com.google.protobuf.ByteString b =
alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ufsPath_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
/**
* optional string ufsPath = 4;
* @param value The ufsPath to set.
* @return This builder for chaining.
*/
public Builder setUfsPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
ufsPath_ = value;
onChanged();
return this;
}
/**
* optional string ufsPath = 4;
* @return This builder for chaining.
*/
public Builder clearUfsPath() {
bitField0_ = (bitField0_ & ~0x00000008);
ufsPath_ = getDefaultInstance().getUfsPath();
onChanged();
return this;
}
/**
* optional string ufsPath = 4;
* @param value The bytes for ufsPath to set.
* @return This builder for chaining.
*/
public Builder setUfsPathBytes(
alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
ufsPath_ = value;
onChanged();
return this;
}
private long length_ ;
/**
* optional int64 length = 5;
* @return Whether the length field is set.
*/
@java.lang.Override
public boolean hasLength() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int64 length = 5;
* @return The length.
*/
@java.lang.Override
public long getLength() {
return length_;
}
/**
* optional int64 length = 5;
* @param value The length to set.
* @return This builder for chaining.
*/
public Builder setLength(long value) {
bitField0_ |= 0x00000010;
length_ = value;
onChanged();
return this;
}
/**
* optional int64 length = 5;
* @return This builder for chaining.
*/
public Builder clearLength() {
bitField0_ = (bitField0_ & ~0x00000010);
length_ = 0L;
onChanged();
return this;
}
private long blockSizeBytes_ ;
/**
* optional int64 blockSizeBytes = 6;
* @return Whether the blockSizeBytes field is set.
*/
@java.lang.Override
public boolean hasBlockSizeBytes() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int64 blockSizeBytes = 6;
* @return The blockSizeBytes.
*/
@java.lang.Override
public long getBlockSizeBytes() {
return blockSizeBytes_;
}
/**
* optional int64 blockSizeBytes = 6;
* @param value The blockSizeBytes to set.
* @return This builder for chaining.
*/
public Builder setBlockSizeBytes(long value) {
bitField0_ |= 0x00000020;
blockSizeBytes_ = value;
onChanged();
return this;
}
/**
* optional int64 blockSizeBytes = 6;
* @return This builder for chaining.
*/
public Builder clearBlockSizeBytes() {
bitField0_ = (bitField0_ & ~0x00000020);
blockSizeBytes_ = 0L;
onChanged();
return this;
}
private long creationTimeMs_ ;
/**
* optional int64 creationTimeMs = 7;
* @return Whether the creationTimeMs field is set.
*/
@java.lang.Override
public boolean hasCreationTimeMs() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int64 creationTimeMs = 7;
* @return The creationTimeMs.
*/
@java.lang.Override
public long getCreationTimeMs() {
return creationTimeMs_;
}
/**
* optional int64 creationTimeMs = 7;
* @param value The creationTimeMs to set.
* @return This builder for chaining.
*/
public Builder setCreationTimeMs(long value) {
bitField0_ |= 0x00000040;
creationTimeMs_ = value;
onChanged();
return this;
}
/**
* optional int64 creationTimeMs = 7;
* @return This builder for chaining.
*/
public Builder clearCreationTimeMs() {
bitField0_ = (bitField0_ & ~0x00000040);
creationTimeMs_ = 0L;
onChanged();
return this;
}
private boolean alluxio.shaded.client.com.leted_ ;
/**
* optional bool alluxio.shaded.client.com.leted = 8;
* @return Whether the alluxio.shaded.client.com.leted field is set.
*/
@java.lang.Override
public boolean hasCompleted() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional bool alluxio.shaded.client.com.leted = 8;
* @return The alluxio.shaded.client.com.leted.
*/
@java.lang.Override
public boolean getCompleted() {
return alluxio.shaded.client.com.leted_;
}
/**
* optional bool alluxio.shaded.client.com.leted = 8;
* @param value The alluxio.shaded.client.com.leted to set.
* @return This builder for chaining.
*/
public Builder setCompleted(boolean value) {
bitField0_ |= 0x00000080;
alluxio.shaded.client.com.leted_ = value;
onChanged();
return this;
}
/**
* optional bool alluxio.shaded.client.com.leted = 8;
* @return This builder for chaining.
*/
public Builder clearCompleted() {
bitField0_ = (bitField0_ & ~0x00000080);
alluxio.shaded.client.com.leted_ = false;
onChanged();
return this;
}
private boolean folder_ ;
/**
* optional bool folder = 9;
* @return Whether the folder field is set.
*/
@java.lang.Override
public boolean hasFolder() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional bool folder = 9;
* @return The folder.
*/
@java.lang.Override
public boolean getFolder() {
return folder_;
}
/**
* optional bool folder = 9;
* @param value The folder to set.
* @return This builder for chaining.
*/
public Builder setFolder(boolean value) {
bitField0_ |= 0x00000100;
folder_ = value;
onChanged();
return this;
}
/**
* optional bool folder = 9;
* @return This builder for chaining.
*/
public Builder clearFolder() {
bitField0_ = (bitField0_ & ~0x00000100);
folder_ = false;
onChanged();
return this;
}
private boolean pinned_ ;
/**
* optional bool pinned = 10;
* @return Whether the pinned field is set.
*/
@java.lang.Override
public boolean hasPinned() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional bool pinned = 10;
* @return The pinned.
*/
@java.lang.Override
public boolean getPinned() {
return pinned_;
}
/**
* optional bool pinned = 10;
* @param value The pinned to set.
* @return This builder for chaining.
*/
public Builder setPinned(boolean value) {
bitField0_ |= 0x00000200;
pinned_ = value;
onChanged();
return this;
}
/**
* optional bool pinned = 10;
* @return This builder for chaining.
*/
public Builder clearPinned() {
bitField0_ = (bitField0_ & ~0x00000200);
pinned_ = false;
onChanged();
return this;
}
private boolean cacheable_ ;
/**
* optional bool cacheable = 11;
* @return Whether the cacheable field is set.
*/
@java.lang.Override
public boolean hasCacheable() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional bool cacheable = 11;
* @return The cacheable.
*/
@java.lang.Override
public boolean getCacheable() {
return cacheable_;
}
/**
* optional bool cacheable = 11;
* @param value The cacheable to set.
* @return This builder for chaining.
*/
public Builder setCacheable(boolean value) {
bitField0_ |= 0x00000400;
cacheable_ = value;
onChanged();
return this;
}
/**
* optional bool cacheable = 11;
* @return This builder for chaining.
*/
public Builder clearCacheable() {
bitField0_ = (bitField0_ & ~0x00000400);
cacheable_ = false;
onChanged();
return this;
}
private boolean persisted_ ;
/**
* optional bool persisted = 12;
* @return Whether the persisted field is set.
*/
@java.lang.Override
public boolean hasPersisted() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional bool persisted = 12;
* @return The persisted.
*/
@java.lang.Override
public boolean getPersisted() {
return persisted_;
}
/**
* optional bool persisted = 12;
* @param value The persisted to set.
* @return This builder for chaining.
*/
public Builder setPersisted(boolean value) {
bitField0_ |= 0x00000800;
persisted_ = value;
onChanged();
return this;
}
/**
* optional bool persisted = 12;
* @return This builder for chaining.
*/
public Builder clearPersisted() {
bitField0_ = (bitField0_ & ~0x00000800);
persisted_ = false;
onChanged();
return this;
}
private alluxio.shaded.client.com.google.protobuf.Internal.LongList blockIds_ = emptyLongList();
private void ensureBlockIdsIsMutable() {
if (!((bitField0_ & 0x00001000) != 0)) {
blockIds_ = mutableCopy(blockIds_);
bitField0_ |= 0x00001000;
}
}
/**
* repeated int64 blockIds = 13;
* @return A list containing the blockIds.
*/
public java.util.List
getBlockIdsList() {
return ((bitField0_ & 0x00001000) != 0) ?
java.util.Collections.unmodifiableList(blockIds_) : blockIds_;
}
/**
* repeated int64 blockIds = 13;
* @return The count of blockIds.
*/
public int getBlockIdsCount() {
return blockIds_.size();
}
/**
* repeated int64 blockIds = 13;
* @param index The index of the element to return.
* @return The blockIds at the given index.
*/
public long getBlockIds(int index) {
return blockIds_.getLong(index);
}
/**
* repeated int64 blockIds = 13;
* @param index The index to set the value at.
* @param value The blockIds to set.
* @return This builder for chaining.
*/
public Builder setBlockIds(
int index, long value) {
ensureBlockIdsIsMutable();
blockIds_.setLong(index, value);
onChanged();
return this;
}
/**
* repeated int64 blockIds = 13;
* @param value The blockIds to add.
* @return This builder for chaining.
*/
public Builder addBlockIds(long value) {
ensureBlockIdsIsMutable();
blockIds_.addLong(value);
onChanged();
return this;
}
/**
* repeated int64 blockIds = 13;
* @param values The blockIds to add.
* @return This builder for chaining.
*/
public Builder addAllBlockIds(
java.lang.Iterable values) {
ensureBlockIdsIsMutable();
alluxio.shaded.client.com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, blockIds_);
onChanged();
return this;
}
/**
* repeated int64 blockIds = 13;
* @return This builder for chaining.
*/
public Builder clearBlockIds() {
blockIds_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
private long lastModificationTimeMs_ ;
/**
* optional int64 lastModificationTimeMs = 14;
* @return Whether the lastModificationTimeMs field is set.
*/
@java.lang.Override
public boolean hasLastModificationTimeMs() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional int64 lastModificationTimeMs = 14;
* @return The lastModificationTimeMs.
*/
@java.lang.Override
public long getLastModificationTimeMs() {
return lastModificationTimeMs_;
}
/**
* optional int64 lastModificationTimeMs = 14;
* @param value The lastModificationTimeMs to set.
* @return This builder for chaining.
*/
public Builder setLastModificationTimeMs(long value) {
bitField0_ |= 0x00002000;
lastModificationTimeMs_ = value;
onChanged();
return this;
}
/**
* optional int64 lastModificationTimeMs = 14;
* @return This builder for chaining.
*/
public Builder clearLastModificationTimeMs() {
bitField0_ = (bitField0_ & ~0x00002000);
lastModificationTimeMs_ = 0L;
onChanged();
return this;
}
private long ttl_ ;
/**
* optional int64 ttl = 15;
* @return Whether the ttl field is set.
*/
@java.lang.Override
public boolean hasTtl() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional int64 ttl = 15;
* @return The ttl.
*/
@java.lang.Override
public long getTtl() {
return ttl_;
}
/**
* optional int64 ttl = 15;
* @param value The ttl to set.
* @return This builder for chaining.
*/
public Builder setTtl(long value) {
bitField0_ |= 0x00004000;
ttl_ = value;
onChanged();
return this;
}
/**
* optional int64 ttl = 15;
* @return This builder for chaining.
*/
public Builder clearTtl() {
bitField0_ = (bitField0_ & ~0x00004000);
ttl_ = 0L;
onChanged();
return this;
}
private java.lang.Object owner_ = "";
/**
* optional string owner = 16;
* @return Whether the owner field is set.
*/
public boolean hasOwner() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional string owner = 16;
* @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 = 16;
* @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 = 16;
* @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_ |= 0x00008000;
owner_ = value;
onChanged();
return this;
}
/**
* optional string owner = 16;
* @return This builder for chaining.
*/
public Builder clearOwner() {
bitField0_ = (bitField0_ & ~0x00008000);
owner_ = getDefaultInstance().getOwner();
onChanged();
return this;
}
/**
* optional string owner = 16;
* @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_ |= 0x00008000;
owner_ = value;
onChanged();
return this;
}
private java.lang.Object group_ = "";
/**
* optional string group = 17;
* @return Whether the group field is set.
*/
public boolean hasGroup() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
* optional string group = 17;
* @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 = 17;
* @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 = 17;
* @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_ |= 0x00010000;
group_ = value;
onChanged();
return this;
}
/**
* optional string group = 17;
* @return This builder for chaining.
*/
public Builder clearGroup() {
bitField0_ = (bitField0_ & ~0x00010000);
group_ = getDefaultInstance().getGroup();
onChanged();
return this;
}
/**
* optional string group = 17;
* @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_ |= 0x00010000;
group_ = value;
onChanged();
return this;
}
private int mode_ ;
/**
* optional int32 mode = 18;
* @return Whether the mode field is set.
*/
@java.lang.Override
public boolean hasMode() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
* optional int32 mode = 18;
* @return The mode.
*/
@java.lang.Override
public int getMode() {
return mode_;
}
/**
* optional int32 mode = 18;
* @param value The mode to set.
* @return This builder for chaining.
*/
public Builder setMode(int value) {
bitField0_ |= 0x00020000;
mode_ = value;
onChanged();
return this;
}
/**
* optional int32 mode = 18;
* @return This builder for chaining.
*/
public Builder clearMode() {
bitField0_ = (bitField0_ & ~0x00020000);
mode_ = 0;
onChanged();
return this;
}
private java.lang.Object persistenceState_ = "";
/**
* optional string persistenceState = 19;
* @return Whether the persistenceState field is set.
*/
public boolean hasPersistenceState() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
* optional string persistenceState = 19;
* @return The persistenceState.
*/
public java.lang.String getPersistenceState() {
java.lang.Object ref = persistenceState_;
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()) {
persistenceState_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string persistenceState = 19;
* @return The bytes for persistenceState.
*/
public alluxio.shaded.client.com.google.protobuf.ByteString
getPersistenceStateBytes() {
java.lang.Object ref = persistenceState_;
if (ref instanceof String) {
alluxio.shaded.client.com.google.protobuf.ByteString b =
alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
persistenceState_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
/**
* optional string persistenceState = 19;
* @param value The persistenceState to set.
* @return This builder for chaining.
*/
public Builder setPersistenceState(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00040000;
persistenceState_ = value;
onChanged();
return this;
}
/**
* optional string persistenceState = 19;
* @return This builder for chaining.
*/
public Builder clearPersistenceState() {
bitField0_ = (bitField0_ & ~0x00040000);
persistenceState_ = getDefaultInstance().getPersistenceState();
onChanged();
return this;
}
/**
* optional string persistenceState = 19;
* @param value The bytes for persistenceState to set.
* @return This builder for chaining.
*/
public Builder setPersistenceStateBytes(
alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00040000;
persistenceState_ = value;
onChanged();
return this;
}
private boolean mountPoint_ ;
/**
* optional bool mountPoint = 20;
* @return Whether the mountPoint field is set.
*/
@java.lang.Override
public boolean hasMountPoint() {
return ((bitField0_ & 0x00080000) != 0);
}
/**
* optional bool mountPoint = 20;
* @return The mountPoint.
*/
@java.lang.Override
public boolean getMountPoint() {
return mountPoint_;
}
/**
* optional bool mountPoint = 20;
* @param value The mountPoint to set.
* @return This builder for chaining.
*/
public Builder setMountPoint(boolean value) {
bitField0_ |= 0x00080000;
mountPoint_ = value;
onChanged();
return this;
}
/**
* optional bool mountPoint = 20;
* @return This builder for chaining.
*/
public Builder clearMountPoint() {
bitField0_ = (bitField0_ & ~0x00080000);
mountPoint_ = false;
onChanged();
return this;
}
private java.util.List fileBlockInfos_ =
java.util.Collections.emptyList();
private void ensureFileBlockInfosIsMutable() {
if (!((bitField0_ & 0x00100000) != 0)) {
fileBlockInfos_ = new java.util.ArrayList(fileBlockInfos_);
bitField0_ |= 0x00100000;
}
}
private alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3<
alluxio.grpc.FileBlockInfo, alluxio.grpc.FileBlockInfo.Builder, alluxio.grpc.FileBlockInfoOrBuilder> fileBlockInfosBuilder_;
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public java.util.List getFileBlockInfosList() {
if (fileBlockInfosBuilder_ == null) {
return java.util.Collections.unmodifiableList(fileBlockInfos_);
} else {
return fileBlockInfosBuilder_.getMessageList();
}
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public int getFileBlockInfosCount() {
if (fileBlockInfosBuilder_ == null) {
return fileBlockInfos_.size();
} else {
return fileBlockInfosBuilder_.getCount();
}
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public alluxio.grpc.FileBlockInfo getFileBlockInfos(int index) {
if (fileBlockInfosBuilder_ == null) {
return fileBlockInfos_.get(index);
} else {
return fileBlockInfosBuilder_.getMessage(index);
}
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public Builder setFileBlockInfos(
int index, alluxio.grpc.FileBlockInfo value) {
if (fileBlockInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFileBlockInfosIsMutable();
fileBlockInfos_.set(index, value);
onChanged();
} else {
fileBlockInfosBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public Builder setFileBlockInfos(
int index, alluxio.grpc.FileBlockInfo.Builder builderForValue) {
if (fileBlockInfosBuilder_ == null) {
ensureFileBlockInfosIsMutable();
fileBlockInfos_.set(index, builderForValue.build());
onChanged();
} else {
fileBlockInfosBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public Builder addFileBlockInfos(alluxio.grpc.FileBlockInfo value) {
if (fileBlockInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFileBlockInfosIsMutable();
fileBlockInfos_.add(value);
onChanged();
} else {
fileBlockInfosBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public Builder addFileBlockInfos(
int index, alluxio.grpc.FileBlockInfo value) {
if (fileBlockInfosBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFileBlockInfosIsMutable();
fileBlockInfos_.add(index, value);
onChanged();
} else {
fileBlockInfosBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public Builder addFileBlockInfos(
alluxio.grpc.FileBlockInfo.Builder builderForValue) {
if (fileBlockInfosBuilder_ == null) {
ensureFileBlockInfosIsMutable();
fileBlockInfos_.add(builderForValue.build());
onChanged();
} else {
fileBlockInfosBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public Builder addFileBlockInfos(
int index, alluxio.grpc.FileBlockInfo.Builder builderForValue) {
if (fileBlockInfosBuilder_ == null) {
ensureFileBlockInfosIsMutable();
fileBlockInfos_.add(index, builderForValue.build());
onChanged();
} else {
fileBlockInfosBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public Builder addAllFileBlockInfos(
java.lang.Iterable values) {
if (fileBlockInfosBuilder_ == null) {
ensureFileBlockInfosIsMutable();
alluxio.shaded.client.com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fileBlockInfos_);
onChanged();
} else {
fileBlockInfosBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public Builder clearFileBlockInfos() {
if (fileBlockInfosBuilder_ == null) {
fileBlockInfos_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
} else {
fileBlockInfosBuilder_.clear();
}
return this;
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public Builder removeFileBlockInfos(int index) {
if (fileBlockInfosBuilder_ == null) {
ensureFileBlockInfosIsMutable();
fileBlockInfos_.remove(index);
onChanged();
} else {
fileBlockInfosBuilder_.remove(index);
}
return this;
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public alluxio.grpc.FileBlockInfo.Builder getFileBlockInfosBuilder(
int index) {
return getFileBlockInfosFieldBuilder().getBuilder(index);
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public alluxio.grpc.FileBlockInfoOrBuilder getFileBlockInfosOrBuilder(
int index) {
if (fileBlockInfosBuilder_ == null) {
return fileBlockInfos_.get(index); } else {
return fileBlockInfosBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public java.util.List
getFileBlockInfosOrBuilderList() {
if (fileBlockInfosBuilder_ != null) {
return fileBlockInfosBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fileBlockInfos_);
}
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public alluxio.grpc.FileBlockInfo.Builder addFileBlockInfosBuilder() {
return getFileBlockInfosFieldBuilder().addBuilder(
alluxio.grpc.FileBlockInfo.getDefaultInstance());
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public alluxio.grpc.FileBlockInfo.Builder addFileBlockInfosBuilder(
int index) {
return getFileBlockInfosFieldBuilder().addBuilder(
index, alluxio.grpc.FileBlockInfo.getDefaultInstance());
}
/**
* repeated .alluxio.grpc.file.FileBlockInfo fileBlockInfos = 21;
*/
public java.util.List
getFileBlockInfosBuilderList() {
return getFileBlockInfosFieldBuilder().getBuilderList();
}
private alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3<
alluxio.grpc.FileBlockInfo, alluxio.grpc.FileBlockInfo.Builder, alluxio.grpc.FileBlockInfoOrBuilder>
getFileBlockInfosFieldBuilder() {
if (fileBlockInfosBuilder_ == null) {
fileBlockInfosBuilder_ = new alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3<
alluxio.grpc.FileBlockInfo, alluxio.grpc.FileBlockInfo.Builder, alluxio.grpc.FileBlockInfoOrBuilder>(
fileBlockInfos_,
((bitField0_ & 0x00100000) != 0),
getParentForChildren(),
isClean());
fileBlockInfos_ = null;
}
return fileBlockInfosBuilder_;
}
private int ttlAction_ = 0;
/**
* optional .alluxio.grpc.TtlAction ttlAction = 22;
* @return Whether the ttlAction field is set.
*/
@java.lang.Override public boolean hasTtlAction() {
return ((bitField0_ & 0x00200000) != 0);
}
/**
* optional .alluxio.grpc.TtlAction ttlAction = 22;
* @return The ttlAction.
*/
@java.lang.Override
public alluxio.grpc.TtlAction getTtlAction() {
@SuppressWarnings("deprecation")
alluxio.grpc.TtlAction result = alluxio.grpc.TtlAction.valueOf(ttlAction_);
return result == null ? alluxio.grpc.TtlAction.DELETE : result;
}
/**
* optional .alluxio.grpc.TtlAction ttlAction = 22;
* @param value The ttlAction to set.
* @return This builder for chaining.
*/
public Builder setTtlAction(alluxio.grpc.TtlAction value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00200000;
ttlAction_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .alluxio.grpc.TtlAction ttlAction = 22;
* @return This builder for chaining.
*/
public Builder clearTtlAction() {
bitField0_ = (bitField0_ & ~0x00200000);
ttlAction_ = 0;
onChanged();
return this;
}
private long mountId_ ;
/**
* optional int64 mountId = 23;
* @return Whether the mountId field is set.
*/
@java.lang.Override
public boolean hasMountId() {
return ((bitField0_ & 0x00400000) != 0);
}
/**
* optional int64 mountId = 23;
* @return The mountId.
*/
@java.lang.Override
public long getMountId() {
return mountId_;
}
/**
* optional int64 mountId = 23;
* @param value The mountId to set.
* @return This builder for chaining.
*/
public Builder setMountId(long value) {
bitField0_ |= 0x00400000;
mountId_ = value;
onChanged();
return this;
}
/**
* optional int64 mountId = 23;
* @return This builder for chaining.
*/
public Builder clearMountId() {
bitField0_ = (bitField0_ & ~0x00400000);
mountId_ = 0L;
onChanged();
return this;
}
private int inAlluxioPercentage_ ;
/**
* optional int32 inAlluxioPercentage = 24;
* @return Whether the inAlluxioPercentage field is set.
*/
@java.lang.Override
public boolean hasInAlluxioPercentage() {
return ((bitField0_ & 0x00800000) != 0);
}
/**
* optional int32 inAlluxioPercentage = 24;
* @return The inAlluxioPercentage.
*/
@java.lang.Override
public int getInAlluxioPercentage() {
return inAlluxioPercentage_;
}
/**
* optional int32 inAlluxioPercentage = 24;
* @param value The inAlluxioPercentage to set.
* @return This builder for chaining.
*/
public Builder setInAlluxioPercentage(int value) {
bitField0_ |= 0x00800000;
inAlluxioPercentage_ = value;
onChanged();
return this;
}
/**
* optional int32 inAlluxioPercentage = 24;
* @return This builder for chaining.
*/
public Builder clearInAlluxioPercentage() {
bitField0_ = (bitField0_ & ~0x00800000);
inAlluxioPercentage_ = 0;
onChanged();
return this;
}
private int inMemoryPercentage_ ;
/**
* optional int32 inMemoryPercentage = 25;
* @return Whether the inMemoryPercentage field is set.
*/
@java.lang.Override
public boolean hasInMemoryPercentage() {
return ((bitField0_ & 0x01000000) != 0);
}
/**
* optional int32 inMemoryPercentage = 25;
* @return The inMemoryPercentage.
*/
@java.lang.Override
public int getInMemoryPercentage() {
return inMemoryPercentage_;
}
/**
* optional int32 inMemoryPercentage = 25;
* @param value The inMemoryPercentage to set.
* @return This builder for chaining.
*/
public Builder setInMemoryPercentage(int value) {
bitField0_ |= 0x01000000;
inMemoryPercentage_ = value;
onChanged();
return this;
}
/**
* optional int32 inMemoryPercentage = 25;
* @return This builder for chaining.
*/
public Builder clearInMemoryPercentage() {
bitField0_ = (bitField0_ & ~0x01000000);
inMemoryPercentage_ = 0;
onChanged();
return this;
}
private java.lang.Object ufsFingerprint_ = "";
/**
* optional string ufsFingerprint = 26;
* @return Whether the ufsFingerprint field is set.
*/
public boolean hasUfsFingerprint() {
return ((bitField0_ & 0x02000000) != 0);
}
/**
* optional string ufsFingerprint = 26;
* @return The ufsFingerprint.
*/
public java.lang.String getUfsFingerprint() {
java.lang.Object ref = ufsFingerprint_;
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()) {
ufsFingerprint_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string ufsFingerprint = 26;
* @return The bytes for ufsFingerprint.
*/
public alluxio.shaded.client.com.google.protobuf.ByteString
getUfsFingerprintBytes() {
java.lang.Object ref = ufsFingerprint_;
if (ref instanceof String) {
alluxio.shaded.client.com.google.protobuf.ByteString b =
alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ufsFingerprint_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
/**
* optional string ufsFingerprint = 26;
* @param value The ufsFingerprint to set.
* @return This builder for chaining.
*/
public Builder setUfsFingerprint(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x02000000;
ufsFingerprint_ = value;
onChanged();
return this;
}
/**
* optional string ufsFingerprint = 26;
* @return This builder for chaining.
*/
public Builder clearUfsFingerprint() {
bitField0_ = (bitField0_ & ~0x02000000);
ufsFingerprint_ = getDefaultInstance().getUfsFingerprint();
onChanged();
return this;
}
/**
* optional string ufsFingerprint = 26;
* @param value The bytes for ufsFingerprint to set.
* @return This builder for chaining.
*/
public Builder setUfsFingerprintBytes(
alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x02000000;
ufsFingerprint_ = value;
onChanged();
return this;
}
private alluxio.grpc.PAcl acl_;
private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.grpc.PAcl, alluxio.grpc.PAcl.Builder, alluxio.grpc.PAclOrBuilder> aclBuilder_;
/**
* optional .alluxio.grpc.file.PAcl acl = 27;
* @return Whether the acl field is set.
*/
public boolean hasAcl() {
return ((bitField0_ & 0x04000000) != 0);
}
/**
* optional .alluxio.grpc.file.PAcl acl = 27;
* @return The acl.
*/
public alluxio.grpc.PAcl getAcl() {
if (aclBuilder_ == null) {
return acl_ == null ? alluxio.grpc.PAcl.getDefaultInstance() : acl_;
} else {
return aclBuilder_.getMessage();
}
}
/**
* optional .alluxio.grpc.file.PAcl acl = 27;
*/
public Builder setAcl(alluxio.grpc.PAcl value) {
if (aclBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
acl_ = value;
onChanged();
} else {
aclBuilder_.setMessage(value);
}
bitField0_ |= 0x04000000;
return this;
}
/**
* optional .alluxio.grpc.file.PAcl acl = 27;
*/
public Builder setAcl(
alluxio.grpc.PAcl.Builder builderForValue) {
if (aclBuilder_ == null) {
acl_ = builderForValue.build();
onChanged();
} else {
aclBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x04000000;
return this;
}
/**
* optional .alluxio.grpc.file.PAcl acl = 27;
*/
public Builder mergeAcl(alluxio.grpc.PAcl value) {
if (aclBuilder_ == null) {
if (((bitField0_ & 0x04000000) != 0) &&
acl_ != null &&
acl_ != alluxio.grpc.PAcl.getDefaultInstance()) {
acl_ =
alluxio.grpc.PAcl.newBuilder(acl_).mergeFrom(value).buildPartial();
} else {
acl_ = value;
}
onChanged();
} else {
aclBuilder_.mergeFrom(value);
}
bitField0_ |= 0x04000000;
return this;
}
/**
* optional .alluxio.grpc.file.PAcl acl = 27;
*/
public Builder clearAcl() {
if (aclBuilder_ == null) {
acl_ = null;
onChanged();
} else {
aclBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x04000000);
return this;
}
/**
* optional .alluxio.grpc.file.PAcl acl = 27;
*/
public alluxio.grpc.PAcl.Builder getAclBuilder() {
bitField0_ |= 0x04000000;
onChanged();
return getAclFieldBuilder().getBuilder();
}
/**
* optional .alluxio.grpc.file.PAcl acl = 27;
*/
public alluxio.grpc.PAclOrBuilder getAclOrBuilder() {
if (aclBuilder_ != null) {
return aclBuilder_.getMessageOrBuilder();
} else {
return acl_ == null ?
alluxio.grpc.PAcl.getDefaultInstance() : acl_;
}
}
/**
* optional .alluxio.grpc.file.PAcl acl = 27;
*/
private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.grpc.PAcl, alluxio.grpc.PAcl.Builder, alluxio.grpc.PAclOrBuilder>
getAclFieldBuilder() {
if (aclBuilder_ == null) {
aclBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.grpc.PAcl, alluxio.grpc.PAcl.Builder, alluxio.grpc.PAclOrBuilder>(
getAcl(),
getParentForChildren(),
isClean());
acl_ = null;
}
return aclBuilder_;
}
private alluxio.grpc.PAcl defaultAcl_;
private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.grpc.PAcl, alluxio.grpc.PAcl.Builder, alluxio.grpc.PAclOrBuilder> defaultAclBuilder_;
/**
* optional .alluxio.grpc.file.PAcl defaultAcl = 28;
* @return Whether the defaultAcl field is set.
*/
public boolean hasDefaultAcl() {
return ((bitField0_ & 0x08000000) != 0);
}
/**
* optional .alluxio.grpc.file.PAcl defaultAcl = 28;
* @return The defaultAcl.
*/
public alluxio.grpc.PAcl getDefaultAcl() {
if (defaultAclBuilder_ == null) {
return defaultAcl_ == null ? alluxio.grpc.PAcl.getDefaultInstance() : defaultAcl_;
} else {
return defaultAclBuilder_.getMessage();
}
}
/**
* optional .alluxio.grpc.file.PAcl defaultAcl = 28;
*/
public Builder setDefaultAcl(alluxio.grpc.PAcl value) {
if (defaultAclBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultAcl_ = value;
onChanged();
} else {
defaultAclBuilder_.setMessage(value);
}
bitField0_ |= 0x08000000;
return this;
}
/**
* optional .alluxio.grpc.file.PAcl defaultAcl = 28;
*/
public Builder setDefaultAcl(
alluxio.grpc.PAcl.Builder builderForValue) {
if (defaultAclBuilder_ == null) {
defaultAcl_ = builderForValue.build();
onChanged();
} else {
defaultAclBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x08000000;
return this;
}
/**
* optional .alluxio.grpc.file.PAcl defaultAcl = 28;
*/
public Builder mergeDefaultAcl(alluxio.grpc.PAcl value) {
if (defaultAclBuilder_ == null) {
if (((bitField0_ & 0x08000000) != 0) &&
defaultAcl_ != null &&
defaultAcl_ != alluxio.grpc.PAcl.getDefaultInstance()) {
defaultAcl_ =
alluxio.grpc.PAcl.newBuilder(defaultAcl_).mergeFrom(value).buildPartial();
} else {
defaultAcl_ = value;
}
onChanged();
} else {
defaultAclBuilder_.mergeFrom(value);
}
bitField0_ |= 0x08000000;
return this;
}
/**
* optional .alluxio.grpc.file.PAcl defaultAcl = 28;
*/
public Builder clearDefaultAcl() {
if (defaultAclBuilder_ == null) {
defaultAcl_ = null;
onChanged();
} else {
defaultAclBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x08000000);
return this;
}
/**
* optional .alluxio.grpc.file.PAcl defaultAcl = 28;
*/
public alluxio.grpc.PAcl.Builder getDefaultAclBuilder() {
bitField0_ |= 0x08000000;
onChanged();
return getDefaultAclFieldBuilder().getBuilder();
}
/**
* optional .alluxio.grpc.file.PAcl defaultAcl = 28;
*/
public alluxio.grpc.PAclOrBuilder getDefaultAclOrBuilder() {
if (defaultAclBuilder_ != null) {
return defaultAclBuilder_.getMessageOrBuilder();
} else {
return defaultAcl_ == null ?
alluxio.grpc.PAcl.getDefaultInstance() : defaultAcl_;
}
}
/**
* optional .alluxio.grpc.file.PAcl defaultAcl = 28;
*/
private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.grpc.PAcl, alluxio.grpc.PAcl.Builder, alluxio.grpc.PAclOrBuilder>
getDefaultAclFieldBuilder() {
if (defaultAclBuilder_ == null) {
defaultAclBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
alluxio.grpc.PAcl, alluxio.grpc.PAcl.Builder, alluxio.grpc.PAclOrBuilder>(
getDefaultAcl(),
getParentForChildren(),
isClean());
defaultAcl_ = null;
}
return defaultAclBuilder_;
}
private int replicationMax_ ;
/**
* optional int32 replicationMax = 29;
* @return Whether the replicationMax field is set.
*/
@java.lang.Override
public boolean hasReplicationMax() {
return ((bitField0_ & 0x10000000) != 0);
}
/**
* optional int32 replicationMax = 29;
* @return The replicationMax.
*/
@java.lang.Override
public int getReplicationMax() {
return replicationMax_;
}
/**
* optional int32 replicationMax = 29;
* @param value The replicationMax to set.
* @return This builder for chaining.
*/
public Builder setReplicationMax(int value) {
bitField0_ |= 0x10000000;
replicationMax_ = value;
onChanged();
return this;
}
/**
* optional int32 replicationMax = 29;
* @return This builder for chaining.
*/
public Builder clearReplicationMax() {
bitField0_ = (bitField0_ & ~0x10000000);
replicationMax_ = 0;
onChanged();
return this;
}
private int replicationMin_ ;
/**
* optional int32 replicationMin = 30;
* @return Whether the replicationMin field is set.
*/
@java.lang.Override
public boolean hasReplicationMin() {
return ((bitField0_ & 0x20000000) != 0);
}
/**
* optional int32 replicationMin = 30;
* @return The replicationMin.
*/
@java.lang.Override
public int getReplicationMin() {
return replicationMin_;
}
/**
* optional int32 replicationMin = 30;
* @param value The replicationMin to set.
* @return This builder for chaining.
*/
public Builder setReplicationMin(int value) {
bitField0_ |= 0x20000000;
replicationMin_ = value;
onChanged();
return this;
}
/**
* optional int32 replicationMin = 30;
* @return This builder for chaining.
*/
public Builder clearReplicationMin() {
bitField0_ = (bitField0_ & ~0x20000000);
replicationMin_ = 0;
onChanged();
return this;
}
private long lastAccessTimeMs_ ;
/**
* optional int64 lastAccessTimeMs = 31;
* @return Whether the lastAccessTimeMs field is set.
*/
@java.lang.Override
public boolean hasLastAccessTimeMs() {
return ((bitField0_ & 0x40000000) != 0);
}
/**
* optional int64 lastAccessTimeMs = 31;
* @return The lastAccessTimeMs.
*/
@java.lang.Override
public long getLastAccessTimeMs() {
return lastAccessTimeMs_;
}
/**
* optional int64 lastAccessTimeMs = 31;
* @param value The lastAccessTimeMs to set.
* @return This builder for chaining.
*/
public Builder setLastAccessTimeMs(long value) {
bitField0_ |= 0x40000000;
lastAccessTimeMs_ = value;
onChanged();
return this;
}
/**
* optional int64 lastAccessTimeMs = 31;
* @return This builder for chaining.
*/
public Builder clearLastAccessTimeMs() {
bitField0_ = (bitField0_ & ~0x40000000);
lastAccessTimeMs_ = 0L;
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 = 32;
*/
@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 = 32;
*/
@java.lang.Override
public java.util.Map getXattrMap() {
return internalGetXattr().getMap();
}
/**
* map<string, bytes> xattr = 32;
*/
@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 = 32;
*/
@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 = 32;
*/
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 = 32;
*/
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 = 32;
*/
public Builder putAllXattr(
java.util.Map values) {
internalGetMutableXattr().getMutableMap()
.putAll(values);
return this;
}
private alluxio.shaded.client.com.google.protobuf.LazyStringList mediumType_ = alluxio.shaded.client.com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureMediumTypeIsMutable() {
if (!((bitField1_ & 0x00000001) != 0)) {
mediumType_ = new alluxio.shaded.client.com.google.protobuf.LazyStringArrayList(mediumType_);
bitField1_ |= 0x00000001;
}
}
/**
* repeated string mediumType = 33;
* @return A list containing the mediumType.
*/
public alluxio.shaded.client.com.google.protobuf.ProtocolStringList
getMediumTypeList() {
return mediumType_.getUnmodifiableView();
}
/**
* repeated string mediumType = 33;
* @return The count of mediumType.
*/
public int getMediumTypeCount() {
return mediumType_.size();
}
/**
* repeated string mediumType = 33;
* @param index The index of the element to return.
* @return The mediumType at the given index.
*/
public java.lang.String getMediumType(int index) {
return mediumType_.get(index);
}
/**
* repeated string mediumType = 33;
* @param index The index of the value to return.
* @return The bytes of the mediumType at the given index.
*/
public alluxio.shaded.client.com.google.protobuf.ByteString
getMediumTypeBytes(int index) {
return mediumType_.getByteString(index);
}
/**
* repeated string mediumType = 33;
* @param index The index to set the value at.
* @param value The mediumType to set.
* @return This builder for chaining.
*/
public Builder setMediumType(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMediumTypeIsMutable();
mediumType_.set(index, value);
onChanged();
return this;
}
/**
* repeated string mediumType = 33;
* @param value The mediumType to add.
* @return This builder for chaining.
*/
public Builder addMediumType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMediumTypeIsMutable();
mediumType_.add(value);
onChanged();
return this;
}
/**
* repeated string mediumType = 33;
* @param values The mediumType to add.
* @return This builder for chaining.
*/
public Builder addAllMediumType(
java.lang.Iterable values) {
ensureMediumTypeIsMutable();
alluxio.shaded.client.com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, mediumType_);
onChanged();
return this;
}
/**
* repeated string mediumType = 33;
* @return This builder for chaining.
*/
public Builder clearMediumType() {
mediumType_ = alluxio.shaded.client.com.google.protobuf.LazyStringArrayList.EMPTY;
bitField1_ = (bitField1_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string mediumType = 33;
* @param value The bytes of the mediumType to add.
* @return This builder for chaining.
*/
public Builder addMediumTypeBytes(
alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureMediumTypeIsMutable();
mediumType_.add(value);
onChanged();
return this;
}
private java.lang.Object contentHash_ = "";
/**
* optional string contentHash = 34;
* @return Whether the contentHash field is set.
*/
public boolean hasContentHash() {
return ((bitField1_ & 0x00000002) != 0);
}
/**
* optional string contentHash = 34;
* @return The contentHash.
*/
public java.lang.String getContentHash() {
java.lang.Object ref = contentHash_;
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()) {
contentHash_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string contentHash = 34;
* @return The bytes for contentHash.
*/
public alluxio.shaded.client.com.google.protobuf.ByteString
getContentHashBytes() {
java.lang.Object ref = contentHash_;
if (ref instanceof String) {
alluxio.shaded.client.com.google.protobuf.ByteString b =
alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
contentHash_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
/**
* optional string contentHash = 34;
* @param value The contentHash to set.
* @return This builder for chaining.
*/
public Builder setContentHash(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000002;
contentHash_ = value;
onChanged();
return this;
}
/**
* optional string contentHash = 34;
* @return This builder for chaining.
*/
public Builder clearContentHash() {
bitField1_ = (bitField1_ & ~0x00000002);
contentHash_ = getDefaultInstance().getContentHash();
onChanged();
return this;
}
/**
* optional string contentHash = 34;
* @param value The bytes for contentHash to set.
* @return This builder for chaining.
*/
public Builder setContentHashBytes(
alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000002;
contentHash_ = value;
onChanged();
return this;
}
private java.lang.Object ufsType_ = "";
/**
* optional string ufsType = 35;
* @return Whether the ufsType field is set.
*/
public boolean hasUfsType() {
return ((bitField1_ & 0x00000004) != 0);
}
/**
* optional string ufsType = 35;
* @return The ufsType.
*/
public java.lang.String getUfsType() {
java.lang.Object ref = ufsType_;
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()) {
ufsType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string ufsType = 35;
* @return The bytes for ufsType.
*/
public alluxio.shaded.client.com.google.protobuf.ByteString
getUfsTypeBytes() {
java.lang.Object ref = ufsType_;
if (ref instanceof String) {
alluxio.shaded.client.com.google.protobuf.ByteString b =
alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ufsType_ = b;
return b;
} else {
return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
}
}
/**
* optional string ufsType = 35;
* @param value The ufsType to set.
* @return This builder for chaining.
*/
public Builder setUfsType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000004;
ufsType_ = value;
onChanged();
return this;
}
/**
* optional string ufsType = 35;
* @return This builder for chaining.
*/
public Builder clearUfsType() {
bitField1_ = (bitField1_ & ~0x00000004);
ufsType_ = getDefaultInstance().getUfsType();
onChanged();
return this;
}
/**
* optional string ufsType = 35;
* @param value The bytes for ufsType to set.
* @return This builder for chaining.
*/
public Builder setUfsTypeBytes(
alluxio.shaded.client.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField1_ |= 0x00000004;
ufsType_ = value;
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.FileInfo)
}
// @@protoc_insertion_point(class_scope:alluxio.grpc.file.FileInfo)
private static final alluxio.grpc.FileInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new alluxio.grpc.FileInfo();
}
public static alluxio.grpc.FileInfo 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 FileInfo 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.FileInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}