publicfinalclass ApiConfigextendsGeneratedMessageV3implementsApiConfigOrBuilder
An API Configuration is a combination of settings for both the Managed
Service and Gateways serving this API Config.
Protobuf type google.cloud.apigateway.v1.ApiConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CREATE_TIME_FIELD_NUMBER
publicstaticfinalintCREATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
DISPLAY_NAME_FIELD_NUMBER
publicstaticfinalintDISPLAY_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
GATEWAY_SERVICE_ACCOUNT_FIELD_NUMBER
publicstaticfinalintGATEWAY_SERVICE_ACCOUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
GRPC_SERVICES_FIELD_NUMBER
publicstaticfinalintGRPC_SERVICES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
LABELS_FIELD_NUMBER
publicstaticfinalintLABELS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
MANAGED_SERVICE_CONFIGS_FIELD_NUMBER
publicstaticfinalintMANAGED_SERVICE_CONFIGS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
NAME_FIELD_NUMBER
publicstaticfinalintNAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
OPENAPI_DOCUMENTS_FIELD_NUMBER
publicstaticfinalintOPENAPI_DOCUMENTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SERVICE_CONFIG_ID_FIELD_NUMBER
publicstaticfinalintSERVICE_CONFIG_ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
STATE_FIELD_NUMBER
publicstaticfinalintSTATE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
UPDATE_TIME_FIELD_NUMBER
publicstaticfinalintUPDATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticApiConfiggetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticApiConfig.BuildernewBuilder()
newBuilder(ApiConfig prototype)
publicstaticApiConfig.BuildernewBuilder(ApiConfigprototype)
| Parameter |
| Name |
Description |
prototype |
ApiConfig
|
publicstaticApiConfigparseDelimitedFrom(InputStreaminput)
publicstaticApiConfigparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticApiConfigparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticApiConfigparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticApiConfigparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticApiConfigparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticApiConfigparseFrom(CodedInputStreaminput)
publicstaticApiConfigparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticApiConfigparseFrom(InputStreaminput)
publicstaticApiConfigparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticApiConfigparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticApiConfigparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<ApiConfig>parser()
Methods
containsLabels(String key)
publicbooleancontainsLabels(Stringkey)
| Parameter |
| Name |
Description |
key |
String
|
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getCreateTime()
publicTimestampgetCreateTime()
Output only. Created time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
Timestamp |
The createTime.
|
getCreateTimeOrBuilder()
publicTimestampOrBuildergetCreateTimeOrBuilder()
Output only. Created time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
publicApiConfiggetDefaultInstanceForType()
getDisplayName()
publicStringgetDisplayName()
Optional. Display name.
string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The displayName.
|
getDisplayNameBytes()
publicByteStringgetDisplayNameBytes()
Optional. Display name.
string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for displayName.
|
getGatewayServiceAccount()
publicStringgetGatewayServiceAccount()
Immutable. The Google Cloud IAM Service Account that Gateways serving this config
should use to authenticate to other services. This may either be the
Service Account's email
({ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com) or its full resource
name (projects/{PROJECT}/accounts/{UNIQUE_ID}). This is most often used
when the service is a GCP resource such as a Cloud Run Service or an
IAP-secured service.
string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The gatewayServiceAccount.
|
getGatewayServiceAccountBytes()
publicByteStringgetGatewayServiceAccountBytes()
Immutable. The Google Cloud IAM Service Account that Gateways serving this config
should use to authenticate to other services. This may either be the
Service Account's email
({ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com) or its full resource
name (projects/{PROJECT}/accounts/{UNIQUE_ID}). This is most often used
when the service is a GCP resource such as a Cloud Run Service or an
IAP-secured service.
string gateway_service_account = 14 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for gatewayServiceAccount.
|
getGrpcServices(int index)
publicApiConfig.GrpcServiceDefinitiongetGrpcServices(intindex)
Optional. gRPC service definition files. If specified, openapi_documents must
not be included.
repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getGrpcServicesCount()
publicintgetGrpcServicesCount()
Optional. gRPC service definition files. If specified, openapi_documents must
not be included.
repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
getGrpcServicesList()
publicList<ApiConfig.GrpcServiceDefinition>getGrpcServicesList()
Optional. gRPC service definition files. If specified, openapi_documents must
not be included.
repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL];
getGrpcServicesOrBuilder(int index)
publicApiConfig.GrpcServiceDefinitionOrBuildergetGrpcServicesOrBuilder(intindex)
Optional. gRPC service definition files. If specified, openapi_documents must
not be included.
repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getGrpcServicesOrBuilderList()
publicList<?extendsApiConfig.GrpcServiceDefinitionOrBuilder>getGrpcServicesOrBuilderList()
Optional. gRPC service definition files. If specified, openapi_documents must
not be included.
repeated .google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition grpc_services = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder> |
getLabels() (deprecated)
publicMap<String,String>getLabels()
getLabelsCount()
publicintgetLabelsCount()
| Returns |
| Type |
Description |
int |
getLabelsMap()
publicMap<String,String>getLabelsMap()
getLabelsOrDefault(String key, String defaultValue)
publicStringgetLabelsOrDefault(Stringkey,StringdefaultValue)
| Returns |
| Type |
Description |
String |
getLabelsOrThrow(String key)
publicStringgetLabelsOrThrow(Stringkey)
| Parameter |
| Name |
Description |
key |
String
|
| Returns |
| Type |
Description |
String |
getManagedServiceConfigs(int index)
publicApiConfig.FilegetManagedServiceConfigs(intindex)
Optional. Service Configuration files. At least one must be included when using gRPC
service definitions. See
https://cloud.google.com/endpoints/docs/grpc/grpc-service-config#service_configuration_overview
for the expected file contents.
If multiple files are specified, the files are merged with the following
rules:
- All singular scalar fields are merged using "last one wins" semantics in
the order of the files uploaded.
- Repeated fields are concatenated.
- Singular embedded messages are merged using these rules for nested
fields.
repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getManagedServiceConfigsCount()
publicintgetManagedServiceConfigsCount()
Optional. Service Configuration files. At least one must be included when using gRPC
service definitions. See
https://cloud.google.com/endpoints/docs/grpc/grpc-service-config#service_configuration_overview
for the expected file contents.
If multiple files are specified, the files are merged with the following
rules:
- All singular scalar fields are merged using "last one wins" semantics in
the order of the files uploaded.
- Repeated fields are concatenated.
- Singular embedded messages are merged using these rules for nested
fields.
repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
getManagedServiceConfigsList()
publicList<ApiConfig.File>getManagedServiceConfigsList()
Optional. Service Configuration files. At least one must be included when using gRPC
service definitions. See
https://cloud.google.com/endpoints/docs/grpc/grpc-service-config#service_configuration_overview
for the expected file contents.
If multiple files are specified, the files are merged with the following
rules:
- All singular scalar fields are merged using "last one wins" semantics in
the order of the files uploaded.
- Repeated fields are concatenated.
- Singular embedded messages are merged using these rules for nested
fields.
repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL];
getManagedServiceConfigsOrBuilder(int index)
publicApiConfig.FileOrBuildergetManagedServiceConfigsOrBuilder(intindex)
Optional. Service Configuration files. At least one must be included when using gRPC
service definitions. See
https://cloud.google.com/endpoints/docs/grpc/grpc-service-config#service_configuration_overview
for the expected file contents.
If multiple files are specified, the files are merged with the following
rules:
- All singular scalar fields are merged using "last one wins" semantics in
the order of the files uploaded.
- Repeated fields are concatenated.
- Singular embedded messages are merged using these rules for nested
fields.
repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getManagedServiceConfigsOrBuilderList()
publicList<?extendsApiConfig.FileOrBuilder>getManagedServiceConfigsOrBuilderList()
Optional. Service Configuration files. At least one must be included when using gRPC
service definitions. See
https://cloud.google.com/endpoints/docs/grpc/grpc-service-config#service_configuration_overview
for the expected file contents.
If multiple files are specified, the files are merged with the following
rules:
- All singular scalar fields are merged using "last one wins" semantics in
the order of the files uploaded.
- Repeated fields are concatenated.
- Singular embedded messages are merged using these rules for nested
fields.
repeated .google.cloud.apigateway.v1.ApiConfig.File managed_service_configs = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.apigateway.v1.ApiConfig.FileOrBuilder> |
getName()
Output only. Resource name of the API Config.
Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The name.
|
getNameBytes()
publicByteStringgetNameBytes()
Output only. Resource name of the API Config.
Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
getOpenapiDocuments(int index)
publicApiConfig.OpenApiDocumentgetOpenapiDocuments(intindex)
Optional. OpenAPI specification documents. If specified, grpc_services and
managed_service_configs must not be included.
repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getOpenapiDocumentsCount()
publicintgetOpenapiDocumentsCount()
Optional. OpenAPI specification documents. If specified, grpc_services and
managed_service_configs must not be included.
repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
getOpenapiDocumentsList()
publicList<ApiConfig.OpenApiDocument>getOpenapiDocumentsList()
Optional. OpenAPI specification documents. If specified, grpc_services and
managed_service_configs must not be included.
repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL];
getOpenapiDocumentsOrBuilder(int index)
publicApiConfig.OpenApiDocumentOrBuildergetOpenapiDocumentsOrBuilder(intindex)
Optional. OpenAPI specification documents. If specified, grpc_services and
managed_service_configs must not be included.
repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getOpenapiDocumentsOrBuilderList()
publicList<?extendsApiConfig.OpenApiDocumentOrBuilder>getOpenapiDocumentsOrBuilderList()
Optional. OpenAPI specification documents. If specified, grpc_services and
managed_service_configs must not be included.
repeated .google.cloud.apigateway.v1.ApiConfig.OpenApiDocument openapi_documents = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.apigateway.v1.ApiConfig.OpenApiDocumentOrBuilder> |
getParserForType()
publicParser<ApiConfig>getParserForType()
Overrides
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getServiceConfigId()
publicStringgetServiceConfigId()
| Returns |
| Type |
Description |
String |
The serviceConfigId.
|
getServiceConfigIdBytes()
publicByteStringgetServiceConfigIdBytes()
| Returns |
| Type |
Description |
ByteString |
The bytes for serviceConfigId.
|
getState()
publicApiConfig.StategetState()
Output only. State of the API Config.
.google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue()
Output only. State of the API Config.
.google.cloud.apigateway.v1.ApiConfig.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for state.
|
getUpdateTime()
publicTimestampgetUpdateTime()
Output only. Updated time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
Timestamp |
The updateTime.
|
getUpdateTimeOrBuilder()
publicTimestampOrBuildergetUpdateTimeOrBuilder()
Output only. Updated time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime()
publicbooleanhasCreateTime()
Output only. Created time.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the createTime field is set.
|
hasUpdateTime()
publicbooleanhasUpdateTime()
Output only. Updated time.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the updateTime field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protectedMapFieldReflectionAccessorinternalGetMapFieldReflection(intnumber)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicApiConfig.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedApiConfig.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicApiConfig.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides