Class ApiConfig.GrpcServiceDefinition.Builder (2.64.0)

publicstaticfinalclass ApiConfig.GrpcServiceDefinition.BuilderextendsGeneratedMessageV3.Builder<ApiConfig.GrpcServiceDefinition.Builder>implementsApiConfig.GrpcServiceDefinitionOrBuilder

A gRPC service definition.

Protobuf type google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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
Descriptor

Methods

addAllSource(Iterable<? extends ApiConfig.File> values)

publicApiConfig.GrpcServiceDefinition.BuilderaddAllSource(Iterable<?extendsApiConfig.File>values)

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.apigateway.v1.ApiConfig.File>
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicApiConfig.GrpcServiceDefinition.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder
Overrides

addSource(ApiConfig.File value)

publicApiConfig.GrpcServiceDefinition.BuilderaddSource(ApiConfig.Filevalue)

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ApiConfig.File
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder

addSource(ApiConfig.File.Builder builderForValue)

publicApiConfig.GrpcServiceDefinition.BuilderaddSource(ApiConfig.File.BuilderbuilderForValue)

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue ApiConfig.File.Builder
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder

addSource(int index, ApiConfig.File value)

publicApiConfig.GrpcServiceDefinition.BuilderaddSource(intindex,ApiConfig.Filevalue)

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ApiConfig.File
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder

addSource(int index, ApiConfig.File.Builder builderForValue)

publicApiConfig.GrpcServiceDefinition.BuilderaddSource(intindex,ApiConfig.File.BuilderbuilderForValue)

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ApiConfig.File.Builder
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder

addSourceBuilder()

publicApiConfig.File.BuilderaddSourceBuilder()

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiConfig.File.Builder

addSourceBuilder(int index)

publicApiConfig.File.BuilderaddSourceBuilder(intindex)

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ApiConfig.File.Builder

build()

publicApiConfig.GrpcServiceDefinitionbuild()
Returns
Type Description
ApiConfig.GrpcServiceDefinition

buildPartial()

publicApiConfig.GrpcServiceDefinitionbuildPartial()
Returns
Type Description
ApiConfig.GrpcServiceDefinition

clear()

publicApiConfig.GrpcServiceDefinition.Builderclear()
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicApiConfig.GrpcServiceDefinition.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder
Overrides

clearFileDescriptorSet()

publicApiConfig.GrpcServiceDefinition.BuilderclearFileDescriptorSet()

Input only. File descriptor set, generated by protoc.

To generate, use protoc with imports and source info included. For an example test.proto file, the following command would put the value in a new file named out.pb.

$ protoc --include_imports --include_source_info test.proto -o out.pb

.google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicApiConfig.GrpcServiceDefinition.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder
Overrides

clearSource()

publicApiConfig.GrpcServiceDefinition.BuilderclearSource()

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder

clone()

publicApiConfig.GrpcServiceDefinition.Builderclone()
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder
Overrides

getDefaultInstanceForType()

publicApiConfig.GrpcServiceDefinitiongetDefaultInstanceForType()
Returns
Type Description
ApiConfig.GrpcServiceDefinition

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFileDescriptorSet()

publicApiConfig.FilegetFileDescriptorSet()

Input only. File descriptor set, generated by protoc.

To generate, use protoc with imports and source info included. For an example test.proto file, the following command would put the value in a new file named out.pb.

$ protoc --include_imports --include_source_info test.proto -o out.pb

.google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ApiConfig.File

The fileDescriptorSet.

getFileDescriptorSetBuilder()

publicApiConfig.File.BuildergetFileDescriptorSetBuilder()

Input only. File descriptor set, generated by protoc.

To generate, use protoc with imports and source info included. For an example test.proto file, the following command would put the value in a new file named out.pb.

$ protoc --include_imports --include_source_info test.proto -o out.pb

.google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ApiConfig.File.Builder

getFileDescriptorSetOrBuilder()

publicApiConfig.FileOrBuildergetFileDescriptorSetOrBuilder()

Input only. File descriptor set, generated by protoc.

To generate, use protoc with imports and source info included. For an example test.proto file, the following command would put the value in a new file named out.pb.

$ protoc --include_imports --include_source_info test.proto -o out.pb

.google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ApiConfig.FileOrBuilder

getSource(int index)

publicApiConfig.FilegetSource(intindex)

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ApiConfig.File

getSourceBuilder(int index)

publicApiConfig.File.BuildergetSourceBuilder(intindex)

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ApiConfig.File.Builder

getSourceBuilderList()

publicList<ApiConfig.File.Builder>getSourceBuilderList()

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getSourceCount()

publicintgetSourceCount()

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getSourceList()

publicList<ApiConfig.File>getSourceList()

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<File>

getSourceOrBuilder(int index)

publicApiConfig.FileOrBuildergetSourceOrBuilder(intindex)

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ApiConfig.FileOrBuilder

getSourceOrBuilderList()

publicList<?extendsApiConfig.FileOrBuilder>getSourceOrBuilderList()

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder>

hasFileDescriptorSet()

publicbooleanhasFileDescriptorSet()

Input only. File descriptor set, generated by protoc.

To generate, use protoc with imports and source info included. For an example test.proto file, the following command would put the value in a new file named out.pb.

$ protoc --include_imports --include_source_info test.proto -o out.pb

.google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

Whether the fileDescriptorSet field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFileDescriptorSet(ApiConfig.File value)

publicApiConfig.GrpcServiceDefinition.BuildermergeFileDescriptorSet(ApiConfig.Filevalue)

Input only. File descriptor set, generated by protoc.

To generate, use protoc with imports and source info included. For an example test.proto file, the following command would put the value in a new file named out.pb.

$ protoc --include_imports --include_source_info test.proto -o out.pb

.google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value ApiConfig.File
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder

mergeFrom(ApiConfig.GrpcServiceDefinition other)

publicApiConfig.GrpcServiceDefinition.BuildermergeFrom(ApiConfig.GrpcServiceDefinitionother)
Parameter
Name Description
other ApiConfig.GrpcServiceDefinition
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicApiConfig.GrpcServiceDefinition.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicApiConfig.GrpcServiceDefinition.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalApiConfig.GrpcServiceDefinition.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder
Overrides

removeSource(int index)

publicApiConfig.GrpcServiceDefinition.BuilderremoveSource(intindex)

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder

setField(Descriptors.FieldDescriptor field, Object value)

publicApiConfig.GrpcServiceDefinition.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder
Overrides

setFileDescriptorSet(ApiConfig.File value)

publicApiConfig.GrpcServiceDefinition.BuildersetFileDescriptorSet(ApiConfig.Filevalue)

Input only. File descriptor set, generated by protoc.

To generate, use protoc with imports and source info included. For an example test.proto file, the following command would put the value in a new file named out.pb.

$ protoc --include_imports --include_source_info test.proto -o out.pb

.google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value ApiConfig.File
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder

setFileDescriptorSet(ApiConfig.File.Builder builderForValue)

publicApiConfig.GrpcServiceDefinition.BuildersetFileDescriptorSet(ApiConfig.File.BuilderbuilderForValue)

Input only. File descriptor set, generated by protoc.

To generate, use protoc with imports and source info included. For an example test.proto file, the following command would put the value in a new file named out.pb.

$ protoc --include_imports --include_source_info test.proto -o out.pb

.google.cloud.apigateway.v1.ApiConfig.File file_descriptor_set = 1 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
builderForValue ApiConfig.File.Builder
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder

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

publicApiConfig.GrpcServiceDefinition.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder
Overrides

setSource(int index, ApiConfig.File value)

publicApiConfig.GrpcServiceDefinition.BuildersetSource(intindex,ApiConfig.Filevalue)

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value ApiConfig.File
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder

setSource(int index, ApiConfig.File.Builder builderForValue)

publicApiConfig.GrpcServiceDefinition.BuildersetSource(intindex,ApiConfig.File.BuilderbuilderForValue)

Optional. Uncompiled proto files associated with the descriptor set, used for display purposes (server-side compilation is not supported). These should match the inputs to 'protoc' command used to generate file_descriptor_set.

repeated .google.cloud.apigateway.v1.ApiConfig.File source = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue ApiConfig.File.Builder
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalApiConfig.GrpcServiceDefinition.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ApiConfig.GrpcServiceDefinition.Builder
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年11月19日 UTC.