// Generated by the protocol buffer compiler. DO NOT EDIT! // source: journal/file.proto package alluxio.proto.journal; public final class File { private File() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } /** * Protobuf enum {@code alluxio.proto.journal.PTtlAction} */ public enum PTtlAction implements com.google.protobuf.ProtocolMessageEnum { /** * <code>DELETE = 0;</code> */ DELETE(0, 0), /** * <code>FREE = 1;</code> */ FREE(1, 1), ; /** * <code>DELETE = 0;</code> */ public static final int DELETE_VALUE = 0; /** * <code>FREE = 1;</code> */ public static final int FREE_VALUE = 1; public final int getNumber() { return value; } public static PTtlAction valueOf(int value) { switch (value) { case 0: return DELETE; case 1: return FREE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<PTtlAction> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<PTtlAction> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<PTtlAction>() { public PTtlAction findValueByNumber(int number) { return PTtlAction.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 alluxio.proto.journal.File.getDescriptor().getEnumTypes().get(0); } private static final PTtlAction[] VALUES = values(); public static PTtlAction 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 PTtlAction(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:alluxio.proto.journal.PTtlAction) } public interface StringPairEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string key = 1; /** * <code>optional string key = 1;</code> */ boolean hasKey(); /** * <code>optional string key = 1;</code> */ java.lang.String getKey(); /** * <code>optional string key = 1;</code> */ com.google.protobuf.ByteString getKeyBytes(); // optional string value = 2; /** * <code>optional string value = 2;</code> */ boolean hasValue(); /** * <code>optional string value = 2;</code> */ java.lang.String getValue(); /** * <code>optional string value = 2;</code> */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code alluxio.proto.journal.StringPairEntry} * * <pre> * A pair of strings, useful for maps. * next available id: 3 * </pre> */ public static final class StringPairEntry extends com.google.protobuf.GeneratedMessage implements StringPairEntryOrBuilder { // Use StringPairEntry.newBuilder() to construct. private StringPairEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private StringPairEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final StringPairEntry defaultInstance; public static StringPairEntry getDefaultInstance() { return defaultInstance; } public StringPairEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StringPairEntry( 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 10: { bitField0_ |= 0x00000001; key_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; value_ = input.readBytes(); 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 alluxio.proto.journal.File.internal_static_alluxio_proto_journal_StringPairEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_StringPairEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.StringPairEntry.class, alluxio.proto.journal.File.StringPairEntry.Builder.class); } public static com.google.protobuf.Parser<StringPairEntry> PARSER = new com.google.protobuf.AbstractParser<StringPairEntry>() { public StringPairEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StringPairEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<StringPairEntry> getParserForType() { return PARSER; } private int bitField0_; // optional string key = 1; public static final int KEY_FIELD_NUMBER = 1; private java.lang.Object key_; /** * <code>optional string key = 1;</code> */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string key = 1;</code> */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } } /** * <code>optional string key = 1;</code> */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string value = 2; public static final int VALUE_FIELD_NUMBER = 2; private java.lang.Object value_; /** * <code>optional string value = 2;</code> */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string value = 2;</code> */ public java.lang.String getValue() { java.lang.Object ref = value_; 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()) { value_ = s; } return s; } } /** * <code>optional string value = 2;</code> */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { key_ = ""; value_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getValueBytes()); } 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 .computeBytesSize(1, getKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getValueBytes()); } 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(); } public static alluxio.proto.journal.File.StringPairEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.StringPairEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.StringPairEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.StringPairEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.StringPairEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.StringPairEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.StringPairEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static alluxio.proto.journal.File.StringPairEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.StringPairEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.StringPairEntry 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(alluxio.proto.journal.File.StringPairEntry 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 alluxio.proto.journal.StringPairEntry} * * <pre> * A pair of strings, useful for maps. * next available id: 3 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements alluxio.proto.journal.File.StringPairEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_StringPairEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_StringPairEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.StringPairEntry.class, alluxio.proto.journal.File.StringPairEntry.Builder.class); } // Construct using alluxio.proto.journal.File.StringPairEntry.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(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_StringPairEntry_descriptor; } public alluxio.proto.journal.File.StringPairEntry getDefaultInstanceForType() { return alluxio.proto.journal.File.StringPairEntry.getDefaultInstance(); } public alluxio.proto.journal.File.StringPairEntry build() { alluxio.proto.journal.File.StringPairEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public alluxio.proto.journal.File.StringPairEntry buildPartial() { alluxio.proto.journal.File.StringPairEntry result = new alluxio.proto.journal.File.StringPairEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.proto.journal.File.StringPairEntry) { return mergeFrom((alluxio.proto.journal.File.StringPairEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.proto.journal.File.StringPairEntry other) { if (other == alluxio.proto.journal.File.StringPairEntry.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.File.StringPairEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.File.StringPairEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string key = 1; private java.lang.Object key_ = ""; /** * <code>optional string key = 1;</code> */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string key = 1;</code> */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string key = 1;</code> */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string key = 1;</code> */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** * <code>optional string key = 1;</code> */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * <code>optional string key = 1;</code> */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } // optional string value = 2; private java.lang.Object value_ = ""; /** * <code>optional string value = 2;</code> */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string value = 2;</code> */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string value = 2;</code> */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string value = 2;</code> */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * <code>optional string value = 2;</code> */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * <code>optional string value = 2;</code> */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.StringPairEntry) } static { defaultInstance = new StringPairEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:alluxio.proto.journal.StringPairEntry) } public interface AddMountPointEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string alluxio_path = 1; /** * <code>optional string alluxio_path = 1;</code> */ boolean hasAlluxioPath(); /** * <code>optional string alluxio_path = 1;</code> */ java.lang.String getAlluxioPath(); /** * <code>optional string alluxio_path = 1;</code> */ com.google.protobuf.ByteString getAlluxioPathBytes(); // optional string ufs_path = 2; /** * <code>optional string ufs_path = 2;</code> */ boolean hasUfsPath(); /** * <code>optional string ufs_path = 2;</code> */ java.lang.String getUfsPath(); /** * <code>optional string ufs_path = 2;</code> */ com.google.protobuf.ByteString getUfsPathBytes(); // optional bool readOnly = 3; /** * <code>optional bool readOnly = 3;</code> */ boolean hasReadOnly(); /** * <code>optional bool readOnly = 3;</code> */ boolean getReadOnly(); // repeated .alluxio.proto.journal.StringPairEntry properties = 4; /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ java.util.List<alluxio.proto.journal.File.StringPairEntry> getPropertiesList(); /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ alluxio.proto.journal.File.StringPairEntry getProperties(int index); /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ int getPropertiesCount(); /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ java.util.List<? extends alluxio.proto.journal.File.StringPairEntryOrBuilder> getPropertiesOrBuilderList(); /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ alluxio.proto.journal.File.StringPairEntryOrBuilder getPropertiesOrBuilder( int index); // optional bool shared = 5; /** * <code>optional bool shared = 5;</code> */ boolean hasShared(); /** * <code>optional bool shared = 5;</code> */ boolean getShared(); // optional int64 mount_id = 6; /** * <code>optional int64 mount_id = 6;</code> */ boolean hasMountId(); /** * <code>optional int64 mount_id = 6;</code> */ long getMountId(); } /** * Protobuf type {@code alluxio.proto.journal.AddMountPointEntry} * * <pre> * next available id: 7 * </pre> */ public static final class AddMountPointEntry extends com.google.protobuf.GeneratedMessage implements AddMountPointEntryOrBuilder { // Use AddMountPointEntry.newBuilder() to construct. private AddMountPointEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AddMountPointEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AddMountPointEntry defaultInstance; public static AddMountPointEntry getDefaultInstance() { return defaultInstance; } public AddMountPointEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AddMountPointEntry( 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 10: { bitField0_ |= 0x00000001; alluxioPath_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; ufsPath_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; readOnly_ = input.readBool(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { properties_ = new java.util.ArrayList<alluxio.proto.journal.File.StringPairEntry>(); mutable_bitField0_ |= 0x00000008; } properties_.add(input.readMessage(alluxio.proto.journal.File.StringPairEntry.PARSER, extensionRegistry)); break; } case 40: { bitField0_ |= 0x00000008; shared_ = input.readBool(); break; } case 48: { bitField0_ |= 0x00000010; mountId_ = input.readInt64(); 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 { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { properties_ = java.util.Collections.unmodifiableList(properties_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_AddMountPointEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_AddMountPointEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.AddMountPointEntry.class, alluxio.proto.journal.File.AddMountPointEntry.Builder.class); } public static com.google.protobuf.Parser<AddMountPointEntry> PARSER = new com.google.protobuf.AbstractParser<AddMountPointEntry>() { public AddMountPointEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AddMountPointEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<AddMountPointEntry> getParserForType() { return PARSER; } private int bitField0_; // optional string alluxio_path = 1; public static final int ALLUXIO_PATH_FIELD_NUMBER = 1; private java.lang.Object alluxioPath_; /** * <code>optional string alluxio_path = 1;</code> */ public boolean hasAlluxioPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string alluxio_path = 1;</code> */ public java.lang.String getAlluxioPath() { java.lang.Object ref = alluxioPath_; 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()) { alluxioPath_ = s; } return s; } } /** * <code>optional string alluxio_path = 1;</code> */ public com.google.protobuf.ByteString getAlluxioPathBytes() { java.lang.Object ref = alluxioPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alluxioPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string ufs_path = 2; public static final int UFS_PATH_FIELD_NUMBER = 2; private java.lang.Object ufsPath_; /** * <code>optional string ufs_path = 2;</code> */ public boolean hasUfsPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string ufs_path = 2;</code> */ public java.lang.String getUfsPath() { java.lang.Object ref = ufsPath_; 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()) { ufsPath_ = s; } return s; } } /** * <code>optional string ufs_path = 2;</code> */ public com.google.protobuf.ByteString getUfsPathBytes() { java.lang.Object ref = ufsPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ufsPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bool readOnly = 3; public static final int READONLY_FIELD_NUMBER = 3; private boolean readOnly_; /** * <code>optional bool readOnly = 3;</code> */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool readOnly = 3;</code> */ public boolean getReadOnly() { return readOnly_; } // repeated .alluxio.proto.journal.StringPairEntry properties = 4; public static final int PROPERTIES_FIELD_NUMBER = 4; private java.util.List<alluxio.proto.journal.File.StringPairEntry> properties_; /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public java.util.List<alluxio.proto.journal.File.StringPairEntry> getPropertiesList() { return properties_; } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public java.util.List<? extends alluxio.proto.journal.File.StringPairEntryOrBuilder> getPropertiesOrBuilderList() { return properties_; } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public int getPropertiesCount() { return properties_.size(); } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public alluxio.proto.journal.File.StringPairEntry getProperties(int index) { return properties_.get(index); } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public alluxio.proto.journal.File.StringPairEntryOrBuilder getPropertiesOrBuilder( int index) { return properties_.get(index); } // optional bool shared = 5; public static final int SHARED_FIELD_NUMBER = 5; private boolean shared_; /** * <code>optional bool shared = 5;</code> */ public boolean hasShared() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bool shared = 5;</code> */ public boolean getShared() { return shared_; } // optional int64 mount_id = 6; public static final int MOUNT_ID_FIELD_NUMBER = 6; private long mountId_; /** * <code>optional int64 mount_id = 6;</code> */ public boolean hasMountId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional int64 mount_id = 6;</code> */ public long getMountId() { return mountId_; } private void initFields() { alluxioPath_ = ""; ufsPath_ = ""; readOnly_ = false; properties_ = java.util.Collections.emptyList(); shared_ = false; mountId_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getAlluxioPathBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getUfsPathBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, readOnly_); } for (int i = 0; i < properties_.size(); i++) { output.writeMessage(4, properties_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(5, shared_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt64(6, mountId_); } 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 .computeBytesSize(1, getAlluxioPathBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getUfsPathBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, readOnly_); } for (int i = 0; i < properties_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, properties_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, shared_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, mountId_); } 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(); } public static alluxio.proto.journal.File.AddMountPointEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.AddMountPointEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.AddMountPointEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.AddMountPointEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.AddMountPointEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.AddMountPointEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.AddMountPointEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static alluxio.proto.journal.File.AddMountPointEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.AddMountPointEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.AddMountPointEntry 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(alluxio.proto.journal.File.AddMountPointEntry 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 alluxio.proto.journal.AddMountPointEntry} * * <pre> * next available id: 7 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements alluxio.proto.journal.File.AddMountPointEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_AddMountPointEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_AddMountPointEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.AddMountPointEntry.class, alluxio.proto.journal.File.AddMountPointEntry.Builder.class); } // Construct using alluxio.proto.journal.File.AddMountPointEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPropertiesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); alluxioPath_ = ""; bitField0_ = (bitField0_ & ~0x00000001); ufsPath_ = ""; bitField0_ = (bitField0_ & ~0x00000002); readOnly_ = false; bitField0_ = (bitField0_ & ~0x00000004); if (propertiesBuilder_ == null) { properties_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { propertiesBuilder_.clear(); } shared_ = false; bitField0_ = (bitField0_ & ~0x00000010); mountId_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_AddMountPointEntry_descriptor; } public alluxio.proto.journal.File.AddMountPointEntry getDefaultInstanceForType() { return alluxio.proto.journal.File.AddMountPointEntry.getDefaultInstance(); } public alluxio.proto.journal.File.AddMountPointEntry build() { alluxio.proto.journal.File.AddMountPointEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public alluxio.proto.journal.File.AddMountPointEntry buildPartial() { alluxio.proto.journal.File.AddMountPointEntry result = new alluxio.proto.journal.File.AddMountPointEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.alluxioPath_ = alluxioPath_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.ufsPath_ = ufsPath_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.readOnly_ = readOnly_; if (propertiesBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { properties_ = java.util.Collections.unmodifiableList(properties_); bitField0_ = (bitField0_ & ~0x00000008); } result.properties_ = properties_; } else { result.properties_ = propertiesBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.shared_ = shared_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } result.mountId_ = mountId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.proto.journal.File.AddMountPointEntry) { return mergeFrom((alluxio.proto.journal.File.AddMountPointEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.proto.journal.File.AddMountPointEntry other) { if (other == alluxio.proto.journal.File.AddMountPointEntry.getDefaultInstance()) return this; if (other.hasAlluxioPath()) { bitField0_ |= 0x00000001; alluxioPath_ = other.alluxioPath_; onChanged(); } if (other.hasUfsPath()) { bitField0_ |= 0x00000002; ufsPath_ = other.ufsPath_; onChanged(); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (propertiesBuilder_ == null) { if (!other.properties_.isEmpty()) { if (properties_.isEmpty()) { properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePropertiesIsMutable(); properties_.addAll(other.properties_); } onChanged(); } } else { if (!other.properties_.isEmpty()) { if (propertiesBuilder_.isEmpty()) { propertiesBuilder_.dispose(); propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000008); propertiesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPropertiesFieldBuilder() : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } } } if (other.hasShared()) { setShared(other.getShared()); } if (other.hasMountId()) { setMountId(other.getMountId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.File.AddMountPointEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.File.AddMountPointEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string alluxio_path = 1; private java.lang.Object alluxioPath_ = ""; /** * <code>optional string alluxio_path = 1;</code> */ public boolean hasAlluxioPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string alluxio_path = 1;</code> */ public java.lang.String getAlluxioPath() { java.lang.Object ref = alluxioPath_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); alluxioPath_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string alluxio_path = 1;</code> */ public com.google.protobuf.ByteString getAlluxioPathBytes() { java.lang.Object ref = alluxioPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alluxioPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string alluxio_path = 1;</code> */ public Builder setAlluxioPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; alluxioPath_ = value; onChanged(); return this; } /** * <code>optional string alluxio_path = 1;</code> */ public Builder clearAlluxioPath() { bitField0_ = (bitField0_ & ~0x00000001); alluxioPath_ = getDefaultInstance().getAlluxioPath(); onChanged(); return this; } /** * <code>optional string alluxio_path = 1;</code> */ public Builder setAlluxioPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; alluxioPath_ = value; onChanged(); return this; } // optional string ufs_path = 2; private java.lang.Object ufsPath_ = ""; /** * <code>optional string ufs_path = 2;</code> */ public boolean hasUfsPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string ufs_path = 2;</code> */ public java.lang.String getUfsPath() { java.lang.Object ref = ufsPath_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); ufsPath_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string ufs_path = 2;</code> */ public com.google.protobuf.ByteString getUfsPathBytes() { java.lang.Object ref = ufsPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); ufsPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string ufs_path = 2;</code> */ public Builder setUfsPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; ufsPath_ = value; onChanged(); return this; } /** * <code>optional string ufs_path = 2;</code> */ public Builder clearUfsPath() { bitField0_ = (bitField0_ & ~0x00000002); ufsPath_ = getDefaultInstance().getUfsPath(); onChanged(); return this; } /** * <code>optional string ufs_path = 2;</code> */ public Builder setUfsPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; ufsPath_ = value; onChanged(); return this; } // optional bool readOnly = 3; private boolean readOnly_ ; /** * <code>optional bool readOnly = 3;</code> */ public boolean hasReadOnly() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool readOnly = 3;</code> */ public boolean getReadOnly() { return readOnly_; } /** * <code>optional bool readOnly = 3;</code> */ public Builder setReadOnly(boolean value) { bitField0_ |= 0x00000004; readOnly_ = value; onChanged(); return this; } /** * <code>optional bool readOnly = 3;</code> */ public Builder clearReadOnly() { bitField0_ = (bitField0_ & ~0x00000004); readOnly_ = false; onChanged(); return this; } // repeated .alluxio.proto.journal.StringPairEntry properties = 4; private java.util.List<alluxio.proto.journal.File.StringPairEntry> properties_ = java.util.Collections.emptyList(); private void ensurePropertiesIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { properties_ = new java.util.ArrayList<alluxio.proto.journal.File.StringPairEntry>(properties_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< alluxio.proto.journal.File.StringPairEntry, alluxio.proto.journal.File.StringPairEntry.Builder, alluxio.proto.journal.File.StringPairEntryOrBuilder> propertiesBuilder_; /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public java.util.List<alluxio.proto.journal.File.StringPairEntry> getPropertiesList() { if (propertiesBuilder_ == null) { return java.util.Collections.unmodifiableList(properties_); } else { return propertiesBuilder_.getMessageList(); } } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public int getPropertiesCount() { if (propertiesBuilder_ == null) { return properties_.size(); } else { return propertiesBuilder_.getCount(); } } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public alluxio.proto.journal.File.StringPairEntry getProperties(int index) { if (propertiesBuilder_ == null) { return properties_.get(index); } else { return propertiesBuilder_.getMessage(index); } } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public Builder setProperties( int index, alluxio.proto.journal.File.StringPairEntry value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertiesIsMutable(); properties_.set(index, value); onChanged(); } else { propertiesBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public Builder setProperties( int index, alluxio.proto.journal.File.StringPairEntry.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.set(index, builderForValue.build()); onChanged(); } else { propertiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public Builder addProperties(alluxio.proto.journal.File.StringPairEntry value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertiesIsMutable(); properties_.add(value); onChanged(); } else { propertiesBuilder_.addMessage(value); } return this; } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public Builder addProperties( int index, alluxio.proto.journal.File.StringPairEntry value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertiesIsMutable(); properties_.add(index, value); onChanged(); } else { propertiesBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public Builder addProperties( alluxio.proto.journal.File.StringPairEntry.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(builderForValue.build()); onChanged(); } else { propertiesBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public Builder addProperties( int index, alluxio.proto.journal.File.StringPairEntry.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(index, builderForValue.build()); onChanged(); } else { propertiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public Builder addAllProperties( java.lang.Iterable<? extends alluxio.proto.journal.File.StringPairEntry> values) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); super.addAll(values, properties_); onChanged(); } else { propertiesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public Builder clearProperties() { if (propertiesBuilder_ == null) { properties_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { propertiesBuilder_.clear(); } return this; } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public Builder removeProperties(int index) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.remove(index); onChanged(); } else { propertiesBuilder_.remove(index); } return this; } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public alluxio.proto.journal.File.StringPairEntry.Builder getPropertiesBuilder( int index) { return getPropertiesFieldBuilder().getBuilder(index); } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public alluxio.proto.journal.File.StringPairEntryOrBuilder getPropertiesOrBuilder( int index) { if (propertiesBuilder_ == null) { return properties_.get(index); } else { return propertiesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public java.util.List<? extends alluxio.proto.journal.File.StringPairEntryOrBuilder> getPropertiesOrBuilderList() { if (propertiesBuilder_ != null) { return propertiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(properties_); } } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public alluxio.proto.journal.File.StringPairEntry.Builder addPropertiesBuilder() { return getPropertiesFieldBuilder().addBuilder( alluxio.proto.journal.File.StringPairEntry.getDefaultInstance()); } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public alluxio.proto.journal.File.StringPairEntry.Builder addPropertiesBuilder( int index) { return getPropertiesFieldBuilder().addBuilder( index, alluxio.proto.journal.File.StringPairEntry.getDefaultInstance()); } /** * <code>repeated .alluxio.proto.journal.StringPairEntry properties = 4;</code> */ public java.util.List<alluxio.proto.journal.File.StringPairEntry.Builder> getPropertiesBuilderList() { return getPropertiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< alluxio.proto.journal.File.StringPairEntry, alluxio.proto.journal.File.StringPairEntry.Builder, alluxio.proto.journal.File.StringPairEntryOrBuilder> getPropertiesFieldBuilder() { if (propertiesBuilder_ == null) { propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< alluxio.proto.journal.File.StringPairEntry, alluxio.proto.journal.File.StringPairEntry.Builder, alluxio.proto.journal.File.StringPairEntryOrBuilder>( properties_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); properties_ = null; } return propertiesBuilder_; } // optional bool shared = 5; private boolean shared_ ; /** * <code>optional bool shared = 5;</code> */ public boolean hasShared() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bool shared = 5;</code> */ public boolean getShared() { return shared_; } /** * <code>optional bool shared = 5;</code> */ public Builder setShared(boolean value) { bitField0_ |= 0x00000010; shared_ = value; onChanged(); return this; } /** * <code>optional bool shared = 5;</code> */ public Builder clearShared() { bitField0_ = (bitField0_ & ~0x00000010); shared_ = false; onChanged(); return this; } // optional int64 mount_id = 6; private long mountId_ ; /** * <code>optional int64 mount_id = 6;</code> */ public boolean hasMountId() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional int64 mount_id = 6;</code> */ public long getMountId() { return mountId_; } /** * <code>optional int64 mount_id = 6;</code> */ public Builder setMountId(long value) { bitField0_ |= 0x00000020; mountId_ = value; onChanged(); return this; } /** * <code>optional int64 mount_id = 6;</code> */ public Builder clearMountId() { bitField0_ = (bitField0_ & ~0x00000020); mountId_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.AddMountPointEntry) } static { defaultInstance = new AddMountPointEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:alluxio.proto.journal.AddMountPointEntry) } public interface AsyncPersistRequestEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 file_id = 1; /** * <code>optional int64 file_id = 1;</code> */ boolean hasFileId(); /** * <code>optional int64 file_id = 1;</code> */ long getFileId(); } /** * Protobuf type {@code alluxio.proto.journal.AsyncPersistRequestEntry} * * <pre> * next available id: 2 * </pre> */ public static final class AsyncPersistRequestEntry extends com.google.protobuf.GeneratedMessage implements AsyncPersistRequestEntryOrBuilder { // Use AsyncPersistRequestEntry.newBuilder() to construct. private AsyncPersistRequestEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private AsyncPersistRequestEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final AsyncPersistRequestEntry defaultInstance; public static AsyncPersistRequestEntry getDefaultInstance() { return defaultInstance; } public AsyncPersistRequestEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AsyncPersistRequestEntry( 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; fileId_ = input.readInt64(); 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 alluxio.proto.journal.File.internal_static_alluxio_proto_journal_AsyncPersistRequestEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_AsyncPersistRequestEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.AsyncPersistRequestEntry.class, alluxio.proto.journal.File.AsyncPersistRequestEntry.Builder.class); } public static com.google.protobuf.Parser<AsyncPersistRequestEntry> PARSER = new com.google.protobuf.AbstractParser<AsyncPersistRequestEntry>() { public AsyncPersistRequestEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AsyncPersistRequestEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<AsyncPersistRequestEntry> getParserForType() { return PARSER; } private int bitField0_; // optional int64 file_id = 1; public static final int FILE_ID_FIELD_NUMBER = 1; private long fileId_; /** * <code>optional int64 file_id = 1;</code> */ public boolean hasFileId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 file_id = 1;</code> */ public long getFileId() { return fileId_; } private void initFields() { fileId_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, fileId_); } 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 .computeInt64Size(1, fileId_); } 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(); } public static alluxio.proto.journal.File.AsyncPersistRequestEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.AsyncPersistRequestEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.AsyncPersistRequestEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.AsyncPersistRequestEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.AsyncPersistRequestEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.AsyncPersistRequestEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.AsyncPersistRequestEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static alluxio.proto.journal.File.AsyncPersistRequestEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.AsyncPersistRequestEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.AsyncPersistRequestEntry 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(alluxio.proto.journal.File.AsyncPersistRequestEntry 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 alluxio.proto.journal.AsyncPersistRequestEntry} * * <pre> * next available id: 2 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements alluxio.proto.journal.File.AsyncPersistRequestEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_AsyncPersistRequestEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_AsyncPersistRequestEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.AsyncPersistRequestEntry.class, alluxio.proto.journal.File.AsyncPersistRequestEntry.Builder.class); } // Construct using alluxio.proto.journal.File.AsyncPersistRequestEntry.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(); fileId_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_AsyncPersistRequestEntry_descriptor; } public alluxio.proto.journal.File.AsyncPersistRequestEntry getDefaultInstanceForType() { return alluxio.proto.journal.File.AsyncPersistRequestEntry.getDefaultInstance(); } public alluxio.proto.journal.File.AsyncPersistRequestEntry build() { alluxio.proto.journal.File.AsyncPersistRequestEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public alluxio.proto.journal.File.AsyncPersistRequestEntry buildPartial() { alluxio.proto.journal.File.AsyncPersistRequestEntry result = new alluxio.proto.journal.File.AsyncPersistRequestEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.fileId_ = fileId_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.proto.journal.File.AsyncPersistRequestEntry) { return mergeFrom((alluxio.proto.journal.File.AsyncPersistRequestEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.proto.journal.File.AsyncPersistRequestEntry other) { if (other == alluxio.proto.journal.File.AsyncPersistRequestEntry.getDefaultInstance()) return this; if (other.hasFileId()) { setFileId(other.getFileId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.File.AsyncPersistRequestEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.File.AsyncPersistRequestEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 file_id = 1; private long fileId_ ; /** * <code>optional int64 file_id = 1;</code> */ public boolean hasFileId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 file_id = 1;</code> */ public long getFileId() { return fileId_; } /** * <code>optional int64 file_id = 1;</code> */ public Builder setFileId(long value) { bitField0_ |= 0x00000001; fileId_ = value; onChanged(); return this; } /** * <code>optional int64 file_id = 1;</code> */ public Builder clearFileId() { bitField0_ = (bitField0_ & ~0x00000001); fileId_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.AsyncPersistRequestEntry) } static { defaultInstance = new AsyncPersistRequestEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:alluxio.proto.journal.AsyncPersistRequestEntry) } public interface CompleteFileEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated int64 block_ids = 1; /** * <code>repeated int64 block_ids = 1;</code> */ java.util.List<java.lang.Long> getBlockIdsList(); /** * <code>repeated int64 block_ids = 1;</code> */ int getBlockIdsCount(); /** * <code>repeated int64 block_ids = 1;</code> */ long getBlockIds(int index); // optional int64 id = 2; /** * <code>optional int64 id = 2;</code> */ boolean hasId(); /** * <code>optional int64 id = 2;</code> */ long getId(); // optional int64 length = 3; /** * <code>optional int64 length = 3;</code> */ boolean hasLength(); /** * <code>optional int64 length = 3;</code> */ long getLength(); // optional int64 op_time_ms = 4; /** * <code>optional int64 op_time_ms = 4;</code> */ boolean hasOpTimeMs(); /** * <code>optional int64 op_time_ms = 4;</code> */ long getOpTimeMs(); } /** * Protobuf type {@code alluxio.proto.journal.CompleteFileEntry} * * <pre> * next available id: 5 * </pre> */ public static final class CompleteFileEntry extends com.google.protobuf.GeneratedMessage implements CompleteFileEntryOrBuilder { // Use CompleteFileEntry.newBuilder() to construct. private CompleteFileEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CompleteFileEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CompleteFileEntry defaultInstance; public static CompleteFileEntry getDefaultInstance() { return defaultInstance; } public CompleteFileEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CompleteFileEntry( 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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { blockIds_ = new java.util.ArrayList<java.lang.Long>(); mutable_bitField0_ |= 0x00000001; } blockIds_.add(input.readInt64()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { blockIds_ = new java.util.ArrayList<java.lang.Long>(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { blockIds_.add(input.readInt64()); } input.popLimit(limit); break; } case 16: { bitField0_ |= 0x00000001; id_ = input.readInt64(); break; } case 24: { bitField0_ |= 0x00000002; length_ = input.readInt64(); break; } case 32: { bitField0_ |= 0x00000004; opTimeMs_ = input.readInt64(); 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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { blockIds_ = java.util.Collections.unmodifiableList(blockIds_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_CompleteFileEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_CompleteFileEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.CompleteFileEntry.class, alluxio.proto.journal.File.CompleteFileEntry.Builder.class); } public static com.google.protobuf.Parser<CompleteFileEntry> PARSER = new com.google.protobuf.AbstractParser<CompleteFileEntry>() { public CompleteFileEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CompleteFileEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<CompleteFileEntry> getParserForType() { return PARSER; } private int bitField0_; // repeated int64 block_ids = 1; public static final int BLOCK_IDS_FIELD_NUMBER = 1; private java.util.List<java.lang.Long> blockIds_; /** * <code>repeated int64 block_ids = 1;</code> */ public java.util.List<java.lang.Long> getBlockIdsList() { return blockIds_; } /** * <code>repeated int64 block_ids = 1;</code> */ public int getBlockIdsCount() { return blockIds_.size(); } /** * <code>repeated int64 block_ids = 1;</code> */ public long getBlockIds(int index) { return blockIds_.get(index); } // optional int64 id = 2; public static final int ID_FIELD_NUMBER = 2; private long id_; /** * <code>optional int64 id = 2;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 2;</code> */ public long getId() { return id_; } // optional int64 length = 3; public static final int LENGTH_FIELD_NUMBER = 3; private long length_; /** * <code>optional int64 length = 3;</code> */ public boolean hasLength() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 length = 3;</code> */ public long getLength() { return length_; } // optional int64 op_time_ms = 4; public static final int OP_TIME_MS_FIELD_NUMBER = 4; private long opTimeMs_; /** * <code>optional int64 op_time_ms = 4;</code> */ public boolean hasOpTimeMs() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int64 op_time_ms = 4;</code> */ public long getOpTimeMs() { return opTimeMs_; } private void initFields() { blockIds_ = java.util.Collections.emptyList(); id_ = 0L; length_ = 0L; opTimeMs_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < blockIds_.size(); i++) { output.writeInt64(1, blockIds_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(2, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(3, length_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(4, opTimeMs_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < blockIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(blockIds_.get(i)); } size += dataSize; size += 1 * getBlockIdsList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, length_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, opTimeMs_); } 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(); } public static alluxio.proto.journal.File.CompleteFileEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.CompleteFileEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.CompleteFileEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.CompleteFileEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.CompleteFileEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.CompleteFileEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.CompleteFileEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static alluxio.proto.journal.File.CompleteFileEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.CompleteFileEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.CompleteFileEntry 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(alluxio.proto.journal.File.CompleteFileEntry 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 alluxio.proto.journal.CompleteFileEntry} * * <pre> * next available id: 5 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements alluxio.proto.journal.File.CompleteFileEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_CompleteFileEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_CompleteFileEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.CompleteFileEntry.class, alluxio.proto.journal.File.CompleteFileEntry.Builder.class); } // Construct using alluxio.proto.journal.File.CompleteFileEntry.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(); blockIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); length_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); opTimeMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_CompleteFileEntry_descriptor; } public alluxio.proto.journal.File.CompleteFileEntry getDefaultInstanceForType() { return alluxio.proto.journal.File.CompleteFileEntry.getDefaultInstance(); } public alluxio.proto.journal.File.CompleteFileEntry build() { alluxio.proto.journal.File.CompleteFileEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public alluxio.proto.journal.File.CompleteFileEntry buildPartial() { alluxio.proto.journal.File.CompleteFileEntry result = new alluxio.proto.journal.File.CompleteFileEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { blockIds_ = java.util.Collections.unmodifiableList(blockIds_); bitField0_ = (bitField0_ & ~0x00000001); } result.blockIds_ = blockIds_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.length_ = length_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.opTimeMs_ = opTimeMs_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.proto.journal.File.CompleteFileEntry) { return mergeFrom((alluxio.proto.journal.File.CompleteFileEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.proto.journal.File.CompleteFileEntry other) { if (other == alluxio.proto.journal.File.CompleteFileEntry.getDefaultInstance()) return this; if (!other.blockIds_.isEmpty()) { if (blockIds_.isEmpty()) { blockIds_ = other.blockIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBlockIdsIsMutable(); blockIds_.addAll(other.blockIds_); } onChanged(); } if (other.hasId()) { setId(other.getId()); } if (other.hasLength()) { setLength(other.getLength()); } if (other.hasOpTimeMs()) { setOpTimeMs(other.getOpTimeMs()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.File.CompleteFileEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.File.CompleteFileEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated int64 block_ids = 1; private java.util.List<java.lang.Long> blockIds_ = java.util.Collections.emptyList(); private void ensureBlockIdsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { blockIds_ = new java.util.ArrayList<java.lang.Long>(blockIds_); bitField0_ |= 0x00000001; } } /** * <code>repeated int64 block_ids = 1;</code> */ public java.util.List<java.lang.Long> getBlockIdsList() { return java.util.Collections.unmodifiableList(blockIds_); } /** * <code>repeated int64 block_ids = 1;</code> */ public int getBlockIdsCount() { return blockIds_.size(); } /** * <code>repeated int64 block_ids = 1;</code> */ public long getBlockIds(int index) { return blockIds_.get(index); } /** * <code>repeated int64 block_ids = 1;</code> */ public Builder setBlockIds( int index, long value) { ensureBlockIdsIsMutable(); blockIds_.set(index, value); onChanged(); return this; } /** * <code>repeated int64 block_ids = 1;</code> */ public Builder addBlockIds(long value) { ensureBlockIdsIsMutable(); blockIds_.add(value); onChanged(); return this; } /** * <code>repeated int64 block_ids = 1;</code> */ public Builder addAllBlockIds( java.lang.Iterable<? extends java.lang.Long> values) { ensureBlockIdsIsMutable(); super.addAll(values, blockIds_); onChanged(); return this; } /** * <code>repeated int64 block_ids = 1;</code> */ public Builder clearBlockIds() { blockIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } // optional int64 id = 2; private long id_ ; /** * <code>optional int64 id = 2;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 id = 2;</code> */ public long getId() { return id_; } /** * <code>optional int64 id = 2;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000002; id_ = value; onChanged(); return this; } /** * <code>optional int64 id = 2;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000002); id_ = 0L; onChanged(); return this; } // optional int64 length = 3; private long length_ ; /** * <code>optional int64 length = 3;</code> */ public boolean hasLength() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int64 length = 3;</code> */ public long getLength() { return length_; } /** * <code>optional int64 length = 3;</code> */ public Builder setLength(long value) { bitField0_ |= 0x00000004; length_ = value; onChanged(); return this; } /** * <code>optional int64 length = 3;</code> */ public Builder clearLength() { bitField0_ = (bitField0_ & ~0x00000004); length_ = 0L; onChanged(); return this; } // optional int64 op_time_ms = 4; private long opTimeMs_ ; /** * <code>optional int64 op_time_ms = 4;</code> */ public boolean hasOpTimeMs() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int64 op_time_ms = 4;</code> */ public long getOpTimeMs() { return opTimeMs_; } /** * <code>optional int64 op_time_ms = 4;</code> */ public Builder setOpTimeMs(long value) { bitField0_ |= 0x00000008; opTimeMs_ = value; onChanged(); return this; } /** * <code>optional int64 op_time_ms = 4;</code> */ public Builder clearOpTimeMs() { bitField0_ = (bitField0_ & ~0x00000008); opTimeMs_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.CompleteFileEntry) } static { defaultInstance = new CompleteFileEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:alluxio.proto.journal.CompleteFileEntry) } public interface DeleteFileEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 id = 1; /** * <code>optional int64 id = 1;</code> */ boolean hasId(); /** * <code>optional int64 id = 1;</code> */ long getId(); // optional bool recursive = 2; /** * <code>optional bool recursive = 2;</code> */ boolean hasRecursive(); /** * <code>optional bool recursive = 2;</code> */ boolean getRecursive(); // optional int64 op_time_ms = 3; /** * <code>optional int64 op_time_ms = 3;</code> */ boolean hasOpTimeMs(); /** * <code>optional int64 op_time_ms = 3;</code> */ long getOpTimeMs(); // optional bool alluxioOnly = 4; /** * <code>optional bool alluxioOnly = 4;</code> */ boolean hasAlluxioOnly(); /** * <code>optional bool alluxioOnly = 4;</code> */ boolean getAlluxioOnly(); } /** * Protobuf type {@code alluxio.proto.journal.DeleteFileEntry} * * <pre> * next available id: 5 * </pre> */ public static final class DeleteFileEntry extends com.google.protobuf.GeneratedMessage implements DeleteFileEntryOrBuilder { // Use DeleteFileEntry.newBuilder() to construct. private DeleteFileEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private DeleteFileEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final DeleteFileEntry defaultInstance; public static DeleteFileEntry getDefaultInstance() { return defaultInstance; } public DeleteFileEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteFileEntry( 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; id_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; recursive_ = input.readBool(); break; } case 24: { bitField0_ |= 0x00000004; opTimeMs_ = input.readInt64(); break; } case 32: { bitField0_ |= 0x00000008; alluxioOnly_ = input.readBool(); 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 alluxio.proto.journal.File.internal_static_alluxio_proto_journal_DeleteFileEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_DeleteFileEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.DeleteFileEntry.class, alluxio.proto.journal.File.DeleteFileEntry.Builder.class); } public static com.google.protobuf.Parser<DeleteFileEntry> PARSER = new com.google.protobuf.AbstractParser<DeleteFileEntry>() { public DeleteFileEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteFileEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<DeleteFileEntry> getParserForType() { return PARSER; } private int bitField0_; // optional int64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } // optional bool recursive = 2; public static final int RECURSIVE_FIELD_NUMBER = 2; private boolean recursive_; /** * <code>optional bool recursive = 2;</code> */ public boolean hasRecursive() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool recursive = 2;</code> */ public boolean getRecursive() { return recursive_; } // optional int64 op_time_ms = 3; public static final int OP_TIME_MS_FIELD_NUMBER = 3; private long opTimeMs_; /** * <code>optional int64 op_time_ms = 3;</code> */ public boolean hasOpTimeMs() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int64 op_time_ms = 3;</code> */ public long getOpTimeMs() { return opTimeMs_; } // optional bool alluxioOnly = 4; public static final int ALLUXIOONLY_FIELD_NUMBER = 4; private boolean alluxioOnly_; /** * <code>optional bool alluxioOnly = 4;</code> */ public boolean hasAlluxioOnly() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bool alluxioOnly = 4;</code> */ public boolean getAlluxioOnly() { return alluxioOnly_; } private void initFields() { id_ = 0L; recursive_ = false; opTimeMs_ = 0L; alluxioOnly_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, recursive_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, opTimeMs_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(4, alluxioOnly_); } 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 .computeInt64Size(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, recursive_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, opTimeMs_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, alluxioOnly_); } 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(); } public static alluxio.proto.journal.File.DeleteFileEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.DeleteFileEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.DeleteFileEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.DeleteFileEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.DeleteFileEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.DeleteFileEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.DeleteFileEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static alluxio.proto.journal.File.DeleteFileEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.DeleteFileEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.DeleteFileEntry 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(alluxio.proto.journal.File.DeleteFileEntry 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 alluxio.proto.journal.DeleteFileEntry} * * <pre> * next available id: 5 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements alluxio.proto.journal.File.DeleteFileEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_DeleteFileEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_DeleteFileEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.DeleteFileEntry.class, alluxio.proto.journal.File.DeleteFileEntry.Builder.class); } // Construct using alluxio.proto.journal.File.DeleteFileEntry.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(); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); recursive_ = false; bitField0_ = (bitField0_ & ~0x00000002); opTimeMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); alluxioOnly_ = false; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_DeleteFileEntry_descriptor; } public alluxio.proto.journal.File.DeleteFileEntry getDefaultInstanceForType() { return alluxio.proto.journal.File.DeleteFileEntry.getDefaultInstance(); } public alluxio.proto.journal.File.DeleteFileEntry build() { alluxio.proto.journal.File.DeleteFileEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public alluxio.proto.journal.File.DeleteFileEntry buildPartial() { alluxio.proto.journal.File.DeleteFileEntry result = new alluxio.proto.journal.File.DeleteFileEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.recursive_ = recursive_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.opTimeMs_ = opTimeMs_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.alluxioOnly_ = alluxioOnly_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.proto.journal.File.DeleteFileEntry) { return mergeFrom((alluxio.proto.journal.File.DeleteFileEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.proto.journal.File.DeleteFileEntry other) { if (other == alluxio.proto.journal.File.DeleteFileEntry.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasRecursive()) { setRecursive(other.getRecursive()); } if (other.hasOpTimeMs()) { setOpTimeMs(other.getOpTimeMs()); } if (other.hasAlluxioOnly()) { setAlluxioOnly(other.getAlluxioOnly()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.File.DeleteFileEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.File.DeleteFileEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 id = 1; private long id_ ; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } /** * <code>optional int64 id = 1;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * <code>optional int64 id = 1;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // optional bool recursive = 2; private boolean recursive_ ; /** * <code>optional bool recursive = 2;</code> */ public boolean hasRecursive() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool recursive = 2;</code> */ public boolean getRecursive() { return recursive_; } /** * <code>optional bool recursive = 2;</code> */ public Builder setRecursive(boolean value) { bitField0_ |= 0x00000002; recursive_ = value; onChanged(); return this; } /** * <code>optional bool recursive = 2;</code> */ public Builder clearRecursive() { bitField0_ = (bitField0_ & ~0x00000002); recursive_ = false; onChanged(); return this; } // optional int64 op_time_ms = 3; private long opTimeMs_ ; /** * <code>optional int64 op_time_ms = 3;</code> */ public boolean hasOpTimeMs() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int64 op_time_ms = 3;</code> */ public long getOpTimeMs() { return opTimeMs_; } /** * <code>optional int64 op_time_ms = 3;</code> */ public Builder setOpTimeMs(long value) { bitField0_ |= 0x00000004; opTimeMs_ = value; onChanged(); return this; } /** * <code>optional int64 op_time_ms = 3;</code> */ public Builder clearOpTimeMs() { bitField0_ = (bitField0_ & ~0x00000004); opTimeMs_ = 0L; onChanged(); return this; } // optional bool alluxioOnly = 4; private boolean alluxioOnly_ ; /** * <code>optional bool alluxioOnly = 4;</code> */ public boolean hasAlluxioOnly() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bool alluxioOnly = 4;</code> */ public boolean getAlluxioOnly() { return alluxioOnly_; } /** * <code>optional bool alluxioOnly = 4;</code> */ public Builder setAlluxioOnly(boolean value) { bitField0_ |= 0x00000008; alluxioOnly_ = value; onChanged(); return this; } /** * <code>optional bool alluxioOnly = 4;</code> */ public Builder clearAlluxioOnly() { bitField0_ = (bitField0_ & ~0x00000008); alluxioOnly_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.DeleteFileEntry) } static { defaultInstance = new DeleteFileEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:alluxio.proto.journal.DeleteFileEntry) } public interface DeleteMountPointEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string alluxio_path = 1; /** * <code>optional string alluxio_path = 1;</code> */ boolean hasAlluxioPath(); /** * <code>optional string alluxio_path = 1;</code> */ java.lang.String getAlluxioPath(); /** * <code>optional string alluxio_path = 1;</code> */ com.google.protobuf.ByteString getAlluxioPathBytes(); } /** * Protobuf type {@code alluxio.proto.journal.DeleteMountPointEntry} * * <pre> * next available id: 2 * </pre> */ public static final class DeleteMountPointEntry extends com.google.protobuf.GeneratedMessage implements DeleteMountPointEntryOrBuilder { // Use DeleteMountPointEntry.newBuilder() to construct. private DeleteMountPointEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private DeleteMountPointEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final DeleteMountPointEntry defaultInstance; public static DeleteMountPointEntry getDefaultInstance() { return defaultInstance; } public DeleteMountPointEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteMountPointEntry( 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 10: { bitField0_ |= 0x00000001; alluxioPath_ = input.readBytes(); 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 alluxio.proto.journal.File.internal_static_alluxio_proto_journal_DeleteMountPointEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_DeleteMountPointEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.DeleteMountPointEntry.class, alluxio.proto.journal.File.DeleteMountPointEntry.Builder.class); } public static com.google.protobuf.Parser<DeleteMountPointEntry> PARSER = new com.google.protobuf.AbstractParser<DeleteMountPointEntry>() { public DeleteMountPointEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteMountPointEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<DeleteMountPointEntry> getParserForType() { return PARSER; } private int bitField0_; // optional string alluxio_path = 1; public static final int ALLUXIO_PATH_FIELD_NUMBER = 1; private java.lang.Object alluxioPath_; /** * <code>optional string alluxio_path = 1;</code> */ public boolean hasAlluxioPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string alluxio_path = 1;</code> */ public java.lang.String getAlluxioPath() { java.lang.Object ref = alluxioPath_; 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()) { alluxioPath_ = s; } return s; } } /** * <code>optional string alluxio_path = 1;</code> */ public com.google.protobuf.ByteString getAlluxioPathBytes() { java.lang.Object ref = alluxioPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alluxioPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { alluxioPath_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getAlluxioPathBytes()); } 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 .computeBytesSize(1, getAlluxioPathBytes()); } 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(); } public static alluxio.proto.journal.File.DeleteMountPointEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.DeleteMountPointEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.DeleteMountPointEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.DeleteMountPointEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.DeleteMountPointEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.DeleteMountPointEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.DeleteMountPointEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static alluxio.proto.journal.File.DeleteMountPointEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.DeleteMountPointEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.DeleteMountPointEntry 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(alluxio.proto.journal.File.DeleteMountPointEntry 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 alluxio.proto.journal.DeleteMountPointEntry} * * <pre> * next available id: 2 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements alluxio.proto.journal.File.DeleteMountPointEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_DeleteMountPointEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_DeleteMountPointEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.DeleteMountPointEntry.class, alluxio.proto.journal.File.DeleteMountPointEntry.Builder.class); } // Construct using alluxio.proto.journal.File.DeleteMountPointEntry.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(); alluxioPath_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_DeleteMountPointEntry_descriptor; } public alluxio.proto.journal.File.DeleteMountPointEntry getDefaultInstanceForType() { return alluxio.proto.journal.File.DeleteMountPointEntry.getDefaultInstance(); } public alluxio.proto.journal.File.DeleteMountPointEntry build() { alluxio.proto.journal.File.DeleteMountPointEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public alluxio.proto.journal.File.DeleteMountPointEntry buildPartial() { alluxio.proto.journal.File.DeleteMountPointEntry result = new alluxio.proto.journal.File.DeleteMountPointEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.alluxioPath_ = alluxioPath_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.proto.journal.File.DeleteMountPointEntry) { return mergeFrom((alluxio.proto.journal.File.DeleteMountPointEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.proto.journal.File.DeleteMountPointEntry other) { if (other == alluxio.proto.journal.File.DeleteMountPointEntry.getDefaultInstance()) return this; if (other.hasAlluxioPath()) { bitField0_ |= 0x00000001; alluxioPath_ = other.alluxioPath_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.File.DeleteMountPointEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.File.DeleteMountPointEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string alluxio_path = 1; private java.lang.Object alluxioPath_ = ""; /** * <code>optional string alluxio_path = 1;</code> */ public boolean hasAlluxioPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string alluxio_path = 1;</code> */ public java.lang.String getAlluxioPath() { java.lang.Object ref = alluxioPath_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); alluxioPath_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string alluxio_path = 1;</code> */ public com.google.protobuf.ByteString getAlluxioPathBytes() { java.lang.Object ref = alluxioPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); alluxioPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string alluxio_path = 1;</code> */ public Builder setAlluxioPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; alluxioPath_ = value; onChanged(); return this; } /** * <code>optional string alluxio_path = 1;</code> */ public Builder clearAlluxioPath() { bitField0_ = (bitField0_ & ~0x00000001); alluxioPath_ = getDefaultInstance().getAlluxioPath(); onChanged(); return this; } /** * <code>optional string alluxio_path = 1;</code> */ public Builder setAlluxioPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; alluxioPath_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.DeleteMountPointEntry) } static { defaultInstance = new DeleteMountPointEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:alluxio.proto.journal.DeleteMountPointEntry) } public interface InodeDirectoryEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 id = 1; /** * <code>optional int64 id = 1;</code> */ boolean hasId(); /** * <code>optional int64 id = 1;</code> */ long getId(); // optional int64 parent_id = 2; /** * <code>optional int64 parent_id = 2;</code> */ boolean hasParentId(); /** * <code>optional int64 parent_id = 2;</code> */ long getParentId(); // optional string name = 3; /** * <code>optional string name = 3;</code> */ boolean hasName(); /** * <code>optional string name = 3;</code> */ java.lang.String getName(); /** * <code>optional string name = 3;</code> */ com.google.protobuf.ByteString getNameBytes(); // optional string persistence_state = 4; /** * <code>optional string persistence_state = 4;</code> */ boolean hasPersistenceState(); /** * <code>optional string persistence_state = 4;</code> */ java.lang.String getPersistenceState(); /** * <code>optional string persistence_state = 4;</code> */ com.google.protobuf.ByteString getPersistenceStateBytes(); // optional bool pinned = 5; /** * <code>optional bool pinned = 5;</code> */ boolean hasPinned(); /** * <code>optional bool pinned = 5;</code> */ boolean getPinned(); // optional int64 creation_time_ms = 6; /** * <code>optional int64 creation_time_ms = 6;</code> */ boolean hasCreationTimeMs(); /** * <code>optional int64 creation_time_ms = 6;</code> */ long getCreationTimeMs(); // optional int64 last_modification_time_ms = 7; /** * <code>optional int64 last_modification_time_ms = 7;</code> */ boolean hasLastModificationTimeMs(); /** * <code>optional int64 last_modification_time_ms = 7;</code> */ long getLastModificationTimeMs(); // optional string owner = 8; /** * <code>optional string owner = 8;</code> */ boolean hasOwner(); /** * <code>optional string owner = 8;</code> */ java.lang.String getOwner(); /** * <code>optional string owner = 8;</code> */ com.google.protobuf.ByteString getOwnerBytes(); // optional string group = 9; /** * <code>optional string group = 9;</code> */ boolean hasGroup(); /** * <code>optional string group = 9;</code> */ java.lang.String getGroup(); /** * <code>optional string group = 9;</code> */ com.google.protobuf.ByteString getGroupBytes(); // optional int32 mode = 10; /** * <code>optional int32 mode = 10;</code> */ boolean hasMode(); /** * <code>optional int32 mode = 10;</code> */ int getMode(); // optional bool mount_point = 11; /** * <code>optional bool mount_point = 11;</code> */ boolean hasMountPoint(); /** * <code>optional bool mount_point = 11;</code> */ boolean getMountPoint(); // optional bool direct_children_loaded = 12; /** * <code>optional bool direct_children_loaded = 12;</code> */ boolean hasDirectChildrenLoaded(); /** * <code>optional bool direct_children_loaded = 12;</code> */ boolean getDirectChildrenLoaded(); // optional int64 ttl = 13; /** * <code>optional int64 ttl = 13;</code> */ boolean hasTtl(); /** * <code>optional int64 ttl = 13;</code> */ long getTtl(); // optional .alluxio.proto.journal.PTtlAction ttlAction = 14 [default = DELETE]; /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 14 [default = DELETE];</code> */ boolean hasTtlAction(); /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 14 [default = DELETE];</code> */ alluxio.proto.journal.File.PTtlAction getTtlAction(); } /** * Protobuf type {@code alluxio.proto.journal.InodeDirectoryEntry} * * <pre> * next available id: 15 * </pre> */ public static final class InodeDirectoryEntry extends com.google.protobuf.GeneratedMessage implements InodeDirectoryEntryOrBuilder { // Use InodeDirectoryEntry.newBuilder() to construct. private InodeDirectoryEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private InodeDirectoryEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final InodeDirectoryEntry defaultInstance; public static InodeDirectoryEntry getDefaultInstance() { return defaultInstance; } public InodeDirectoryEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InodeDirectoryEntry( 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; id_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; parentId_ = input.readInt64(); break; } case 26: { bitField0_ |= 0x00000004; name_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; persistenceState_ = input.readBytes(); break; } case 40: { bitField0_ |= 0x00000010; pinned_ = input.readBool(); break; } case 48: { bitField0_ |= 0x00000020; creationTimeMs_ = input.readInt64(); break; } case 56: { bitField0_ |= 0x00000040; lastModificationTimeMs_ = input.readInt64(); break; } case 66: { bitField0_ |= 0x00000080; owner_ = input.readBytes(); break; } case 74: { bitField0_ |= 0x00000100; group_ = input.readBytes(); break; } case 80: { bitField0_ |= 0x00000200; mode_ = input.readInt32(); break; } case 88: { bitField0_ |= 0x00000400; mountPoint_ = input.readBool(); break; } case 96: { bitField0_ |= 0x00000800; directChildrenLoaded_ = input.readBool(); break; } case 104: { bitField0_ |= 0x00001000; ttl_ = input.readInt64(); break; } case 112: { int rawValue = input.readEnum(); alluxio.proto.journal.File.PTtlAction value = alluxio.proto.journal.File.PTtlAction.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(14, rawValue); } else { bitField0_ |= 0x00002000; ttlAction_ = value; } 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 alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeDirectoryEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeDirectoryEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.InodeDirectoryEntry.class, alluxio.proto.journal.File.InodeDirectoryEntry.Builder.class); } public static com.google.protobuf.Parser<InodeDirectoryEntry> PARSER = new com.google.protobuf.AbstractParser<InodeDirectoryEntry>() { public InodeDirectoryEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InodeDirectoryEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<InodeDirectoryEntry> getParserForType() { return PARSER; } private int bitField0_; // optional int64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } // optional int64 parent_id = 2; public static final int PARENT_ID_FIELD_NUMBER = 2; private long parentId_; /** * <code>optional int64 parent_id = 2;</code> */ public boolean hasParentId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 parent_id = 2;</code> */ public long getParentId() { return parentId_; } // optional string name = 3; public static final int NAME_FIELD_NUMBER = 3; private java.lang.Object name_; /** * <code>optional string name = 3;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string name = 3;</code> */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * <code>optional string name = 3;</code> */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string persistence_state = 4; public static final int PERSISTENCE_STATE_FIELD_NUMBER = 4; private java.lang.Object persistenceState_; /** * <code>optional string persistence_state = 4;</code> */ public boolean hasPersistenceState() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string persistence_state = 4;</code> */ public java.lang.String getPersistenceState() { java.lang.Object ref = persistenceState_; 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()) { persistenceState_ = s; } return s; } } /** * <code>optional string persistence_state = 4;</code> */ public com.google.protobuf.ByteString getPersistenceStateBytes() { java.lang.Object ref = persistenceState_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); persistenceState_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bool pinned = 5; public static final int PINNED_FIELD_NUMBER = 5; private boolean pinned_; /** * <code>optional bool pinned = 5;</code> */ public boolean hasPinned() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bool pinned = 5;</code> */ public boolean getPinned() { return pinned_; } // optional int64 creation_time_ms = 6; public static final int CREATION_TIME_MS_FIELD_NUMBER = 6; private long creationTimeMs_; /** * <code>optional int64 creation_time_ms = 6;</code> */ public boolean hasCreationTimeMs() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional int64 creation_time_ms = 6;</code> */ public long getCreationTimeMs() { return creationTimeMs_; } // optional int64 last_modification_time_ms = 7; public static final int LAST_MODIFICATION_TIME_MS_FIELD_NUMBER = 7; private long lastModificationTimeMs_; /** * <code>optional int64 last_modification_time_ms = 7;</code> */ public boolean hasLastModificationTimeMs() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional int64 last_modification_time_ms = 7;</code> */ public long getLastModificationTimeMs() { return lastModificationTimeMs_; } // optional string owner = 8; public static final int OWNER_FIELD_NUMBER = 8; private java.lang.Object owner_; /** * <code>optional string owner = 8;</code> */ public boolean hasOwner() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional string owner = 8;</code> */ 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; } } /** * <code>optional string owner = 8;</code> */ 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 = 9; public static final int GROUP_FIELD_NUMBER = 9; private java.lang.Object group_; /** * <code>optional string group = 9;</code> */ public boolean hasGroup() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional string group = 9;</code> */ 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; } } /** * <code>optional string group = 9;</code> */ 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 int32 mode = 10; public static final int MODE_FIELD_NUMBER = 10; private int mode_; /** * <code>optional int32 mode = 10;</code> */ public boolean hasMode() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional int32 mode = 10;</code> */ public int getMode() { return mode_; } // optional bool mount_point = 11; public static final int MOUNT_POINT_FIELD_NUMBER = 11; private boolean mountPoint_; /** * <code>optional bool mount_point = 11;</code> */ public boolean hasMountPoint() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional bool mount_point = 11;</code> */ public boolean getMountPoint() { return mountPoint_; } // optional bool direct_children_loaded = 12; public static final int DIRECT_CHILDREN_LOADED_FIELD_NUMBER = 12; private boolean directChildrenLoaded_; /** * <code>optional bool direct_children_loaded = 12;</code> */ public boolean hasDirectChildrenLoaded() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional bool direct_children_loaded = 12;</code> */ public boolean getDirectChildrenLoaded() { return directChildrenLoaded_; } // optional int64 ttl = 13; public static final int TTL_FIELD_NUMBER = 13; private long ttl_; /** * <code>optional int64 ttl = 13;</code> */ public boolean hasTtl() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional int64 ttl = 13;</code> */ public long getTtl() { return ttl_; } // optional .alluxio.proto.journal.PTtlAction ttlAction = 14 [default = DELETE]; public static final int TTLACTION_FIELD_NUMBER = 14; private alluxio.proto.journal.File.PTtlAction ttlAction_; /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 14 [default = DELETE];</code> */ public boolean hasTtlAction() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 14 [default = DELETE];</code> */ public alluxio.proto.journal.File.PTtlAction getTtlAction() { return ttlAction_; } private void initFields() { id_ = 0L; parentId_ = 0L; name_ = ""; persistenceState_ = ""; pinned_ = false; creationTimeMs_ = 0L; lastModificationTimeMs_ = 0L; owner_ = ""; group_ = ""; mode_ = 0; mountPoint_ = false; directChildrenLoaded_ = false; ttl_ = 0L; ttlAction_ = alluxio.proto.journal.File.PTtlAction.DELETE; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, parentId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getPersistenceStateBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, pinned_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt64(6, creationTimeMs_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt64(7, lastModificationTimeMs_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(8, getOwnerBytes()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBytes(9, getGroupBytes()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeInt32(10, mode_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBool(11, mountPoint_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeBool(12, directChildrenLoaded_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeInt64(13, ttl_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeEnum(14, ttlAction_.getNumber()); } 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 .computeInt64Size(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, parentId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getPersistenceStateBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, pinned_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, creationTimeMs_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, lastModificationTimeMs_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, getOwnerBytes()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, getGroupBytes()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, mode_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, mountPoint_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, directChildrenLoaded_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(13, ttl_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(14, ttlAction_.getNumber()); } 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(); } public static alluxio.proto.journal.File.InodeDirectoryEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.InodeDirectoryEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.InodeDirectoryEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.InodeDirectoryEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.InodeDirectoryEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.InodeDirectoryEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.InodeDirectoryEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static alluxio.proto.journal.File.InodeDirectoryEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.InodeDirectoryEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.InodeDirectoryEntry 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(alluxio.proto.journal.File.InodeDirectoryEntry 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 alluxio.proto.journal.InodeDirectoryEntry} * * <pre> * next available id: 15 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements alluxio.proto.journal.File.InodeDirectoryEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeDirectoryEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeDirectoryEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.InodeDirectoryEntry.class, alluxio.proto.journal.File.InodeDirectoryEntry.Builder.class); } // Construct using alluxio.proto.journal.File.InodeDirectoryEntry.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(); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); parentId_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); name_ = ""; bitField0_ = (bitField0_ & ~0x00000004); persistenceState_ = ""; bitField0_ = (bitField0_ & ~0x00000008); pinned_ = false; bitField0_ = (bitField0_ & ~0x00000010); creationTimeMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); lastModificationTimeMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); owner_ = ""; bitField0_ = (bitField0_ & ~0x00000080); group_ = ""; bitField0_ = (bitField0_ & ~0x00000100); mode_ = 0; bitField0_ = (bitField0_ & ~0x00000200); mountPoint_ = false; bitField0_ = (bitField0_ & ~0x00000400); directChildrenLoaded_ = false; bitField0_ = (bitField0_ & ~0x00000800); ttl_ = 0L; bitField0_ = (bitField0_ & ~0x00001000); ttlAction_ = alluxio.proto.journal.File.PTtlAction.DELETE; bitField0_ = (bitField0_ & ~0x00002000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeDirectoryEntry_descriptor; } public alluxio.proto.journal.File.InodeDirectoryEntry getDefaultInstanceForType() { return alluxio.proto.journal.File.InodeDirectoryEntry.getDefaultInstance(); } public alluxio.proto.journal.File.InodeDirectoryEntry build() { alluxio.proto.journal.File.InodeDirectoryEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public alluxio.proto.journal.File.InodeDirectoryEntry buildPartial() { alluxio.proto.journal.File.InodeDirectoryEntry result = new alluxio.proto.journal.File.InodeDirectoryEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.parentId_ = parentId_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.name_ = name_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.persistenceState_ = persistenceState_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.pinned_ = pinned_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.creationTimeMs_ = creationTimeMs_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.lastModificationTimeMs_ = lastModificationTimeMs_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.owner_ = owner_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.group_ = group_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.mode_ = mode_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.mountPoint_ = mountPoint_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.directChildrenLoaded_ = directChildrenLoaded_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.ttl_ = ttl_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.ttlAction_ = ttlAction_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.proto.journal.File.InodeDirectoryEntry) { return mergeFrom((alluxio.proto.journal.File.InodeDirectoryEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.proto.journal.File.InodeDirectoryEntry other) { if (other == alluxio.proto.journal.File.InodeDirectoryEntry.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasParentId()) { setParentId(other.getParentId()); } if (other.hasName()) { bitField0_ |= 0x00000004; name_ = other.name_; onChanged(); } if (other.hasPersistenceState()) { bitField0_ |= 0x00000008; persistenceState_ = other.persistenceState_; onChanged(); } if (other.hasPinned()) { setPinned(other.getPinned()); } if (other.hasCreationTimeMs()) { setCreationTimeMs(other.getCreationTimeMs()); } if (other.hasLastModificationTimeMs()) { setLastModificationTimeMs(other.getLastModificationTimeMs()); } if (other.hasOwner()) { bitField0_ |= 0x00000080; owner_ = other.owner_; onChanged(); } if (other.hasGroup()) { bitField0_ |= 0x00000100; group_ = other.group_; onChanged(); } if (other.hasMode()) { setMode(other.getMode()); } if (other.hasMountPoint()) { setMountPoint(other.getMountPoint()); } if (other.hasDirectChildrenLoaded()) { setDirectChildrenLoaded(other.getDirectChildrenLoaded()); } if (other.hasTtl()) { setTtl(other.getTtl()); } if (other.hasTtlAction()) { setTtlAction(other.getTtlAction()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.File.InodeDirectoryEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.File.InodeDirectoryEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 id = 1; private long id_ ; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } /** * <code>optional int64 id = 1;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * <code>optional int64 id = 1;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // optional int64 parent_id = 2; private long parentId_ ; /** * <code>optional int64 parent_id = 2;</code> */ public boolean hasParentId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 parent_id = 2;</code> */ public long getParentId() { return parentId_; } /** * <code>optional int64 parent_id = 2;</code> */ public Builder setParentId(long value) { bitField0_ |= 0x00000002; parentId_ = value; onChanged(); return this; } /** * <code>optional int64 parent_id = 2;</code> */ public Builder clearParentId() { bitField0_ = (bitField0_ & ~0x00000002); parentId_ = 0L; onChanged(); return this; } // optional string name = 3; private java.lang.Object name_ = ""; /** * <code>optional string name = 3;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string name = 3;</code> */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string name = 3;</code> */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string name = 3;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; name_ = value; onChanged(); return this; } /** * <code>optional string name = 3;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000004); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>optional string name = 3;</code> */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; name_ = value; onChanged(); return this; } // optional string persistence_state = 4; private java.lang.Object persistenceState_ = ""; /** * <code>optional string persistence_state = 4;</code> */ public boolean hasPersistenceState() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string persistence_state = 4;</code> */ public java.lang.String getPersistenceState() { java.lang.Object ref = persistenceState_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); persistenceState_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string persistence_state = 4;</code> */ public com.google.protobuf.ByteString getPersistenceStateBytes() { java.lang.Object ref = persistenceState_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); persistenceState_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string persistence_state = 4;</code> */ public Builder setPersistenceState( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; persistenceState_ = value; onChanged(); return this; } /** * <code>optional string persistence_state = 4;</code> */ public Builder clearPersistenceState() { bitField0_ = (bitField0_ & ~0x00000008); persistenceState_ = getDefaultInstance().getPersistenceState(); onChanged(); return this; } /** * <code>optional string persistence_state = 4;</code> */ public Builder setPersistenceStateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; persistenceState_ = value; onChanged(); return this; } // optional bool pinned = 5; private boolean pinned_ ; /** * <code>optional bool pinned = 5;</code> */ public boolean hasPinned() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bool pinned = 5;</code> */ public boolean getPinned() { return pinned_; } /** * <code>optional bool pinned = 5;</code> */ public Builder setPinned(boolean value) { bitField0_ |= 0x00000010; pinned_ = value; onChanged(); return this; } /** * <code>optional bool pinned = 5;</code> */ public Builder clearPinned() { bitField0_ = (bitField0_ & ~0x00000010); pinned_ = false; onChanged(); return this; } // optional int64 creation_time_ms = 6; private long creationTimeMs_ ; /** * <code>optional int64 creation_time_ms = 6;</code> */ public boolean hasCreationTimeMs() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional int64 creation_time_ms = 6;</code> */ public long getCreationTimeMs() { return creationTimeMs_; } /** * <code>optional int64 creation_time_ms = 6;</code> */ public Builder setCreationTimeMs(long value) { bitField0_ |= 0x00000020; creationTimeMs_ = value; onChanged(); return this; } /** * <code>optional int64 creation_time_ms = 6;</code> */ public Builder clearCreationTimeMs() { bitField0_ = (bitField0_ & ~0x00000020); creationTimeMs_ = 0L; onChanged(); return this; } // optional int64 last_modification_time_ms = 7; private long lastModificationTimeMs_ ; /** * <code>optional int64 last_modification_time_ms = 7;</code> */ public boolean hasLastModificationTimeMs() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional int64 last_modification_time_ms = 7;</code> */ public long getLastModificationTimeMs() { return lastModificationTimeMs_; } /** * <code>optional int64 last_modification_time_ms = 7;</code> */ public Builder setLastModificationTimeMs(long value) { bitField0_ |= 0x00000040; lastModificationTimeMs_ = value; onChanged(); return this; } /** * <code>optional int64 last_modification_time_ms = 7;</code> */ public Builder clearLastModificationTimeMs() { bitField0_ = (bitField0_ & ~0x00000040); lastModificationTimeMs_ = 0L; onChanged(); return this; } // optional string owner = 8; private java.lang.Object owner_ = ""; /** * <code>optional string owner = 8;</code> */ public boolean hasOwner() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional string owner = 8;</code> */ 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; } } /** * <code>optional string owner = 8;</code> */ 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; } } /** * <code>optional string owner = 8;</code> */ public Builder setOwner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; owner_ = value; onChanged(); return this; } /** * <code>optional string owner = 8;</code> */ public Builder clearOwner() { bitField0_ = (bitField0_ & ~0x00000080); owner_ = getDefaultInstance().getOwner(); onChanged(); return this; } /** * <code>optional string owner = 8;</code> */ public Builder setOwnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; owner_ = value; onChanged(); return this; } // optional string group = 9; private java.lang.Object group_ = ""; /** * <code>optional string group = 9;</code> */ public boolean hasGroup() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional string group = 9;</code> */ 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; } } /** * <code>optional string group = 9;</code> */ 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; } } /** * <code>optional string group = 9;</code> */ public Builder setGroup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; group_ = value; onChanged(); return this; } /** * <code>optional string group = 9;</code> */ public Builder clearGroup() { bitField0_ = (bitField0_ & ~0x00000100); group_ = getDefaultInstance().getGroup(); onChanged(); return this; } /** * <code>optional string group = 9;</code> */ public Builder setGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; group_ = value; onChanged(); return this; } // optional int32 mode = 10; private int mode_ ; /** * <code>optional int32 mode = 10;</code> */ public boolean hasMode() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional int32 mode = 10;</code> */ public int getMode() { return mode_; } /** * <code>optional int32 mode = 10;</code> */ public Builder setMode(int value) { bitField0_ |= 0x00000200; mode_ = value; onChanged(); return this; } /** * <code>optional int32 mode = 10;</code> */ public Builder clearMode() { bitField0_ = (bitField0_ & ~0x00000200); mode_ = 0; onChanged(); return this; } // optional bool mount_point = 11; private boolean mountPoint_ ; /** * <code>optional bool mount_point = 11;</code> */ public boolean hasMountPoint() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional bool mount_point = 11;</code> */ public boolean getMountPoint() { return mountPoint_; } /** * <code>optional bool mount_point = 11;</code> */ public Builder setMountPoint(boolean value) { bitField0_ |= 0x00000400; mountPoint_ = value; onChanged(); return this; } /** * <code>optional bool mount_point = 11;</code> */ public Builder clearMountPoint() { bitField0_ = (bitField0_ & ~0x00000400); mountPoint_ = false; onChanged(); return this; } // optional bool direct_children_loaded = 12; private boolean directChildrenLoaded_ ; /** * <code>optional bool direct_children_loaded = 12;</code> */ public boolean hasDirectChildrenLoaded() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional bool direct_children_loaded = 12;</code> */ public boolean getDirectChildrenLoaded() { return directChildrenLoaded_; } /** * <code>optional bool direct_children_loaded = 12;</code> */ public Builder setDirectChildrenLoaded(boolean value) { bitField0_ |= 0x00000800; directChildrenLoaded_ = value; onChanged(); return this; } /** * <code>optional bool direct_children_loaded = 12;</code> */ public Builder clearDirectChildrenLoaded() { bitField0_ = (bitField0_ & ~0x00000800); directChildrenLoaded_ = false; onChanged(); return this; } // optional int64 ttl = 13; private long ttl_ ; /** * <code>optional int64 ttl = 13;</code> */ public boolean hasTtl() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional int64 ttl = 13;</code> */ public long getTtl() { return ttl_; } /** * <code>optional int64 ttl = 13;</code> */ public Builder setTtl(long value) { bitField0_ |= 0x00001000; ttl_ = value; onChanged(); return this; } /** * <code>optional int64 ttl = 13;</code> */ public Builder clearTtl() { bitField0_ = (bitField0_ & ~0x00001000); ttl_ = 0L; onChanged(); return this; } // optional .alluxio.proto.journal.PTtlAction ttlAction = 14 [default = DELETE]; private alluxio.proto.journal.File.PTtlAction ttlAction_ = alluxio.proto.journal.File.PTtlAction.DELETE; /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 14 [default = DELETE];</code> */ public boolean hasTtlAction() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 14 [default = DELETE];</code> */ public alluxio.proto.journal.File.PTtlAction getTtlAction() { return ttlAction_; } /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 14 [default = DELETE];</code> */ public Builder setTtlAction(alluxio.proto.journal.File.PTtlAction value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; ttlAction_ = value; onChanged(); return this; } /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 14 [default = DELETE];</code> */ public Builder clearTtlAction() { bitField0_ = (bitField0_ & ~0x00002000); ttlAction_ = alluxio.proto.journal.File.PTtlAction.DELETE; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.InodeDirectoryEntry) } static { defaultInstance = new InodeDirectoryEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:alluxio.proto.journal.InodeDirectoryEntry) } public interface InodeDirectoryIdGeneratorEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 container_id = 1; /** * <code>optional int64 container_id = 1;</code> */ boolean hasContainerId(); /** * <code>optional int64 container_id = 1;</code> */ long getContainerId(); // optional int64 sequence_number = 2; /** * <code>optional int64 sequence_number = 2;</code> */ boolean hasSequenceNumber(); /** * <code>optional int64 sequence_number = 2;</code> */ long getSequenceNumber(); } /** * Protobuf type {@code alluxio.proto.journal.InodeDirectoryIdGeneratorEntry} * * <pre> * next available id: 3 * </pre> */ public static final class InodeDirectoryIdGeneratorEntry extends com.google.protobuf.GeneratedMessage implements InodeDirectoryIdGeneratorEntryOrBuilder { // Use InodeDirectoryIdGeneratorEntry.newBuilder() to construct. private InodeDirectoryIdGeneratorEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private InodeDirectoryIdGeneratorEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final InodeDirectoryIdGeneratorEntry defaultInstance; public static InodeDirectoryIdGeneratorEntry getDefaultInstance() { return defaultInstance; } public InodeDirectoryIdGeneratorEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InodeDirectoryIdGeneratorEntry( 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; containerId_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; sequenceNumber_ = input.readInt64(); 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 alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeDirectoryIdGeneratorEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeDirectoryIdGeneratorEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry.class, alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry.Builder.class); } public static com.google.protobuf.Parser<InodeDirectoryIdGeneratorEntry> PARSER = new com.google.protobuf.AbstractParser<InodeDirectoryIdGeneratorEntry>() { public InodeDirectoryIdGeneratorEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InodeDirectoryIdGeneratorEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<InodeDirectoryIdGeneratorEntry> getParserForType() { return PARSER; } private int bitField0_; // optional int64 container_id = 1; public static final int CONTAINER_ID_FIELD_NUMBER = 1; private long containerId_; /** * <code>optional int64 container_id = 1;</code> */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 container_id = 1;</code> */ public long getContainerId() { return containerId_; } // optional int64 sequence_number = 2; public static final int SEQUENCE_NUMBER_FIELD_NUMBER = 2; private long sequenceNumber_; /** * <code>optional int64 sequence_number = 2;</code> */ public boolean hasSequenceNumber() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 sequence_number = 2;</code> */ public long getSequenceNumber() { return sequenceNumber_; } private void initFields() { containerId_ = 0L; sequenceNumber_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, containerId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, sequenceNumber_); } 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 .computeInt64Size(1, containerId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, sequenceNumber_); } 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(); } public static alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry 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(alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry 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 alluxio.proto.journal.InodeDirectoryIdGeneratorEntry} * * <pre> * next available id: 3 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeDirectoryIdGeneratorEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeDirectoryIdGeneratorEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry.class, alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry.Builder.class); } // Construct using alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry.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(); containerId_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); sequenceNumber_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeDirectoryIdGeneratorEntry_descriptor; } public alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry getDefaultInstanceForType() { return alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry.getDefaultInstance(); } public alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry build() { alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry buildPartial() { alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry result = new alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.containerId_ = containerId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.sequenceNumber_ = sequenceNumber_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry) { return mergeFrom((alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry other) { if (other == alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry.getDefaultInstance()) return this; if (other.hasContainerId()) { setContainerId(other.getContainerId()); } if (other.hasSequenceNumber()) { setSequenceNumber(other.getSequenceNumber()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.File.InodeDirectoryIdGeneratorEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 container_id = 1; private long containerId_ ; /** * <code>optional int64 container_id = 1;</code> */ public boolean hasContainerId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 container_id = 1;</code> */ public long getContainerId() { return containerId_; } /** * <code>optional int64 container_id = 1;</code> */ public Builder setContainerId(long value) { bitField0_ |= 0x00000001; containerId_ = value; onChanged(); return this; } /** * <code>optional int64 container_id = 1;</code> */ public Builder clearContainerId() { bitField0_ = (bitField0_ & ~0x00000001); containerId_ = 0L; onChanged(); return this; } // optional int64 sequence_number = 2; private long sequenceNumber_ ; /** * <code>optional int64 sequence_number = 2;</code> */ public boolean hasSequenceNumber() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 sequence_number = 2;</code> */ public long getSequenceNumber() { return sequenceNumber_; } /** * <code>optional int64 sequence_number = 2;</code> */ public Builder setSequenceNumber(long value) { bitField0_ |= 0x00000002; sequenceNumber_ = value; onChanged(); return this; } /** * <code>optional int64 sequence_number = 2;</code> */ public Builder clearSequenceNumber() { bitField0_ = (bitField0_ & ~0x00000002); sequenceNumber_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.InodeDirectoryIdGeneratorEntry) } static { defaultInstance = new InodeDirectoryIdGeneratorEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:alluxio.proto.journal.InodeDirectoryIdGeneratorEntry) } public interface InodeFileEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 id = 1; /** * <code>optional int64 id = 1;</code> */ boolean hasId(); /** * <code>optional int64 id = 1;</code> */ long getId(); // optional int64 parent_id = 2; /** * <code>optional int64 parent_id = 2;</code> */ boolean hasParentId(); /** * <code>optional int64 parent_id = 2;</code> */ long getParentId(); // optional string name = 3; /** * <code>optional string name = 3;</code> */ boolean hasName(); /** * <code>optional string name = 3;</code> */ java.lang.String getName(); /** * <code>optional string name = 3;</code> */ com.google.protobuf.ByteString getNameBytes(); // optional string persistence_state = 4; /** * <code>optional string persistence_state = 4;</code> */ boolean hasPersistenceState(); /** * <code>optional string persistence_state = 4;</code> */ java.lang.String getPersistenceState(); /** * <code>optional string persistence_state = 4;</code> */ com.google.protobuf.ByteString getPersistenceStateBytes(); // optional bool pinned = 5; /** * <code>optional bool pinned = 5;</code> */ boolean hasPinned(); /** * <code>optional bool pinned = 5;</code> */ boolean getPinned(); // optional int64 creation_time_ms = 6; /** * <code>optional int64 creation_time_ms = 6;</code> */ boolean hasCreationTimeMs(); /** * <code>optional int64 creation_time_ms = 6;</code> */ long getCreationTimeMs(); // optional int64 last_modification_time_ms = 7; /** * <code>optional int64 last_modification_time_ms = 7;</code> */ boolean hasLastModificationTimeMs(); /** * <code>optional int64 last_modification_time_ms = 7;</code> */ long getLastModificationTimeMs(); // optional int64 block_size_bytes = 8; /** * <code>optional int64 block_size_bytes = 8;</code> */ boolean hasBlockSizeBytes(); /** * <code>optional int64 block_size_bytes = 8;</code> */ long getBlockSizeBytes(); // optional int64 length = 9; /** * <code>optional int64 length = 9;</code> */ boolean hasLength(); /** * <code>optional int64 length = 9;</code> */ long getLength(); // optional bool completed = 10; /** * <code>optional bool completed = 10;</code> */ boolean hasCompleted(); /** * <code>optional bool completed = 10;</code> */ boolean getCompleted(); // optional bool cacheable = 11; /** * <code>optional bool cacheable = 11;</code> */ boolean hasCacheable(); /** * <code>optional bool cacheable = 11;</code> */ boolean getCacheable(); // repeated int64 blocks = 12; /** * <code>repeated int64 blocks = 12;</code> */ java.util.List<java.lang.Long> getBlocksList(); /** * <code>repeated int64 blocks = 12;</code> */ int getBlocksCount(); /** * <code>repeated int64 blocks = 12;</code> */ long getBlocks(int index); // optional int64 ttl = 13; /** * <code>optional int64 ttl = 13;</code> */ boolean hasTtl(); /** * <code>optional int64 ttl = 13;</code> */ long getTtl(); // optional string owner = 14; /** * <code>optional string owner = 14;</code> */ boolean hasOwner(); /** * <code>optional string owner = 14;</code> */ java.lang.String getOwner(); /** * <code>optional string owner = 14;</code> */ com.google.protobuf.ByteString getOwnerBytes(); // optional string group = 15; /** * <code>optional string group = 15;</code> */ boolean hasGroup(); /** * <code>optional string group = 15;</code> */ java.lang.String getGroup(); /** * <code>optional string group = 15;</code> */ com.google.protobuf.ByteString getGroupBytes(); // optional int32 mode = 16; /** * <code>optional int32 mode = 16;</code> */ boolean hasMode(); /** * <code>optional int32 mode = 16;</code> */ int getMode(); // optional .alluxio.proto.journal.PTtlAction ttlAction = 17 [default = DELETE]; /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 17 [default = DELETE];</code> */ boolean hasTtlAction(); /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 17 [default = DELETE];</code> */ alluxio.proto.journal.File.PTtlAction getTtlAction(); } /** * Protobuf type {@code alluxio.proto.journal.InodeFileEntry} * * <pre> * next available id: 18 * </pre> */ public static final class InodeFileEntry extends com.google.protobuf.GeneratedMessage implements InodeFileEntryOrBuilder { // Use InodeFileEntry.newBuilder() to construct. private InodeFileEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private InodeFileEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final InodeFileEntry defaultInstance; public static InodeFileEntry getDefaultInstance() { return defaultInstance; } public InodeFileEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InodeFileEntry( 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; id_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; parentId_ = input.readInt64(); break; } case 26: { bitField0_ |= 0x00000004; name_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; persistenceState_ = input.readBytes(); break; } case 40: { bitField0_ |= 0x00000010; pinned_ = input.readBool(); break; } case 48: { bitField0_ |= 0x00000020; creationTimeMs_ = input.readInt64(); break; } case 56: { bitField0_ |= 0x00000040; lastModificationTimeMs_ = input.readInt64(); break; } case 64: { bitField0_ |= 0x00000080; blockSizeBytes_ = input.readInt64(); break; } case 72: { bitField0_ |= 0x00000100; length_ = input.readInt64(); break; } case 80: { bitField0_ |= 0x00000200; completed_ = input.readBool(); break; } case 88: { bitField0_ |= 0x00000400; cacheable_ = input.readBool(); break; } case 96: { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { blocks_ = new java.util.ArrayList<java.lang.Long>(); mutable_bitField0_ |= 0x00000800; } blocks_.add(input.readInt64()); break; } case 98: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000800) == 0x00000800) && input.getBytesUntilLimit() > 0) { blocks_ = new java.util.ArrayList<java.lang.Long>(); mutable_bitField0_ |= 0x00000800; } while (input.getBytesUntilLimit() > 0) { blocks_.add(input.readInt64()); } input.popLimit(limit); break; } case 104: { bitField0_ |= 0x00000800; ttl_ = input.readInt64(); break; } case 114: { bitField0_ |= 0x00001000; owner_ = input.readBytes(); break; } case 122: { bitField0_ |= 0x00002000; group_ = input.readBytes(); break; } case 128: { bitField0_ |= 0x00004000; mode_ = input.readInt32(); break; } case 136: { int rawValue = input.readEnum(); alluxio.proto.journal.File.PTtlAction value = alluxio.proto.journal.File.PTtlAction.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(17, rawValue); } else { bitField0_ |= 0x00008000; ttlAction_ = value; } 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 { if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeFileEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeFileEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.InodeFileEntry.class, alluxio.proto.journal.File.InodeFileEntry.Builder.class); } public static com.google.protobuf.Parser<InodeFileEntry> PARSER = new com.google.protobuf.AbstractParser<InodeFileEntry>() { public InodeFileEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InodeFileEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<InodeFileEntry> getParserForType() { return PARSER; } private int bitField0_; // optional int64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } // optional int64 parent_id = 2; public static final int PARENT_ID_FIELD_NUMBER = 2; private long parentId_; /** * <code>optional int64 parent_id = 2;</code> */ public boolean hasParentId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 parent_id = 2;</code> */ public long getParentId() { return parentId_; } // optional string name = 3; public static final int NAME_FIELD_NUMBER = 3; private java.lang.Object name_; /** * <code>optional string name = 3;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string name = 3;</code> */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * <code>optional string name = 3;</code> */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string persistence_state = 4; public static final int PERSISTENCE_STATE_FIELD_NUMBER = 4; private java.lang.Object persistenceState_; /** * <code>optional string persistence_state = 4;</code> */ public boolean hasPersistenceState() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string persistence_state = 4;</code> */ public java.lang.String getPersistenceState() { java.lang.Object ref = persistenceState_; 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()) { persistenceState_ = s; } return s; } } /** * <code>optional string persistence_state = 4;</code> */ public com.google.protobuf.ByteString getPersistenceStateBytes() { java.lang.Object ref = persistenceState_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); persistenceState_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bool pinned = 5; public static final int PINNED_FIELD_NUMBER = 5; private boolean pinned_; /** * <code>optional bool pinned = 5;</code> */ public boolean hasPinned() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bool pinned = 5;</code> */ public boolean getPinned() { return pinned_; } // optional int64 creation_time_ms = 6; public static final int CREATION_TIME_MS_FIELD_NUMBER = 6; private long creationTimeMs_; /** * <code>optional int64 creation_time_ms = 6;</code> */ public boolean hasCreationTimeMs() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional int64 creation_time_ms = 6;</code> */ public long getCreationTimeMs() { return creationTimeMs_; } // optional int64 last_modification_time_ms = 7; public static final int LAST_MODIFICATION_TIME_MS_FIELD_NUMBER = 7; private long lastModificationTimeMs_; /** * <code>optional int64 last_modification_time_ms = 7;</code> */ public boolean hasLastModificationTimeMs() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional int64 last_modification_time_ms = 7;</code> */ public long getLastModificationTimeMs() { return lastModificationTimeMs_; } // optional int64 block_size_bytes = 8; public static final int BLOCK_SIZE_BYTES_FIELD_NUMBER = 8; private long blockSizeBytes_; /** * <code>optional int64 block_size_bytes = 8;</code> */ public boolean hasBlockSizeBytes() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional int64 block_size_bytes = 8;</code> */ public long getBlockSizeBytes() { return blockSizeBytes_; } // optional int64 length = 9; public static final int LENGTH_FIELD_NUMBER = 9; private long length_; /** * <code>optional int64 length = 9;</code> */ public boolean hasLength() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional int64 length = 9;</code> */ public long getLength() { return length_; } // optional bool completed = 10; public static final int COMPLETED_FIELD_NUMBER = 10; private boolean completed_; /** * <code>optional bool completed = 10;</code> */ public boolean hasCompleted() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional bool completed = 10;</code> */ public boolean getCompleted() { return completed_; } // optional bool cacheable = 11; public static final int CACHEABLE_FIELD_NUMBER = 11; private boolean cacheable_; /** * <code>optional bool cacheable = 11;</code> */ public boolean hasCacheable() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional bool cacheable = 11;</code> */ public boolean getCacheable() { return cacheable_; } // repeated int64 blocks = 12; public static final int BLOCKS_FIELD_NUMBER = 12; private java.util.List<java.lang.Long> blocks_; /** * <code>repeated int64 blocks = 12;</code> */ public java.util.List<java.lang.Long> getBlocksList() { return blocks_; } /** * <code>repeated int64 blocks = 12;</code> */ public int getBlocksCount() { return blocks_.size(); } /** * <code>repeated int64 blocks = 12;</code> */ public long getBlocks(int index) { return blocks_.get(index); } // optional int64 ttl = 13; public static final int TTL_FIELD_NUMBER = 13; private long ttl_; /** * <code>optional int64 ttl = 13;</code> */ public boolean hasTtl() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional int64 ttl = 13;</code> */ public long getTtl() { return ttl_; } // optional string owner = 14; public static final int OWNER_FIELD_NUMBER = 14; private java.lang.Object owner_; /** * <code>optional string owner = 14;</code> */ public boolean hasOwner() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional string owner = 14;</code> */ 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; } } /** * <code>optional string owner = 14;</code> */ 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 = 15; public static final int GROUP_FIELD_NUMBER = 15; private java.lang.Object group_; /** * <code>optional string group = 15;</code> */ public boolean hasGroup() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * <code>optional string group = 15;</code> */ 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; } } /** * <code>optional string group = 15;</code> */ 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 int32 mode = 16; public static final int MODE_FIELD_NUMBER = 16; private int mode_; /** * <code>optional int32 mode = 16;</code> */ public boolean hasMode() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * <code>optional int32 mode = 16;</code> */ public int getMode() { return mode_; } // optional .alluxio.proto.journal.PTtlAction ttlAction = 17 [default = DELETE]; public static final int TTLACTION_FIELD_NUMBER = 17; private alluxio.proto.journal.File.PTtlAction ttlAction_; /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 17 [default = DELETE];</code> */ public boolean hasTtlAction() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 17 [default = DELETE];</code> */ public alluxio.proto.journal.File.PTtlAction getTtlAction() { return ttlAction_; } private void initFields() { id_ = 0L; parentId_ = 0L; name_ = ""; persistenceState_ = ""; pinned_ = false; creationTimeMs_ = 0L; lastModificationTimeMs_ = 0L; blockSizeBytes_ = 0L; length_ = 0L; completed_ = false; cacheable_ = false; blocks_ = java.util.Collections.emptyList(); ttl_ = 0L; owner_ = ""; group_ = ""; mode_ = 0; ttlAction_ = alluxio.proto.journal.File.PTtlAction.DELETE; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, parentId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getPersistenceStateBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, pinned_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt64(6, creationTimeMs_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt64(7, lastModificationTimeMs_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt64(8, blockSizeBytes_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeInt64(9, length_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBool(10, completed_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBool(11, cacheable_); } for (int i = 0; i < blocks_.size(); i++) { output.writeInt64(12, blocks_.get(i)); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeInt64(13, ttl_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeBytes(14, getOwnerBytes()); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeBytes(15, getGroupBytes()); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeInt32(16, mode_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeEnum(17, ttlAction_.getNumber()); } 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 .computeInt64Size(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, parentId_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getPersistenceStateBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, pinned_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, creationTimeMs_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, lastModificationTimeMs_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, blockSizeBytes_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(9, length_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, completed_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, cacheable_); } { int dataSize = 0; for (int i = 0; i < blocks_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(blocks_.get(i)); } size += dataSize; size += 1 * getBlocksList().size(); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(13, ttl_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(14, getOwnerBytes()); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(15, getGroupBytes()); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(16, mode_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(17, ttlAction_.getNumber()); } 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(); } public static alluxio.proto.journal.File.InodeFileEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.InodeFileEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.InodeFileEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.InodeFileEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.InodeFileEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.InodeFileEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.InodeFileEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static alluxio.proto.journal.File.InodeFileEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.InodeFileEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.InodeFileEntry 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(alluxio.proto.journal.File.InodeFileEntry 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 alluxio.proto.journal.InodeFileEntry} * * <pre> * next available id: 18 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements alluxio.proto.journal.File.InodeFileEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeFileEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeFileEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.InodeFileEntry.class, alluxio.proto.journal.File.InodeFileEntry.Builder.class); } // Construct using alluxio.proto.journal.File.InodeFileEntry.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(); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); parentId_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); name_ = ""; bitField0_ = (bitField0_ & ~0x00000004); persistenceState_ = ""; bitField0_ = (bitField0_ & ~0x00000008); pinned_ = false; bitField0_ = (bitField0_ & ~0x00000010); creationTimeMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); lastModificationTimeMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); blockSizeBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00000080); length_ = 0L; bitField0_ = (bitField0_ & ~0x00000100); completed_ = false; bitField0_ = (bitField0_ & ~0x00000200); cacheable_ = false; bitField0_ = (bitField0_ & ~0x00000400); blocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); ttl_ = 0L; bitField0_ = (bitField0_ & ~0x00001000); owner_ = ""; bitField0_ = (bitField0_ & ~0x00002000); group_ = ""; bitField0_ = (bitField0_ & ~0x00004000); mode_ = 0; bitField0_ = (bitField0_ & ~0x00008000); ttlAction_ = alluxio.proto.journal.File.PTtlAction.DELETE; bitField0_ = (bitField0_ & ~0x00010000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeFileEntry_descriptor; } public alluxio.proto.journal.File.InodeFileEntry getDefaultInstanceForType() { return alluxio.proto.journal.File.InodeFileEntry.getDefaultInstance(); } public alluxio.proto.journal.File.InodeFileEntry build() { alluxio.proto.journal.File.InodeFileEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public alluxio.proto.journal.File.InodeFileEntry buildPartial() { alluxio.proto.journal.File.InodeFileEntry result = new alluxio.proto.journal.File.InodeFileEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.parentId_ = parentId_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.name_ = name_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.persistenceState_ = persistenceState_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.pinned_ = pinned_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.creationTimeMs_ = creationTimeMs_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.lastModificationTimeMs_ = lastModificationTimeMs_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.blockSizeBytes_ = blockSizeBytes_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.length_ = length_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.completed_ = completed_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.cacheable_ = cacheable_; if (((bitField0_ & 0x00000800) == 0x00000800)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); bitField0_ = (bitField0_ & ~0x00000800); } result.blocks_ = blocks_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00000800; } result.ttl_ = ttl_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00001000; } result.owner_ = owner_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00002000; } result.group_ = group_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00004000; } result.mode_ = mode_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00008000; } result.ttlAction_ = ttlAction_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.proto.journal.File.InodeFileEntry) { return mergeFrom((alluxio.proto.journal.File.InodeFileEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.proto.journal.File.InodeFileEntry other) { if (other == alluxio.proto.journal.File.InodeFileEntry.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasParentId()) { setParentId(other.getParentId()); } if (other.hasName()) { bitField0_ |= 0x00000004; name_ = other.name_; onChanged(); } if (other.hasPersistenceState()) { bitField0_ |= 0x00000008; persistenceState_ = other.persistenceState_; onChanged(); } if (other.hasPinned()) { setPinned(other.getPinned()); } if (other.hasCreationTimeMs()) { setCreationTimeMs(other.getCreationTimeMs()); } if (other.hasLastModificationTimeMs()) { setLastModificationTimeMs(other.getLastModificationTimeMs()); } if (other.hasBlockSizeBytes()) { setBlockSizeBytes(other.getBlockSizeBytes()); } if (other.hasLength()) { setLength(other.getLength()); } if (other.hasCompleted()) { setCompleted(other.getCompleted()); } if (other.hasCacheable()) { setCacheable(other.getCacheable()); } if (!other.blocks_.isEmpty()) { if (blocks_.isEmpty()) { blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureBlocksIsMutable(); blocks_.addAll(other.blocks_); } onChanged(); } if (other.hasTtl()) { setTtl(other.getTtl()); } if (other.hasOwner()) { bitField0_ |= 0x00002000; owner_ = other.owner_; onChanged(); } if (other.hasGroup()) { bitField0_ |= 0x00004000; group_ = other.group_; onChanged(); } if (other.hasMode()) { setMode(other.getMode()); } if (other.hasTtlAction()) { setTtlAction(other.getTtlAction()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.File.InodeFileEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.File.InodeFileEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 id = 1; private long id_ ; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } /** * <code>optional int64 id = 1;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * <code>optional int64 id = 1;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // optional int64 parent_id = 2; private long parentId_ ; /** * <code>optional int64 parent_id = 2;</code> */ public boolean hasParentId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 parent_id = 2;</code> */ public long getParentId() { return parentId_; } /** * <code>optional int64 parent_id = 2;</code> */ public Builder setParentId(long value) { bitField0_ |= 0x00000002; parentId_ = value; onChanged(); return this; } /** * <code>optional int64 parent_id = 2;</code> */ public Builder clearParentId() { bitField0_ = (bitField0_ & ~0x00000002); parentId_ = 0L; onChanged(); return this; } // optional string name = 3; private java.lang.Object name_ = ""; /** * <code>optional string name = 3;</code> */ public boolean hasName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string name = 3;</code> */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string name = 3;</code> */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string name = 3;</code> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; name_ = value; onChanged(); return this; } /** * <code>optional string name = 3;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000004); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>optional string name = 3;</code> */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; name_ = value; onChanged(); return this; } // optional string persistence_state = 4; private java.lang.Object persistenceState_ = ""; /** * <code>optional string persistence_state = 4;</code> */ public boolean hasPersistenceState() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string persistence_state = 4;</code> */ public java.lang.String getPersistenceState() { java.lang.Object ref = persistenceState_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); persistenceState_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string persistence_state = 4;</code> */ public com.google.protobuf.ByteString getPersistenceStateBytes() { java.lang.Object ref = persistenceState_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); persistenceState_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string persistence_state = 4;</code> */ public Builder setPersistenceState( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; persistenceState_ = value; onChanged(); return this; } /** * <code>optional string persistence_state = 4;</code> */ public Builder clearPersistenceState() { bitField0_ = (bitField0_ & ~0x00000008); persistenceState_ = getDefaultInstance().getPersistenceState(); onChanged(); return this; } /** * <code>optional string persistence_state = 4;</code> */ public Builder setPersistenceStateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; persistenceState_ = value; onChanged(); return this; } // optional bool pinned = 5; private boolean pinned_ ; /** * <code>optional bool pinned = 5;</code> */ public boolean hasPinned() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bool pinned = 5;</code> */ public boolean getPinned() { return pinned_; } /** * <code>optional bool pinned = 5;</code> */ public Builder setPinned(boolean value) { bitField0_ |= 0x00000010; pinned_ = value; onChanged(); return this; } /** * <code>optional bool pinned = 5;</code> */ public Builder clearPinned() { bitField0_ = (bitField0_ & ~0x00000010); pinned_ = false; onChanged(); return this; } // optional int64 creation_time_ms = 6; private long creationTimeMs_ ; /** * <code>optional int64 creation_time_ms = 6;</code> */ public boolean hasCreationTimeMs() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional int64 creation_time_ms = 6;</code> */ public long getCreationTimeMs() { return creationTimeMs_; } /** * <code>optional int64 creation_time_ms = 6;</code> */ public Builder setCreationTimeMs(long value) { bitField0_ |= 0x00000020; creationTimeMs_ = value; onChanged(); return this; } /** * <code>optional int64 creation_time_ms = 6;</code> */ public Builder clearCreationTimeMs() { bitField0_ = (bitField0_ & ~0x00000020); creationTimeMs_ = 0L; onChanged(); return this; } // optional int64 last_modification_time_ms = 7; private long lastModificationTimeMs_ ; /** * <code>optional int64 last_modification_time_ms = 7;</code> */ public boolean hasLastModificationTimeMs() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional int64 last_modification_time_ms = 7;</code> */ public long getLastModificationTimeMs() { return lastModificationTimeMs_; } /** * <code>optional int64 last_modification_time_ms = 7;</code> */ public Builder setLastModificationTimeMs(long value) { bitField0_ |= 0x00000040; lastModificationTimeMs_ = value; onChanged(); return this; } /** * <code>optional int64 last_modification_time_ms = 7;</code> */ public Builder clearLastModificationTimeMs() { bitField0_ = (bitField0_ & ~0x00000040); lastModificationTimeMs_ = 0L; onChanged(); return this; } // optional int64 block_size_bytes = 8; private long blockSizeBytes_ ; /** * <code>optional int64 block_size_bytes = 8;</code> */ public boolean hasBlockSizeBytes() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional int64 block_size_bytes = 8;</code> */ public long getBlockSizeBytes() { return blockSizeBytes_; } /** * <code>optional int64 block_size_bytes = 8;</code> */ public Builder setBlockSizeBytes(long value) { bitField0_ |= 0x00000080; blockSizeBytes_ = value; onChanged(); return this; } /** * <code>optional int64 block_size_bytes = 8;</code> */ public Builder clearBlockSizeBytes() { bitField0_ = (bitField0_ & ~0x00000080); blockSizeBytes_ = 0L; onChanged(); return this; } // optional int64 length = 9; private long length_ ; /** * <code>optional int64 length = 9;</code> */ public boolean hasLength() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional int64 length = 9;</code> */ public long getLength() { return length_; } /** * <code>optional int64 length = 9;</code> */ public Builder setLength(long value) { bitField0_ |= 0x00000100; length_ = value; onChanged(); return this; } /** * <code>optional int64 length = 9;</code> */ public Builder clearLength() { bitField0_ = (bitField0_ & ~0x00000100); length_ = 0L; onChanged(); return this; } // optional bool completed = 10; private boolean completed_ ; /** * <code>optional bool completed = 10;</code> */ public boolean hasCompleted() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional bool completed = 10;</code> */ public boolean getCompleted() { return completed_; } /** * <code>optional bool completed = 10;</code> */ public Builder setCompleted(boolean value) { bitField0_ |= 0x00000200; completed_ = value; onChanged(); return this; } /** * <code>optional bool completed = 10;</code> */ public Builder clearCompleted() { bitField0_ = (bitField0_ & ~0x00000200); completed_ = false; onChanged(); return this; } // optional bool cacheable = 11; private boolean cacheable_ ; /** * <code>optional bool cacheable = 11;</code> */ public boolean hasCacheable() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional bool cacheable = 11;</code> */ public boolean getCacheable() { return cacheable_; } /** * <code>optional bool cacheable = 11;</code> */ public Builder setCacheable(boolean value) { bitField0_ |= 0x00000400; cacheable_ = value; onChanged(); return this; } /** * <code>optional bool cacheable = 11;</code> */ public Builder clearCacheable() { bitField0_ = (bitField0_ & ~0x00000400); cacheable_ = false; onChanged(); return this; } // repeated int64 blocks = 12; private java.util.List<java.lang.Long> blocks_ = java.util.Collections.emptyList(); private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { blocks_ = new java.util.ArrayList<java.lang.Long>(blocks_); bitField0_ |= 0x00000800; } } /** * <code>repeated int64 blocks = 12;</code> */ public java.util.List<java.lang.Long> getBlocksList() { return java.util.Collections.unmodifiableList(blocks_); } /** * <code>repeated int64 blocks = 12;</code> */ public int getBlocksCount() { return blocks_.size(); } /** * <code>repeated int64 blocks = 12;</code> */ public long getBlocks(int index) { return blocks_.get(index); } /** * <code>repeated int64 blocks = 12;</code> */ public Builder setBlocks( int index, long value) { ensureBlocksIsMutable(); blocks_.set(index, value); onChanged(); return this; } /** * <code>repeated int64 blocks = 12;</code> */ public Builder addBlocks(long value) { ensureBlocksIsMutable(); blocks_.add(value); onChanged(); return this; } /** * <code>repeated int64 blocks = 12;</code> */ public Builder addAllBlocks( java.lang.Iterable<? extends java.lang.Long> values) { ensureBlocksIsMutable(); super.addAll(values, blocks_); onChanged(); return this; } /** * <code>repeated int64 blocks = 12;</code> */ public Builder clearBlocks() { blocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } // optional int64 ttl = 13; private long ttl_ ; /** * <code>optional int64 ttl = 13;</code> */ public boolean hasTtl() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional int64 ttl = 13;</code> */ public long getTtl() { return ttl_; } /** * <code>optional int64 ttl = 13;</code> */ public Builder setTtl(long value) { bitField0_ |= 0x00001000; ttl_ = value; onChanged(); return this; } /** * <code>optional int64 ttl = 13;</code> */ public Builder clearTtl() { bitField0_ = (bitField0_ & ~0x00001000); ttl_ = 0L; onChanged(); return this; } // optional string owner = 14; private java.lang.Object owner_ = ""; /** * <code>optional string owner = 14;</code> */ public boolean hasOwner() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * <code>optional string owner = 14;</code> */ 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; } } /** * <code>optional string owner = 14;</code> */ 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; } } /** * <code>optional string owner = 14;</code> */ public Builder setOwner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; owner_ = value; onChanged(); return this; } /** * <code>optional string owner = 14;</code> */ public Builder clearOwner() { bitField0_ = (bitField0_ & ~0x00002000); owner_ = getDefaultInstance().getOwner(); onChanged(); return this; } /** * <code>optional string owner = 14;</code> */ public Builder setOwnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; owner_ = value; onChanged(); return this; } // optional string group = 15; private java.lang.Object group_ = ""; /** * <code>optional string group = 15;</code> */ public boolean hasGroup() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * <code>optional string group = 15;</code> */ 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; } } /** * <code>optional string group = 15;</code> */ 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; } } /** * <code>optional string group = 15;</code> */ public Builder setGroup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; group_ = value; onChanged(); return this; } /** * <code>optional string group = 15;</code> */ public Builder clearGroup() { bitField0_ = (bitField0_ & ~0x00004000); group_ = getDefaultInstance().getGroup(); onChanged(); return this; } /** * <code>optional string group = 15;</code> */ public Builder setGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; group_ = value; onChanged(); return this; } // optional int32 mode = 16; private int mode_ ; /** * <code>optional int32 mode = 16;</code> */ public boolean hasMode() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * <code>optional int32 mode = 16;</code> */ public int getMode() { return mode_; } /** * <code>optional int32 mode = 16;</code> */ public Builder setMode(int value) { bitField0_ |= 0x00008000; mode_ = value; onChanged(); return this; } /** * <code>optional int32 mode = 16;</code> */ public Builder clearMode() { bitField0_ = (bitField0_ & ~0x00008000); mode_ = 0; onChanged(); return this; } // optional .alluxio.proto.journal.PTtlAction ttlAction = 17 [default = DELETE]; private alluxio.proto.journal.File.PTtlAction ttlAction_ = alluxio.proto.journal.File.PTtlAction.DELETE; /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 17 [default = DELETE];</code> */ public boolean hasTtlAction() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 17 [default = DELETE];</code> */ public alluxio.proto.journal.File.PTtlAction getTtlAction() { return ttlAction_; } /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 17 [default = DELETE];</code> */ public Builder setTtlAction(alluxio.proto.journal.File.PTtlAction value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00010000; ttlAction_ = value; onChanged(); return this; } /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 17 [default = DELETE];</code> */ public Builder clearTtlAction() { bitField0_ = (bitField0_ & ~0x00010000); ttlAction_ = alluxio.proto.journal.File.PTtlAction.DELETE; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.InodeFileEntry) } static { defaultInstance = new InodeFileEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:alluxio.proto.journal.InodeFileEntry) } public interface InodeLastModificationTimeEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 id = 1; /** * <code>optional int64 id = 1;</code> */ boolean hasId(); /** * <code>optional int64 id = 1;</code> */ long getId(); // optional int64 last_modification_time_ms = 2; /** * <code>optional int64 last_modification_time_ms = 2;</code> */ boolean hasLastModificationTimeMs(); /** * <code>optional int64 last_modification_time_ms = 2;</code> */ long getLastModificationTimeMs(); } /** * Protobuf type {@code alluxio.proto.journal.InodeLastModificationTimeEntry} * * <pre> * next available id: 3 * </pre> */ public static final class InodeLastModificationTimeEntry extends com.google.protobuf.GeneratedMessage implements InodeLastModificationTimeEntryOrBuilder { // Use InodeLastModificationTimeEntry.newBuilder() to construct. private InodeLastModificationTimeEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private InodeLastModificationTimeEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final InodeLastModificationTimeEntry defaultInstance; public static InodeLastModificationTimeEntry getDefaultInstance() { return defaultInstance; } public InodeLastModificationTimeEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InodeLastModificationTimeEntry( 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; id_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; lastModificationTimeMs_ = input.readInt64(); 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 alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeLastModificationTimeEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeLastModificationTimeEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.InodeLastModificationTimeEntry.class, alluxio.proto.journal.File.InodeLastModificationTimeEntry.Builder.class); } public static com.google.protobuf.Parser<InodeLastModificationTimeEntry> PARSER = new com.google.protobuf.AbstractParser<InodeLastModificationTimeEntry>() { public InodeLastModificationTimeEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InodeLastModificationTimeEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<InodeLastModificationTimeEntry> getParserForType() { return PARSER; } private int bitField0_; // optional int64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } // optional int64 last_modification_time_ms = 2; public static final int LAST_MODIFICATION_TIME_MS_FIELD_NUMBER = 2; private long lastModificationTimeMs_; /** * <code>optional int64 last_modification_time_ms = 2;</code> */ public boolean hasLastModificationTimeMs() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 last_modification_time_ms = 2;</code> */ public long getLastModificationTimeMs() { return lastModificationTimeMs_; } private void initFields() { id_ = 0L; lastModificationTimeMs_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, lastModificationTimeMs_); } 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 .computeInt64Size(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, lastModificationTimeMs_); } 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(); } public static alluxio.proto.journal.File.InodeLastModificationTimeEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.InodeLastModificationTimeEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.InodeLastModificationTimeEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.InodeLastModificationTimeEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.InodeLastModificationTimeEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.InodeLastModificationTimeEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.InodeLastModificationTimeEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static alluxio.proto.journal.File.InodeLastModificationTimeEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.InodeLastModificationTimeEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.InodeLastModificationTimeEntry 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(alluxio.proto.journal.File.InodeLastModificationTimeEntry 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 alluxio.proto.journal.InodeLastModificationTimeEntry} * * <pre> * next available id: 3 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements alluxio.proto.journal.File.InodeLastModificationTimeEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeLastModificationTimeEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeLastModificationTimeEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.InodeLastModificationTimeEntry.class, alluxio.proto.journal.File.InodeLastModificationTimeEntry.Builder.class); } // Construct using alluxio.proto.journal.File.InodeLastModificationTimeEntry.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(); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); lastModificationTimeMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_InodeLastModificationTimeEntry_descriptor; } public alluxio.proto.journal.File.InodeLastModificationTimeEntry getDefaultInstanceForType() { return alluxio.proto.journal.File.InodeLastModificationTimeEntry.getDefaultInstance(); } public alluxio.proto.journal.File.InodeLastModificationTimeEntry build() { alluxio.proto.journal.File.InodeLastModificationTimeEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public alluxio.proto.journal.File.InodeLastModificationTimeEntry buildPartial() { alluxio.proto.journal.File.InodeLastModificationTimeEntry result = new alluxio.proto.journal.File.InodeLastModificationTimeEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.lastModificationTimeMs_ = lastModificationTimeMs_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.proto.journal.File.InodeLastModificationTimeEntry) { return mergeFrom((alluxio.proto.journal.File.InodeLastModificationTimeEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.proto.journal.File.InodeLastModificationTimeEntry other) { if (other == alluxio.proto.journal.File.InodeLastModificationTimeEntry.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasLastModificationTimeMs()) { setLastModificationTimeMs(other.getLastModificationTimeMs()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.File.InodeLastModificationTimeEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.File.InodeLastModificationTimeEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 id = 1; private long id_ ; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } /** * <code>optional int64 id = 1;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * <code>optional int64 id = 1;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // optional int64 last_modification_time_ms = 2; private long lastModificationTimeMs_ ; /** * <code>optional int64 last_modification_time_ms = 2;</code> */ public boolean hasLastModificationTimeMs() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 last_modification_time_ms = 2;</code> */ public long getLastModificationTimeMs() { return lastModificationTimeMs_; } /** * <code>optional int64 last_modification_time_ms = 2;</code> */ public Builder setLastModificationTimeMs(long value) { bitField0_ |= 0x00000002; lastModificationTimeMs_ = value; onChanged(); return this; } /** * <code>optional int64 last_modification_time_ms = 2;</code> */ public Builder clearLastModificationTimeMs() { bitField0_ = (bitField0_ & ~0x00000002); lastModificationTimeMs_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.InodeLastModificationTimeEntry) } static { defaultInstance = new InodeLastModificationTimeEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:alluxio.proto.journal.InodeLastModificationTimeEntry) } public interface PersistDirectoryEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 id = 1; /** * <code>optional int64 id = 1;</code> */ boolean hasId(); /** * <code>optional int64 id = 1;</code> */ long getId(); } /** * Protobuf type {@code alluxio.proto.journal.PersistDirectoryEntry} * * <pre> * next available id: 2 * </pre> */ public static final class PersistDirectoryEntry extends com.google.protobuf.GeneratedMessage implements PersistDirectoryEntryOrBuilder { // Use PersistDirectoryEntry.newBuilder() to construct. private PersistDirectoryEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PersistDirectoryEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PersistDirectoryEntry defaultInstance; public static PersistDirectoryEntry getDefaultInstance() { return defaultInstance; } public PersistDirectoryEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PersistDirectoryEntry( 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; id_ = input.readInt64(); 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 alluxio.proto.journal.File.internal_static_alluxio_proto_journal_PersistDirectoryEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_PersistDirectoryEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.PersistDirectoryEntry.class, alluxio.proto.journal.File.PersistDirectoryEntry.Builder.class); } public static com.google.protobuf.Parser<PersistDirectoryEntry> PARSER = new com.google.protobuf.AbstractParser<PersistDirectoryEntry>() { public PersistDirectoryEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PersistDirectoryEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<PersistDirectoryEntry> getParserForType() { return PARSER; } private int bitField0_; // optional int64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } private void initFields() { id_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, id_); } 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 .computeInt64Size(1, id_); } 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(); } public static alluxio.proto.journal.File.PersistDirectoryEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.PersistDirectoryEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.PersistDirectoryEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.PersistDirectoryEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.PersistDirectoryEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.PersistDirectoryEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.PersistDirectoryEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static alluxio.proto.journal.File.PersistDirectoryEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.PersistDirectoryEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.PersistDirectoryEntry 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(alluxio.proto.journal.File.PersistDirectoryEntry 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 alluxio.proto.journal.PersistDirectoryEntry} * * <pre> * next available id: 2 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements alluxio.proto.journal.File.PersistDirectoryEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_PersistDirectoryEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_PersistDirectoryEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.PersistDirectoryEntry.class, alluxio.proto.journal.File.PersistDirectoryEntry.Builder.class); } // Construct using alluxio.proto.journal.File.PersistDirectoryEntry.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(); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_PersistDirectoryEntry_descriptor; } public alluxio.proto.journal.File.PersistDirectoryEntry getDefaultInstanceForType() { return alluxio.proto.journal.File.PersistDirectoryEntry.getDefaultInstance(); } public alluxio.proto.journal.File.PersistDirectoryEntry build() { alluxio.proto.journal.File.PersistDirectoryEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public alluxio.proto.journal.File.PersistDirectoryEntry buildPartial() { alluxio.proto.journal.File.PersistDirectoryEntry result = new alluxio.proto.journal.File.PersistDirectoryEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.proto.journal.File.PersistDirectoryEntry) { return mergeFrom((alluxio.proto.journal.File.PersistDirectoryEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.proto.journal.File.PersistDirectoryEntry other) { if (other == alluxio.proto.journal.File.PersistDirectoryEntry.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.File.PersistDirectoryEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.File.PersistDirectoryEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 id = 1; private long id_ ; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } /** * <code>optional int64 id = 1;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * <code>optional int64 id = 1;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.PersistDirectoryEntry) } static { defaultInstance = new PersistDirectoryEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:alluxio.proto.journal.PersistDirectoryEntry) } public interface PersistFileEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 id = 1; /** * <code>optional int64 id = 1;</code> */ boolean hasId(); /** * <code>optional int64 id = 1;</code> */ long getId(); // optional int64 length = 2; /** * <code>optional int64 length = 2;</code> */ boolean hasLength(); /** * <code>optional int64 length = 2;</code> */ long getLength(); // optional int64 op_time_ms = 3; /** * <code>optional int64 op_time_ms = 3;</code> */ boolean hasOpTimeMs(); /** * <code>optional int64 op_time_ms = 3;</code> */ long getOpTimeMs(); } /** * Protobuf type {@code alluxio.proto.journal.PersistFileEntry} * * <pre> * next available id: 4 * </pre> */ public static final class PersistFileEntry extends com.google.protobuf.GeneratedMessage implements PersistFileEntryOrBuilder { // Use PersistFileEntry.newBuilder() to construct. private PersistFileEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PersistFileEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PersistFileEntry defaultInstance; public static PersistFileEntry getDefaultInstance() { return defaultInstance; } public PersistFileEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PersistFileEntry( 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; id_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; length_ = input.readInt64(); break; } case 24: { bitField0_ |= 0x00000004; opTimeMs_ = input.readInt64(); 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 alluxio.proto.journal.File.internal_static_alluxio_proto_journal_PersistFileEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_PersistFileEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.PersistFileEntry.class, alluxio.proto.journal.File.PersistFileEntry.Builder.class); } public static com.google.protobuf.Parser<PersistFileEntry> PARSER = new com.google.protobuf.AbstractParser<PersistFileEntry>() { public PersistFileEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PersistFileEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<PersistFileEntry> getParserForType() { return PARSER; } private int bitField0_; // optional int64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } // optional int64 length = 2; public static final int LENGTH_FIELD_NUMBER = 2; private long length_; /** * <code>optional int64 length = 2;</code> */ public boolean hasLength() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 length = 2;</code> */ public long getLength() { return length_; } // optional int64 op_time_ms = 3; public static final int OP_TIME_MS_FIELD_NUMBER = 3; private long opTimeMs_; /** * <code>optional int64 op_time_ms = 3;</code> */ public boolean hasOpTimeMs() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int64 op_time_ms = 3;</code> */ public long getOpTimeMs() { return opTimeMs_; } private void initFields() { id_ = 0L; length_ = 0L; opTimeMs_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, length_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, opTimeMs_); } 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 .computeInt64Size(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, length_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, opTimeMs_); } 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(); } public static alluxio.proto.journal.File.PersistFileEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.PersistFileEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.PersistFileEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.PersistFileEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.PersistFileEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.PersistFileEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.PersistFileEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static alluxio.proto.journal.File.PersistFileEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.PersistFileEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.PersistFileEntry 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(alluxio.proto.journal.File.PersistFileEntry 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 alluxio.proto.journal.PersistFileEntry} * * <pre> * next available id: 4 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements alluxio.proto.journal.File.PersistFileEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_PersistFileEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_PersistFileEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.PersistFileEntry.class, alluxio.proto.journal.File.PersistFileEntry.Builder.class); } // Construct using alluxio.proto.journal.File.PersistFileEntry.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(); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); length_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); opTimeMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_PersistFileEntry_descriptor; } public alluxio.proto.journal.File.PersistFileEntry getDefaultInstanceForType() { return alluxio.proto.journal.File.PersistFileEntry.getDefaultInstance(); } public alluxio.proto.journal.File.PersistFileEntry build() { alluxio.proto.journal.File.PersistFileEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public alluxio.proto.journal.File.PersistFileEntry buildPartial() { alluxio.proto.journal.File.PersistFileEntry result = new alluxio.proto.journal.File.PersistFileEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.length_ = length_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.opTimeMs_ = opTimeMs_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.proto.journal.File.PersistFileEntry) { return mergeFrom((alluxio.proto.journal.File.PersistFileEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.proto.journal.File.PersistFileEntry other) { if (other == alluxio.proto.journal.File.PersistFileEntry.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasLength()) { setLength(other.getLength()); } if (other.hasOpTimeMs()) { setOpTimeMs(other.getOpTimeMs()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.File.PersistFileEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.File.PersistFileEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 id = 1; private long id_ ; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } /** * <code>optional int64 id = 1;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * <code>optional int64 id = 1;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // optional int64 length = 2; private long length_ ; /** * <code>optional int64 length = 2;</code> */ public boolean hasLength() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 length = 2;</code> */ public long getLength() { return length_; } /** * <code>optional int64 length = 2;</code> */ public Builder setLength(long value) { bitField0_ |= 0x00000002; length_ = value; onChanged(); return this; } /** * <code>optional int64 length = 2;</code> */ public Builder clearLength() { bitField0_ = (bitField0_ & ~0x00000002); length_ = 0L; onChanged(); return this; } // optional int64 op_time_ms = 3; private long opTimeMs_ ; /** * <code>optional int64 op_time_ms = 3;</code> */ public boolean hasOpTimeMs() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int64 op_time_ms = 3;</code> */ public long getOpTimeMs() { return opTimeMs_; } /** * <code>optional int64 op_time_ms = 3;</code> */ public Builder setOpTimeMs(long value) { bitField0_ |= 0x00000004; opTimeMs_ = value; onChanged(); return this; } /** * <code>optional int64 op_time_ms = 3;</code> */ public Builder clearOpTimeMs() { bitField0_ = (bitField0_ & ~0x00000004); opTimeMs_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.PersistFileEntry) } static { defaultInstance = new PersistFileEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:alluxio.proto.journal.PersistFileEntry) } public interface ReinitializeFileEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string path = 1; /** * <code>optional string path = 1;</code> */ boolean hasPath(); /** * <code>optional string path = 1;</code> */ java.lang.String getPath(); /** * <code>optional string path = 1;</code> */ com.google.protobuf.ByteString getPathBytes(); // optional int64 block_size_bytes = 2; /** * <code>optional int64 block_size_bytes = 2;</code> */ boolean hasBlockSizeBytes(); /** * <code>optional int64 block_size_bytes = 2;</code> */ long getBlockSizeBytes(); // optional int64 ttl = 3; /** * <code>optional int64 ttl = 3;</code> */ boolean hasTtl(); /** * <code>optional int64 ttl = 3;</code> */ long getTtl(); // optional .alluxio.proto.journal.PTtlAction ttlAction = 4 [default = DELETE]; /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 4 [default = DELETE];</code> */ boolean hasTtlAction(); /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 4 [default = DELETE];</code> */ alluxio.proto.journal.File.PTtlAction getTtlAction(); } /** * Protobuf type {@code alluxio.proto.journal.ReinitializeFileEntry} * * <pre> * next available id: 5 * </pre> */ public static final class ReinitializeFileEntry extends com.google.protobuf.GeneratedMessage implements ReinitializeFileEntryOrBuilder { // Use ReinitializeFileEntry.newBuilder() to construct. private ReinitializeFileEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ReinitializeFileEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ReinitializeFileEntry defaultInstance; public static ReinitializeFileEntry getDefaultInstance() { return defaultInstance; } public ReinitializeFileEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReinitializeFileEntry( 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 10: { bitField0_ |= 0x00000001; path_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; blockSizeBytes_ = input.readInt64(); break; } case 24: { bitField0_ |= 0x00000004; ttl_ = input.readInt64(); break; } case 32: { int rawValue = input.readEnum(); alluxio.proto.journal.File.PTtlAction value = alluxio.proto.journal.File.PTtlAction.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(4, rawValue); } else { bitField0_ |= 0x00000008; ttlAction_ = value; } 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 alluxio.proto.journal.File.internal_static_alluxio_proto_journal_ReinitializeFileEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_ReinitializeFileEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.ReinitializeFileEntry.class, alluxio.proto.journal.File.ReinitializeFileEntry.Builder.class); } public static com.google.protobuf.Parser<ReinitializeFileEntry> PARSER = new com.google.protobuf.AbstractParser<ReinitializeFileEntry>() { public ReinitializeFileEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReinitializeFileEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ReinitializeFileEntry> getParserForType() { return PARSER; } private int bitField0_; // optional string path = 1; public static final int PATH_FIELD_NUMBER = 1; private java.lang.Object path_; /** * <code>optional string path = 1;</code> */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string path = 1;</code> */ 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; } } /** * <code>optional string path = 1;</code> */ 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 int64 block_size_bytes = 2; public static final int BLOCK_SIZE_BYTES_FIELD_NUMBER = 2; private long blockSizeBytes_; /** * <code>optional int64 block_size_bytes = 2;</code> */ public boolean hasBlockSizeBytes() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 block_size_bytes = 2;</code> */ public long getBlockSizeBytes() { return blockSizeBytes_; } // optional int64 ttl = 3; public static final int TTL_FIELD_NUMBER = 3; private long ttl_; /** * <code>optional int64 ttl = 3;</code> */ public boolean hasTtl() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int64 ttl = 3;</code> */ public long getTtl() { return ttl_; } // optional .alluxio.proto.journal.PTtlAction ttlAction = 4 [default = DELETE]; public static final int TTLACTION_FIELD_NUMBER = 4; private alluxio.proto.journal.File.PTtlAction ttlAction_; /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 4 [default = DELETE];</code> */ public boolean hasTtlAction() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 4 [default = DELETE];</code> */ public alluxio.proto.journal.File.PTtlAction getTtlAction() { return ttlAction_; } private void initFields() { path_ = ""; blockSizeBytes_ = 0L; ttl_ = 0L; ttlAction_ = alluxio.proto.journal.File.PTtlAction.DELETE; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getPathBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, blockSizeBytes_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, ttl_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeEnum(4, ttlAction_.getNumber()); } 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 .computeBytesSize(1, getPathBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, blockSizeBytes_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, ttl_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, ttlAction_.getNumber()); } 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(); } public static alluxio.proto.journal.File.ReinitializeFileEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.ReinitializeFileEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.ReinitializeFileEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.ReinitializeFileEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.ReinitializeFileEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.ReinitializeFileEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.ReinitializeFileEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static alluxio.proto.journal.File.ReinitializeFileEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.ReinitializeFileEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.ReinitializeFileEntry 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(alluxio.proto.journal.File.ReinitializeFileEntry 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 alluxio.proto.journal.ReinitializeFileEntry} * * <pre> * next available id: 5 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements alluxio.proto.journal.File.ReinitializeFileEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_ReinitializeFileEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_ReinitializeFileEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.ReinitializeFileEntry.class, alluxio.proto.journal.File.ReinitializeFileEntry.Builder.class); } // Construct using alluxio.proto.journal.File.ReinitializeFileEntry.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(); path_ = ""; bitField0_ = (bitField0_ & ~0x00000001); blockSizeBytes_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); ttl_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); ttlAction_ = alluxio.proto.journal.File.PTtlAction.DELETE; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_ReinitializeFileEntry_descriptor; } public alluxio.proto.journal.File.ReinitializeFileEntry getDefaultInstanceForType() { return alluxio.proto.journal.File.ReinitializeFileEntry.getDefaultInstance(); } public alluxio.proto.journal.File.ReinitializeFileEntry build() { alluxio.proto.journal.File.ReinitializeFileEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public alluxio.proto.journal.File.ReinitializeFileEntry buildPartial() { alluxio.proto.journal.File.ReinitializeFileEntry result = new alluxio.proto.journal.File.ReinitializeFileEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.path_ = path_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.blockSizeBytes_ = blockSizeBytes_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.ttl_ = ttl_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.ttlAction_ = ttlAction_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.proto.journal.File.ReinitializeFileEntry) { return mergeFrom((alluxio.proto.journal.File.ReinitializeFileEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.proto.journal.File.ReinitializeFileEntry other) { if (other == alluxio.proto.journal.File.ReinitializeFileEntry.getDefaultInstance()) return this; if (other.hasPath()) { bitField0_ |= 0x00000001; path_ = other.path_; onChanged(); } if (other.hasBlockSizeBytes()) { setBlockSizeBytes(other.getBlockSizeBytes()); } if (other.hasTtl()) { setTtl(other.getTtl()); } if (other.hasTtlAction()) { setTtlAction(other.getTtlAction()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.File.ReinitializeFileEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.File.ReinitializeFileEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string path = 1; private java.lang.Object path_ = ""; /** * <code>optional string path = 1;</code> */ public boolean hasPath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string path = 1;</code> */ 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; } } /** * <code>optional string path = 1;</code> */ 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; } } /** * <code>optional string path = 1;</code> */ public Builder setPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } /** * <code>optional string path = 1;</code> */ public Builder clearPath() { bitField0_ = (bitField0_ & ~0x00000001); path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** * <code>optional string path = 1;</code> */ public Builder setPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; path_ = value; onChanged(); return this; } // optional int64 block_size_bytes = 2; private long blockSizeBytes_ ; /** * <code>optional int64 block_size_bytes = 2;</code> */ public boolean hasBlockSizeBytes() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 block_size_bytes = 2;</code> */ public long getBlockSizeBytes() { return blockSizeBytes_; } /** * <code>optional int64 block_size_bytes = 2;</code> */ public Builder setBlockSizeBytes(long value) { bitField0_ |= 0x00000002; blockSizeBytes_ = value; onChanged(); return this; } /** * <code>optional int64 block_size_bytes = 2;</code> */ public Builder clearBlockSizeBytes() { bitField0_ = (bitField0_ & ~0x00000002); blockSizeBytes_ = 0L; onChanged(); return this; } // optional int64 ttl = 3; private long ttl_ ; /** * <code>optional int64 ttl = 3;</code> */ public boolean hasTtl() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int64 ttl = 3;</code> */ public long getTtl() { return ttl_; } /** * <code>optional int64 ttl = 3;</code> */ public Builder setTtl(long value) { bitField0_ |= 0x00000004; ttl_ = value; onChanged(); return this; } /** * <code>optional int64 ttl = 3;</code> */ public Builder clearTtl() { bitField0_ = (bitField0_ & ~0x00000004); ttl_ = 0L; onChanged(); return this; } // optional .alluxio.proto.journal.PTtlAction ttlAction = 4 [default = DELETE]; private alluxio.proto.journal.File.PTtlAction ttlAction_ = alluxio.proto.journal.File.PTtlAction.DELETE; /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 4 [default = DELETE];</code> */ public boolean hasTtlAction() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 4 [default = DELETE];</code> */ public alluxio.proto.journal.File.PTtlAction getTtlAction() { return ttlAction_; } /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 4 [default = DELETE];</code> */ public Builder setTtlAction(alluxio.proto.journal.File.PTtlAction value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; ttlAction_ = value; onChanged(); return this; } /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 4 [default = DELETE];</code> */ public Builder clearTtlAction() { bitField0_ = (bitField0_ & ~0x00000008); ttlAction_ = alluxio.proto.journal.File.PTtlAction.DELETE; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.ReinitializeFileEntry) } static { defaultInstance = new ReinitializeFileEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:alluxio.proto.journal.ReinitializeFileEntry) } public interface RenameEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 id = 1; /** * <code>optional int64 id = 1;</code> */ boolean hasId(); /** * <code>optional int64 id = 1;</code> */ long getId(); // optional string dst_path = 2; /** * <code>optional string dst_path = 2;</code> */ boolean hasDstPath(); /** * <code>optional string dst_path = 2;</code> */ java.lang.String getDstPath(); /** * <code>optional string dst_path = 2;</code> */ com.google.protobuf.ByteString getDstPathBytes(); // optional int64 op_time_ms = 3; /** * <code>optional int64 op_time_ms = 3;</code> */ boolean hasOpTimeMs(); /** * <code>optional int64 op_time_ms = 3;</code> */ long getOpTimeMs(); } /** * Protobuf type {@code alluxio.proto.journal.RenameEntry} * * <pre> * next available id: 4 * </pre> */ public static final class RenameEntry extends com.google.protobuf.GeneratedMessage implements RenameEntryOrBuilder { // Use RenameEntry.newBuilder() to construct. private RenameEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RenameEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RenameEntry defaultInstance; public static RenameEntry getDefaultInstance() { return defaultInstance; } public RenameEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RenameEntry( 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; id_ = input.readInt64(); break; } case 18: { bitField0_ |= 0x00000002; dstPath_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; opTimeMs_ = input.readInt64(); 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 alluxio.proto.journal.File.internal_static_alluxio_proto_journal_RenameEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_RenameEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.RenameEntry.class, alluxio.proto.journal.File.RenameEntry.Builder.class); } public static com.google.protobuf.Parser<RenameEntry> PARSER = new com.google.protobuf.AbstractParser<RenameEntry>() { public RenameEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RenameEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RenameEntry> getParserForType() { return PARSER; } private int bitField0_; // optional int64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } // optional string dst_path = 2; public static final int DST_PATH_FIELD_NUMBER = 2; private java.lang.Object dstPath_; /** * <code>optional string dst_path = 2;</code> */ public boolean hasDstPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string dst_path = 2;</code> */ public java.lang.String getDstPath() { java.lang.Object ref = dstPath_; 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()) { dstPath_ = s; } return s; } } /** * <code>optional string dst_path = 2;</code> */ public com.google.protobuf.ByteString getDstPathBytes() { java.lang.Object ref = dstPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dstPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int64 op_time_ms = 3; public static final int OP_TIME_MS_FIELD_NUMBER = 3; private long opTimeMs_; /** * <code>optional int64 op_time_ms = 3;</code> */ public boolean hasOpTimeMs() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int64 op_time_ms = 3;</code> */ public long getOpTimeMs() { return opTimeMs_; } private void initFields() { id_ = 0L; dstPath_ = ""; opTimeMs_ = 0L; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getDstPathBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(3, opTimeMs_); } 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 .computeInt64Size(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getDstPathBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, opTimeMs_); } 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(); } public static alluxio.proto.journal.File.RenameEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.RenameEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.RenameEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.RenameEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.RenameEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.RenameEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.RenameEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static alluxio.proto.journal.File.RenameEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.RenameEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.RenameEntry 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(alluxio.proto.journal.File.RenameEntry 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 alluxio.proto.journal.RenameEntry} * * <pre> * next available id: 4 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements alluxio.proto.journal.File.RenameEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_RenameEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_RenameEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.RenameEntry.class, alluxio.proto.journal.File.RenameEntry.Builder.class); } // Construct using alluxio.proto.journal.File.RenameEntry.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(); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); dstPath_ = ""; bitField0_ = (bitField0_ & ~0x00000002); opTimeMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_RenameEntry_descriptor; } public alluxio.proto.journal.File.RenameEntry getDefaultInstanceForType() { return alluxio.proto.journal.File.RenameEntry.getDefaultInstance(); } public alluxio.proto.journal.File.RenameEntry build() { alluxio.proto.journal.File.RenameEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public alluxio.proto.journal.File.RenameEntry buildPartial() { alluxio.proto.journal.File.RenameEntry result = new alluxio.proto.journal.File.RenameEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.dstPath_ = dstPath_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.opTimeMs_ = opTimeMs_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.proto.journal.File.RenameEntry) { return mergeFrom((alluxio.proto.journal.File.RenameEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.proto.journal.File.RenameEntry other) { if (other == alluxio.proto.journal.File.RenameEntry.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasDstPath()) { bitField0_ |= 0x00000002; dstPath_ = other.dstPath_; onChanged(); } if (other.hasOpTimeMs()) { setOpTimeMs(other.getOpTimeMs()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.File.RenameEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.File.RenameEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 id = 1; private long id_ ; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } /** * <code>optional int64 id = 1;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * <code>optional int64 id = 1;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // optional string dst_path = 2; private java.lang.Object dstPath_ = ""; /** * <code>optional string dst_path = 2;</code> */ public boolean hasDstPath() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string dst_path = 2;</code> */ public java.lang.String getDstPath() { java.lang.Object ref = dstPath_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); dstPath_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string dst_path = 2;</code> */ public com.google.protobuf.ByteString getDstPathBytes() { java.lang.Object ref = dstPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dstPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string dst_path = 2;</code> */ public Builder setDstPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; dstPath_ = value; onChanged(); return this; } /** * <code>optional string dst_path = 2;</code> */ public Builder clearDstPath() { bitField0_ = (bitField0_ & ~0x00000002); dstPath_ = getDefaultInstance().getDstPath(); onChanged(); return this; } /** * <code>optional string dst_path = 2;</code> */ public Builder setDstPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; dstPath_ = value; onChanged(); return this; } // optional int64 op_time_ms = 3; private long opTimeMs_ ; /** * <code>optional int64 op_time_ms = 3;</code> */ public boolean hasOpTimeMs() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int64 op_time_ms = 3;</code> */ public long getOpTimeMs() { return opTimeMs_; } /** * <code>optional int64 op_time_ms = 3;</code> */ public Builder setOpTimeMs(long value) { bitField0_ |= 0x00000004; opTimeMs_ = value; onChanged(); return this; } /** * <code>optional int64 op_time_ms = 3;</code> */ public Builder clearOpTimeMs() { bitField0_ = (bitField0_ & ~0x00000004); opTimeMs_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.RenameEntry) } static { defaultInstance = new RenameEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:alluxio.proto.journal.RenameEntry) } public interface SetAttributeEntryOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int64 id = 1; /** * <code>optional int64 id = 1;</code> */ boolean hasId(); /** * <code>optional int64 id = 1;</code> */ long getId(); // optional int64 op_time_ms = 2; /** * <code>optional int64 op_time_ms = 2;</code> */ boolean hasOpTimeMs(); /** * <code>optional int64 op_time_ms = 2;</code> */ long getOpTimeMs(); // optional bool pinned = 3; /** * <code>optional bool pinned = 3;</code> */ boolean hasPinned(); /** * <code>optional bool pinned = 3;</code> */ boolean getPinned(); // optional int64 ttl = 4; /** * <code>optional int64 ttl = 4;</code> */ boolean hasTtl(); /** * <code>optional int64 ttl = 4;</code> */ long getTtl(); // optional bool persisted = 5; /** * <code>optional bool persisted = 5;</code> */ boolean hasPersisted(); /** * <code>optional bool persisted = 5;</code> */ boolean getPersisted(); // optional string owner = 6; /** * <code>optional string owner = 6;</code> */ boolean hasOwner(); /** * <code>optional string owner = 6;</code> */ java.lang.String getOwner(); /** * <code>optional string owner = 6;</code> */ com.google.protobuf.ByteString getOwnerBytes(); // optional string group = 7; /** * <code>optional string group = 7;</code> */ boolean hasGroup(); /** * <code>optional string group = 7;</code> */ java.lang.String getGroup(); /** * <code>optional string group = 7;</code> */ com.google.protobuf.ByteString getGroupBytes(); // optional int32 permission = 8; /** * <code>optional int32 permission = 8;</code> */ boolean hasPermission(); /** * <code>optional int32 permission = 8;</code> */ int getPermission(); // optional .alluxio.proto.journal.PTtlAction ttlAction = 9 [default = DELETE]; /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 9 [default = DELETE];</code> */ boolean hasTtlAction(); /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 9 [default = DELETE];</code> */ alluxio.proto.journal.File.PTtlAction getTtlAction(); } /** * Protobuf type {@code alluxio.proto.journal.SetAttributeEntry} * * <pre> * next available id: 10 * </pre> */ public static final class SetAttributeEntry extends com.google.protobuf.GeneratedMessage implements SetAttributeEntryOrBuilder { // Use SetAttributeEntry.newBuilder() to construct. private SetAttributeEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SetAttributeEntry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SetAttributeEntry defaultInstance; public static SetAttributeEntry getDefaultInstance() { return defaultInstance; } public SetAttributeEntry getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SetAttributeEntry( 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; id_ = input.readInt64(); break; } case 16: { bitField0_ |= 0x00000002; opTimeMs_ = input.readInt64(); break; } case 24: { bitField0_ |= 0x00000004; pinned_ = input.readBool(); break; } case 32: { bitField0_ |= 0x00000008; ttl_ = input.readInt64(); break; } case 40: { bitField0_ |= 0x00000010; persisted_ = input.readBool(); break; } case 50: { bitField0_ |= 0x00000020; owner_ = input.readBytes(); break; } case 58: { bitField0_ |= 0x00000040; group_ = input.readBytes(); break; } case 64: { bitField0_ |= 0x00000080; permission_ = input.readInt32(); break; } case 72: { int rawValue = input.readEnum(); alluxio.proto.journal.File.PTtlAction value = alluxio.proto.journal.File.PTtlAction.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(9, rawValue); } else { bitField0_ |= 0x00000100; ttlAction_ = value; } 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 alluxio.proto.journal.File.internal_static_alluxio_proto_journal_SetAttributeEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_SetAttributeEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.SetAttributeEntry.class, alluxio.proto.journal.File.SetAttributeEntry.Builder.class); } public static com.google.protobuf.Parser<SetAttributeEntry> PARSER = new com.google.protobuf.AbstractParser<SetAttributeEntry>() { public SetAttributeEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SetAttributeEntry(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<SetAttributeEntry> getParserForType() { return PARSER; } private int bitField0_; // optional int64 id = 1; public static final int ID_FIELD_NUMBER = 1; private long id_; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } // optional int64 op_time_ms = 2; public static final int OP_TIME_MS_FIELD_NUMBER = 2; private long opTimeMs_; /** * <code>optional int64 op_time_ms = 2;</code> */ public boolean hasOpTimeMs() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 op_time_ms = 2;</code> */ public long getOpTimeMs() { return opTimeMs_; } // optional bool pinned = 3; public static final int PINNED_FIELD_NUMBER = 3; private boolean pinned_; /** * <code>optional bool pinned = 3;</code> */ public boolean hasPinned() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool pinned = 3;</code> */ public boolean getPinned() { return pinned_; } // optional int64 ttl = 4; public static final int TTL_FIELD_NUMBER = 4; private long ttl_; /** * <code>optional int64 ttl = 4;</code> */ public boolean hasTtl() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int64 ttl = 4;</code> */ public long getTtl() { return ttl_; } // optional bool persisted = 5; public static final int PERSISTED_FIELD_NUMBER = 5; private boolean persisted_; /** * <code>optional bool persisted = 5;</code> */ public boolean hasPersisted() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bool persisted = 5;</code> */ public boolean getPersisted() { return persisted_; } // optional string owner = 6; public static final int OWNER_FIELD_NUMBER = 6; private java.lang.Object owner_; /** * <code>optional string owner = 6;</code> */ public boolean hasOwner() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional string owner = 6;</code> */ 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; } } /** * <code>optional string owner = 6;</code> */ 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 = 7; public static final int GROUP_FIELD_NUMBER = 7; private java.lang.Object group_; /** * <code>optional string group = 7;</code> */ public boolean hasGroup() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional string group = 7;</code> */ 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; } } /** * <code>optional string group = 7;</code> */ 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 int32 permission = 8; public static final int PERMISSION_FIELD_NUMBER = 8; private int permission_; /** * <code>optional int32 permission = 8;</code> */ public boolean hasPermission() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional int32 permission = 8;</code> */ public int getPermission() { return permission_; } // optional .alluxio.proto.journal.PTtlAction ttlAction = 9 [default = DELETE]; public static final int TTLACTION_FIELD_NUMBER = 9; private alluxio.proto.journal.File.PTtlAction ttlAction_; /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 9 [default = DELETE];</code> */ public boolean hasTtlAction() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 9 [default = DELETE];</code> */ public alluxio.proto.journal.File.PTtlAction getTtlAction() { return ttlAction_; } private void initFields() { id_ = 0L; opTimeMs_ = 0L; pinned_ = false; ttl_ = 0L; persisted_ = false; owner_ = ""; group_ = ""; permission_ = 0; ttlAction_ = alluxio.proto.journal.File.PTtlAction.DELETE; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, opTimeMs_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, pinned_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, ttl_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(5, persisted_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getOwnerBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(7, getGroupBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt32(8, permission_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeEnum(9, ttlAction_.getNumber()); } 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 .computeInt64Size(1, id_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, opTimeMs_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, pinned_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, ttl_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, persisted_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getOwnerBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, getGroupBytes()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, permission_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, ttlAction_.getNumber()); } 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(); } public static alluxio.proto.journal.File.SetAttributeEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.SetAttributeEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.SetAttributeEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.proto.journal.File.SetAttributeEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static alluxio.proto.journal.File.SetAttributeEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.SetAttributeEntry parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.SetAttributeEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static alluxio.proto.journal.File.SetAttributeEntry parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static alluxio.proto.journal.File.SetAttributeEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static alluxio.proto.journal.File.SetAttributeEntry 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(alluxio.proto.journal.File.SetAttributeEntry 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 alluxio.proto.journal.SetAttributeEntry} * * <pre> * next available id: 10 * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements alluxio.proto.journal.File.SetAttributeEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_SetAttributeEntry_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_SetAttributeEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.proto.journal.File.SetAttributeEntry.class, alluxio.proto.journal.File.SetAttributeEntry.Builder.class); } // Construct using alluxio.proto.journal.File.SetAttributeEntry.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(); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); opTimeMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); pinned_ = false; bitField0_ = (bitField0_ & ~0x00000004); ttl_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); persisted_ = false; bitField0_ = (bitField0_ & ~0x00000010); owner_ = ""; bitField0_ = (bitField0_ & ~0x00000020); group_ = ""; bitField0_ = (bitField0_ & ~0x00000040); permission_ = 0; bitField0_ = (bitField0_ & ~0x00000080); ttlAction_ = alluxio.proto.journal.File.PTtlAction.DELETE; bitField0_ = (bitField0_ & ~0x00000100); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.proto.journal.File.internal_static_alluxio_proto_journal_SetAttributeEntry_descriptor; } public alluxio.proto.journal.File.SetAttributeEntry getDefaultInstanceForType() { return alluxio.proto.journal.File.SetAttributeEntry.getDefaultInstance(); } public alluxio.proto.journal.File.SetAttributeEntry build() { alluxio.proto.journal.File.SetAttributeEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public alluxio.proto.journal.File.SetAttributeEntry buildPartial() { alluxio.proto.journal.File.SetAttributeEntry result = new alluxio.proto.journal.File.SetAttributeEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.opTimeMs_ = opTimeMs_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.pinned_ = pinned_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.ttl_ = ttl_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.persisted_ = persisted_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.owner_ = owner_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.group_ = group_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.permission_ = permission_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.ttlAction_ = ttlAction_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof alluxio.proto.journal.File.SetAttributeEntry) { return mergeFrom((alluxio.proto.journal.File.SetAttributeEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.proto.journal.File.SetAttributeEntry other) { if (other == alluxio.proto.journal.File.SetAttributeEntry.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (other.hasOpTimeMs()) { setOpTimeMs(other.getOpTimeMs()); } if (other.hasPinned()) { setPinned(other.getPinned()); } if (other.hasTtl()) { setTtl(other.getTtl()); } if (other.hasPersisted()) { setPersisted(other.getPersisted()); } if (other.hasOwner()) { bitField0_ |= 0x00000020; owner_ = other.owner_; onChanged(); } if (other.hasGroup()) { bitField0_ |= 0x00000040; group_ = other.group_; onChanged(); } if (other.hasPermission()) { setPermission(other.getPermission()); } if (other.hasTtlAction()) { setTtlAction(other.getTtlAction()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { alluxio.proto.journal.File.SetAttributeEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (alluxio.proto.journal.File.SetAttributeEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int64 id = 1; private long id_ ; /** * <code>optional int64 id = 1;</code> */ public boolean hasId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int64 id = 1;</code> */ public long getId() { return id_; } /** * <code>optional int64 id = 1;</code> */ public Builder setId(long value) { bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** * <code>optional int64 id = 1;</code> */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; onChanged(); return this; } // optional int64 op_time_ms = 2; private long opTimeMs_ ; /** * <code>optional int64 op_time_ms = 2;</code> */ public boolean hasOpTimeMs() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int64 op_time_ms = 2;</code> */ public long getOpTimeMs() { return opTimeMs_; } /** * <code>optional int64 op_time_ms = 2;</code> */ public Builder setOpTimeMs(long value) { bitField0_ |= 0x00000002; opTimeMs_ = value; onChanged(); return this; } /** * <code>optional int64 op_time_ms = 2;</code> */ public Builder clearOpTimeMs() { bitField0_ = (bitField0_ & ~0x00000002); opTimeMs_ = 0L; onChanged(); return this; } // optional bool pinned = 3; private boolean pinned_ ; /** * <code>optional bool pinned = 3;</code> */ public boolean hasPinned() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool pinned = 3;</code> */ public boolean getPinned() { return pinned_; } /** * <code>optional bool pinned = 3;</code> */ public Builder setPinned(boolean value) { bitField0_ |= 0x00000004; pinned_ = value; onChanged(); return this; } /** * <code>optional bool pinned = 3;</code> */ public Builder clearPinned() { bitField0_ = (bitField0_ & ~0x00000004); pinned_ = false; onChanged(); return this; } // optional int64 ttl = 4; private long ttl_ ; /** * <code>optional int64 ttl = 4;</code> */ public boolean hasTtl() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int64 ttl = 4;</code> */ public long getTtl() { return ttl_; } /** * <code>optional int64 ttl = 4;</code> */ public Builder setTtl(long value) { bitField0_ |= 0x00000008; ttl_ = value; onChanged(); return this; } /** * <code>optional int64 ttl = 4;</code> */ public Builder clearTtl() { bitField0_ = (bitField0_ & ~0x00000008); ttl_ = 0L; onChanged(); return this; } // optional bool persisted = 5; private boolean persisted_ ; /** * <code>optional bool persisted = 5;</code> */ public boolean hasPersisted() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bool persisted = 5;</code> */ public boolean getPersisted() { return persisted_; } /** * <code>optional bool persisted = 5;</code> */ public Builder setPersisted(boolean value) { bitField0_ |= 0x00000010; persisted_ = value; onChanged(); return this; } /** * <code>optional bool persisted = 5;</code> */ public Builder clearPersisted() { bitField0_ = (bitField0_ & ~0x00000010); persisted_ = false; onChanged(); return this; } // optional string owner = 6; private java.lang.Object owner_ = ""; /** * <code>optional string owner = 6;</code> */ public boolean hasOwner() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional string owner = 6;</code> */ 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; } } /** * <code>optional string owner = 6;</code> */ 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; } } /** * <code>optional string owner = 6;</code> */ public Builder setOwner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; owner_ = value; onChanged(); return this; } /** * <code>optional string owner = 6;</code> */ public Builder clearOwner() { bitField0_ = (bitField0_ & ~0x00000020); owner_ = getDefaultInstance().getOwner(); onChanged(); return this; } /** * <code>optional string owner = 6;</code> */ public Builder setOwnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; owner_ = value; onChanged(); return this; } // optional string group = 7; private java.lang.Object group_ = ""; /** * <code>optional string group = 7;</code> */ public boolean hasGroup() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional string group = 7;</code> */ 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; } } /** * <code>optional string group = 7;</code> */ 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; } } /** * <code>optional string group = 7;</code> */ public Builder setGroup( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; group_ = value; onChanged(); return this; } /** * <code>optional string group = 7;</code> */ public Builder clearGroup() { bitField0_ = (bitField0_ & ~0x00000040); group_ = getDefaultInstance().getGroup(); onChanged(); return this; } /** * <code>optional string group = 7;</code> */ public Builder setGroupBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; group_ = value; onChanged(); return this; } // optional int32 permission = 8; private int permission_ ; /** * <code>optional int32 permission = 8;</code> */ public boolean hasPermission() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional int32 permission = 8;</code> */ public int getPermission() { return permission_; } /** * <code>optional int32 permission = 8;</code> */ public Builder setPermission(int value) { bitField0_ |= 0x00000080; permission_ = value; onChanged(); return this; } /** * <code>optional int32 permission = 8;</code> */ public Builder clearPermission() { bitField0_ = (bitField0_ & ~0x00000080); permission_ = 0; onChanged(); return this; } // optional .alluxio.proto.journal.PTtlAction ttlAction = 9 [default = DELETE]; private alluxio.proto.journal.File.PTtlAction ttlAction_ = alluxio.proto.journal.File.PTtlAction.DELETE; /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 9 [default = DELETE];</code> */ public boolean hasTtlAction() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 9 [default = DELETE];</code> */ public alluxio.proto.journal.File.PTtlAction getTtlAction() { return ttlAction_; } /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 9 [default = DELETE];</code> */ public Builder setTtlAction(alluxio.proto.journal.File.PTtlAction value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; ttlAction_ = value; onChanged(); return this; } /** * <code>optional .alluxio.proto.journal.PTtlAction ttlAction = 9 [default = DELETE];</code> */ public Builder clearTtlAction() { bitField0_ = (bitField0_ & ~0x00000100); ttlAction_ = alluxio.proto.journal.File.PTtlAction.DELETE; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:alluxio.proto.journal.SetAttributeEntry) } static { defaultInstance = new SetAttributeEntry(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:alluxio.proto.journal.SetAttributeEntry) } private static com.google.protobuf.Descriptors.Descriptor internal_static_alluxio_proto_journal_StringPairEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_alluxio_proto_journal_StringPairEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_alluxio_proto_journal_AddMountPointEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_alluxio_proto_journal_AddMountPointEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_alluxio_proto_journal_AsyncPersistRequestEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_alluxio_proto_journal_AsyncPersistRequestEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_alluxio_proto_journal_CompleteFileEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_alluxio_proto_journal_CompleteFileEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_alluxio_proto_journal_DeleteFileEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_alluxio_proto_journal_DeleteFileEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_alluxio_proto_journal_DeleteMountPointEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_alluxio_proto_journal_DeleteMountPointEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_alluxio_proto_journal_InodeDirectoryEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_alluxio_proto_journal_InodeDirectoryEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_alluxio_proto_journal_InodeDirectoryIdGeneratorEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_alluxio_proto_journal_InodeDirectoryIdGeneratorEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_alluxio_proto_journal_InodeFileEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_alluxio_proto_journal_InodeFileEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_alluxio_proto_journal_InodeLastModificationTimeEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_alluxio_proto_journal_InodeLastModificationTimeEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_alluxio_proto_journal_PersistDirectoryEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_alluxio_proto_journal_PersistDirectoryEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_alluxio_proto_journal_PersistFileEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_alluxio_proto_journal_PersistFileEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_alluxio_proto_journal_ReinitializeFileEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_alluxio_proto_journal_ReinitializeFileEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_alluxio_proto_journal_RenameEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_alluxio_proto_journal_RenameEntry_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_alluxio_proto_journal_SetAttributeEntry_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_alluxio_proto_journal_SetAttributeEntry_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\022journal/file.proto\022\025alluxio.proto.jour" + "nal\"-\n\017StringPairEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + "alue\030\002 \001(\t\"\254\001\n\022AddMountPointEntry\022\024\n\014all" + "uxio_path\030\001 \001(\t\022\020\n\010ufs_path\030\002 \001(\t\022\020\n\010rea" + "dOnly\030\003 \001(\010\022:\n\nproperties\030\004 \003(\0132&.alluxi" + "o.proto.journal.StringPairEntry\022\016\n\006share" + "d\030\005 \001(\010\022\020\n\010mount_id\030\006 \001(\003\"+\n\030AsyncPersis" + "tRequestEntry\022\017\n\007file_id\030\001 \001(\003\"V\n\021Comple" + "teFileEntry\022\021\n\tblock_ids\030\001 \003(\003\022\n\n\002id\030\002 \001" + "(\003\022\016\n\006length\030\003 \001(\003\022\022\n\nop_time_ms\030\004 \001(\003\"Y", "\n\017DeleteFileEntry\022\n\n\002id\030\001 \001(\003\022\021\n\trecursi" + "ve\030\002 \001(\010\022\022\n\nop_time_ms\030\003 \001(\003\022\023\n\013alluxioO" + "nly\030\004 \001(\010\"-\n\025DeleteMountPointEntry\022\024\n\014al" + "luxio_path\030\001 \001(\t\"\326\002\n\023InodeDirectoryEntry" + "\022\n\n\002id\030\001 \001(\003\022\021\n\tparent_id\030\002 \001(\003\022\014\n\004name\030" + "\003 \001(\t\022\031\n\021persistence_state\030\004 \001(\t\022\016\n\006pinn" + "ed\030\005 \001(\010\022\030\n\020creation_time_ms\030\006 \001(\003\022!\n\031la" + "st_modification_time_ms\030\007 \001(\003\022\r\n\005owner\030\010" + " \001(\t\022\r\n\005group\030\t \001(\t\022\014\n\004mode\030\n \001(\005\022\023\n\013mou" + "nt_point\030\013 \001(\010\022\036\n\026direct_children_loaded", "\030\014 \001(\010\022\013\n\003ttl\030\r \001(\003\022<\n\tttlAction\030\016 \001(\0162!" + ".alluxio.proto.journal.PTtlAction:\006DELET" + "E\"O\n\036InodeDirectoryIdGeneratorEntry\022\024\n\014c" + "ontainer_id\030\001 \001(\003\022\027\n\017sequence_number\030\002 \001" + "(\003\"\374\002\n\016InodeFileEntry\022\n\n\002id\030\001 \001(\003\022\021\n\tpar" + "ent_id\030\002 \001(\003\022\014\n\004name\030\003 \001(\t\022\031\n\021persistenc" + "e_state\030\004 \001(\t\022\016\n\006pinned\030\005 \001(\010\022\030\n\020creatio" + "n_time_ms\030\006 \001(\003\022!\n\031last_modification_tim" + "e_ms\030\007 \001(\003\022\030\n\020block_size_bytes\030\010 \001(\003\022\016\n\006" + "length\030\t \001(\003\022\021\n\tcompleted\030\n \001(\010\022\021\n\tcache", "able\030\013 \001(\010\022\016\n\006blocks\030\014 \003(\003\022\013\n\003ttl\030\r \001(\003\022" + "\r\n\005owner\030\016 \001(\t\022\r\n\005group\030\017 \001(\t\022\014\n\004mode\030\020 " + "\001(\005\022<\n\tttlAction\030\021 \001(\0162!.alluxio.proto.j" + "ournal.PTtlAction:\006DELETE\"O\n\036InodeLastMo" + "dificationTimeEntry\022\n\n\002id\030\001 \001(\003\022!\n\031last_" + "modification_time_ms\030\002 \001(\003\"#\n\025PersistDir" + "ectoryEntry\022\n\n\002id\030\001 \001(\003\"B\n\020PersistFileEn" + "try\022\n\n\002id\030\001 \001(\003\022\016\n\006length\030\002 \001(\003\022\022\n\nop_ti" + "me_ms\030\003 \001(\003\"\212\001\n\025ReinitializeFileEntry\022\014\n" + "\004path\030\001 \001(\t\022\030\n\020block_size_bytes\030\002 \001(\003\022\013\n", "\003ttl\030\003 \001(\003\022<\n\tttlAction\030\004 \001(\0162!.alluxio." + "proto.journal.PTtlAction:\006DELETE\"?\n\013Rena" + "meEntry\022\n\n\002id\030\001 \001(\003\022\020\n\010dst_path\030\002 \001(\t\022\022\n" + "\nop_time_ms\030\003 \001(\003\"\323\001\n\021SetAttributeEntry\022" + "\n\n\002id\030\001 \001(\003\022\022\n\nop_time_ms\030\002 \001(\003\022\016\n\006pinne" + "d\030\003 \001(\010\022\013\n\003ttl\030\004 \001(\003\022\021\n\tpersisted\030\005 \001(\010\022" + "\r\n\005owner\030\006 \001(\t\022\r\n\005group\030\007 \001(\t\022\022\n\npermiss" + "ion\030\010 \001(\005\022<\n\tttlAction\030\t \001(\0162!.alluxio.p" + "roto.journal.PTtlAction:\006DELETE*\"\n\nPTtlA" + "ction\022\n\n\006DELETE\020\000\022\010\n\004FREE\020\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_alluxio_proto_journal_StringPairEntry_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_alluxio_proto_journal_StringPairEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_alluxio_proto_journal_StringPairEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_alluxio_proto_journal_AddMountPointEntry_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_alluxio_proto_journal_AddMountPointEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_alluxio_proto_journal_AddMountPointEntry_descriptor, new java.lang.String[] { "AlluxioPath", "UfsPath", "ReadOnly", "Properties", "Shared", "MountId", }); internal_static_alluxio_proto_journal_AsyncPersistRequestEntry_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_alluxio_proto_journal_AsyncPersistRequestEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_alluxio_proto_journal_AsyncPersistRequestEntry_descriptor, new java.lang.String[] { "FileId", }); internal_static_alluxio_proto_journal_CompleteFileEntry_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_alluxio_proto_journal_CompleteFileEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_alluxio_proto_journal_CompleteFileEntry_descriptor, new java.lang.String[] { "BlockIds", "Id", "Length", "OpTimeMs", }); internal_static_alluxio_proto_journal_DeleteFileEntry_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_alluxio_proto_journal_DeleteFileEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_alluxio_proto_journal_DeleteFileEntry_descriptor, new java.lang.String[] { "Id", "Recursive", "OpTimeMs", "AlluxioOnly", }); internal_static_alluxio_proto_journal_DeleteMountPointEntry_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_alluxio_proto_journal_DeleteMountPointEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_alluxio_proto_journal_DeleteMountPointEntry_descriptor, new java.lang.String[] { "AlluxioPath", }); internal_static_alluxio_proto_journal_InodeDirectoryEntry_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_alluxio_proto_journal_InodeDirectoryEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_alluxio_proto_journal_InodeDirectoryEntry_descriptor, new java.lang.String[] { "Id", "ParentId", "Name", "PersistenceState", "Pinned", "CreationTimeMs", "LastModificationTimeMs", "Owner", "Group", "Mode", "MountPoint", "DirectChildrenLoaded", "Ttl", "TtlAction", }); internal_static_alluxio_proto_journal_InodeDirectoryIdGeneratorEntry_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_alluxio_proto_journal_InodeDirectoryIdGeneratorEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_alluxio_proto_journal_InodeDirectoryIdGeneratorEntry_descriptor, new java.lang.String[] { "ContainerId", "SequenceNumber", }); internal_static_alluxio_proto_journal_InodeFileEntry_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_alluxio_proto_journal_InodeFileEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_alluxio_proto_journal_InodeFileEntry_descriptor, new java.lang.String[] { "Id", "ParentId", "Name", "PersistenceState", "Pinned", "CreationTimeMs", "LastModificationTimeMs", "BlockSizeBytes", "Length", "Completed", "Cacheable", "Blocks", "Ttl", "Owner", "Group", "Mode", "TtlAction", }); internal_static_alluxio_proto_journal_InodeLastModificationTimeEntry_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_alluxio_proto_journal_InodeLastModificationTimeEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_alluxio_proto_journal_InodeLastModificationTimeEntry_descriptor, new java.lang.String[] { "Id", "LastModificationTimeMs", }); internal_static_alluxio_proto_journal_PersistDirectoryEntry_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_alluxio_proto_journal_PersistDirectoryEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_alluxio_proto_journal_PersistDirectoryEntry_descriptor, new java.lang.String[] { "Id", }); internal_static_alluxio_proto_journal_PersistFileEntry_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_alluxio_proto_journal_PersistFileEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_alluxio_proto_journal_PersistFileEntry_descriptor, new java.lang.String[] { "Id", "Length", "OpTimeMs", }); internal_static_alluxio_proto_journal_ReinitializeFileEntry_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_alluxio_proto_journal_ReinitializeFileEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_alluxio_proto_journal_ReinitializeFileEntry_descriptor, new java.lang.String[] { "Path", "BlockSizeBytes", "Ttl", "TtlAction", }); internal_static_alluxio_proto_journal_RenameEntry_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_alluxio_proto_journal_RenameEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_alluxio_proto_journal_RenameEntry_descriptor, new java.lang.String[] { "Id", "DstPath", "OpTimeMs", }); internal_static_alluxio_proto_journal_SetAttributeEntry_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_alluxio_proto_journal_SetAttributeEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_alluxio_proto_journal_SetAttributeEntry_descriptor, new java.lang.String[] { "Id", "OpTimeMs", "Pinned", "Ttl", "Persisted", "Owner", "Group", "Permission", "TtlAction", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }