Class TCPSocketAction.Builder (0.54.0)

public static final class TCPSocketAction.Builder extends GeneratedMessageV3.Builder<TCPSocketAction.Builder> implements TCPSocketActionOrBuilder

TCPSocketAction describes an action based on opening a socket

Protobuf type google.cloud.run.v2.TCPSocketAction

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TCPSocketAction build()
Returns
Type Description
TCPSocketAction

buildPartial()

public TCPSocketAction buildPartial()
Returns
Type Description
TCPSocketAction

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPort()

public TCPSocketAction.Builder clearPort()

Optional. Port number to access on the container. Must be in the range 1 to

  1. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.

int32 port = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TCPSocketAction.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TCPSocketAction getDefaultInstanceForType()
Returns
Type Description
TCPSocketAction

getDescriptorForType()

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

getPort()

public int getPort()

Optional. Port number to access on the container. Must be in the range 1 to

  1. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.

int32 port = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The port.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TCPSocketAction other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPort(int value)

public TCPSocketAction.Builder setPort(int value)

Optional. Port number to access on the container. Must be in the range 1 to

  1. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.

int32 port = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The port to set.

Returns
Type Description
TCPSocketAction.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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