Class HeaderKeyValue (0.37.0)

public final class HeaderKeyValue extends GeneratedMessage implements HeaderKeyValueOrBuilder

Header key-value pairs.

Protobuf type google.cloud.chronicle.v1.HeaderKeyValue

Static Fields

KEY_FIELD_NUMBER

public static final int KEY_FIELD_NUMBER
Field Value
Type Description
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static HeaderKeyValue getDefaultInstance()
Returns
Type Description
HeaderKeyValue

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static HeaderKeyValue.Builder newBuilder()
Returns
Type Description
HeaderKeyValue.Builder

newBuilder(HeaderKeyValue prototype)

public static HeaderKeyValue.Builder newBuilder(HeaderKeyValue prototype)
Parameter
Name Description
prototype HeaderKeyValue
Returns
Type Description
HeaderKeyValue.Builder

parseDelimitedFrom(InputStream input)

public static HeaderKeyValue parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HeaderKeyValue
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HeaderKeyValue parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HeaderKeyValue
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static HeaderKeyValue parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
HeaderKeyValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HeaderKeyValue parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HeaderKeyValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HeaderKeyValue parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
HeaderKeyValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HeaderKeyValue parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HeaderKeyValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HeaderKeyValue parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
HeaderKeyValue
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HeaderKeyValue parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HeaderKeyValue
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static HeaderKeyValue parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HeaderKeyValue
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HeaderKeyValue parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HeaderKeyValue
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static HeaderKeyValue parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
HeaderKeyValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HeaderKeyValue parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HeaderKeyValue
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<HeaderKeyValue> parser()
Returns
Type Description
Parser<HeaderKeyValue>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public HeaderKeyValue getDefaultInstanceForType()
Returns
Type Description
HeaderKeyValue

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.

getParserForType()

public Parser<HeaderKeyValue> getParserForType()
Returns
Type Description
Parser<HeaderKeyValue>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public HeaderKeyValue.Builder newBuilderForType()
Returns
Type Description
HeaderKeyValue.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected HeaderKeyValue.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
HeaderKeyValue.Builder
Overrides

toBuilder()

public HeaderKeyValue.Builder toBuilder()
Returns
Type Description
HeaderKeyValue.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException