Class ServiceConfig.Builder (2.7.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 2.80.0 (latest)
- 2.78.0
- 2.77.0
- 2.76.0
- 2.75.0
- 2.74.0
- 2.72.0
- 2.70.0
- 2.69.0
- 2.66.0
- 2.65.0
- 2.64.0
- 2.62.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.4
- 2.4.3
- 2.3.6
publicstaticfinalclass ServiceConfig.BuilderextendsGeneratedMessageV3.Builder<ServiceConfig.Builder>implementsServiceConfigOrBuilderDescribes the Service being deployed. Currently Supported : Cloud Run (fully managed).
Protobuf type google.cloud.functions.v2beta.ServiceConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ServiceConfig.BuilderImplements
ServiceConfigOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()Methods
addAllSecretEnvironmentVariables(Iterable<? extends SecretEnvVar> values)
publicServiceConfig.BuilderaddAllSecretEnvironmentVariables(Iterable<?extendsSecretEnvVar>values)Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
addAllSecretVolumes(Iterable<? extends SecretVolume> values)
publicServiceConfig.BuilderaddAllSecretVolumes(Iterable<?extendsSecretVolume>values)Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicServiceConfig.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)addSecretEnvironmentVariables(SecretEnvVar value)
publicServiceConfig.BuilderaddSecretEnvironmentVariables(SecretEnvVarvalue)Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
addSecretEnvironmentVariables(SecretEnvVar.Builder builderForValue)
publicServiceConfig.BuilderaddSecretEnvironmentVariables(SecretEnvVar.BuilderbuilderForValue)Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
addSecretEnvironmentVariables(int index, SecretEnvVar value)
publicServiceConfig.BuilderaddSecretEnvironmentVariables(intindex,SecretEnvVarvalue)Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
addSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue)
publicServiceConfig.BuilderaddSecretEnvironmentVariables(intindex,SecretEnvVar.BuilderbuilderForValue)Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
addSecretEnvironmentVariablesBuilder()
publicSecretEnvVar.BuilderaddSecretEnvironmentVariablesBuilder()Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
addSecretEnvironmentVariablesBuilder(int index)
publicSecretEnvVar.BuilderaddSecretEnvironmentVariablesBuilder(intindex)Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
addSecretVolumes(SecretVolume value)
publicServiceConfig.BuilderaddSecretVolumes(SecretVolumevalue)Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
addSecretVolumes(SecretVolume.Builder builderForValue)
publicServiceConfig.BuilderaddSecretVolumes(SecretVolume.BuilderbuilderForValue)Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
addSecretVolumes(int index, SecretVolume value)
publicServiceConfig.BuilderaddSecretVolumes(intindex,SecretVolumevalue)Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
addSecretVolumes(int index, SecretVolume.Builder builderForValue)
publicServiceConfig.BuilderaddSecretVolumes(intindex,SecretVolume.BuilderbuilderForValue)Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
addSecretVolumesBuilder()
publicSecretVolume.BuilderaddSecretVolumesBuilder()Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
addSecretVolumesBuilder(int index)
publicSecretVolume.BuilderaddSecretVolumesBuilder(intindex)Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
build()
publicServiceConfigbuild()buildPartial()
publicServiceConfigbuildPartial()clear()
publicServiceConfig.Builderclear()clearAllTrafficOnLatestRevision()
publicServiceConfig.BuilderclearAllTrafficOnLatestRevision()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;
This builder for chaining.
clearAvailableMemory()
publicServiceConfig.BuilderclearAvailableMemory()The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
string available_memory = 13;
This builder for chaining.
clearEnvironmentVariables()
publicServiceConfig.BuilderclearEnvironmentVariables()clearField(Descriptors.FieldDescriptor field)
publicServiceConfig.BuilderclearField(Descriptors.FieldDescriptorfield)clearIngressSettings()
publicServiceConfig.BuilderclearIngressSettings()The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8;
This builder for chaining.
clearMaxInstanceCount()
publicServiceConfig.BuilderclearMaxInstanceCount()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;
This builder for chaining.
clearMinInstanceCount()
publicServiceConfig.BuilderclearMinInstanceCount()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;
This builder for chaining.
clearOneof(Descriptors.OneofDescriptor oneof)
publicServiceConfig.BuilderclearOneof(Descriptors.OneofDescriptoroneof)clearRevision()
publicServiceConfig.BuilderclearRevision()Output only. The name of service revision.
string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
This builder for chaining.
clearSecretEnvironmentVariables()
publicServiceConfig.BuilderclearSecretEnvironmentVariables()Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
clearSecretVolumes()
publicServiceConfig.BuilderclearSecretVolumes()Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
clearService()
publicServiceConfig.BuilderclearService() 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) = { ... }
This builder for chaining.
clearServiceAccountEmail()
publicServiceConfig.BuilderclearServiceAccountEmail() The email of the service's service account. If empty, defaults to
{project_number}-compute@developer.gserviceaccount.com.
string service_account_email = 10;
This builder for chaining.
clearTimeoutSeconds()
publicServiceConfig.BuilderclearTimeoutSeconds()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;
This builder for chaining.
clearUri()
publicServiceConfig.BuilderclearUri()Output only. URI of the Service deployed.
string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
This builder for chaining.
clearVpcConnector()
publicServiceConfig.BuilderclearVpcConnector() 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) = { ... }
This builder for chaining.
clearVpcConnectorEgressSettings()
publicServiceConfig.BuilderclearVpcConnectorEgressSettings()The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;
This builder for chaining.
clone()
publicServiceConfig.Builderclone()containsEnvironmentVariables(String key)
publicbooleancontainsEnvironmentVariables(Stringkey)Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
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;
The allTrafficOnLatestRevision.
getAvailableMemory()
publicStringgetAvailableMemory()The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
string available_memory = 13;
The availableMemory.
getAvailableMemoryBytes()
publicByteStringgetAvailableMemoryBytes()The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
string available_memory = 13;
The bytes for availableMemory.
getDefaultInstanceForType()
publicServiceConfiggetDefaultInstanceForType()getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()getEnvironmentVariables()
publicMap<String,String>getEnvironmentVariables()Use #getEnvironmentVariablesMap() instead.
getEnvironmentVariablesCount()
publicintgetEnvironmentVariablesCount()Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
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;
getEnvironmentVariablesOrThrow(String key)
publicStringgetEnvironmentVariablesOrThrow(Stringkey)Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
getIngressSettings()
publicServiceConfig.IngressSettingsgetIngressSettings()The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8;
The ingressSettings.
getIngressSettingsValue()
publicintgetIngressSettingsValue()The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8;
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;
The maxInstanceCount.
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;
The minInstanceCount.
getMutableEnvironmentVariables()
publicMap<String,String>getMutableEnvironmentVariables()Use alternate mutation accessors instead.
getRevision()
publicStringgetRevision()Output only. The name of service revision.
string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
The revision.
getRevisionBytes()
publicByteStringgetRevisionBytes()Output only. The name of service revision.
string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
The bytes for revision.
getSecretEnvironmentVariables(int index)
publicSecretEnvVargetSecretEnvironmentVariables(intindex)Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
getSecretEnvironmentVariablesBuilder(int index)
publicSecretEnvVar.BuildergetSecretEnvironmentVariablesBuilder(intindex)Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
getSecretEnvironmentVariablesBuilderList()
publicList<SecretEnvVar.Builder>getSecretEnvironmentVariablesBuilderList()Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
getSecretEnvironmentVariablesCount()
publicintgetSecretEnvironmentVariablesCount()Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
getSecretEnvironmentVariablesList()
publicList<SecretEnvVar>getSecretEnvironmentVariablesList()Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
getSecretEnvironmentVariablesOrBuilder(int index)
publicSecretEnvVarOrBuildergetSecretEnvironmentVariablesOrBuilder(intindex)Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
getSecretEnvironmentVariablesOrBuilderList()
publicList<?extendsSecretEnvVarOrBuilder>getSecretEnvironmentVariablesOrBuilderList()Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
getSecretVolumes(int index)
publicSecretVolumegetSecretVolumes(intindex)Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
getSecretVolumesBuilder(int index)
publicSecretVolume.BuildergetSecretVolumesBuilder(intindex)Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
getSecretVolumesBuilderList()
publicList<SecretVolume.Builder>getSecretVolumesBuilderList()Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
getSecretVolumesCount()
publicintgetSecretVolumesCount()Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
getSecretVolumesList()
publicList<SecretVolume>getSecretVolumesList()Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
getSecretVolumesOrBuilder(int index)
publicSecretVolumeOrBuildergetSecretVolumesOrBuilder(intindex)Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
getSecretVolumesOrBuilderList()
publicList<?extendsSecretVolumeOrBuilder>getSecretVolumesOrBuilderList()Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
getService()
publicStringgetService() 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) = { ... }
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;
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;
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) = { ... }
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;
The timeoutSeconds.
getUri()
publicStringgetUri()Output only. URI of the Service deployed.
string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
The uri.
getUriBytes()
publicByteStringgetUriBytes()Output only. URI of the Service deployed.
string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
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) = { ... }
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) = { ... }
The bytes for vpcConnector.
getVpcConnectorEgressSettings()
publicServiceConfig.VpcConnectorEgressSettingsgetVpcConnectorEgressSettings()The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;
The vpcConnectorEgressSettings.
getVpcConnectorEgressSettingsValue()
publicintgetVpcConnectorEgressSettingsValue()The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;
The enum numeric value on the wire for vpcConnectorEgressSettings.
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()internalGetMapField(int number)
protectedMapFieldinternalGetMapField(intnumber)internalGetMutableMapField(int number)
protectedMapFieldinternalGetMutableMapField(intnumber)isInitialized()
publicfinalbooleanisInitialized()mergeFrom(ServiceConfig other)
publicServiceConfig.BuildermergeFrom(ServiceConfigother)mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicServiceConfig.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)mergeFrom(Message other)
publicServiceConfig.BuildermergeFrom(Messageother)mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalServiceConfig.BuildermergeUnknownFields(UnknownFieldSetunknownFields)putAllEnvironmentVariables(Map<String,String> values)
publicServiceConfig.BuilderputAllEnvironmentVariables(Map<String,String>values)Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
putEnvironmentVariables(String key, String value)
publicServiceConfig.BuilderputEnvironmentVariables(Stringkey,Stringvalue)Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
removeEnvironmentVariables(String key)
publicServiceConfig.BuilderremoveEnvironmentVariables(Stringkey)Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
removeSecretEnvironmentVariables(int index)
publicServiceConfig.BuilderremoveSecretEnvironmentVariables(intindex)Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
removeSecretVolumes(int index)
publicServiceConfig.BuilderremoveSecretVolumes(intindex)Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
setAllTrafficOnLatestRevision(boolean value)
publicServiceConfig.BuildersetAllTrafficOnLatestRevision(booleanvalue)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;
This builder for chaining.
setAvailableMemory(String value)
publicServiceConfig.BuildersetAvailableMemory(Stringvalue)The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
string available_memory = 13;
This builder for chaining.
setAvailableMemoryBytes(ByteString value)
publicServiceConfig.BuildersetAvailableMemoryBytes(ByteStringvalue)The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go a full description.
string available_memory = 13;
This builder for chaining.
setField(Descriptors.FieldDescriptor field, Object value)
publicServiceConfig.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)setIngressSettings(ServiceConfig.IngressSettings value)
publicServiceConfig.BuildersetIngressSettings(ServiceConfig.IngressSettingsvalue)The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8;
This builder for chaining.
setIngressSettingsValue(int value)
publicServiceConfig.BuildersetIngressSettingsValue(intvalue)The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8;
This builder for chaining.
setMaxInstanceCount(int value)
publicServiceConfig.BuildersetMaxInstanceCount(intvalue)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;
This builder for chaining.
setMinInstanceCount(int value)
publicServiceConfig.BuildersetMinInstanceCount(intvalue)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;
This builder for chaining.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicServiceConfig.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)setRevision(String value)
publicServiceConfig.BuildersetRevision(Stringvalue)Output only. The name of service revision.
string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
This builder for chaining.
setRevisionBytes(ByteString value)
publicServiceConfig.BuildersetRevisionBytes(ByteStringvalue)Output only. The name of service revision.
string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
This builder for chaining.
setSecretEnvironmentVariables(int index, SecretEnvVar value)
publicServiceConfig.BuildersetSecretEnvironmentVariables(intindex,SecretEnvVarvalue)Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
setSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue)
publicServiceConfig.BuildersetSecretEnvironmentVariables(intindex,SecretEnvVar.BuilderbuilderForValue)Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;
setSecretVolumes(int index, SecretVolume value)
publicServiceConfig.BuildersetSecretVolumes(intindex,SecretVolumevalue)Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
setSecretVolumes(int index, SecretVolume.Builder builderForValue)
publicServiceConfig.BuildersetSecretVolumes(intindex,SecretVolume.BuilderbuilderForValue)Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;
setService(String value)
publicServiceConfig.BuildersetService(Stringvalue) 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) = { ... }
This builder for chaining.
setServiceAccountEmail(String value)
publicServiceConfig.BuildersetServiceAccountEmail(Stringvalue) The email of the service's service account. If empty, defaults to
{project_number}-compute@developer.gserviceaccount.com.
string service_account_email = 10;
This builder for chaining.
setServiceAccountEmailBytes(ByteString value)
publicServiceConfig.BuildersetServiceAccountEmailBytes(ByteStringvalue) The email of the service's service account. If empty, defaults to
{project_number}-compute@developer.gserviceaccount.com.
string service_account_email = 10;
This builder for chaining.
setServiceBytes(ByteString value)
publicServiceConfig.BuildersetServiceBytes(ByteStringvalue) 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) = { ... }
This builder for chaining.
setTimeoutSeconds(int value)
publicServiceConfig.BuildersetTimeoutSeconds(intvalue)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;
This builder for chaining.
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalServiceConfig.BuildersetUnknownFields(UnknownFieldSetunknownFields)setUri(String value)
publicServiceConfig.BuildersetUri(Stringvalue)Output only. URI of the Service deployed.
string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
This builder for chaining.
setUriBytes(ByteString value)
publicServiceConfig.BuildersetUriBytes(ByteStringvalue)Output only. URI of the Service deployed.
string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
This builder for chaining.
setVpcConnector(String value)
publicServiceConfig.BuildersetVpcConnector(Stringvalue) 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) = { ... }
This builder for chaining.
setVpcConnectorBytes(ByteString value)
publicServiceConfig.BuildersetVpcConnectorBytes(ByteStringvalue) 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) = { ... }
This builder for chaining.
setVpcConnectorEgressSettings(ServiceConfig.VpcConnectorEgressSettings value)
publicServiceConfig.BuildersetVpcConnectorEgressSettings(ServiceConfig.VpcConnectorEgressSettingsvalue)The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;
This builder for chaining.
setVpcConnectorEgressSettingsValue(int value)
publicServiceConfig.BuildersetVpcConnectorEgressSettingsValue(intvalue)The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;
This builder for chaining.