Class HttpTarget.Header.Builder (2.39.0)

public static final class HttpTarget.Header.Builder extends GeneratedMessageV3.Builder<HttpTarget.Header.Builder> implements HttpTarget.HeaderOrBuilder

Defines a header message. A header can have a key and a value.

Protobuf type google.cloud.tasks.v2beta2.HttpTarget.Header

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HttpTarget.Header build()
Returns
TypeDescription
HttpTarget.Header

buildPartial()

public HttpTarget.Header buildPartial()
Returns
TypeDescription
HttpTarget.Header

clear()

public HttpTarget.Header.Builder clear()
Returns
TypeDescription
HttpTarget.Header.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public HttpTarget.Header.Builder clearKey()

The key of the header.

string key = 1;

Returns
TypeDescription
HttpTarget.Header.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValue()

public HttpTarget.Header.Builder clearValue()

The value of the header.

string value = 2;

Returns
TypeDescription
HttpTarget.Header.Builder

This builder for chaining.

clone()

public HttpTarget.Header.Builder clone()
Returns
TypeDescription
HttpTarget.Header.Builder
Overrides

getDefaultInstanceForType()

public HttpTarget.Header getDefaultInstanceForType()
Returns
TypeDescription
HttpTarget.Header

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKey()

public String getKey()

The key of the header.

string key = 1;

Returns
TypeDescription
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

The key of the header.

string key = 1;

Returns
TypeDescription
ByteString

The bytes for key.

getValue()

public String getValue()

The value of the header.

string value = 2;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

The value of the header.

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(HttpTarget.Header other)

public HttpTarget.Header.Builder mergeFrom(HttpTarget.Header other)
Parameter
NameDescription
otherHttpTarget.Header
Returns
TypeDescription
HttpTarget.Header.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public HttpTarget.Header.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HttpTarget.Header.Builder
Overrides

setKey(String value)

public HttpTarget.Header.Builder setKey(String value)

The key of the header.

string key = 1;

Parameter
NameDescription
valueString

The key to set.

Returns
TypeDescription
HttpTarget.Header.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public HttpTarget.Header.Builder setKeyBytes(ByteString value)

The key of the header.

string key = 1;

Parameter
NameDescription
valueByteString

The bytes for key to set.

Returns
TypeDescription
HttpTarget.Header.Builder

This builder for chaining.

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

public HttpTarget.Header.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
HttpTarget.Header.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(String value)

public HttpTarget.Header.Builder setValue(String value)

The value of the header.

string value = 2;

Parameter
NameDescription
valueString

The value to set.

Returns
TypeDescription
HttpTarget.Header.Builder

This builder for chaining.

setValueBytes(ByteString value)

public HttpTarget.Header.Builder setValueBytes(ByteString value)

The value of the header.

string value = 2;

Parameter
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
HttpTarget.Header.Builder

This builder for chaining.