Class ServiceConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ServiceConfig.Builder>
com.google.cloud.functions.v2beta.ServiceConfig.Builder
- All Implemented Interfaces:
ServiceConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ServiceConfig
public static final class ServiceConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ServiceConfig.Builder>
implements ServiceConfigOrBuilder
Describes the Service being deployed. Currently Supported : Cloud Run (fully managed).Protobuf type
google.cloud.functions.v2beta.ServiceConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllSecretEnvironmentVariables(Iterable<? extends SecretEnvVar> values) Secret environment variables configuration.addAllSecretVolumes(Iterable<? extends SecretVolume> values) Secret volumes configuration.addSecretEnvironmentVariables(int index, SecretEnvVar value) Secret environment variables configuration.addSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue) Secret environment variables configuration.Secret environment variables configuration.addSecretEnvironmentVariables(SecretEnvVar.Builder builderForValue) Secret environment variables configuration.Secret environment variables configuration.addSecretEnvironmentVariablesBuilder(int index) Secret environment variables configuration.addSecretVolumes(int index, SecretVolume value) Secret volumes configuration.addSecretVolumes(int index, SecretVolume.Builder builderForValue) Secret volumes configuration.addSecretVolumes(SecretVolume value) Secret volumes configuration.addSecretVolumes(SecretVolume.Builder builderForValue) Secret volumes configuration.Secret volumes configuration.addSecretVolumesBuilder(int index) Secret volumes configuration.build()clear()Whether 100% of traffic is routed to the latest revision.The number of CPUs used in a single container instance.The amount of memory available for a function.Optional.The ingress settings for the function, controlling what traffic can reach it.The limit on the maximum number of function instances that may coexist at a given time.Sets the maximum number of concurrent requests that each instance can receive.The limit on the minimum number of function instances that may coexist at a given time.Output only.Secret environment variables configuration.Secret volumes configuration.Security level configure whether the function only accepts https.Output only.The email of the service's service account.The function execution timeout.clearUri()Output only.The Serverless VPC Access connector that this cloud function can connect to.The egress settings for the connector, controlling what traffic is diverted through it.booleanEnvironment variables that shall be available during function execution.booleanWhether 100% of traffic is routed to the latest revision.The number of CPUs used in a single container instance.com.google.protobuf.ByteStringThe number of CPUs used in a single container instance.The amount of memory available for a function.com.google.protobuf.ByteStringThe amount of memory available for a function.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorDeprecated.intEnvironment variables that shall be available during function execution.Environment variables that shall be available during function execution.getEnvironmentVariablesOrDefault(String key, String defaultValue) Environment variables that shall be available during function execution.Environment variables that shall be available during function execution.The ingress settings for the function, controlling what traffic can reach it.intThe ingress settings for the function, controlling what traffic can reach it.intThe limit on the maximum number of function instances that may coexist at a given time.intSets the maximum number of concurrent requests that each instance can receive.intThe limit on the minimum number of function instances that may coexist at a given time.Deprecated.Output only.com.google.protobuf.ByteStringOutput only.getSecretEnvironmentVariables(int index) Secret environment variables configuration.getSecretEnvironmentVariablesBuilder(int index) Secret environment variables configuration.Secret environment variables configuration.intSecret environment variables configuration.Secret environment variables configuration.getSecretEnvironmentVariablesOrBuilder(int index) Secret environment variables configuration.List<? extends SecretEnvVarOrBuilder>Secret environment variables configuration.getSecretVolumes(int index) Secret volumes configuration.getSecretVolumesBuilder(int index) Secret volumes configuration.Secret volumes configuration.intSecret volumes configuration.Secret volumes configuration.getSecretVolumesOrBuilder(int index) Secret volumes configuration.List<? extends SecretVolumeOrBuilder>Secret volumes configuration.Security level configure whether the function only accepts https.intSecurity level configure whether the function only accepts https.Output only.The email of the service's service account.com.google.protobuf.ByteStringThe email of the service's service account.com.google.protobuf.ByteStringOutput only.intThe function execution timeout.getUri()Output only.com.google.protobuf.ByteStringOutput only.The Serverless VPC Access connector that this cloud function can connect to.com.google.protobuf.ByteStringThe Serverless VPC Access connector that this cloud function can connect to.The egress settings for the connector, controlling what traffic is diverted through it.intThe egress settings for the connector, controlling what traffic is diverted through it.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(ServiceConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllEnvironmentVariables(Map<String, String> values) Environment variables that shall be available during function execution.putEnvironmentVariables(String key, String value) Environment variables that shall be available during function execution.Environment variables that shall be available during function execution.removeSecretEnvironmentVariables(int index) Secret environment variables configuration.removeSecretVolumes(int index) Secret volumes configuration.setAllTrafficOnLatestRevision(boolean value) Whether 100% of traffic is routed to the latest revision.setAvailableCpu(String value) The number of CPUs used in a single container instance.setAvailableCpuBytes(com.google.protobuf.ByteString value) The number of CPUs used in a single container instance.setAvailableMemory(String value) The amount of memory available for a function.setAvailableMemoryBytes(com.google.protobuf.ByteString value) The amount of memory available for a function.Optional.setBinaryAuthorizationPolicyBytes(com.google.protobuf.ByteString value) Optional.The ingress settings for the function, controlling what traffic can reach it.setIngressSettingsValue(int value) The ingress settings for the function, controlling what traffic can reach it.setMaxInstanceCount(int value) The limit on the maximum number of function instances that may coexist at a given time.setMaxInstanceRequestConcurrency(int value) Sets the maximum number of concurrent requests that each instance can receive.setMinInstanceCount(int value) The limit on the minimum number of function instances that may coexist at a given time.setRevision(String value) Output only.setRevisionBytes(com.google.protobuf.ByteString value) Output only.setSecretEnvironmentVariables(int index, SecretEnvVar value) Secret environment variables configuration.setSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue) Secret environment variables configuration.setSecretVolumes(int index, SecretVolume value) Secret volumes configuration.setSecretVolumes(int index, SecretVolume.Builder builderForValue) Secret volumes configuration.Security level configure whether the function only accepts https.setSecurityLevelValue(int value) Security level configure whether the function only accepts https.setService(String value) Output only.setServiceAccountEmail(String value) The email of the service's service account.setServiceAccountEmailBytes(com.google.protobuf.ByteString value) The email of the service's service account.setServiceBytes(com.google.protobuf.ByteString value) Output only.setTimeoutSeconds(int value) The function execution timeout.Output only.setUriBytes(com.google.protobuf.ByteString value) Output only.setVpcConnector(String value) The Serverless VPC Access connector that this cloud function can connect to.setVpcConnectorBytes(com.google.protobuf.ByteString value) The Serverless VPC Access connector that this cloud function can connect to.The egress settings for the connector, controlling what traffic is diverted through it.setVpcConnectorEgressSettingsValue(int value) The egress settings for the connector, controlling what traffic is diverted through it.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ServiceConfig.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<ServiceConfig.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ServiceConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ServiceConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ServiceConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServiceConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ServiceConfig.Builder>
-
mergeFrom
public ServiceConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ServiceConfig.Builder>- Throws:
IOException
-
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) = { ... }- Specified by:
getServicein interfaceServiceConfigOrBuilder- Returns:
- The service.
-
getServiceBytes
public com.google.protobuf.ByteString getServiceBytes()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) = { ... }- Specified by:
getServiceBytesin interfaceServiceConfigOrBuilder- Returns:
- The bytes for service.
-
setService
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) = { ... }- Parameters:
value- The service to set.- Returns:
- This builder for chaining.
-
clearService
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:
- This builder for chaining.
-
setServiceBytes
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) = { ... }- Parameters:
value- The bytes for service to set.- Returns:
- This builder for chaining.
-
getTimeoutSeconds
public int getTimeoutSeconds()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;- Specified by:
getTimeoutSecondsin interfaceServiceConfigOrBuilder- Returns:
- The timeoutSeconds.
-
setTimeoutSeconds
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;- Parameters:
value- The timeoutSeconds to set.- Returns:
- This builder for chaining.
-
clearTimeoutSeconds
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:
- This builder for chaining.
-
getAvailableMemory
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;- Specified by:
getAvailableMemoryin interfaceServiceConfigOrBuilder- Returns:
- The availableMemory.
-
getAvailableMemoryBytes
public com.google.protobuf.ByteString getAvailableMemoryBytes()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;- Specified by:
getAvailableMemoryBytesin interfaceServiceConfigOrBuilder- Returns:
- The bytes for availableMemory.
-
setAvailableMemory
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;- Parameters:
value- The availableMemory to set.- Returns:
- This builder for chaining.
-
clearAvailableMemory
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;- Returns:
- This builder for chaining.
-
setAvailableMemoryBytes
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;- Parameters:
value- The bytes for availableMemory to set.- Returns:
- This builder for chaining.
-
getAvailableCpu
The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
string available_cpu = 22;- Specified by:
getAvailableCpuin interfaceServiceConfigOrBuilder- Returns:
- The availableCpu.
-
getAvailableCpuBytes
public com.google.protobuf.ByteString getAvailableCpuBytes()The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
string available_cpu = 22;- Specified by:
getAvailableCpuBytesin interfaceServiceConfigOrBuilder- Returns:
- The bytes for availableCpu.
-
setAvailableCpu
The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
string available_cpu = 22;- Parameters:
value- The availableCpu to set.- Returns:
- This builder for chaining.
-
clearAvailableCpu
The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
string available_cpu = 22;- Returns:
- This builder for chaining.
-
setAvailableCpuBytes
The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
string available_cpu = 22;- Parameters:
value- The bytes for availableCpu to set.- Returns:
- This builder for chaining.
-
getEnvironmentVariablesCount
public int getEnvironmentVariablesCount()Description copied from interface:ServiceConfigOrBuilderEnvironment variables that shall be available during function execution.
map<string, string> environment_variables = 4;- Specified by:
getEnvironmentVariablesCountin interfaceServiceConfigOrBuilder
-
containsEnvironmentVariables
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;- Specified by:
containsEnvironmentVariablesin interfaceServiceConfigOrBuilder
-
getEnvironmentVariables
Deprecated.UsegetEnvironmentVariablesMap()instead.- Specified by:
getEnvironmentVariablesin interfaceServiceConfigOrBuilder
-
getEnvironmentVariablesMap
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;- Specified by:
getEnvironmentVariablesMapin interfaceServiceConfigOrBuilder
-
getEnvironmentVariablesOrDefault
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;- Specified by:
getEnvironmentVariablesOrDefaultin interfaceServiceConfigOrBuilder
-
getEnvironmentVariablesOrThrow
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;- Specified by:
getEnvironmentVariablesOrThrowin interfaceServiceConfigOrBuilder
-
clearEnvironmentVariables
-
removeEnvironmentVariables
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4; -
getMutableEnvironmentVariables
Deprecated.Use alternate mutation accessors instead. -
putEnvironmentVariables
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4; -
putAllEnvironmentVariables
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4; -
getMaxInstanceCount
public int getMaxInstanceCount()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](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
int32 max_instance_count = 5;- Specified by:
getMaxInstanceCountin interfaceServiceConfigOrBuilder- Returns:
- The maxInstanceCount.
-
setMaxInstanceCount
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](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
int32 max_instance_count = 5;- Parameters:
value- The maxInstanceCount to set.- Returns:
- This builder for chaining.
-
clearMaxInstanceCount
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](https://cloud.google.com/functions/docs/max-instances) Guide for more details.
int32 max_instance_count = 5;- Returns:
- This builder for chaining.
-
getMinInstanceCount
public int getMinInstanceCount()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;- Specified by:
getMinInstanceCountin interfaceServiceConfigOrBuilder- Returns:
- The minInstanceCount.
-
setMinInstanceCount
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;- Parameters:
value- The minInstanceCount to set.- Returns:
- This builder for chaining.
-
clearMinInstanceCount
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:
- This builder for chaining.
-
getVpcConnector
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) = { ... }- Specified by:
getVpcConnectorin interfaceServiceConfigOrBuilder- Returns:
- The vpcConnector.
-
getVpcConnectorBytes
public com.google.protobuf.ByteString getVpcConnectorBytes()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) = { ... }- Specified by:
getVpcConnectorBytesin interfaceServiceConfigOrBuilder- Returns:
- The bytes for vpcConnector.
-
setVpcConnector
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) = { ... }- Parameters:
value- The vpcConnector to set.- Returns:
- This builder for chaining.
-
clearVpcConnector
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:
- This builder for chaining.
-
setVpcConnectorBytes
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) = { ... }- Parameters:
value- The bytes for vpcConnector to set.- Returns:
- This builder for chaining.
-
getVpcConnectorEgressSettingsValue
public int getVpcConnectorEgressSettingsValue()The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;- Specified by:
getVpcConnectorEgressSettingsValuein interfaceServiceConfigOrBuilder- Returns:
- The enum numeric value on the wire for vpcConnectorEgressSettings.
-
setVpcConnectorEgressSettingsValue
The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;- Parameters:
value- The enum numeric value on the wire for vpcConnectorEgressSettings to set.- Returns:
- This builder for chaining.
-
getVpcConnectorEgressSettings
The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;- Specified by:
getVpcConnectorEgressSettingsin interfaceServiceConfigOrBuilder- Returns:
- The vpcConnectorEgressSettings.
-
setVpcConnectorEgressSettings
public ServiceConfig.Builder setVpcConnectorEgressSettings(ServiceConfig.VpcConnectorEgressSettings value) The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;- Parameters:
value- The vpcConnectorEgressSettings to set.- Returns:
- This builder for chaining.
-
clearVpcConnectorEgressSettings
The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;- Returns:
- This builder for chaining.
-
getIngressSettingsValue
public int getIngressSettingsValue()The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8;- Specified by:
getIngressSettingsValuein interfaceServiceConfigOrBuilder- Returns:
- The enum numeric value on the wire for ingressSettings.
-
setIngressSettingsValue
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8;- Parameters:
value- The enum numeric value on the wire for ingressSettings to set.- Returns:
- This builder for chaining.
-
getIngressSettings
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8;- Specified by:
getIngressSettingsin interfaceServiceConfigOrBuilder- Returns:
- The ingressSettings.
-
setIngressSettings
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8;- Parameters:
value- The ingressSettings to set.- Returns:
- This builder for chaining.
-
clearIngressSettings
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v2beta.ServiceConfig.IngressSettings ingress_settings = 8;- Returns:
- This builder for chaining.
-
getUri
Output only. URI of the Service deployed.
string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUriin interfaceServiceConfigOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()Output only. URI of the Service deployed.
string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUriBytesin interfaceServiceConfigOrBuilder- Returns:
- The bytes for uri.
-
setUri
Output only. URI of the Service deployed.
string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The uri to set.- Returns:
- This builder for chaining.
-
clearUri
Output only. URI of the Service deployed.
string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUriBytes
Output only. URI of the Service deployed.
string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for uri to set.- Returns:
- This builder for chaining.
-
getServiceAccountEmail
The email of the service's service account. If empty, defaults to `{project_number}-compute@developer.gserviceaccount.com`.string service_account_email = 10;- Specified by:
getServiceAccountEmailin interfaceServiceConfigOrBuilder- Returns:
- The serviceAccountEmail.
-
getServiceAccountEmailBytes
public com.google.protobuf.ByteString getServiceAccountEmailBytes()The email of the service's service account. If empty, defaults to `{project_number}-compute@developer.gserviceaccount.com`.string service_account_email = 10;- Specified by:
getServiceAccountEmailBytesin interfaceServiceConfigOrBuilder- Returns:
- The bytes for serviceAccountEmail.
-
setServiceAccountEmail
The email of the service's service account. If empty, defaults to `{project_number}-compute@developer.gserviceaccount.com`.string service_account_email = 10;- Parameters:
value- The serviceAccountEmail to set.- Returns:
- This builder for chaining.
-
clearServiceAccountEmail
The email of the service's service account. If empty, defaults to `{project_number}-compute@developer.gserviceaccount.com`.string service_account_email = 10;- Returns:
- This builder for chaining.
-
setServiceAccountEmailBytes
The email of the service's service account. If empty, defaults to `{project_number}-compute@developer.gserviceaccount.com`.string service_account_email = 10;- Parameters:
value- The bytes for serviceAccountEmail to set.- Returns:
- This builder for chaining.
-
getAllTrafficOnLatestRevision
public boolean getAllTrafficOnLatestRevision()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;- Specified by:
getAllTrafficOnLatestRevisionin interfaceServiceConfigOrBuilder- Returns:
- The allTrafficOnLatestRevision.
-
setAllTrafficOnLatestRevision
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;- Parameters:
value- The allTrafficOnLatestRevision to set.- Returns:
- This builder for chaining.
-
clearAllTrafficOnLatestRevision
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:
- This builder for chaining.
-
getSecretEnvironmentVariablesList
Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;- Specified by:
getSecretEnvironmentVariablesListin interfaceServiceConfigOrBuilder
-
getSecretEnvironmentVariablesCount
public int getSecretEnvironmentVariablesCount()Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;- Specified by:
getSecretEnvironmentVariablesCountin interfaceServiceConfigOrBuilder
-
getSecretEnvironmentVariables
Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;- Specified by:
getSecretEnvironmentVariablesin interfaceServiceConfigOrBuilder
-
setSecretEnvironmentVariables
Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; -
setSecretEnvironmentVariables
public ServiceConfig.Builder setSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue) Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; -
addSecretEnvironmentVariables
Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; -
addSecretEnvironmentVariables
Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; -
addSecretEnvironmentVariables
Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; -
addSecretEnvironmentVariables
public ServiceConfig.Builder addSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue) Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; -
addAllSecretEnvironmentVariables
public ServiceConfig.Builder addAllSecretEnvironmentVariables(Iterable<? extends SecretEnvVar> values) Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; -
clearSecretEnvironmentVariables
Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; -
removeSecretEnvironmentVariables
Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; -
getSecretEnvironmentVariablesBuilder
Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; -
getSecretEnvironmentVariablesOrBuilder
Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;- Specified by:
getSecretEnvironmentVariablesOrBuilderin interfaceServiceConfigOrBuilder
-
getSecretEnvironmentVariablesOrBuilderList
Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17;- Specified by:
getSecretEnvironmentVariablesOrBuilderListin interfaceServiceConfigOrBuilder
-
addSecretEnvironmentVariablesBuilder
Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; -
addSecretEnvironmentVariablesBuilder
Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; -
getSecretEnvironmentVariablesBuilderList
Secret environment variables configuration.
repeated .google.cloud.functions.v2beta.SecretEnvVar secret_environment_variables = 17; -
getSecretVolumesList
Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;- Specified by:
getSecretVolumesListin interfaceServiceConfigOrBuilder
-
getSecretVolumesCount
public int getSecretVolumesCount()Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;- Specified by:
getSecretVolumesCountin interfaceServiceConfigOrBuilder
-
getSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;- Specified by:
getSecretVolumesin interfaceServiceConfigOrBuilder
-
setSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; -
setSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; -
addSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; -
addSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; -
addSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; -
addSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; -
addAllSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; -
clearSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; -
removeSecretVolumes
Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; -
getSecretVolumesBuilder
Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; -
getSecretVolumesOrBuilder
Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;- Specified by:
getSecretVolumesOrBuilderin interfaceServiceConfigOrBuilder
-
getSecretVolumesOrBuilderList
Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19;- Specified by:
getSecretVolumesOrBuilderListin interfaceServiceConfigOrBuilder
-
addSecretVolumesBuilder
Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; -
addSecretVolumesBuilder
Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; -
getSecretVolumesBuilderList
Secret volumes configuration.
repeated .google.cloud.functions.v2beta.SecretVolume secret_volumes = 19; -
getRevision
Output only. The name of service revision.
string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionin interfaceServiceConfigOrBuilder- Returns:
- The revision.
-
getRevisionBytes
public com.google.protobuf.ByteString getRevisionBytes()Output only. The name of service revision.
string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionBytesin interfaceServiceConfigOrBuilder- Returns:
- The bytes for revision.
-
setRevision
Output only. The name of service revision.
string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The revision to set.- Returns:
- This builder for chaining.
-
clearRevision
Output only. The name of service revision.
string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setRevisionBytes
Output only. The name of service revision.
string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for revision to set.- Returns:
- This builder for chaining.
-
getMaxInstanceRequestConcurrency
public int getMaxInstanceRequestConcurrency()Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
int32 max_instance_request_concurrency = 20;- Specified by:
getMaxInstanceRequestConcurrencyin interfaceServiceConfigOrBuilder- Returns:
- The maxInstanceRequestConcurrency.
-
setMaxInstanceRequestConcurrency
Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
int32 max_instance_request_concurrency = 20;- Parameters:
value- The maxInstanceRequestConcurrency to set.- Returns:
- This builder for chaining.
-
clearMaxInstanceRequestConcurrency
Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
int32 max_instance_request_concurrency = 20;- Returns:
- This builder for chaining.
-
getSecurityLevelValue
public int getSecurityLevelValue()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.v2beta.ServiceConfig.SecurityLevel security_level = 21;- Specified by:
getSecurityLevelValuein interfaceServiceConfigOrBuilder- Returns:
- The enum numeric value on the wire for securityLevel.
-
setSecurityLevelValue
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.v2beta.ServiceConfig.SecurityLevel security_level = 21;- Parameters:
value- The enum numeric value on the wire for securityLevel to set.- Returns:
- This builder for chaining.
-
getSecurityLevel
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.v2beta.ServiceConfig.SecurityLevel security_level = 21;- Specified by:
getSecurityLevelin interfaceServiceConfigOrBuilder- Returns:
- The securityLevel.
-
setSecurityLevel
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.v2beta.ServiceConfig.SecurityLevel security_level = 21;- Parameters:
value- The securityLevel to set.- Returns:
- This builder for chaining.
-
clearSecurityLevel
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.v2beta.ServiceConfig.SecurityLevel security_level = 21;- Returns:
- This builder for chaining.
-
getBinaryAuthorizationPolicy
Optional. The binary authorization policy to be checked when deploying the Cloud Run service.
string binary_authorization_policy = 23 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBinaryAuthorizationPolicyin interfaceServiceConfigOrBuilder- Returns:
- The binaryAuthorizationPolicy.
-
getBinaryAuthorizationPolicyBytes
public com.google.protobuf.ByteString getBinaryAuthorizationPolicyBytes()Optional. The binary authorization policy to be checked when deploying the Cloud Run service.
string binary_authorization_policy = 23 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBinaryAuthorizationPolicyBytesin interfaceServiceConfigOrBuilder- Returns:
- The bytes for binaryAuthorizationPolicy.
-
setBinaryAuthorizationPolicy
Optional. The binary authorization policy to be checked when deploying the Cloud Run service.
string binary_authorization_policy = 23 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The binaryAuthorizationPolicy to set.- Returns:
- This builder for chaining.
-
clearBinaryAuthorizationPolicy
Optional. The binary authorization policy to be checked when deploying the Cloud Run service.
string binary_authorization_policy = 23 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setBinaryAuthorizationPolicyBytes
public ServiceConfig.Builder setBinaryAuthorizationPolicyBytes(com.google.protobuf.ByteString value) Optional. The binary authorization policy to be checked when deploying the Cloud Run service.
string binary_authorization_policy = 23 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for binaryAuthorizationPolicy to set.- Returns:
- This builder for chaining.
-