Class HTTPHeader.Builder (0.24.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HTTPHeader.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HTTPHeader.Builder
Overrides

build()

public HTTPHeader build()
Returns
TypeDescription
HTTPHeader

buildPartial()

public HTTPHeader buildPartial()
Returns
TypeDescription
HTTPHeader

clear()

public HTTPHeader.Builder clear()
Returns
TypeDescription
HTTPHeader.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public HTTPHeader.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
HTTPHeader.Builder
Overrides

clearName()

public HTTPHeader.Builder clearName()

Required. The header field name

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

Returns
TypeDescription
HTTPHeader.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public HTTPHeader.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
HTTPHeader.Builder
Overrides

clearValue()

public HTTPHeader.Builder clearValue()

The header field value

string value = 2;

Returns
TypeDescription
HTTPHeader.Builder

This builder for chaining.

clone()

public HTTPHeader.Builder clone()
Returns
TypeDescription
HTTPHeader.Builder
Overrides

getDefaultInstanceForType()

public HTTPHeader getDefaultInstanceForType()
Returns
TypeDescription
HTTPHeader

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The header field name

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The header field name

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

Returns
TypeDescription
ByteString

The bytes for name.

getValue()

public String getValue()

The header field value

string value = 2;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

The header field value

string value = 2;

Returns
TypeDescription
ByteString

The bytes for value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HTTPHeader other)

public HTTPHeader.Builder mergeFrom(HTTPHeader other)
Parameter
NameDescription
otherHTTPHeader
Returns
TypeDescription
HTTPHeader.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HTTPHeader.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HTTPHeader.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public HTTPHeader.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
HTTPHeader.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HTTPHeader.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HTTPHeader.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public HTTPHeader.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
HTTPHeader.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HTTPHeader.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HTTPHeader.Builder
Overrides

setValue(String value)

public HTTPHeader.Builder setValue(String value)

The header field value

string value = 2;

Parameter
NameDescription
valueString

The value to set.

Returns
TypeDescription
HTTPHeader.Builder

This builder for chaining.

setValueBytes(ByteString value)

public HTTPHeader.Builder setValueBytes(ByteString value)

The header field value

string value = 2;

Parameter
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
HTTPHeader.Builder

This builder for chaining.