publicfinalclass ServiceConfigextendsGeneratedMessageV3implementsServiceConfigOrBuilder
Describes the Service being deployed.
Currently Supported : Cloud Run (fully managed).
Protobuf type google.cloud.functions.v2alpha.ServiceConfig
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
ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER
publicstaticfinalintALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
AVAILABLE_CPU_FIELD_NUMBER
publicstaticfinalintAVAILABLE_CPU_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
AVAILABLE_MEMORY_FIELD_NUMBER
publicstaticfinalintAVAILABLE_MEMORY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
ENVIRONMENT_VARIABLES_FIELD_NUMBER
publicstaticfinalintENVIRONMENT_VARIABLES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
INGRESS_SETTINGS_FIELD_NUMBER
publicstaticfinalintINGRESS_SETTINGS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
MAX_INSTANCE_COUNT_FIELD_NUMBER
publicstaticfinalintMAX_INSTANCE_COUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER
publicstaticfinalintMAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
MIN_INSTANCE_COUNT_FIELD_NUMBER
publicstaticfinalintMIN_INSTANCE_COUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
REVISION_FIELD_NUMBER
publicstaticfinalintREVISION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER
publicstaticfinalintSECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SECRET_VOLUMES_FIELD_NUMBER
publicstaticfinalintSECRET_VOLUMES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SECURITY_LEVEL_FIELD_NUMBER
publicstaticfinalintSECURITY_LEVEL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
publicstaticfinalintSERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SERVICE_FIELD_NUMBER
publicstaticfinalintSERVICE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
TIMEOUT_SECONDS_FIELD_NUMBER
publicstaticfinalintTIMEOUT_SECONDS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
URI_FIELD_NUMBER
publicstaticfinalintURI_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
VPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER
publicstaticfinalintVPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
VPC_CONNECTOR_FIELD_NUMBER
publicstaticfinalintVPC_CONNECTOR_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticServiceConfiggetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticServiceConfig.BuildernewBuilder()
newBuilder(ServiceConfig prototype)
publicstaticServiceConfig.BuildernewBuilder(ServiceConfigprototype)
publicstaticServiceConfigparseDelimitedFrom(InputStreaminput)
publicstaticServiceConfigparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticServiceConfigparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticServiceConfigparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticServiceConfigparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticServiceConfigparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticServiceConfigparseFrom(CodedInputStreaminput)
publicstaticServiceConfigparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticServiceConfigparseFrom(InputStreaminput)
publicstaticServiceConfigparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticServiceConfigparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticServiceConfigparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<ServiceConfig>parser()
Methods
containsEnvironmentVariables(String key)
publicbooleancontainsEnvironmentVariables(Stringkey)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
| Parameter |
| Name |
Description |
key |
String
|
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAllTrafficOnLatestRevision()
publicbooleangetAllTrafficOnLatestRevision()
Whether 100% of traffic is routed to the latest revision.
On CreateFunction and UpdateFunction, when set to true, the revision being
deployed will serve 100% of traffic, ignoring any traffic split settings,
if any. On GetFunction, true will be returned if the latest revision is
serving 100% of traffic.
bool all_traffic_on_latest_revision = 16;
| Returns |
| Type |
Description |
boolean |
The allTrafficOnLatestRevision.
|
getAvailableCpu()
publicStringgetAvailableCpu()
| Returns |
| Type |
Description |
String |
The availableCpu.
|
getAvailableCpuBytes()
publicByteStringgetAvailableCpuBytes()
| Returns |
| Type |
Description |
ByteString |
The bytes for availableCpu.
|
getAvailableMemory()
publicStringgetAvailableMemory()
| Returns |
| Type |
Description |
String |
The availableMemory.
|
getAvailableMemoryBytes()
publicByteStringgetAvailableMemoryBytes()
| Returns |
| Type |
Description |
ByteString |
The bytes for availableMemory.
|
getDefaultInstanceForType()
publicServiceConfiggetDefaultInstanceForType()
getEnvironmentVariables() (deprecated)
publicMap<String,String>getEnvironmentVariables()
getEnvironmentVariablesCount()
publicintgetEnvironmentVariablesCount()
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
| Returns |
| Type |
Description |
int |
getEnvironmentVariablesMap()
publicMap<String,String>getEnvironmentVariablesMap()
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
getEnvironmentVariablesOrDefault(String key, String defaultValue)
publicStringgetEnvironmentVariablesOrDefault(Stringkey,StringdefaultValue)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
| Returns |
| Type |
Description |
String |
getEnvironmentVariablesOrThrow(String key)
publicStringgetEnvironmentVariablesOrThrow(Stringkey)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
| Parameter |
| Name |
Description |
key |
String
|
| Returns |
| Type |
Description |
String |
getIngressSettings()
publicServiceConfig.IngressSettingsgetIngressSettings()
The ingress settings for the function, controlling what traffic can reach
it.
.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8;
getIngressSettingsValue()
publicintgetIngressSettingsValue()
The ingress settings for the function, controlling what traffic can reach
it.
.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for ingressSettings.
|
getMaxInstanceCount()
publicintgetMaxInstanceCount()
The limit on the maximum number of function instances that may coexist at a
given time.
In some cases, such as rapid traffic surges, Cloud Functions may, for a
short period of time, create more instances than the specified max
instances limit. If your function cannot tolerate this temporary behavior,
you may want to factor in a safety margin and set a lower max instances
value than your function can tolerate.
See the Max
Instances Guide for
more details.
int32 max_instance_count = 5;
| Returns |
| Type |
Description |
int |
The maxInstanceCount.
|
getMaxInstanceRequestConcurrency()
publicintgetMaxInstanceRequestConcurrency()
[Preview] Sets the maximum number of concurrent requests that each instance
can receive. Defaults to 1.
int32 max_instance_request_concurrency = 20;
| Returns |
| Type |
Description |
int |
The maxInstanceRequestConcurrency.
|
getMinInstanceCount()
publicintgetMinInstanceCount()
The limit on the minimum number of function instances that may coexist at a
given time.
Function instances are kept in idle state for a short period after they
finished executing the request to reduce cold start time for subsequent
requests. Setting a minimum instance count will ensure that the given
number of instances are kept running in idle state always. This can help
with cold start times when jump in incoming request count occurs after the
idle instance would have been stopped in the default case.
int32 min_instance_count = 12;
| Returns |
| Type |
Description |
int |
The minInstanceCount.
|
getParserForType()
publicParser<ServiceConfig>getParserForType()
Overrides
getRevision()
publicStringgetRevision()
Output only. The name of service revision.
string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The revision.
|
getRevisionBytes()
publicByteStringgetRevisionBytes()
Output only. The name of service revision.
string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for revision.
|
getSecretEnvironmentVariables(int index)
publicSecretEnvVargetSecretEnvironmentVariables(intindex)
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
| Parameter |
| Name |
Description |
index |
int
|
getSecretEnvironmentVariablesCount()
publicintgetSecretEnvironmentVariablesCount()
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
| Returns |
| Type |
Description |
int |
getSecretEnvironmentVariablesList()
publicList<SecretEnvVar>getSecretEnvironmentVariablesList()
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
getSecretEnvironmentVariablesOrBuilder(int index)
publicSecretEnvVarOrBuildergetSecretEnvironmentVariablesOrBuilder(intindex)
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
| Parameter |
| Name |
Description |
index |
int
|
getSecretEnvironmentVariablesOrBuilderList()
publicList<?extendsSecretEnvVarOrBuilder>getSecretEnvironmentVariablesOrBuilderList()
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.functions.v2alpha.SecretEnvVarOrBuilder> |
getSecretVolumes(int index)
publicSecretVolumegetSecretVolumes(intindex)
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
| Parameter |
| Name |
Description |
index |
int
|
getSecretVolumesCount()
publicintgetSecretVolumesCount()
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
| Returns |
| Type |
Description |
int |
getSecretVolumesList()
publicList<SecretVolume>getSecretVolumesList()
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
getSecretVolumesOrBuilder(int index)
publicSecretVolumeOrBuildergetSecretVolumesOrBuilder(intindex)
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
| Parameter |
| Name |
Description |
index |
int
|
getSecretVolumesOrBuilderList()
publicList<?extendsSecretVolumeOrBuilder>getSecretVolumesOrBuilderList()
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.functions.v2alpha.SecretVolumeOrBuilder> |
getSecurityLevel()
publicServiceConfig.SecurityLevelgetSecurityLevel()
Security level configure whether the function only accepts https.
This configuration is only applicable to 1st Gen functions with Http
trigger. By default https is optional for 1st Gen functions; 2nd Gen
functions are https ONLY.
.google.cloud.functions.v2alpha.ServiceConfig.SecurityLevel security_level = 21;
getSecurityLevelValue()
publicintgetSecurityLevelValue()
Security level configure whether the function only accepts https.
This configuration is only applicable to 1st Gen functions with Http
trigger. By default https is optional for 1st Gen functions; 2nd Gen
functions are https ONLY.
.google.cloud.functions.v2alpha.ServiceConfig.SecurityLevel security_level = 21;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for securityLevel.
|
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getService()
Output only. Name of the service associated with a Function.
The format of this field is
projects/{project}/locations/{region}/services/{service}
string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The service.
|
getServiceAccountEmail()
publicStringgetServiceAccountEmail()
The email of the service's service account. If empty, defaults to
{project_number}-compute@developer.gserviceaccount.com.
string service_account_email = 10;
| Returns |
| Type |
Description |
String |
The serviceAccountEmail.
|
getServiceAccountEmailBytes()
publicByteStringgetServiceAccountEmailBytes()
The email of the service's service account. If empty, defaults to
{project_number}-compute@developer.gserviceaccount.com.
string service_account_email = 10;
| Returns |
| Type |
Description |
ByteString |
The bytes for serviceAccountEmail.
|
getServiceBytes()
publicByteStringgetServiceBytes()
Output only. Name of the service associated with a Function.
The format of this field is
projects/{project}/locations/{region}/services/{service}
string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for service.
|
getTimeoutSeconds()
publicintgetTimeoutSeconds()
The function execution timeout. Execution is considered failed and
can be terminated if the function is not completed at the end of the
timeout period. Defaults to 60 seconds.
int32 timeout_seconds = 2;
| Returns |
| Type |
Description |
int |
The timeoutSeconds.
|
getUri()
Output only. URI of the Service deployed.
string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The uri.
|
getUriBytes()
publicByteStringgetUriBytes()
Output only. URI of the Service deployed.
string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for uri.
|
getVpcConnector()
publicStringgetVpcConnector()
The Serverless VPC Access connector that this cloud function can connect
to. The format of this field is projects/*/locations/*/connectors/*.
string vpc_connector = 6 [(.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The vpcConnector.
|
getVpcConnectorBytes()
publicByteStringgetVpcConnectorBytes()
The Serverless VPC Access connector that this cloud function can connect
to. The format of this field is projects/*/locations/*/connectors/*.
string vpc_connector = 6 [(.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for vpcConnector.
|
getVpcConnectorEgressSettings()
publicServiceConfig.VpcConnectorEgressSettingsgetVpcConnectorEgressSettings()
The egress settings for the connector, controlling what traffic is diverted
through it.
.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;
getVpcConnectorEgressSettingsValue()
publicintgetVpcConnectorEgressSettingsValue()
The egress settings for the connector, controlling what traffic is diverted
through it.
.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for vpcConnectorEgressSettings.
|
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()
publicServiceConfig.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedServiceConfig.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicServiceConfig.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides