Class TargetTcpProxiesSetProxyHeaderRequest.Builder (1.55.0)

public static final class TargetTcpProxiesSetProxyHeaderRequest.Builder extends GeneratedMessageV3.Builder<TargetTcpProxiesSetProxyHeaderRequest.Builder> implements TargetTcpProxiesSetProxyHeaderRequestOrBuilder

Protobuf type google.cloud.compute.v1.TargetTcpProxiesSetProxyHeaderRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TargetTcpProxiesSetProxyHeaderRequest build()
Returns
Type Description
TargetTcpProxiesSetProxyHeaderRequest

buildPartial()

public TargetTcpProxiesSetProxyHeaderRequest buildPartial()
Returns
Type Description
TargetTcpProxiesSetProxyHeaderRequest

clear()

public TargetTcpProxiesSetProxyHeaderRequest.Builder clear()
Returns
Type Description
TargetTcpProxiesSetProxyHeaderRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProxyHeader()

public TargetTcpProxiesSetProxyHeaderRequest.Builder clearProxyHeader()

The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. Check the ProxyHeader enum for the list of possible values.

optional string proxy_header = 160374142;

Returns
Type Description
TargetTcpProxiesSetProxyHeaderRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TargetTcpProxiesSetProxyHeaderRequest getDefaultInstanceForType()
Returns
Type Description
TargetTcpProxiesSetProxyHeaderRequest

getDescriptorForType()

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

getProxyHeader()

public String getProxyHeader()

The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. Check the ProxyHeader enum for the list of possible values.

optional string proxy_header = 160374142;

Returns
Type Description
String

The proxyHeader.

getProxyHeaderBytes()

public ByteString getProxyHeaderBytes()

The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. Check the ProxyHeader enum for the list of possible values.

optional string proxy_header = 160374142;

Returns
Type Description
ByteString

The bytes for proxyHeader.

hasProxyHeader()

public boolean hasProxyHeader()

The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. Check the ProxyHeader enum for the list of possible values.

optional string proxy_header = 160374142;

Returns
Type Description
boolean

Whether the proxyHeader field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TargetTcpProxiesSetProxyHeaderRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setProxyHeader(String value)

public TargetTcpProxiesSetProxyHeaderRequest.Builder setProxyHeader(String value)

The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. Check the ProxyHeader enum for the list of possible values.

optional string proxy_header = 160374142;

Parameter
Name Description
value String

The proxyHeader to set.

Returns
Type Description
TargetTcpProxiesSetProxyHeaderRequest.Builder

This builder for chaining.

setProxyHeaderBytes(ByteString value)

public TargetTcpProxiesSetProxyHeaderRequest.Builder setProxyHeaderBytes(ByteString value)

The new type of proxy header to append before sending data to the backend. NONE or PROXY_V1 are allowed. Check the ProxyHeader enum for the list of possible values.

optional string proxy_header = 160374142;

Parameter
Name Description
value ByteString

The bytes for proxyHeader to set.

Returns
Type Description
TargetTcpProxiesSetProxyHeaderRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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