Interface HttpHeaderOptionOrBuilder (1.46.0)

public interface HttpHeaderOptionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHeaderName()

public abstract String getHeaderName()

The name of the header.

optional string header_name = 110223613;

Returns
TypeDescription
String

The headerName.

getHeaderNameBytes()

public abstract ByteString getHeaderNameBytes()

The name of the header.

optional string header_name = 110223613;

Returns
TypeDescription
ByteString

The bytes for headerName.

getHeaderValue()

public abstract String getHeaderValue()

The value of the header to add.

optional string header_value = 203094335;

Returns
TypeDescription
String

The headerValue.

getHeaderValueBytes()

public abstract ByteString getHeaderValueBytes()

The value of the header to add.

optional string header_value = 203094335;

Returns
TypeDescription
ByteString

The bytes for headerValue.

getReplace()

public abstract boolean getReplace()

If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.

optional bool replace = 20755124;

Returns
TypeDescription
boolean

The replace.

hasHeaderName()

public abstract boolean hasHeaderName()

The name of the header.

optional string header_name = 110223613;

Returns
TypeDescription
boolean

Whether the headerName field is set.

hasHeaderValue()

public abstract boolean hasHeaderValue()

The value of the header to add.

optional string header_value = 203094335;

Returns
TypeDescription
boolean

Whether the headerValue field is set.

hasReplace()

public abstract boolean hasReplace()

If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false.

optional bool replace = 20755124;

Returns
TypeDescription
boolean

Whether the replace field is set.