Package io.hstream.internal
Class HStreamRecordHeader.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<HStreamRecordHeader.Builder>
-
- io.hstream.internal.HStreamRecordHeader.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,HStreamRecordHeaderOrBuilder
,Cloneable
- Enclosing class:
- HStreamRecordHeader
public static final class HStreamRecordHeader.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<HStreamRecordHeader.Builder> implements HStreamRecordHeaderOrBuilder
Protobuf typehstream.server.HStreamRecordHeader
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HStreamRecordHeader
build()
HStreamRecordHeader
buildPartial()
HStreamRecordHeader.Builder
clear()
HStreamRecordHeader.Builder
clearAttributes()
HStreamRecordHeader.Builder
clearFlag()
.hstream.server.HStreamRecordHeader.Flag flag = 1;
HStreamRecordHeader.Builder
clearKey()
Optional.boolean
containsAttributes(String key)
Optional.Map<String,String>
getAttributes()
Deprecated.int
getAttributesCount()
Optional.Map<String,String>
getAttributesMap()
Optional.String
getAttributesOrDefault(String key, String defaultValue)
Optional.String
getAttributesOrThrow(String key)
Optional.HStreamRecordHeader
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
HStreamRecordHeader.Flag
getFlag()
.hstream.server.HStreamRecordHeader.Flag flag = 1;
int
getFlagValue()
.hstream.server.HStreamRecordHeader.Flag flag = 1;
String
getKey()
Optional.com.google.protobuf.ByteString
getKeyBytes()
Optional.Map<String,String>
getMutableAttributes()
Deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
HStreamRecordHeader.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
HStreamRecordHeader.Builder
mergeFrom(com.google.protobuf.Message other)
HStreamRecordHeader.Builder
mergeFrom(HStreamRecordHeader other)
HStreamRecordHeader.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
HStreamRecordHeader.Builder
putAllAttributes(Map<String,String> values)
Optional.HStreamRecordHeader.Builder
putAttributes(String key, String value)
Optional.HStreamRecordHeader.Builder
removeAttributes(String key)
Optional.HStreamRecordHeader.Builder
setFlag(HStreamRecordHeader.Flag value)
.hstream.server.HStreamRecordHeader.Flag flag = 1;
HStreamRecordHeader.Builder
setFlagValue(int value)
.hstream.server.HStreamRecordHeader.Flag flag = 1;
HStreamRecordHeader.Builder
setKey(String value)
Optional.HStreamRecordHeader.Builder
setKeyBytes(com.google.protobuf.ByteString value)
Optional.HStreamRecordHeader.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, 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()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HStreamRecordHeader.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HStreamRecordHeader.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<HStreamRecordHeader.Builder>
-
clear
public HStreamRecordHeader.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<HStreamRecordHeader.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<HStreamRecordHeader.Builder>
-
getDefaultInstanceForType
public HStreamRecordHeader getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public HStreamRecordHeader build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HStreamRecordHeader buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public HStreamRecordHeader.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HStreamRecordHeader.Builder>
-
mergeFrom
public HStreamRecordHeader.Builder mergeFrom(HStreamRecordHeader other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<HStreamRecordHeader.Builder>
-
mergeFrom
public HStreamRecordHeader.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<HStreamRecordHeader.Builder>
- Throws:
IOException
-
getFlagValue
public int getFlagValue()
.hstream.server.HStreamRecordHeader.Flag flag = 1;
- Specified by:
getFlagValue
in interfaceHStreamRecordHeaderOrBuilder
- Returns:
- The enum numeric value on the wire for flag.
-
setFlagValue
public HStreamRecordHeader.Builder setFlagValue(int value)
.hstream.server.HStreamRecordHeader.Flag flag = 1;
- Parameters:
value
- The enum numeric value on the wire for flag to set.- Returns:
- This builder for chaining.
-
getFlag
public HStreamRecordHeader.Flag getFlag()
.hstream.server.HStreamRecordHeader.Flag flag = 1;
- Specified by:
getFlag
in interfaceHStreamRecordHeaderOrBuilder
- Returns:
- The flag.
-
setFlag
public HStreamRecordHeader.Builder setFlag(HStreamRecordHeader.Flag value)
.hstream.server.HStreamRecordHeader.Flag flag = 1;
- Parameters:
value
- The flag to set.- Returns:
- This builder for chaining.
-
clearFlag
public HStreamRecordHeader.Builder clearFlag()
.hstream.server.HStreamRecordHeader.Flag flag = 1;
- Returns:
- This builder for chaining.
-
getAttributesCount
public int getAttributesCount()
Description copied from interface:HStreamRecordHeaderOrBuilder
Optional. Attributes attached to this record.
map<string, string> attributes = 2;
- Specified by:
getAttributesCount
in interfaceHStreamRecordHeaderOrBuilder
-
containsAttributes
public boolean containsAttributes(String key)
Optional. Attributes attached to this record.
map<string, string> attributes = 2;
- Specified by:
containsAttributes
in interfaceHStreamRecordHeaderOrBuilder
-
getAttributes
@Deprecated public Map<String,String> getAttributes()
Deprecated.UsegetAttributesMap()
instead.- Specified by:
getAttributes
in interfaceHStreamRecordHeaderOrBuilder
-
getAttributesMap
public Map<String,String> getAttributesMap()
Optional. Attributes attached to this record.
map<string, string> attributes = 2;
- Specified by:
getAttributesMap
in interfaceHStreamRecordHeaderOrBuilder
-
getAttributesOrDefault
public String getAttributesOrDefault(String key, String defaultValue)
Optional. Attributes attached to this record.
map<string, string> attributes = 2;
- Specified by:
getAttributesOrDefault
in interfaceHStreamRecordHeaderOrBuilder
-
getAttributesOrThrow
public String getAttributesOrThrow(String key)
Optional. Attributes attached to this record.
map<string, string> attributes = 2;
- Specified by:
getAttributesOrThrow
in interfaceHStreamRecordHeaderOrBuilder
-
clearAttributes
public HStreamRecordHeader.Builder clearAttributes()
-
removeAttributes
public HStreamRecordHeader.Builder removeAttributes(String key)
Optional. Attributes attached to this record.
map<string, string> attributes = 2;
-
getMutableAttributes
@Deprecated public Map<String,String> getMutableAttributes()
Deprecated.Use alternate mutation accessors instead.
-
putAttributes
public HStreamRecordHeader.Builder putAttributes(String key, String value)
Optional. Attributes attached to this record.
map<string, string> attributes = 2;
-
putAllAttributes
public HStreamRecordHeader.Builder putAllAttributes(Map<String,String> values)
Optional. Attributes attached to this record.
map<string, string> attributes = 2;
-
getKey
public String getKey()
Optional. key for the message.
string key = 3;
- Specified by:
getKey
in interfaceHStreamRecordHeaderOrBuilder
- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()
Optional. key for the message.
string key = 3;
- Specified by:
getKeyBytes
in interfaceHStreamRecordHeaderOrBuilder
- Returns:
- The bytes for key.
-
setKey
public HStreamRecordHeader.Builder setKey(String value)
Optional. key for the message.
string key = 3;
- Parameters:
value
- The key to set.- Returns:
- This builder for chaining.
-
clearKey
public HStreamRecordHeader.Builder clearKey()
Optional. key for the message.
string key = 3;
- Returns:
- This builder for chaining.
-
setKeyBytes
public HStreamRecordHeader.Builder setKeyBytes(com.google.protobuf.ByteString value)
Optional. key for the message.
string key = 3;
- Parameters:
value
- The bytes for key to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final HStreamRecordHeader.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<HStreamRecordHeader.Builder>
-
mergeUnknownFields
public final HStreamRecordHeader.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<HStreamRecordHeader.Builder>
-
-