Interface HttpHeaderOptionOrBuilder (1.53.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
Type Description
String

The headerName.

getHeaderNameBytes()

public abstract ByteString getHeaderNameBytes()

The name of the header.

optional string header_name = 110223613;

Returns
Type Description
ByteString

The bytes for headerName.

getHeaderValue()

public abstract String getHeaderValue()

The value of the header to add.

optional string header_value = 203094335;

Returns
Type Description
String

The headerValue.

getHeaderValueBytes()

public abstract ByteString getHeaderValueBytes()

The value of the header to add.

optional string header_value = 203094335;

Returns
Type Description
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
Type Description
boolean

The replace.

hasHeaderName()

public abstract boolean hasHeaderName()

The name of the header.

optional string header_name = 110223613;

Returns
Type Description
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
Type Description
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
Type Description
boolean

Whether the replace field is set.