Class TCPSocketAction.Builder (0.83.0)

public static final class TCPSocketAction.Builder extends GeneratedMessage.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

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

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.

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 GeneratedMessage.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

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.