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

org.apache.hadoop.fs.FSProtos Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: FSProtos.proto

package org.apache.hadoop.fs;

public final class FSProtos {
  private FSProtos() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface FsPermissionProtoOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // required uint32 perm = 1;
    /**
     * required uint32 perm = 1;
     *
     * 
     * UNIX-style mode bits
     * 
*/ boolean hasPerm(); /** * required uint32 perm = 1; * *
     * UNIX-style mode bits
     * 
*/ int getPerm(); } /** * Protobuf type {@code hadoop.fs.FsPermissionProto} */ public static final class FsPermissionProto extends com.google.protobuf.GeneratedMessage implements FsPermissionProtoOrBuilder { // Use FsPermissionProto.newBuilder() to construct. private FsPermissionProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private FsPermissionProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FsPermissionProto defaultInstance; public static FsPermissionProto getDefaultInstance() { return defaultInstance; } public FsPermissionProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FsPermissionProto( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; perm_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.fs.FSProtos.internal_static_hadoop_fs_FsPermissionProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.fs.FSProtos.internal_static_hadoop_fs_FsPermissionProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.fs.FSProtos.FsPermissionProto.class, org.apache.hadoop.fs.FSProtos.FsPermissionProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FsPermissionProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FsPermissionProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } private int bitField0_; // required uint32 perm = 1; public static final int PERM_FIELD_NUMBER = 1; private int perm_; /** * required uint32 perm = 1; * *
     * UNIX-style mode bits
     * 
*/ public boolean hasPerm() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 perm = 1; * *
     * UNIX-style mode bits
     * 
*/ public int getPerm() { return perm_; } private void initFields() { perm_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasPerm()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, perm_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, perm_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.fs.FSProtos.FsPermissionProto)) { return super.equals(obj); } org.apache.hadoop.fs.FSProtos.FsPermissionProto other = (org.apache.hadoop.fs.FSProtos.FsPermissionProto) obj; boolean result = true; result = result && (hasPerm() == other.hasPerm()); if (hasPerm()) { result = result && (getPerm() == other.getPerm()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasPerm()) { hash = (37 * hash) + PERM_FIELD_NUMBER; hash = (53 * hash) + getPerm(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.fs.FSProtos.FsPermissionProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.fs.FSProtos.FsPermissionProto parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.fs.FSProtos.FsPermissionProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.fs.FSProtos.FsPermissionProto parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.fs.FSProtos.FsPermissionProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.fs.FSProtos.FsPermissionProto parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.fs.FSProtos.FsPermissionProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.fs.FSProtos.FsPermissionProto parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.fs.FSProtos.FsPermissionProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.fs.FSProtos.FsPermissionProto parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.fs.FSProtos.FsPermissionProto prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code hadoop.fs.FsPermissionProto} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.fs.FSProtos.FsPermissionProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.fs.FSProtos.internal_static_hadoop_fs_FsPermissionProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.fs.FSProtos.internal_static_hadoop_fs_FsPermissionProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.fs.FSProtos.FsPermissionProto.class, org.apache.hadoop.fs.FSProtos.FsPermissionProto.Builder.class); } // Construct using org.apache.hadoop.fs.FSProtos.FsPermissionProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); perm_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.fs.FSProtos.internal_static_hadoop_fs_FsPermissionProto_descriptor; } public org.apache.hadoop.fs.FSProtos.FsPermissionProto getDefaultInstanceForType() { return org.apache.hadoop.fs.FSProtos.FsPermissionProto.getDefaultInstance(); } public org.apache.hadoop.fs.FSProtos.FsPermissionProto build() { org.apache.hadoop.fs.FSProtos.FsPermissionProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.fs.FSProtos.FsPermissionProto buildPartial() { org.apache.hadoop.fs.FSProtos.FsPermissionProto result = new org.apache.hadoop.fs.FSProtos.FsPermissionProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.perm_ = perm_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.fs.FSProtos.FsPermissionProto) { return mergeFrom((org.apache.hadoop.fs.FSProtos.FsPermissionProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.fs.FSProtos.FsPermissionProto other) { if (other == org.apache.hadoop.fs.FSProtos.FsPermissionProto.getDefaultInstance()) return this; if (other.hasPerm()) { setPerm(other.getPerm()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasPerm()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.hadoop.fs.FSProtos.FsPermissionProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.fs.FSProtos.FsPermissionProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required uint32 perm = 1; private int perm_ ; /** * required uint32 perm = 1; * *
       * UNIX-style mode bits
       * 
*/ public boolean hasPerm() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required uint32 perm = 1; * *
       * UNIX-style mode bits
       * 
*/ public int getPerm() { return perm_; } /** * required uint32 perm = 1; * *
       * UNIX-style mode bits
       * 
*/ public Builder setPerm(int value) { bitField0_ |= 0x00000001; perm_ = value; onChanged(); return this; } /** * required uint32 perm = 1; * *
       * UNIX-style mode bits
       * 
*/ public Builder clearPerm() { bitField0_ = (bitField0_ & ~0x00000001); perm_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:hadoop.fs.FsPermissionProto) } static { defaultInstance = new FsPermissionProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.fs.FsPermissionProto) } public interface FileStatusProtoOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .hadoop.fs.FileStatusProto.FileType fileType = 1; /** * required .hadoop.fs.FileStatusProto.FileType fileType = 1; */ boolean hasFileType(); /** * required .hadoop.fs.FileStatusProto.FileType fileType = 1; */ org.apache.hadoop.fs.FSProtos.FileStatusProto.FileType getFileType(); // required string path = 2; /** * required string path = 2; */ boolean hasPath(); /** * required string path = 2; */ java.lang.String getPath(); /** * required string path = 2; */ com.google.protobuf.ByteString getPathBytes(); // optional uint64 length = 3; /** * optional uint64 length = 3; */ boolean hasLength(); /** * optional uint64 length = 3; */ long getLength(); // optional .hadoop.fs.FsPermissionProto permission = 4; /** * optional .hadoop.fs.FsPermissionProto permission = 4; */ boolean hasPermission(); /** * optional .hadoop.fs.FsPermissionProto permission = 4; */ org.apache.hadoop.fs.FSProtos.FsPermissionProto getPermission(); /** * optional .hadoop.fs.FsPermissionProto permission = 4; */ org.apache.hadoop.fs.FSProtos.FsPermissionProtoOrBuilder getPermissionOrBuilder(); // optional string owner = 5; /** * optional string owner = 5; */ boolean hasOwner(); /** * optional string owner = 5; */ java.lang.String getOwner(); /** * optional string owner = 5; */ com.google.protobuf.ByteString getOwnerBytes(); // optional string group = 6; /** * optional string group = 6; */ boolean hasGroup(); /** * optional string group = 6; */ java.lang.String getGroup(); /** * optional string group = 6; */ com.google.protobuf.ByteString getGroupBytes(); // optional uint64 modification_time = 7; /** * optional uint64 modification_time = 7; */ boolean hasModificationTime(); /** * optional uint64 modification_time = 7; */ long getModificationTime(); // optional uint64 access_time = 8; /** * optional uint64 access_time = 8; */ boolean hasAccessTime(); /** * optional uint64 access_time = 8; */ long getAccessTime(); // optional string symlink = 9; /** * optional string symlink = 9; */ boolean hasSymlink(); /** * optional string symlink = 9; */ java.lang.String getSymlink(); /** * optional string symlink = 9; */ com.google.protobuf.ByteString getSymlinkBytes(); // optional uint32 block_replication = 10; /** * optional uint32 block_replication = 10; */ boolean hasBlockReplication(); /** * optional uint32 block_replication = 10; */ int getBlockReplication(); // optional uint64 block_size = 11; /** * optional uint64 block_size = 11; */ boolean hasBlockSize(); /** * optional uint64 block_size = 11; */ long getBlockSize(); // optional bytes encryption_data = 15; /** * optional bytes encryption_data = 15; * *
     * locations                          = 12
     * alias                              = 13
     * childrenNum                        = 14
     * 
*/ boolean hasEncryptionData(); /** * optional bytes encryption_data = 15; * *
     * locations                          = 12
     * alias                              = 13
     * childrenNum                        = 14
     * 
*/ com.google.protobuf.ByteString getEncryptionData(); // optional bytes ec_data = 17; /** * optional bytes ec_data = 17; * *
     * storagePolicy                      = 16
     * 
*/ boolean hasEcData(); /** * optional bytes ec_data = 17; * *
     * storagePolicy                      = 16
     * 
*/ com.google.protobuf.ByteString getEcData(); // optional uint32 flags = 18 [default = 0]; /** * optional uint32 flags = 18 [default = 0]; */ boolean hasFlags(); /** * optional uint32 flags = 18 [default = 0]; */ int getFlags(); } /** * Protobuf type {@code hadoop.fs.FileStatusProto} * *
   *
   * FileStatus encoding. Field IDs match those from HdfsFileStatusProto, but
   * cross-serialization is not an explicitly supported use case. Unlike HDFS,
   * most fields are optional and do not define defaults.
   * 
*/ public static final class FileStatusProto extends com.google.protobuf.GeneratedMessage implements FileStatusProtoOrBuilder { // Use FileStatusProto.newBuilder() to construct. private FileStatusProto(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private FileStatusProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FileStatusProto defaultInstance; public static FileStatusProto getDefaultInstance() { return defaultInstance; } public FileStatusProto getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FileStatusProto( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.hadoop.fs.FSProtos.FileStatusProto.FileType value = org.apache.hadoop.fs.FSProtos.FileStatusProto.FileType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; fileType_ = value; } break; } case 18: { bitField0_ |= 0x00000002; path_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; length_ = input.readUInt64(); break; } case 34: { org.apache.hadoop.fs.FSProtos.FsPermissionProto.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = permission_.toBuilder(); } permission_ = input.readMessage(org.apache.hadoop.fs.FSProtos.FsPermissionProto.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(permission_); permission_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { bitField0_ |= 0x00000010; owner_ = input.readBytes(); break; } case 50: { bitField0_ |= 0x00000020; group_ = input.readBytes(); break; } case 56: { bitField0_ |= 0x00000040; modificationTime_ = input.readUInt64(); break; } case 64: { bitField0_ |= 0x00000080; accessTime_ = input.readUInt64(); break; } case 74: { bitField0_ |= 0x00000100; symlink_ = input.readBytes(); break; } case 80: { bitField0_ |= 0x00000200; blockReplication_ = input.readUInt32(); break; } case 88: { bitField0_ |= 0x00000400; blockSize_ = input.readUInt64(); break; } case 122: { bitField0_ |= 0x00000800; encryptionData_ = input.readBytes(); break; } case 138: { bitField0_ |= 0x00001000; ecData_ = input.readBytes(); break; } case 144: { bitField0_ |= 0x00002000; flags_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.fs.FSProtos.internal_static_hadoop_fs_FileStatusProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.fs.FSProtos.internal_static_hadoop_fs_FileStatusProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.fs.FSProtos.FileStatusProto.class, org.apache.hadoop.fs.FSProtos.FileStatusProto.Builder.class); } public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FileStatusProto parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FileStatusProto(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } /** * Protobuf enum {@code hadoop.fs.FileStatusProto.FileType} */ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { /** * FT_DIR = 1; */ FT_DIR(0, 1), /** * FT_FILE = 2; */ FT_FILE(1, 2), /** * FT_SYMLINK = 3; */ FT_SYMLINK(2, 3), ; /** * FT_DIR = 1; */ public static final int FT_DIR_VALUE = 1; /** * FT_FILE = 2; */ public static final int FT_FILE_VALUE = 2; /** * FT_SYMLINK = 3; */ public static final int FT_SYMLINK_VALUE = 3; public final int getNumber() { return value; } public static FileType valueOf(int value) { switch (value) { case 1: return FT_DIR; case 2: return FT_FILE; case 3: return FT_SYMLINK; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public FileType findValueByNumber(int number) { return FileType.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.hadoop.fs.FSProtos.FileStatusProto.getDescriptor().getEnumTypes().get(0); } private static final FileType[] VALUES = values(); public static FileType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private FileType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:hadoop.fs.FileStatusProto.FileType) } /** * Protobuf enum {@code hadoop.fs.FileStatusProto.Flags} */ public enum Flags implements com.google.protobuf.ProtocolMessageEnum { /** * HAS_ACL = 1; * *
       * has ACLs
       * 
*/ HAS_ACL(0, 1), /** * HAS_CRYPT = 2; * *
       * encrypted
       * 
*/ HAS_CRYPT(1, 2), /** * HAS_EC = 4; * *
       * erasure coded
       * 
*/ HAS_EC(2, 4), /** * SNAPSHOT_ENABLED = 8; * *
       * snapshot enabled
       * 
*/ SNAPSHOT_ENABLED(3, 8), ; /** * HAS_ACL = 1; * *
       * has ACLs
       * 
*/ public static final int HAS_ACL_VALUE = 1; /** * HAS_CRYPT = 2; * *
       * encrypted
       * 
*/ public static final int HAS_CRYPT_VALUE = 2; /** * HAS_EC = 4; * *
       * erasure coded
       * 
*/ public static final int HAS_EC_VALUE = 4; /** * SNAPSHOT_ENABLED = 8; * *
       * snapshot enabled
       * 
*/ public static final int SNAPSHOT_ENABLED_VALUE = 8; public final int getNumber() { return value; } public static Flags valueOf(int value) { switch (value) { case 1: return HAS_ACL; case 2: return HAS_CRYPT; case 4: return HAS_EC; case 8: return SNAPSHOT_ENABLED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Flags findValueByNumber(int number) { return Flags.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.hadoop.fs.FSProtos.FileStatusProto.getDescriptor().getEnumTypes().get(1); } private static final Flags[] VALUES = values(); public static Flags valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Flags(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:hadoop.fs.FileStatusProto.Flags) } private int bitField0_; // required .hadoop.fs.FileStatusProto.FileType fileType = 1; public static final int FILETYPE_FIELD_NUMBER = 1; private org.apache.hadoop.fs.FSProtos.FileStatusProto.FileType fileType_; /** * required .hadoop.fs.FileStatusProto.FileType fileType = 1; */ public boolean hasFileType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .hadoop.fs.FileStatusProto.FileType fileType = 1; */ public org.apache.hadoop.fs.FSProtos.FileStatusProto.FileType getFileType() { return fileType_; } // required string path = 2; public static final int PATH_FIELD_NUMBER = 2; private java.lang.Object path_; /** * required string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string path = 2; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { path_ = s; } return s; } } /** * required string path = 2; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional uint64 length = 3; public static final int LENGTH_FIELD_NUMBER = 3; private long length_; /** * optional uint64 length = 3; */ public boolean hasLength() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint64 length = 3; */ public long getLength() { return length_; } // optional .hadoop.fs.FsPermissionProto permission = 4; public static final int PERMISSION_FIELD_NUMBER = 4; private org.apache.hadoop.fs.FSProtos.FsPermissionProto permission_; /** * optional .hadoop.fs.FsPermissionProto permission = 4; */ public boolean hasPermission() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .hadoop.fs.FsPermissionProto permission = 4; */ public org.apache.hadoop.fs.FSProtos.FsPermissionProto getPermission() { return permission_; } /** * optional .hadoop.fs.FsPermissionProto permission = 4; */ public org.apache.hadoop.fs.FSProtos.FsPermissionProtoOrBuilder getPermissionOrBuilder() { return permission_; } // optional string owner = 5; public static final int OWNER_FIELD_NUMBER = 5; private java.lang.Object owner_; /** * optional string owner = 5; */ public boolean hasOwner() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string owner = 5; */ public java.lang.String getOwner() { java.lang.Object ref = owner_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { owner_ = s; } return s; } } /** * optional string owner = 5; */ public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string group = 6; public static final int GROUP_FIELD_NUMBER = 6; private java.lang.Object group_; /** * optional string group = 6; */ public boolean hasGroup() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string group = 6; */ public java.lang.String getGroup() { java.lang.Object ref = group_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { group_ = s; } return s; } } /** * optional string group = 6; */ public com.google.protobuf.ByteString getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); group_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional uint64 modification_time = 7; public static final int MODIFICATION_TIME_FIELD_NUMBER = 7; private long modificationTime_; /** * optional uint64 modification_time = 7; */ public boolean hasModificationTime() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint64 modification_time = 7; */ public long getModificationTime() { return modificationTime_; } // optional uint64 access_time = 8; public static final int ACCESS_TIME_FIELD_NUMBER = 8; private long accessTime_; /** * optional uint64 access_time = 8; */ public boolean hasAccessTime() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint64 access_time = 8; */ public long getAccessTime() { return accessTime_; } // optional string symlink = 9; public static final int SYMLINK_FIELD_NUMBER = 9; private java.lang.Object symlink_; /** * optional string symlink = 9; */ public boolean hasSymlink() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional string symlink = 9; */ public java.lang.String getSymlink() { java.lang.Object ref = symlink_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { symlink_ = s; } return s; } } /** * optional string symlink = 9; */ public com.google.protobuf.ByteString getSymlinkBytes() { java.lang.Object ref = symlink_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symlink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional uint32 block_replication = 10; public static final int BLOCK_REPLICATION_FIELD_NUMBER = 10; private int blockReplication_; /** * optional uint32 block_replication = 10; */ public boolean hasBlockReplication() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional uint32 block_replication = 10; */ public int getBlockReplication() { return blockReplication_; } // optional uint64 block_size = 11; public static final int BLOCK_SIZE_FIELD_NUMBER = 11; private long blockSize_; /** * optional uint64 block_size = 11; */ public boolean hasBlockSize() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional uint64 block_size = 11; */ public long getBlockSize() { return blockSize_; } // optional bytes encryption_data = 15; public static final int ENCRYPTION_DATA_FIELD_NUMBER = 15; private com.google.protobuf.ByteString encryptionData_; /** * optional bytes encryption_data = 15; * *
     * locations                          = 12
     * alias                              = 13
     * childrenNum                        = 14
     * 
*/ public boolean hasEncryptionData() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional bytes encryption_data = 15; * *
     * locations                          = 12
     * alias                              = 13
     * childrenNum                        = 14
     * 
*/ public com.google.protobuf.ByteString getEncryptionData() { return encryptionData_; } // optional bytes ec_data = 17; public static final int EC_DATA_FIELD_NUMBER = 17; private com.google.protobuf.ByteString ecData_; /** * optional bytes ec_data = 17; * *
     * storagePolicy                      = 16
     * 
*/ public boolean hasEcData() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional bytes ec_data = 17; * *
     * storagePolicy                      = 16
     * 
*/ public com.google.protobuf.ByteString getEcData() { return ecData_; } // optional uint32 flags = 18 [default = 0]; public static final int FLAGS_FIELD_NUMBER = 18; private int flags_; /** * optional uint32 flags = 18 [default = 0]; */ public boolean hasFlags() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional uint32 flags = 18 [default = 0]; */ public int getFlags() { return flags_; } private void initFields() { fileType_ = org.apache.hadoop.fs.FSProtos.FileStatusProto.FileType.FT_DIR; path_ = ""; length_ = 0L; permission_ = org.apache.hadoop.fs.FSProtos.FsPermissionProto.getDefaultInstance(); owner_ = ""; group_ = ""; modificationTime_ = 0L; accessTime_ = 0L; symlink_ = ""; blockReplication_ = 0; blockSize_ = 0L; encryptionData_ = com.google.protobuf.ByteString.EMPTY; ecData_ = com.google.protobuf.ByteString.EMPTY; flags_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasFileType()) { memoizedIsInitialized = 0; return false; } if (!hasPath()) { memoizedIsInitialized = 0; return false; } if (hasPermission()) { if (!getPermission().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, fileType_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getPathBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt64(3, length_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, permission_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getOwnerBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getGroupBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt64(7, modificationTime_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeUInt64(8, accessTime_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBytes(9, getSymlinkBytes()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeUInt32(10, blockReplication_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeUInt64(11, blockSize_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeBytes(15, encryptionData_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeBytes(17, ecData_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeUInt32(18, flags_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, fileType_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getPathBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, length_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, permission_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getOwnerBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getGroupBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, modificationTime_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, accessTime_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, getSymlinkBytes()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(10, blockReplication_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(11, blockSize_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(15, encryptionData_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(17, ecData_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(18, flags_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.fs.FSProtos.FileStatusProto)) { return super.equals(obj); } org.apache.hadoop.fs.FSProtos.FileStatusProto other = (org.apache.hadoop.fs.FSProtos.FileStatusProto) obj; boolean result = true; result = result && (hasFileType() == other.hasFileType()); if (hasFileType()) { result = result && (getFileType() == other.getFileType()); } result = result && (hasPath() == other.hasPath()); if (hasPath()) { result = result && getPath() .equals(other.getPath()); } result = result && (hasLength() == other.hasLength()); if (hasLength()) { result = result && (getLength() == other.getLength()); } result = result && (hasPermission() == other.hasPermission()); if (hasPermission()) { result = result && getPermission() .equals(other.getPermission()); } result = result && (hasOwner() == other.hasOwner()); if (hasOwner()) { result = result && getOwner() .equals(other.getOwner()); } result = result && (hasGroup() == other.hasGroup()); if (hasGroup()) { result = result && getGroup() .equals(other.getGroup()); } result = result && (hasModificationTime() == other.hasModificationTime()); if (hasModificationTime()) { result = result && (getModificationTime() == other.getModificationTime()); } result = result && (hasAccessTime() == other.hasAccessTime()); if (hasAccessTime()) { result = result && (getAccessTime() == other.getAccessTime()); } result = result && (hasSymlink() == other.hasSymlink()); if (hasSymlink()) { result = result && getSymlink() .equals(other.getSymlink()); } result = result && (hasBlockReplication() == other.hasBlockReplication()); if (hasBlockReplication()) { result = result && (getBlockReplication() == other.getBlockReplication()); } result = result && (hasBlockSize() == other.hasBlockSize()); if (hasBlockSize()) { result = result && (getBlockSize() == other.getBlockSize()); } result = result && (hasEncryptionData() == other.hasEncryptionData()); if (hasEncryptionData()) { result = result && getEncryptionData() .equals(other.getEncryptionData()); } result = result && (hasEcData() == other.hasEcData()); if (hasEcData()) { result = result && getEcData() .equals(other.getEcData()); } result = result && (hasFlags() == other.hasFlags()); if (hasFlags()) { result = result && (getFlags() == other.getFlags()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; } private int memoizedHashCode = 0; @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasFileType()) { hash = (37 * hash) + FILETYPE_FIELD_NUMBER; hash = (53 * hash) + hashEnum(getFileType()); } if (hasPath()) { hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); } if (hasLength()) { hash = (37 * hash) + LENGTH_FIELD_NUMBER; hash = (53 * hash) + hashLong(getLength()); } if (hasPermission()) { hash = (37 * hash) + PERMISSION_FIELD_NUMBER; hash = (53 * hash) + getPermission().hashCode(); } 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 (hasModificationTime()) { hash = (37 * hash) + MODIFICATION_TIME_FIELD_NUMBER; hash = (53 * hash) + hashLong(getModificationTime()); } if (hasAccessTime()) { hash = (37 * hash) + ACCESS_TIME_FIELD_NUMBER; hash = (53 * hash) + hashLong(getAccessTime()); } if (hasSymlink()) { hash = (37 * hash) + SYMLINK_FIELD_NUMBER; hash = (53 * hash) + getSymlink().hashCode(); } if (hasBlockReplication()) { hash = (37 * hash) + BLOCK_REPLICATION_FIELD_NUMBER; hash = (53 * hash) + getBlockReplication(); } if (hasBlockSize()) { hash = (37 * hash) + BLOCK_SIZE_FIELD_NUMBER; hash = (53 * hash) + hashLong(getBlockSize()); } if (hasEncryptionData()) { hash = (37 * hash) + ENCRYPTION_DATA_FIELD_NUMBER; hash = (53 * hash) + getEncryptionData().hashCode(); } if (hasEcData()) { hash = (37 * hash) + EC_DATA_FIELD_NUMBER; hash = (53 * hash) + getEcData().hashCode(); } if (hasFlags()) { hash = (37 * hash) + FLAGS_FIELD_NUMBER; hash = (53 * hash) + getFlags(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.hadoop.fs.FSProtos.FileStatusProto parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.fs.FSProtos.FileStatusProto parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.fs.FSProtos.FileStatusProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.hadoop.fs.FSProtos.FileStatusProto parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.hadoop.fs.FSProtos.FileStatusProto parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.fs.FSProtos.FileStatusProto parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.hadoop.fs.FSProtos.FileStatusProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.hadoop.fs.FSProtos.FileStatusProto parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.hadoop.fs.FSProtos.FileStatusProto parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.hadoop.fs.FSProtos.FileStatusProto parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.hadoop.fs.FSProtos.FileStatusProto prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code hadoop.fs.FileStatusProto} * *
     *
     * FileStatus encoding. Field IDs match those from HdfsFileStatusProto, but
     * cross-serialization is not an explicitly supported use case. Unlike HDFS,
     * most fields are optional and do not define defaults.
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements org.apache.hadoop.fs.FSProtos.FileStatusProtoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.hadoop.fs.FSProtos.internal_static_hadoop_fs_FileStatusProto_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.hadoop.fs.FSProtos.internal_static_hadoop_fs_FileStatusProto_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.hadoop.fs.FSProtos.FileStatusProto.class, org.apache.hadoop.fs.FSProtos.FileStatusProto.Builder.class); } // Construct using org.apache.hadoop.fs.FSProtos.FileStatusProto.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPermissionFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); fileType_ = org.apache.hadoop.fs.FSProtos.FileStatusProto.FileType.FT_DIR; bitField0_ = (bitField0_ & ~0x00000001); path_ = ""; bitField0_ = (bitField0_ & ~0x00000002); length_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); if (permissionBuilder_ == null) { permission_ = org.apache.hadoop.fs.FSProtos.FsPermissionProto.getDefaultInstance(); } else { permissionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); owner_ = ""; bitField0_ = (bitField0_ & ~0x00000010); group_ = ""; bitField0_ = (bitField0_ & ~0x00000020); modificationTime_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); accessTime_ = 0L; bitField0_ = (bitField0_ & ~0x00000080); symlink_ = ""; bitField0_ = (bitField0_ & ~0x00000100); blockReplication_ = 0; bitField0_ = (bitField0_ & ~0x00000200); blockSize_ = 0L; bitField0_ = (bitField0_ & ~0x00000400); encryptionData_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000800); ecData_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00001000); flags_ = 0; bitField0_ = (bitField0_ & ~0x00002000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.hadoop.fs.FSProtos.internal_static_hadoop_fs_FileStatusProto_descriptor; } public org.apache.hadoop.fs.FSProtos.FileStatusProto getDefaultInstanceForType() { return org.apache.hadoop.fs.FSProtos.FileStatusProto.getDefaultInstance(); } public org.apache.hadoop.fs.FSProtos.FileStatusProto build() { org.apache.hadoop.fs.FSProtos.FileStatusProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.hadoop.fs.FSProtos.FileStatusProto buildPartial() { org.apache.hadoop.fs.FSProtos.FileStatusProto result = new org.apache.hadoop.fs.FSProtos.FileStatusProto(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.fileType_ = fileType_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.path_ = path_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.length_ = length_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (permissionBuilder_ == null) { result.permission_ = permission_; } else { result.permission_ = permissionBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.owner_ = owner_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.group_ = group_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.modificationTime_ = modificationTime_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.accessTime_ = accessTime_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.symlink_ = symlink_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.blockReplication_ = blockReplication_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.blockSize_ = blockSize_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.encryptionData_ = encryptionData_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.ecData_ = ecData_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.flags_ = flags_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.hadoop.fs.FSProtos.FileStatusProto) { return mergeFrom((org.apache.hadoop.fs.FSProtos.FileStatusProto)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.hadoop.fs.FSProtos.FileStatusProto other) { if (other == org.apache.hadoop.fs.FSProtos.FileStatusProto.getDefaultInstance()) return this; if (other.hasFileType()) { setFileType(other.getFileType()); } if (other.hasPath()) { bitField0_ |= 0x00000002; path_ = other.path_; onChanged(); } if (other.hasLength()) { setLength(other.getLength()); } if (other.hasPermission()) { mergePermission(other.getPermission()); } if (other.hasOwner()) { bitField0_ |= 0x00000010; owner_ = other.owner_; onChanged(); } if (other.hasGroup()) { bitField0_ |= 0x00000020; group_ = other.group_; onChanged(); } if (other.hasModificationTime()) { setModificationTime(other.getModificationTime()); } if (other.hasAccessTime()) { setAccessTime(other.getAccessTime()); } if (other.hasSymlink()) { bitField0_ |= 0x00000100; symlink_ = other.symlink_; onChanged(); } if (other.hasBlockReplication()) { setBlockReplication(other.getBlockReplication()); } if (other.hasBlockSize()) { setBlockSize(other.getBlockSize()); } if (other.hasEncryptionData()) { setEncryptionData(other.getEncryptionData()); } if (other.hasEcData()) { setEcData(other.getEcData()); } if (other.hasFlags()) { setFlags(other.getFlags()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasFileType()) { return false; } if (!hasPath()) { return false; } if (hasPermission()) { if (!getPermission().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.hadoop.fs.FSProtos.FileStatusProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.hadoop.fs.FSProtos.FileStatusProto) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .hadoop.fs.FileStatusProto.FileType fileType = 1; private org.apache.hadoop.fs.FSProtos.FileStatusProto.FileType fileType_ = org.apache.hadoop.fs.FSProtos.FileStatusProto.FileType.FT_DIR; /** * required .hadoop.fs.FileStatusProto.FileType fileType = 1; */ public boolean hasFileType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .hadoop.fs.FileStatusProto.FileType fileType = 1; */ public org.apache.hadoop.fs.FSProtos.FileStatusProto.FileType getFileType() { return fileType_; } /** * required .hadoop.fs.FileStatusProto.FileType fileType = 1; */ public Builder setFileType(org.apache.hadoop.fs.FSProtos.FileStatusProto.FileType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; fileType_ = value; onChanged(); return this; } /** * required .hadoop.fs.FileStatusProto.FileType fileType = 1; */ public Builder clearFileType() { bitField0_ = (bitField0_ & ~0x00000001); fileType_ = org.apache.hadoop.fs.FSProtos.FileStatusProto.FileType.FT_DIR; onChanged(); return this; } // required string path = 2; private java.lang.Object path_ = ""; /** * required string path = 2; */ public boolean hasPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * required string path = 2; */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** * required string path = 2; */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * required string path = 2; */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } /** * required string path = 2; */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000002); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * required string path = 2; */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; path_ = value; onChanged(); return this; } // optional uint64 length = 3; private long length_ ; /** * optional uint64 length = 3; */ public boolean hasLength() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional uint64 length = 3; */ public long getLength() { return length_; } /** * optional uint64 length = 3; */ public Builder setLength(long value) { bitField0_ |= 0x00000004; length_ = value; onChanged(); return this; } /** * optional uint64 length = 3; */ public Builder clearLength() { bitField0_ = (bitField0_ & ~0x00000004); length_ = 0L; onChanged(); return this; } // optional .hadoop.fs.FsPermissionProto permission = 4; private org.apache.hadoop.fs.FSProtos.FsPermissionProto permission_ = org.apache.hadoop.fs.FSProtos.FsPermissionProto.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.fs.FSProtos.FsPermissionProto, org.apache.hadoop.fs.FSProtos.FsPermissionProto.Builder, org.apache.hadoop.fs.FSProtos.FsPermissionProtoOrBuilder> permissionBuilder_; /** * optional .hadoop.fs.FsPermissionProto permission = 4; */ public boolean hasPermission() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .hadoop.fs.FsPermissionProto permission = 4; */ public org.apache.hadoop.fs.FSProtos.FsPermissionProto getPermission() { if (permissionBuilder_ == null) { return permission_; } else { return permissionBuilder_.getMessage(); } } /** * optional .hadoop.fs.FsPermissionProto permission = 4; */ public Builder setPermission(org.apache.hadoop.fs.FSProtos.FsPermissionProto value) { if (permissionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } permission_ = value; onChanged(); } else { permissionBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .hadoop.fs.FsPermissionProto permission = 4; */ public Builder setPermission( org.apache.hadoop.fs.FSProtos.FsPermissionProto.Builder builderForValue) { if (permissionBuilder_ == null) { permission_ = builderForValue.build(); onChanged(); } else { permissionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .hadoop.fs.FsPermissionProto permission = 4; */ public Builder mergePermission(org.apache.hadoop.fs.FSProtos.FsPermissionProto value) { if (permissionBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && permission_ != org.apache.hadoop.fs.FSProtos.FsPermissionProto.getDefaultInstance()) { permission_ = org.apache.hadoop.fs.FSProtos.FsPermissionProto.newBuilder(permission_).mergeFrom(value).buildPartial(); } else { permission_ = value; } onChanged(); } else { permissionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .hadoop.fs.FsPermissionProto permission = 4; */ public Builder clearPermission() { if (permissionBuilder_ == null) { permission_ = org.apache.hadoop.fs.FSProtos.FsPermissionProto.getDefaultInstance(); onChanged(); } else { permissionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .hadoop.fs.FsPermissionProto permission = 4; */ public org.apache.hadoop.fs.FSProtos.FsPermissionProto.Builder getPermissionBuilder() { bitField0_ |= 0x00000008; onChanged(); return getPermissionFieldBuilder().getBuilder(); } /** * optional .hadoop.fs.FsPermissionProto permission = 4; */ public org.apache.hadoop.fs.FSProtos.FsPermissionProtoOrBuilder getPermissionOrBuilder() { if (permissionBuilder_ != null) { return permissionBuilder_.getMessageOrBuilder(); } else { return permission_; } } /** * optional .hadoop.fs.FsPermissionProto permission = 4; */ private com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.fs.FSProtos.FsPermissionProto, org.apache.hadoop.fs.FSProtos.FsPermissionProto.Builder, org.apache.hadoop.fs.FSProtos.FsPermissionProtoOrBuilder> getPermissionFieldBuilder() { if (permissionBuilder_ == null) { permissionBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.hadoop.fs.FSProtos.FsPermissionProto, org.apache.hadoop.fs.FSProtos.FsPermissionProto.Builder, org.apache.hadoop.fs.FSProtos.FsPermissionProtoOrBuilder>( permission_, getParentForChildren(), isClean()); permission_ = null; } return permissionBuilder_; } // optional string owner = 5; private java.lang.Object owner_ = ""; /** * optional string owner = 5; */ public boolean hasOwner() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string owner = 5; */ public java.lang.String getOwner() { java.lang.Object ref = owner_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); owner_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string owner = 5; */ public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string owner = 5; */ public Builder setOwner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; owner_ = value; onChanged(); return this; } /** * optional string owner = 5; */ public Builder clearOwner() { bitField0_ = (bitField0_ & ~0x00000010); owner_ = getDefaultInstance().getOwner(); onChanged(); return this; } /** * optional string owner = 5; */ public Builder setOwnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; owner_ = value; onChanged(); return this; } // optional string group = 6; private java.lang.Object group_ = ""; /** * optional string group = 6; */ public boolean hasGroup() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * optional string group = 6; */ public java.lang.String getGroup() { java.lang.Object ref = group_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); group_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string group = 6; */ public com.google.protobuf.ByteString getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); group_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string group = 6; */ public Builder setGroup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; group_ = value; onChanged(); return this; } /** * optional string group = 6; */ public Builder clearGroup() { bitField0_ = (bitField0_ & ~0x00000020); group_ = getDefaultInstance().getGroup(); onChanged(); return this; } /** * optional string group = 6; */ public Builder setGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; group_ = value; onChanged(); return this; } // optional uint64 modification_time = 7; private long modificationTime_ ; /** * optional uint64 modification_time = 7; */ public boolean hasModificationTime() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * optional uint64 modification_time = 7; */ public long getModificationTime() { return modificationTime_; } /** * optional uint64 modification_time = 7; */ public Builder setModificationTime(long value) { bitField0_ |= 0x00000040; modificationTime_ = value; onChanged(); return this; } /** * optional uint64 modification_time = 7; */ public Builder clearModificationTime() { bitField0_ = (bitField0_ & ~0x00000040); modificationTime_ = 0L; onChanged(); return this; } // optional uint64 access_time = 8; private long accessTime_ ; /** * optional uint64 access_time = 8; */ public boolean hasAccessTime() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * optional uint64 access_time = 8; */ public long getAccessTime() { return accessTime_; } /** * optional uint64 access_time = 8; */ public Builder setAccessTime(long value) { bitField0_ |= 0x00000080; accessTime_ = value; onChanged(); return this; } /** * optional uint64 access_time = 8; */ public Builder clearAccessTime() { bitField0_ = (bitField0_ & ~0x00000080); accessTime_ = 0L; onChanged(); return this; } // optional string symlink = 9; private java.lang.Object symlink_ = ""; /** * optional string symlink = 9; */ public boolean hasSymlink() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * optional string symlink = 9; */ public java.lang.String getSymlink() { java.lang.Object ref = symlink_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); symlink_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string symlink = 9; */ public com.google.protobuf.ByteString getSymlinkBytes() { java.lang.Object ref = symlink_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); symlink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string symlink = 9; */ public Builder setSymlink( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; symlink_ = value; onChanged(); return this; } /** * optional string symlink = 9; */ public Builder clearSymlink() { bitField0_ = (bitField0_ & ~0x00000100); symlink_ = getDefaultInstance().getSymlink(); onChanged(); return this; } /** * optional string symlink = 9; */ public Builder setSymlinkBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; symlink_ = value; onChanged(); return this; } // optional uint32 block_replication = 10; private int blockReplication_ ; /** * optional uint32 block_replication = 10; */ public boolean hasBlockReplication() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * optional uint32 block_replication = 10; */ public int getBlockReplication() { return blockReplication_; } /** * optional uint32 block_replication = 10; */ public Builder setBlockReplication(int value) { bitField0_ |= 0x00000200; blockReplication_ = value; onChanged(); return this; } /** * optional uint32 block_replication = 10; */ public Builder clearBlockReplication() { bitField0_ = (bitField0_ & ~0x00000200); blockReplication_ = 0; onChanged(); return this; } // optional uint64 block_size = 11; private long blockSize_ ; /** * optional uint64 block_size = 11; */ public boolean hasBlockSize() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * optional uint64 block_size = 11; */ public long getBlockSize() { return blockSize_; } /** * optional uint64 block_size = 11; */ public Builder setBlockSize(long value) { bitField0_ |= 0x00000400; blockSize_ = value; onChanged(); return this; } /** * optional uint64 block_size = 11; */ public Builder clearBlockSize() { bitField0_ = (bitField0_ & ~0x00000400); blockSize_ = 0L; onChanged(); return this; } // optional bytes encryption_data = 15; private com.google.protobuf.ByteString encryptionData_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes encryption_data = 15; * *
       * locations                          = 12
       * alias                              = 13
       * childrenNum                        = 14
       * 
*/ public boolean hasEncryptionData() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * optional bytes encryption_data = 15; * *
       * locations                          = 12
       * alias                              = 13
       * childrenNum                        = 14
       * 
*/ public com.google.protobuf.ByteString getEncryptionData() { return encryptionData_; } /** * optional bytes encryption_data = 15; * *
       * locations                          = 12
       * alias                              = 13
       * childrenNum                        = 14
       * 
*/ public Builder setEncryptionData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; encryptionData_ = value; onChanged(); return this; } /** * optional bytes encryption_data = 15; * *
       * locations                          = 12
       * alias                              = 13
       * childrenNum                        = 14
       * 
*/ public Builder clearEncryptionData() { bitField0_ = (bitField0_ & ~0x00000800); encryptionData_ = getDefaultInstance().getEncryptionData(); onChanged(); return this; } // optional bytes ec_data = 17; private com.google.protobuf.ByteString ecData_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes ec_data = 17; * *
       * storagePolicy                      = 16
       * 
*/ public boolean hasEcData() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * optional bytes ec_data = 17; * *
       * storagePolicy                      = 16
       * 
*/ public com.google.protobuf.ByteString getEcData() { return ecData_; } /** * optional bytes ec_data = 17; * *
       * storagePolicy                      = 16
       * 
*/ public Builder setEcData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00001000; ecData_ = value; onChanged(); return this; } /** * optional bytes ec_data = 17; * *
       * storagePolicy                      = 16
       * 
*/ public Builder clearEcData() { bitField0_ = (bitField0_ & ~0x00001000); ecData_ = getDefaultInstance().getEcData(); onChanged(); return this; } // optional uint32 flags = 18 [default = 0]; private int flags_ ; /** * optional uint32 flags = 18 [default = 0]; */ public boolean hasFlags() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * optional uint32 flags = 18 [default = 0]; */ public int getFlags() { return flags_; } /** * optional uint32 flags = 18 [default = 0]; */ public Builder setFlags(int value) { bitField0_ |= 0x00002000; flags_ = value; onChanged(); return this; } /** * optional uint32 flags = 18 [default = 0]; */ public Builder clearFlags() { bitField0_ = (bitField0_ & ~0x00002000); flags_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:hadoop.fs.FileStatusProto) } static { defaultInstance = new FileStatusProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:hadoop.fs.FileStatusProto) } private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_fs_FsPermissionProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_fs_FsPermissionProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_hadoop_fs_FileStatusProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_hadoop_fs_FileStatusProto_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\016FSProtos.proto\022\thadoop.fs\"!\n\021FsPermiss" + "ionProto\022\014\n\004perm\030\001 \002(\r\"\336\003\n\017FileStatusPro" + "to\0225\n\010fileType\030\001 \002(\0162#.hadoop.fs.FileSta" + "tusProto.FileType\022\014\n\004path\030\002 \002(\t\022\016\n\006lengt" + "h\030\003 \001(\004\0220\n\npermission\030\004 \001(\0132\034.hadoop.fs." + "FsPermissionProto\022\r\n\005owner\030\005 \001(\t\022\r\n\005grou" + "p\030\006 \001(\t\022\031\n\021modification_time\030\007 \001(\004\022\023\n\013ac" + "cess_time\030\010 \001(\004\022\017\n\007symlink\030\t \001(\t\022\031\n\021bloc" + "k_replication\030\n \001(\r\022\022\n\nblock_size\030\013 \001(\004\022" + "\027\n\017encryption_data\030\017 \001(\014\022\017\n\007ec_data\030\021 \001(", "\014\022\020\n\005flags\030\022 \001(\r:\0010\"3\n\010FileType\022\n\n\006FT_DI" + "R\020\001\022\013\n\007FT_FILE\020\002\022\016\n\nFT_SYMLINK\020\003\"E\n\005Flag" + "s\022\013\n\007HAS_ACL\020\001\022\r\n\tHAS_CRYPT\020\002\022\n\n\006HAS_EC\020" + "\004\022\024\n\020SNAPSHOT_ENABLED\020\010B&\n\024org.apache.ha" + "doop.fsB\010FSProtos\210\001\001\240\001\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_hadoop_fs_FsPermissionProto_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_hadoop_fs_FsPermissionProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_fs_FsPermissionProto_descriptor, new java.lang.String[] { "Perm", }); internal_static_hadoop_fs_FileStatusProto_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_hadoop_fs_FileStatusProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_hadoop_fs_FileStatusProto_descriptor, new java.lang.String[] { "FileType", "Path", "Length", "Permission", "Owner", "Group", "ModificationTime", "AccessTime", "Symlink", "BlockReplication", "BlockSize", "EncryptionData", "EcData", "Flags", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy