Package org.apache.bookkeeper.proto
Class DataFormats.CookieFormat.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DataFormats.CookieFormat.Builder>
-
- org.apache.bookkeeper.proto.DataFormats.CookieFormat.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
,DataFormats.CookieFormatOrBuilder
- Enclosing class:
- DataFormats.CookieFormat
public static final class DataFormats.CookieFormat.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DataFormats.CookieFormat.Builder> implements DataFormats.CookieFormatOrBuilder
Cookie format for storing cookie information
Protobuf typeCookieFormat
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataFormats.CookieFormat.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
DataFormats.CookieFormat
build()
DataFormats.CookieFormat
buildPartial()
DataFormats.CookieFormat.Builder
clear()
DataFormats.CookieFormat.Builder
clearBookieHost()
required string bookieHost = 1;
DataFormats.CookieFormat.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DataFormats.CookieFormat.Builder
clearIndexDirs()
optional string indexDirs = 5;
DataFormats.CookieFormat.Builder
clearInstanceId()
optional string instanceId = 4;
DataFormats.CookieFormat.Builder
clearJournalDir()
required string journalDir = 2;
DataFormats.CookieFormat.Builder
clearLedgerDirs()
required string ledgerDirs = 3;
DataFormats.CookieFormat.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DataFormats.CookieFormat.Builder
clone()
java.lang.String
getBookieHost()
required string bookieHost = 1;
com.google.protobuf.ByteString
getBookieHostBytes()
required string bookieHost = 1;
DataFormats.CookieFormat
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getIndexDirs()
optional string indexDirs = 5;
com.google.protobuf.ByteString
getIndexDirsBytes()
optional string indexDirs = 5;
java.lang.String
getInstanceId()
optional string instanceId = 4;
com.google.protobuf.ByteString
getInstanceIdBytes()
optional string instanceId = 4;
java.lang.String
getJournalDir()
required string journalDir = 2;
com.google.protobuf.ByteString
getJournalDirBytes()
required string journalDir = 2;
java.lang.String
getLedgerDirs()
required string ledgerDirs = 3;
com.google.protobuf.ByteString
getLedgerDirsBytes()
required string ledgerDirs = 3;
boolean
hasBookieHost()
required string bookieHost = 1;
boolean
hasIndexDirs()
optional string indexDirs = 5;
boolean
hasInstanceId()
optional string instanceId = 4;
boolean
hasJournalDir()
required string journalDir = 2;
boolean
hasLedgerDirs()
required string ledgerDirs = 3;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DataFormats.CookieFormat.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DataFormats.CookieFormat.Builder
mergeFrom(com.google.protobuf.Message other)
DataFormats.CookieFormat.Builder
mergeFrom(DataFormats.CookieFormat other)
DataFormats.CookieFormat.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DataFormats.CookieFormat.Builder
setBookieHost(java.lang.String value)
required string bookieHost = 1;
DataFormats.CookieFormat.Builder
setBookieHostBytes(com.google.protobuf.ByteString value)
required string bookieHost = 1;
DataFormats.CookieFormat.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
DataFormats.CookieFormat.Builder
setIndexDirs(java.lang.String value)
optional string indexDirs = 5;
DataFormats.CookieFormat.Builder
setIndexDirsBytes(com.google.protobuf.ByteString value)
optional string indexDirs = 5;
DataFormats.CookieFormat.Builder
setInstanceId(java.lang.String value)
optional string instanceId = 4;
DataFormats.CookieFormat.Builder
setInstanceIdBytes(com.google.protobuf.ByteString value)
optional string instanceId = 4;
DataFormats.CookieFormat.Builder
setJournalDir(java.lang.String value)
required string journalDir = 2;
DataFormats.CookieFormat.Builder
setJournalDirBytes(com.google.protobuf.ByteString value)
required string journalDir = 2;
DataFormats.CookieFormat.Builder
setLedgerDirs(java.lang.String value)
required string ledgerDirs = 3;
DataFormats.CookieFormat.Builder
setLedgerDirsBytes(com.google.protobuf.ByteString value)
required string ledgerDirs = 3;
DataFormats.CookieFormat.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
DataFormats.CookieFormat.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.CookieFormat.Builder>
-
clear
public DataFormats.CookieFormat.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.CookieFormat.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.CookieFormat.Builder>
-
getDefaultInstanceForType
public DataFormats.CookieFormat getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DataFormats.CookieFormat build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DataFormats.CookieFormat buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DataFormats.CookieFormat.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.CookieFormat.Builder>
-
setField
public DataFormats.CookieFormat.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.CookieFormat.Builder>
-
clearField
public DataFormats.CookieFormat.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.CookieFormat.Builder>
-
clearOneof
public DataFormats.CookieFormat.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.CookieFormat.Builder>
-
setRepeatedField
public DataFormats.CookieFormat.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.CookieFormat.Builder>
-
addRepeatedField
public DataFormats.CookieFormat.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.CookieFormat.Builder>
-
mergeFrom
public DataFormats.CookieFormat.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DataFormats.CookieFormat.Builder>
-
mergeFrom
public DataFormats.CookieFormat.Builder mergeFrom(DataFormats.CookieFormat other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.CookieFormat.Builder>
-
mergeFrom
public DataFormats.CookieFormat.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DataFormats.CookieFormat.Builder>
- Throws:
java.io.IOException
-
hasBookieHost
public boolean hasBookieHost()
required string bookieHost = 1;
- Specified by:
hasBookieHost
in interfaceDataFormats.CookieFormatOrBuilder
- Returns:
- Whether the bookieHost field is set.
-
getBookieHost
public java.lang.String getBookieHost()
required string bookieHost = 1;
- Specified by:
getBookieHost
in interfaceDataFormats.CookieFormatOrBuilder
- Returns:
- The bookieHost.
-
getBookieHostBytes
public com.google.protobuf.ByteString getBookieHostBytes()
required string bookieHost = 1;
- Specified by:
getBookieHostBytes
in interfaceDataFormats.CookieFormatOrBuilder
- Returns:
- The bytes for bookieHost.
-
setBookieHost
public DataFormats.CookieFormat.Builder setBookieHost(java.lang.String value)
required string bookieHost = 1;
- Parameters:
value
- The bookieHost to set.- Returns:
- This builder for chaining.
-
clearBookieHost
public DataFormats.CookieFormat.Builder clearBookieHost()
required string bookieHost = 1;
- Returns:
- This builder for chaining.
-
setBookieHostBytes
public DataFormats.CookieFormat.Builder setBookieHostBytes(com.google.protobuf.ByteString value)
required string bookieHost = 1;
- Parameters:
value
- The bytes for bookieHost to set.- Returns:
- This builder for chaining.
-
hasJournalDir
public boolean hasJournalDir()
required string journalDir = 2;
- Specified by:
hasJournalDir
in interfaceDataFormats.CookieFormatOrBuilder
- Returns:
- Whether the journalDir field is set.
-
getJournalDir
public java.lang.String getJournalDir()
required string journalDir = 2;
- Specified by:
getJournalDir
in interfaceDataFormats.CookieFormatOrBuilder
- Returns:
- The journalDir.
-
getJournalDirBytes
public com.google.protobuf.ByteString getJournalDirBytes()
required string journalDir = 2;
- Specified by:
getJournalDirBytes
in interfaceDataFormats.CookieFormatOrBuilder
- Returns:
- The bytes for journalDir.
-
setJournalDir
public DataFormats.CookieFormat.Builder setJournalDir(java.lang.String value)
required string journalDir = 2;
- Parameters:
value
- The journalDir to set.- Returns:
- This builder for chaining.
-
clearJournalDir
public DataFormats.CookieFormat.Builder clearJournalDir()
required string journalDir = 2;
- Returns:
- This builder for chaining.
-
setJournalDirBytes
public DataFormats.CookieFormat.Builder setJournalDirBytes(com.google.protobuf.ByteString value)
required string journalDir = 2;
- Parameters:
value
- The bytes for journalDir to set.- Returns:
- This builder for chaining.
-
hasLedgerDirs
public boolean hasLedgerDirs()
required string ledgerDirs = 3;
- Specified by:
hasLedgerDirs
in interfaceDataFormats.CookieFormatOrBuilder
- Returns:
- Whether the ledgerDirs field is set.
-
getLedgerDirs
public java.lang.String getLedgerDirs()
required string ledgerDirs = 3;
- Specified by:
getLedgerDirs
in interfaceDataFormats.CookieFormatOrBuilder
- Returns:
- The ledgerDirs.
-
getLedgerDirsBytes
public com.google.protobuf.ByteString getLedgerDirsBytes()
required string ledgerDirs = 3;
- Specified by:
getLedgerDirsBytes
in interfaceDataFormats.CookieFormatOrBuilder
- Returns:
- The bytes for ledgerDirs.
-
setLedgerDirs
public DataFormats.CookieFormat.Builder setLedgerDirs(java.lang.String value)
required string ledgerDirs = 3;
- Parameters:
value
- The ledgerDirs to set.- Returns:
- This builder for chaining.
-
clearLedgerDirs
public DataFormats.CookieFormat.Builder clearLedgerDirs()
required string ledgerDirs = 3;
- Returns:
- This builder for chaining.
-
setLedgerDirsBytes
public DataFormats.CookieFormat.Builder setLedgerDirsBytes(com.google.protobuf.ByteString value)
required string ledgerDirs = 3;
- Parameters:
value
- The bytes for ledgerDirs to set.- Returns:
- This builder for chaining.
-
hasInstanceId
public boolean hasInstanceId()
optional string instanceId = 4;
- Specified by:
hasInstanceId
in interfaceDataFormats.CookieFormatOrBuilder
- Returns:
- Whether the instanceId field is set.
-
getInstanceId
public java.lang.String getInstanceId()
optional string instanceId = 4;
- Specified by:
getInstanceId
in interfaceDataFormats.CookieFormatOrBuilder
- Returns:
- The instanceId.
-
getInstanceIdBytes
public com.google.protobuf.ByteString getInstanceIdBytes()
optional string instanceId = 4;
- Specified by:
getInstanceIdBytes
in interfaceDataFormats.CookieFormatOrBuilder
- Returns:
- The bytes for instanceId.
-
setInstanceId
public DataFormats.CookieFormat.Builder setInstanceId(java.lang.String value)
optional string instanceId = 4;
- Parameters:
value
- The instanceId to set.- Returns:
- This builder for chaining.
-
clearInstanceId
public DataFormats.CookieFormat.Builder clearInstanceId()
optional string instanceId = 4;
- Returns:
- This builder for chaining.
-
setInstanceIdBytes
public DataFormats.CookieFormat.Builder setInstanceIdBytes(com.google.protobuf.ByteString value)
optional string instanceId = 4;
- Parameters:
value
- The bytes for instanceId to set.- Returns:
- This builder for chaining.
-
hasIndexDirs
public boolean hasIndexDirs()
optional string indexDirs = 5;
- Specified by:
hasIndexDirs
in interfaceDataFormats.CookieFormatOrBuilder
- Returns:
- Whether the indexDirs field is set.
-
getIndexDirs
public java.lang.String getIndexDirs()
optional string indexDirs = 5;
- Specified by:
getIndexDirs
in interfaceDataFormats.CookieFormatOrBuilder
- Returns:
- The indexDirs.
-
getIndexDirsBytes
public com.google.protobuf.ByteString getIndexDirsBytes()
optional string indexDirs = 5;
- Specified by:
getIndexDirsBytes
in interfaceDataFormats.CookieFormatOrBuilder
- Returns:
- The bytes for indexDirs.
-
setIndexDirs
public DataFormats.CookieFormat.Builder setIndexDirs(java.lang.String value)
optional string indexDirs = 5;
- Parameters:
value
- The indexDirs to set.- Returns:
- This builder for chaining.
-
clearIndexDirs
public DataFormats.CookieFormat.Builder clearIndexDirs()
optional string indexDirs = 5;
- Returns:
- This builder for chaining.
-
setIndexDirsBytes
public DataFormats.CookieFormat.Builder setIndexDirsBytes(com.google.protobuf.ByteString value)
optional string indexDirs = 5;
- Parameters:
value
- The bytes for indexDirs to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final DataFormats.CookieFormat.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.CookieFormat.Builder>
-
mergeUnknownFields
public final DataFormats.CookieFormat.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.CookieFormat.Builder>
-
-