Class HttpTarget.Header.Builder (2.42.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.v2beta3.HttpTarget.Header

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HttpTarget.Header build()
Returns
Type Description
HttpTarget.Header

buildPartial()

public HttpTarget.Header buildPartial()
Returns
Type Description
HttpTarget.Header

clear()

public HttpTarget.Header.Builder clear()
Returns
Type Description
HttpTarget.Header.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public HttpTarget.Header.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
HttpTarget.Header.Builder
Overrides

clearKey()

public HttpTarget.Header.Builder clearKey()

The Key of the header.

string key = 1;

Returns
Type Description
HttpTarget.Header.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValue()

public HttpTarget.Header.Builder clearValue()

The Value of the header.

string value = 2;

Returns
Type Description
HttpTarget.Header.Builder

This builder for chaining.

clone()

public HttpTarget.Header.Builder clone()
Returns
Type Description
HttpTarget.Header.Builder
Overrides

getDefaultInstanceForType()

public HttpTarget.Header getDefaultInstanceForType()
Returns
Type Description
HttpTarget.Header

getDescriptorForType()

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

getKey()

public String getKey()

The Key of the header.

string key = 1;

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

The Key of the header.

string key = 1;

Returns
Type Description
ByteString

The bytes for key.

getValue()

public String getValue()

The Value of the header.

string value = 2;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

The Value of the header.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public HttpTarget.Header.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HttpTarget.Header.Builder
Overrides

setKey(String value)

public HttpTarget.Header.Builder setKey(String value)

The Key of the header.

string key = 1;

Parameter
Name Description
value String

The key to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
HttpTarget.Header.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(String value)

public HttpTarget.Header.Builder setValue(String value)

The Value of the header.

string value = 2;

Parameter
Name Description
value String

The value to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
HttpTarget.Header.Builder

This builder for chaining.