public static final class HeaderKeyValue.Builder extends GeneratedMessage.Builder<HeaderKeyValue.Builder> implements HeaderKeyValueOrBuilderHeader key-value pairs.
Protobuf type google.cloud.chronicle.v1.HeaderKeyValue
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > HeaderKeyValue.BuilderImplements
HeaderKeyValueOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public HeaderKeyValue build()| Returns | |
|---|---|
| Type | Description |
HeaderKeyValue |
|
buildPartial()
public HeaderKeyValue buildPartial()| Returns | |
|---|---|
| Type | Description |
HeaderKeyValue |
|
clear()
public HeaderKeyValue.Builder clear()| Returns | |
|---|---|
| Type | Description |
HeaderKeyValue.Builder |
|
clearKey()
public HeaderKeyValue.Builder clearKey()Key.
string key = 1;
| Returns | |
|---|---|
| Type | Description |
HeaderKeyValue.Builder |
This builder for chaining. |
clearValue()
public HeaderKeyValue.Builder clearValue()Value.
string value = 2;
| Returns | |
|---|---|
| Type | Description |
HeaderKeyValue.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public HeaderKeyValue getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
HeaderKeyValue |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getKey()
public String getKey()Key.
string key = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The key. |
getKeyBytes()
public ByteString getKeyBytes()Key.
string key = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for key. |
getValue()
public String getValue()Value.
string value = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The value. |
getValueBytes()
public ByteString getValueBytes()Value.
string value = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for value. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(HeaderKeyValue other)
public HeaderKeyValue.Builder mergeFrom(HeaderKeyValue other)| Parameter | |
|---|---|
| Name | Description |
other |
HeaderKeyValue |
| Returns | |
|---|---|
| Type | Description |
HeaderKeyValue.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public HeaderKeyValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
HeaderKeyValue.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public HeaderKeyValue.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
HeaderKeyValue.Builder |
|
setKey(String value)
public HeaderKeyValue.Builder setKey(String value)Key.
string key = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe key to set. |
| Returns | |
|---|---|
| Type | Description |
HeaderKeyValue.Builder |
This builder for chaining. |
setKeyBytes(ByteString value)
public HeaderKeyValue.Builder setKeyBytes(ByteString value)Key.
string key = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for key to set. |
| Returns | |
|---|---|
| Type | Description |
HeaderKeyValue.Builder |
This builder for chaining. |
setValue(String value)
public HeaderKeyValue.Builder setValue(String value)Value.
string value = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe value to set. |
| Returns | |
|---|---|
| Type | Description |
HeaderKeyValue.Builder |
This builder for chaining. |
setValueBytes(ByteString value)
public HeaderKeyValue.Builder setValueBytes(ByteString value)Value.
string value = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for value to set. |
| Returns | |
|---|---|
| Type | Description |
HeaderKeyValue.Builder |
This builder for chaining. |