public sealed class TCPSocketAction : IMessage<TCPSocketAction>, IEquatable<TCPSocketAction>, IDeepCloneable<TCPSocketAction>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Run Admin v2 API class TCPSocketAction.
TCPSocketAction describes an action based on opening a socket
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eTCPSocketAction\u003c/code\u003e class in the Google Cloud Run Admin v2 API describes an action based on opening a socket.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, offering various functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version for the TCPSocketAction class is 2.13.0, with versions ranging down to 1.0.0-beta02 available.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors: a default constructor and one that allows creating a copy of an existing \u003ccode\u003eTCPSocketAction\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePort\u003c/code\u003e property of the class sets the port number to access on the container, defaulting to the container's exposed port if not specified and must be in the range of 1 to 65535.\u003c/p\u003e\n"]]],[],null,[]]