Interface HttpTarget.HeaderOrBuilder (2.24.0)

publicstaticinterface HttpTarget.HeaderOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getKey()

publicabstractStringgetKey()

The Key of the header.

string key = 1;

Returns
Type Description
String

The key.

getKeyBytes()

publicabstractByteStringgetKeyBytes()

The Key of the header.

string key = 1;

Returns
Type Description
ByteString

The bytes for key.

getValue()

publicabstractStringgetValue()

The Value of the header.

string value = 2;

Returns
Type Description
String

The value.

getValueBytes()

publicabstractByteStringgetValueBytes()

The Value of the header.

string value = 2;

Returns
Type Description
ByteString

The bytes for value.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.