Class TCPSocketAction (0.21.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
TypeDescription
int

Static Methods

getDefaultInstance()

public static TCPSocketAction getDefaultInstance()
Returns
TypeDescription
TCPSocketAction

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TCPSocketAction.Builder newBuilder()
Returns
TypeDescription
TCPSocketAction.Builder

newBuilder(TCPSocketAction prototype)

public static TCPSocketAction.Builder newBuilder(TCPSocketAction prototype)
Parameter
NameDescription
prototypeTCPSocketAction
Returns
TypeDescription
TCPSocketAction.Builder

parseDelimitedFrom(InputStream input)

public static TCPSocketAction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TCPSocketAction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TCPSocketAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TCPSocketAction
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TCPSocketAction parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TCPSocketAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TCPSocketAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TCPSocketAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TCPSocketAction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TCPSocketAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TCPSocketAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TCPSocketAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TCPSocketAction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TCPSocketAction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TCPSocketAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TCPSocketAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TCPSocketAction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TCPSocketAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TCPSocketAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TCPSocketAction
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TCPSocketAction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TCPSocketAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TCPSocketAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TCPSocketAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TCPSocketAction> parser()
Returns
TypeDescription
Parser<TCPSocketAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public TCPSocketAction getDefaultInstanceForType()
Returns
TypeDescription
TCPSocketAction

getParserForType()

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

The port.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TCPSocketAction.Builder newBuilderForType()
Returns
TypeDescription
TCPSocketAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TCPSocketAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TCPSocketAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TCPSocketAction.Builder toBuilder()
Returns
TypeDescription
TCPSocketAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException