Class ApiConfig.GrpcServiceDefinition.Builder (2.1.12)

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

A gRPC service definition.

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

Inherited Members

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicApiConfig.GrpcServiceDefinition.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
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
Returns
Type Description

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

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

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

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

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

build()

publicApiConfig.GrpcServiceDefinitionbuild()
Returns
Type Description

buildPartial()

publicApiConfig.GrpcServiceDefinitionbuildPartial()
Returns
Type Description

clear()

publicApiConfig.GrpcServiceDefinition.Builderclear()
Returns
Type Description
Overrides

clearField(Descriptors.FieldDescriptor field)

publicApiConfig.GrpcServiceDefinition.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
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

clearOneof(Descriptors.OneofDescriptor oneof)

publicApiConfig.GrpcServiceDefinition.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
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

clone()

publicApiConfig.GrpcServiceDefinition.Builderclone()
Returns
Type Description
Overrides

getDefaultInstanceForType()

publicApiConfig.GrpcServiceDefinitiongetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
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

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

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

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

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

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

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

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
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
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
Returns
Type Description

mergeFrom(ApiConfig.GrpcServiceDefinition other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalApiConfig.GrpcServiceDefinition.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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

setField(Descriptors.FieldDescriptor field, Object value)

publicApiConfig.GrpcServiceDefinition.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
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
Returns
Type Description

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

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

publicApiConfig.GrpcServiceDefinition.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
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
Returns
Type Description

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

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalApiConfig.GrpcServiceDefinition.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年11月19日 UTC.