Class HTTPHeader.Builder (0.83.0)

public static final class HTTPHeader.Builder extends GeneratedMessage.Builder<HTTPHeader.Builder> implements HTTPHeaderOrBuilder

HTTPHeader describes a custom header to be used in HTTP probes

Protobuf type google.cloud.run.v2.HTTPHeader

Implements

HTTPHeaderOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public HTTPHeader build()
Returns
Type Description
HTTPHeader

buildPartial()

public HTTPHeader buildPartial()
Returns
Type Description
HTTPHeader

clear()

public HTTPHeader.Builder clear()
Returns
Type Description
HTTPHeader.Builder
Overrides

clearName()

public HTTPHeader.Builder clearName()

Required. The header field name

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

Returns
Type Description
HTTPHeader.Builder

This builder for chaining.

clearValue()

public HTTPHeader.Builder clearValue()

Optional. The header field value

string value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
HTTPHeader.Builder

This builder for chaining.

getDefaultInstanceForType()

public HTTPHeader getDefaultInstanceForType()
Returns
Type Description
HTTPHeader

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Required. The header field name

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The header field name

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

Returns
Type Description
ByteString

The bytes for name.

getValue()

public String getValue()

Optional. The header field value

string value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Optional. The header field value

string value = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HTTPHeader other)

public HTTPHeader.Builder mergeFrom(HTTPHeader other)
Parameter
Name Description
other HTTPHeader
Returns
Type Description
HTTPHeader.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HTTPHeader.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HTTPHeader.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public HTTPHeader.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
HTTPHeader.Builder
Overrides

setName(String value)

public HTTPHeader.Builder setName(String value)

Required. The header field name

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
HTTPHeader.Builder

This builder for chaining.

setNameBytes(ByteString value)

public HTTPHeader.Builder setNameBytes(ByteString value)

Required. The header field name

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
HTTPHeader.Builder

This builder for chaining.

setValue(String value)

public HTTPHeader.Builder setValue(String value)

Optional. The header field value

string value = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The value to set.

Returns
Type Description
HTTPHeader.Builder

This builder for chaining.

setValueBytes(ByteString value)

public HTTPHeader.Builder setValueBytes(ByteString value)

Optional. The header field value

string value = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
HTTPHeader.Builder

This builder for chaining.