Class GRPCAction.Builder (0.6.0)

publicstaticfinalclass GRPCAction.BuilderextendsGeneratedMessageV3.Builder<GRPCAction.Builder>implementsGRPCActionOrBuilder

GRPCAction describes an action involving a GRPC port.

Protobuf type google.cloud.run.v2.GRPCAction

Implements

GRPCActionOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicGRPCAction.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicGRPCActionbuild()
Returns
Type Description

buildPartial()

publicGRPCActionbuildPartial()
Returns
Type Description

clear()

publicGRPCAction.Builderclear()
Returns
Type Description
Overrides

clearField(Descriptors.FieldDescriptor field)

publicGRPCAction.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicGRPCAction.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clearPort()

publicGRPCAction.BuilderclearPort()

Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to 8080.

int32 port = 1;

Returns
Type Description
GRPCAction.Builder

This builder for chaining.

clearService()

publicGRPCAction.BuilderclearService()

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

This builder for chaining.

clone()

publicGRPCAction.Builderclone()
Returns
Type Description
Overrides

getDefaultInstanceForType()

publicGRPCActiongetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getPort()

publicintgetPort()

Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to 8080.

int32 port = 1;

Returns
Type Description
int

The port.

getService()

publicStringgetService()

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
Type Description
String

The service.

getServiceBytes()

publicByteStringgetServiceBytes()

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
Type Description
ByteString

The bytes for service.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(GRPCAction other)

publicGRPCAction.BuildermergeFrom(GRPCActionother)
Parameter
Name Description
other GRPCAction
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicGRPCAction.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicGRPCAction.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalGRPCAction.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicGRPCAction.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

setPort(int value)

publicGRPCAction.BuildersetPort(intvalue)

Port number of the gRPC service. Number must be in the range 1 to 65535. If not specified, defaults to 8080.

int32 port = 1;

Parameter
Name Description
value int

The port to set.

Returns
Type Description
GRPCAction.Builder

This builder for chaining.

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

publicGRPCAction.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setService(String value)

publicGRPCAction.BuildersetService(Stringvalue)

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
Name Description
value String

The service to set.

Returns
Type Description
GRPCAction.Builder

This builder for chaining.

setServiceBytes(ByteString value)

publicGRPCAction.BuildersetServiceBytes(ByteStringvalue)

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
Name Description
value ByteString

The bytes for service to set.

Returns
Type Description
GRPCAction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalGRPCAction.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.