Class TCPSocketAction.Builder (0.22.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TCPSocketAction build()
Returns
TypeDescription
TCPSocketAction

buildPartial()

public TCPSocketAction buildPartial()
Returns
TypeDescription
TCPSocketAction

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPort()

public TCPSocketAction.Builder clearPort()

Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.

int32 port = 1;

Returns
TypeDescription
TCPSocketAction.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TCPSocketAction getDefaultInstanceForType()
Returns
TypeDescription
TCPSocketAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPort()

public int getPort()

Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.

int32 port = 1;

Returns
TypeDescription
int

The port.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TCPSocketAction other)

public TCPSocketAction.Builder mergeFrom(TCPSocketAction other)
Parameter
NameDescription
otherTCPSocketAction
Returns
TypeDescription
TCPSocketAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPort(int value)

public TCPSocketAction.Builder setPort(int value)

Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to the exposed port of the container, which is the value of container.ports[0].containerPort.

int32 port = 1;

Parameter
NameDescription
valueint

The port to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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