Class HTTPHeader.Builder (0.46.0)

public static final class HTTPHeader.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HTTPHeader.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HTTPHeader.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public HTTPHeader.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public HTTPHeader.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
HTTPHeader.Builder
Overrides

clearValue()

public HTTPHeader.Builder clearValue()

The header field value

string value = 2;

Returns
Type Description
HTTPHeader.Builder

This builder for chaining.

clone()

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

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()

The header field value

string value = 2;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

The header field value

string value = 2;

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HTTPHeader.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HTTPHeader.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public HTTPHeader.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public HTTPHeader.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
HTTPHeader.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HTTPHeader.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HTTPHeader.Builder
Overrides

setValue(String value)

public HTTPHeader.Builder setValue(String value)

The header field value

string value = 2;

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)

The header field value

string value = 2;

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
HTTPHeader.Builder

This builder for chaining.