Class HttpTarget.HeaderOverride.Builder (2.34.0)

public static final class HttpTarget.HeaderOverride.Builder extends GeneratedMessageV3.Builder<HttpTarget.HeaderOverride.Builder> implements HttpTarget.HeaderOverrideOrBuilder

Wraps the Header object.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHeader()

public HttpTarget.HeaderOverride.Builder clearHeader()

header embodying a key and a value.

.google.cloud.tasks.v2beta2.HttpTarget.Header header = 1;

Returns
TypeDescription
HttpTarget.HeaderOverride.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHeader()

public HttpTarget.Header getHeader()

header embodying a key and a value.

.google.cloud.tasks.v2beta2.HttpTarget.Header header = 1;

Returns
TypeDescription
HttpTarget.Header

The header.

getHeaderBuilder()

public HttpTarget.Header.Builder getHeaderBuilder()

header embodying a key and a value.

.google.cloud.tasks.v2beta2.HttpTarget.Header header = 1;

Returns
TypeDescription
HttpTarget.Header.Builder

getHeaderOrBuilder()

public HttpTarget.HeaderOrBuilder getHeaderOrBuilder()

header embodying a key and a value.

.google.cloud.tasks.v2beta2.HttpTarget.Header header = 1;

Returns
TypeDescription
HttpTarget.HeaderOrBuilder

hasHeader()

public boolean hasHeader()

header embodying a key and a value.

.google.cloud.tasks.v2beta2.HttpTarget.Header header = 1;

Returns
TypeDescription
boolean

Whether the header field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HttpTarget.HeaderOverride other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHeader(HttpTarget.Header value)

public HttpTarget.HeaderOverride.Builder mergeHeader(HttpTarget.Header value)

header embodying a key and a value.

.google.cloud.tasks.v2beta2.HttpTarget.Header header = 1;

Parameter
NameDescription
valueHttpTarget.Header
Returns
TypeDescription
HttpTarget.HeaderOverride.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setHeader(HttpTarget.Header value)

public HttpTarget.HeaderOverride.Builder setHeader(HttpTarget.Header value)

header embodying a key and a value.

.google.cloud.tasks.v2beta2.HttpTarget.Header header = 1;

Parameter
NameDescription
valueHttpTarget.Header
Returns
TypeDescription
HttpTarget.HeaderOverride.Builder

setHeader(HttpTarget.Header.Builder builderForValue)

public HttpTarget.HeaderOverride.Builder setHeader(HttpTarget.Header.Builder builderForValue)

header embodying a key and a value.

.google.cloud.tasks.v2beta2.HttpTarget.Header header = 1;

Parameter
NameDescription
builderForValueHttpTarget.Header.Builder
Returns
TypeDescription
HttpTarget.HeaderOverride.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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