Package org.apache.bookkeeper.proto
Class BookkeeperProtocol.ContextPair.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.ContextPair.Builder>
-
- org.apache.bookkeeper.proto.BookkeeperProtocol.ContextPair.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
,BookkeeperProtocol.ContextPairOrBuilder
- Enclosing class:
- BookkeeperProtocol.ContextPair
public static final class BookkeeperProtocol.ContextPair.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.ContextPair.Builder> implements BookkeeperProtocol.ContextPairOrBuilder
Protobuf typeContextPair
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BookkeeperProtocol.ContextPair.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
BookkeeperProtocol.ContextPair
build()
BookkeeperProtocol.ContextPair
buildPartial()
BookkeeperProtocol.ContextPair.Builder
clear()
BookkeeperProtocol.ContextPair.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BookkeeperProtocol.ContextPair.Builder
clearKey()
required string key = 1;
BookkeeperProtocol.ContextPair.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BookkeeperProtocol.ContextPair.Builder
clearValue()
required string value = 2;
BookkeeperProtocol.ContextPair.Builder
clone()
BookkeeperProtocol.ContextPair
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getKey()
required string key = 1;
com.google.protobuf.ByteString
getKeyBytes()
required string key = 1;
java.lang.String
getValue()
required string value = 2;
com.google.protobuf.ByteString
getValueBytes()
required string value = 2;
boolean
hasKey()
required string key = 1;
boolean
hasValue()
required string value = 2;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
BookkeeperProtocol.ContextPair.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BookkeeperProtocol.ContextPair.Builder
mergeFrom(com.google.protobuf.Message other)
BookkeeperProtocol.ContextPair.Builder
mergeFrom(BookkeeperProtocol.ContextPair other)
BookkeeperProtocol.ContextPair.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BookkeeperProtocol.ContextPair.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
BookkeeperProtocol.ContextPair.Builder
setKey(java.lang.String value)
required string key = 1;
BookkeeperProtocol.ContextPair.Builder
setKeyBytes(com.google.protobuf.ByteString value)
required string key = 1;
BookkeeperProtocol.ContextPair.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
BookkeeperProtocol.ContextPair.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BookkeeperProtocol.ContextPair.Builder
setValue(java.lang.String value)
required string value = 2;
BookkeeperProtocol.ContextPair.Builder
setValueBytes(com.google.protobuf.ByteString value)
required string value = 2;
-
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<BookkeeperProtocol.ContextPair.Builder>
-
clear
public BookkeeperProtocol.ContextPair.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<BookkeeperProtocol.ContextPair.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<BookkeeperProtocol.ContextPair.Builder>
-
getDefaultInstanceForType
public BookkeeperProtocol.ContextPair getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BookkeeperProtocol.ContextPair build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BookkeeperProtocol.ContextPair buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BookkeeperProtocol.ContextPair.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<BookkeeperProtocol.ContextPair.Builder>
-
setField
public BookkeeperProtocol.ContextPair.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<BookkeeperProtocol.ContextPair.Builder>
-
clearField
public BookkeeperProtocol.ContextPair.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<BookkeeperProtocol.ContextPair.Builder>
-
clearOneof
public BookkeeperProtocol.ContextPair.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<BookkeeperProtocol.ContextPair.Builder>
-
setRepeatedField
public BookkeeperProtocol.ContextPair.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<BookkeeperProtocol.ContextPair.Builder>
-
addRepeatedField
public BookkeeperProtocol.ContextPair.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<BookkeeperProtocol.ContextPair.Builder>
-
mergeFrom
public BookkeeperProtocol.ContextPair.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BookkeeperProtocol.ContextPair.Builder>
-
mergeFrom
public BookkeeperProtocol.ContextPair.Builder mergeFrom(BookkeeperProtocol.ContextPair other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.ContextPair.Builder>
-
mergeFrom
public BookkeeperProtocol.ContextPair.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<BookkeeperProtocol.ContextPair.Builder>
- Throws:
java.io.IOException
-
hasKey
public boolean hasKey()
required string key = 1;
- Specified by:
hasKey
in interfaceBookkeeperProtocol.ContextPairOrBuilder
- Returns:
- Whether the key field is set.
-
getKey
public java.lang.String getKey()
required string key = 1;
- Specified by:
getKey
in interfaceBookkeeperProtocol.ContextPairOrBuilder
- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()
required string key = 1;
- Specified by:
getKeyBytes
in interfaceBookkeeperProtocol.ContextPairOrBuilder
- Returns:
- The bytes for key.
-
setKey
public BookkeeperProtocol.ContextPair.Builder setKey(java.lang.String value)
required string key = 1;
- Parameters:
value
- The key to set.- Returns:
- This builder for chaining.
-
clearKey
public BookkeeperProtocol.ContextPair.Builder clearKey()
required string key = 1;
- Returns:
- This builder for chaining.
-
setKeyBytes
public BookkeeperProtocol.ContextPair.Builder setKeyBytes(com.google.protobuf.ByteString value)
required string key = 1;
- Parameters:
value
- The bytes for key to set.- Returns:
- This builder for chaining.
-
hasValue
public boolean hasValue()
required string value = 2;
- Specified by:
hasValue
in interfaceBookkeeperProtocol.ContextPairOrBuilder
- Returns:
- Whether the value field is set.
-
getValue
public java.lang.String getValue()
required string value = 2;
- Specified by:
getValue
in interfaceBookkeeperProtocol.ContextPairOrBuilder
- Returns:
- The value.
-
getValueBytes
public com.google.protobuf.ByteString getValueBytes()
required string value = 2;
- Specified by:
getValueBytes
in interfaceBookkeeperProtocol.ContextPairOrBuilder
- Returns:
- The bytes for value.
-
setValue
public BookkeeperProtocol.ContextPair.Builder setValue(java.lang.String value)
required string value = 2;
- Parameters:
value
- The value to set.- Returns:
- This builder for chaining.
-
clearValue
public BookkeeperProtocol.ContextPair.Builder clearValue()
required string value = 2;
- Returns:
- This builder for chaining.
-
setValueBytes
public BookkeeperProtocol.ContextPair.Builder setValueBytes(com.google.protobuf.ByteString value)
required string value = 2;
- Parameters:
value
- The bytes for value to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final BookkeeperProtocol.ContextPair.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.ContextPair.Builder>
-
mergeUnknownFields
public final BookkeeperProtocol.ContextPair.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BookkeeperProtocol.ContextPair.Builder>
-
-