Class GRPCAction (0.24.0)

public final class GRPCAction extends GeneratedMessageV3 implements GRPCActionOrBuilder

GRPCAction describes an action involving a GRPC port.

Protobuf type google.cloud.run.v2.GRPCAction

Implements

GRPCActionOrBuilder

Static Fields

PORT_FIELD_NUMBER

public static final int PORT_FIELD_NUMBER
Field Value
TypeDescription
int

SERVICE_FIELD_NUMBER

public static final int SERVICE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GRPCAction getDefaultInstance()
Returns
TypeDescription
GRPCAction

getDescriptor()

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

newBuilder()

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

newBuilder(GRPCAction prototype)

public static GRPCAction.Builder newBuilder(GRPCAction prototype)
Parameter
NameDescription
prototypeGRPCAction
Returns
TypeDescription
GRPCAction.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public GRPCAction getDefaultInstanceForType()
Returns
TypeDescription
GRPCAction

getParserForType()

public Parser<GRPCAction> getParserForType()
Returns
TypeDescription
Parser<GRPCAction>
Overrides

getPort()

public int getPort()

Port number of the gRPC service. Number 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

getService()

public String getService()

Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.

string service = 2;

Returns
TypeDescription
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.

string service = 2;

Returns
TypeDescription
ByteString

The bytes for service.

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 GRPCAction.Builder newBuilderForType()
Returns
TypeDescription
GRPCAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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