Class TCPSocketAction (0.45.0)

public final class TCPSocketAction extends GeneratedMessageV3 implements TCPSocketActionOrBuilder

TCPSocketAction describes an action based on opening a socket

Protobuf type google.cloud.run.v2.TCPSocketAction

Static Fields

PORT_FIELD_NUMBER

public static final int PORT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TCPSocketAction getDefaultInstance()
Returns
Type Description
TCPSocketAction

getDescriptor()

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

newBuilder()

public static TCPSocketAction.Builder newBuilder()
Returns
Type Description
TCPSocketAction.Builder

newBuilder(TCPSocketAction prototype)

public static TCPSocketAction.Builder newBuilder(TCPSocketAction prototype)
Parameter
Name Description
prototype TCPSocketAction
Returns
Type Description
TCPSocketAction.Builder

parseDelimitedFrom(InputStream input)

public static TCPSocketAction parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TCPSocketAction
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TCPSocketAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TCPSocketAction
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TCPSocketAction parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TCPSocketAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TCPSocketAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TCPSocketAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TCPSocketAction parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TCPSocketAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TCPSocketAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TCPSocketAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TCPSocketAction parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TCPSocketAction
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TCPSocketAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TCPSocketAction
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TCPSocketAction parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TCPSocketAction
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TCPSocketAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TCPSocketAction
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TCPSocketAction parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TCPSocketAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TCPSocketAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TCPSocketAction
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TCPSocketAction> parser()
Returns
Type Description
Parser<TCPSocketAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public TCPSocketAction getDefaultInstanceForType()
Returns
Type Description
TCPSocketAction

getParserForType()

public Parser<TCPSocketAction> getParserForType()
Returns
Type Description
Parser<TCPSocketAction>
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
Type Description
int

The port.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TCPSocketAction.Builder newBuilderForType()
Returns
Type Description
TCPSocketAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TCPSocketAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TCPSocketAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TCPSocketAction.Builder toBuilder()
Returns
Type Description
TCPSocketAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException