Package org.apache.bookkeeper.proto
Class DataFormats.LedgerMetadataFormat.Segment.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DataFormats.LedgerMetadataFormat.Segment.Builder>
-
- org.apache.bookkeeper.proto.DataFormats.LedgerMetadataFormat.Segment.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.LedgerMetadataFormat.SegmentOrBuilder
- Enclosing class:
- DataFormats.LedgerMetadataFormat.Segment
public static final class DataFormats.LedgerMetadataFormat.Segment.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DataFormats.LedgerMetadataFormat.Segment.Builder> implements DataFormats.LedgerMetadataFormat.SegmentOrBuilder
Protobuf typeLedgerMetadataFormat.Segment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DataFormats.LedgerMetadataFormat.Segment.Builder
addAllEnsembleMember(java.lang.Iterable<java.lang.String> values)
repeated string ensembleMember = 1;
DataFormats.LedgerMetadataFormat.Segment.Builder
addEnsembleMember(java.lang.String value)
repeated string ensembleMember = 1;
DataFormats.LedgerMetadataFormat.Segment.Builder
addEnsembleMemberBytes(com.google.protobuf.ByteString value)
repeated string ensembleMember = 1;
DataFormats.LedgerMetadataFormat.Segment.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
DataFormats.LedgerMetadataFormat.Segment
build()
DataFormats.LedgerMetadataFormat.Segment
buildPartial()
DataFormats.LedgerMetadataFormat.Segment.Builder
clear()
DataFormats.LedgerMetadataFormat.Segment.Builder
clearEnsembleMember()
repeated string ensembleMember = 1;
DataFormats.LedgerMetadataFormat.Segment.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DataFormats.LedgerMetadataFormat.Segment.Builder
clearFirstEntryId()
required int64 firstEntryId = 2;
DataFormats.LedgerMetadataFormat.Segment.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DataFormats.LedgerMetadataFormat.Segment.Builder
clone()
DataFormats.LedgerMetadataFormat.Segment
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getEnsembleMember(int index)
repeated string ensembleMember = 1;
com.google.protobuf.ByteString
getEnsembleMemberBytes(int index)
repeated string ensembleMember = 1;
int
getEnsembleMemberCount()
repeated string ensembleMember = 1;
com.google.protobuf.ProtocolStringList
getEnsembleMemberList()
repeated string ensembleMember = 1;
long
getFirstEntryId()
required int64 firstEntryId = 2;
boolean
hasFirstEntryId()
required int64 firstEntryId = 2;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DataFormats.LedgerMetadataFormat.Segment.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DataFormats.LedgerMetadataFormat.Segment.Builder
mergeFrom(com.google.protobuf.Message other)
DataFormats.LedgerMetadataFormat.Segment.Builder
mergeFrom(DataFormats.LedgerMetadataFormat.Segment other)
DataFormats.LedgerMetadataFormat.Segment.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DataFormats.LedgerMetadataFormat.Segment.Builder
setEnsembleMember(int index, java.lang.String value)
repeated string ensembleMember = 1;
DataFormats.LedgerMetadataFormat.Segment.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
DataFormats.LedgerMetadataFormat.Segment.Builder
setFirstEntryId(long value)
required int64 firstEntryId = 2;
DataFormats.LedgerMetadataFormat.Segment.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
DataFormats.LedgerMetadataFormat.Segment.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.LedgerMetadataFormat.Segment.Builder>
-
clear
public DataFormats.LedgerMetadataFormat.Segment.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.LedgerMetadataFormat.Segment.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.LedgerMetadataFormat.Segment.Builder>
-
getDefaultInstanceForType
public DataFormats.LedgerMetadataFormat.Segment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DataFormats.LedgerMetadataFormat.Segment build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DataFormats.LedgerMetadataFormat.Segment buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DataFormats.LedgerMetadataFormat.Segment.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.LedgerMetadataFormat.Segment.Builder>
-
setField
public DataFormats.LedgerMetadataFormat.Segment.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.LedgerMetadataFormat.Segment.Builder>
-
clearField
public DataFormats.LedgerMetadataFormat.Segment.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.LedgerMetadataFormat.Segment.Builder>
-
clearOneof
public DataFormats.LedgerMetadataFormat.Segment.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.LedgerMetadataFormat.Segment.Builder>
-
setRepeatedField
public DataFormats.LedgerMetadataFormat.Segment.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.LedgerMetadataFormat.Segment.Builder>
-
addRepeatedField
public DataFormats.LedgerMetadataFormat.Segment.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.LedgerMetadataFormat.Segment.Builder>
-
mergeFrom
public DataFormats.LedgerMetadataFormat.Segment.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.LedgerMetadataFormat.Segment.Builder>
-
mergeFrom
public DataFormats.LedgerMetadataFormat.Segment.Builder mergeFrom(DataFormats.LedgerMetadataFormat.Segment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DataFormats.LedgerMetadataFormat.Segment.Builder>
-
mergeFrom
public DataFormats.LedgerMetadataFormat.Segment.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.LedgerMetadataFormat.Segment.Builder>
- Throws:
java.io.IOException
-
getEnsembleMemberList
public com.google.protobuf.ProtocolStringList getEnsembleMemberList()
repeated string ensembleMember = 1;
- Specified by:
getEnsembleMemberList
in interfaceDataFormats.LedgerMetadataFormat.SegmentOrBuilder
- Returns:
- A list containing the ensembleMember.
-
getEnsembleMemberCount
public int getEnsembleMemberCount()
repeated string ensembleMember = 1;
- Specified by:
getEnsembleMemberCount
in interfaceDataFormats.LedgerMetadataFormat.SegmentOrBuilder
- Returns:
- The count of ensembleMember.
-
getEnsembleMember
public java.lang.String getEnsembleMember(int index)
repeated string ensembleMember = 1;
- Specified by:
getEnsembleMember
in interfaceDataFormats.LedgerMetadataFormat.SegmentOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The ensembleMember at the given index.
-
getEnsembleMemberBytes
public com.google.protobuf.ByteString getEnsembleMemberBytes(int index)
repeated string ensembleMember = 1;
- Specified by:
getEnsembleMemberBytes
in interfaceDataFormats.LedgerMetadataFormat.SegmentOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the ensembleMember at the given index.
-
setEnsembleMember
public DataFormats.LedgerMetadataFormat.Segment.Builder setEnsembleMember(int index, java.lang.String value)
repeated string ensembleMember = 1;
- Parameters:
index
- The index to set the value at.value
- The ensembleMember to set.- Returns:
- This builder for chaining.
-
addEnsembleMember
public DataFormats.LedgerMetadataFormat.Segment.Builder addEnsembleMember(java.lang.String value)
repeated string ensembleMember = 1;
- Parameters:
value
- The ensembleMember to add.- Returns:
- This builder for chaining.
-
addAllEnsembleMember
public DataFormats.LedgerMetadataFormat.Segment.Builder addAllEnsembleMember(java.lang.Iterable<java.lang.String> values)
repeated string ensembleMember = 1;
- Parameters:
values
- The ensembleMember to add.- Returns:
- This builder for chaining.
-
clearEnsembleMember
public DataFormats.LedgerMetadataFormat.Segment.Builder clearEnsembleMember()
repeated string ensembleMember = 1;
- Returns:
- This builder for chaining.
-
addEnsembleMemberBytes
public DataFormats.LedgerMetadataFormat.Segment.Builder addEnsembleMemberBytes(com.google.protobuf.ByteString value)
repeated string ensembleMember = 1;
- Parameters:
value
- The bytes of the ensembleMember to add.- Returns:
- This builder for chaining.
-
hasFirstEntryId
public boolean hasFirstEntryId()
required int64 firstEntryId = 2;
- Specified by:
hasFirstEntryId
in interfaceDataFormats.LedgerMetadataFormat.SegmentOrBuilder
- Returns:
- Whether the firstEntryId field is set.
-
getFirstEntryId
public long getFirstEntryId()
required int64 firstEntryId = 2;
- Specified by:
getFirstEntryId
in interfaceDataFormats.LedgerMetadataFormat.SegmentOrBuilder
- Returns:
- The firstEntryId.
-
setFirstEntryId
public DataFormats.LedgerMetadataFormat.Segment.Builder setFirstEntryId(long value)
required int64 firstEntryId = 2;
- Parameters:
value
- The firstEntryId to set.- Returns:
- This builder for chaining.
-
clearFirstEntryId
public DataFormats.LedgerMetadataFormat.Segment.Builder clearFirstEntryId()
required int64 firstEntryId = 2;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final DataFormats.LedgerMetadataFormat.Segment.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.LedgerMetadataFormat.Segment.Builder>
-
mergeUnknownFields
public final DataFormats.LedgerMetadataFormat.Segment.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.LedgerMetadataFormat.Segment.Builder>
-
-