Class GRPCAction.Builder (0.32.0)

public static final class GRPCAction.Builder extends GeneratedMessageV3.Builder<GRPCAction.Builder> implements GRPCActionOrBuilder

GRPCAction describes an action involving a GRPC port.

Protobuf type google.cloud.run.v2.GRPCAction

Implements

GRPCActionOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GRPCAction build()
Returns
TypeDescription
GRPCAction

buildPartial()

public GRPCAction buildPartial()
Returns
TypeDescription
GRPCAction

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPort()

public GRPCAction.Builder clearPort()

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
GRPCAction.Builder

This builder for chaining.

clearService()

public GRPCAction.Builder clearService()

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
GRPCAction.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GRPCAction getDefaultInstanceForType()
Returns
TypeDescription
GRPCAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GRPCAction other)

public GRPCAction.Builder mergeFrom(GRPCAction other)
Parameter
NameDescription
otherGRPCAction
Returns
TypeDescription
GRPCAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPort(int value)

public GRPCAction.Builder setPort(int value)

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;

Parameter
NameDescription
valueint

The port to set.

Returns
TypeDescription
GRPCAction.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GRPCAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GRPCAction.Builder
Overrides

setService(String value)

public GRPCAction.Builder setService(String value)

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;

Parameter
NameDescription
valueString

The service to set.

Returns
TypeDescription
GRPCAction.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public GRPCAction.Builder setServiceBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for service to set.

Returns
TypeDescription
GRPCAction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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