Interface HTTPHeaderOrBuilder (0.23.0)

publicinterface HTTPHeaderOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getName()

publicabstractStringgetName()

Required. The header field name

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The name.

getNameBytes()

publicabstractByteStringgetNameBytes()

Required. The header field name

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for name.

getValue()

publicabstractStringgetValue()

The header field value

string value = 2;

Returns
Type Description
String

The value.

getValueBytes()

publicabstractByteStringgetValueBytes()

The header field value

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年10月30日 UTC.