Interface HeaderOrBuilder (2.10.0)

public interface HeaderOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getKey()

public abstract String getKey()

string key = 1;

Returns
TypeDescription
String

The key.

getKeyBytes()

public abstract ByteString getKeyBytes()

string key = 1;

Returns
TypeDescription
ByteString

The bytes for key.

getValues(int index)

public abstract String getValues(int index)

repeated string values = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The values at the given index.

getValuesBytes(int index)

public abstract ByteString getValuesBytes(int index)

repeated string values = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the values at the given index.

getValuesCount()

public abstract int getValuesCount()

repeated string values = 2;

Returns
TypeDescription
int

The count of values.

getValuesList()

public abstract List<String> getValuesList()

repeated string values = 2;

Returns
TypeDescription
List<String>

A list containing the values.