Class TargetTcpProxiesSetProxyHeaderRequest.Builder (1.29.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TargetTcpProxiesSetProxyHeaderRequest build()
Returns
TypeDescription
TargetTcpProxiesSetProxyHeaderRequest

buildPartial()

public TargetTcpProxiesSetProxyHeaderRequest buildPartial()
Returns
TypeDescription
TargetTcpProxiesSetProxyHeaderRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public TargetTcpProxiesSetProxyHeaderRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
TargetTcpProxiesSetProxyHeaderRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TargetTcpProxiesSetProxyHeaderRequest getDefaultInstanceForType()
Returns
TypeDescription
TargetTcpProxiesSetProxyHeaderRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the proxyHeader field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TargetTcpProxiesSetProxyHeaderRequest other)

public TargetTcpProxiesSetProxyHeaderRequest.Builder mergeFrom(TargetTcpProxiesSetProxyHeaderRequest other)
Parameter
NameDescription
otherTargetTcpProxiesSetProxyHeaderRequest
Returns
TypeDescription
TargetTcpProxiesSetProxyHeaderRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The proxyHeader to set.

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

The bytes for proxyHeader to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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