Class ServiceConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ServiceConfig.Builder>
-
- com.google.cloud.functions.v2alpha.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.GeneratedMessageV3.Builder<ServiceConfig.Builder> implements ServiceConfigOrBuilder
Describes the Service being deployed. Currently Supported : Cloud Run (fully managed).
Protobuf typegoogle.cloud.functions.v2alpha.ServiceConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ServiceConfig.Builder
addAllSecretEnvironmentVariables(Iterable<? extends SecretEnvVar> values)
Secret environment variables configuration.ServiceConfig.Builder
addAllSecretVolumes(Iterable<? extends SecretVolume> values)
Secret volumes configuration.ServiceConfig.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ServiceConfig.Builder
addSecretEnvironmentVariables(int index, SecretEnvVar value)
Secret environment variables configuration.ServiceConfig.Builder
addSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue)
Secret environment variables configuration.ServiceConfig.Builder
addSecretEnvironmentVariables(SecretEnvVar value)
Secret environment variables configuration.ServiceConfig.Builder
addSecretEnvironmentVariables(SecretEnvVar.Builder builderForValue)
Secret environment variables configuration.SecretEnvVar.Builder
addSecretEnvironmentVariablesBuilder()
Secret environment variables configuration.SecretEnvVar.Builder
addSecretEnvironmentVariablesBuilder(int index)
Secret environment variables configuration.ServiceConfig.Builder
addSecretVolumes(int index, SecretVolume value)
Secret volumes configuration.ServiceConfig.Builder
addSecretVolumes(int index, SecretVolume.Builder builderForValue)
Secret volumes configuration.ServiceConfig.Builder
addSecretVolumes(SecretVolume value)
Secret volumes configuration.ServiceConfig.Builder
addSecretVolumes(SecretVolume.Builder builderForValue)
Secret volumes configuration.SecretVolume.Builder
addSecretVolumesBuilder()
Secret volumes configuration.SecretVolume.Builder
addSecretVolumesBuilder(int index)
Secret volumes configuration.ServiceConfig
build()
ServiceConfig
buildPartial()
ServiceConfig.Builder
clear()
ServiceConfig.Builder
clearAllTrafficOnLatestRevision()
Whether 100% of traffic is routed to the latest revision.ServiceConfig.Builder
clearAvailableCpu()
[Preview] The number of CPUs used in a single container instance.ServiceConfig.Builder
clearAvailableMemory()
The amount of memory available for a function.ServiceConfig.Builder
clearEnvironmentVariables()
ServiceConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ServiceConfig.Builder
clearIngressSettings()
The ingress settings for the function, controlling what traffic can reach it.ServiceConfig.Builder
clearMaxInstanceCount()
The limit on the maximum number of function instances that may coexist at a given time.ServiceConfig.Builder
clearMaxInstanceRequestConcurrency()
[Preview] Sets the maximum number of concurrent requests that each instance can receive.ServiceConfig.Builder
clearMinInstanceCount()
The limit on the minimum number of function instances that may coexist at a given time.ServiceConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ServiceConfig.Builder
clearRevision()
Output only.ServiceConfig.Builder
clearSecretEnvironmentVariables()
Secret environment variables configuration.ServiceConfig.Builder
clearSecretVolumes()
Secret volumes configuration.ServiceConfig.Builder
clearSecurityLevel()
Security level configure whether the function only accepts https.ServiceConfig.Builder
clearService()
Output only.ServiceConfig.Builder
clearServiceAccountEmail()
The email of the service's service account.ServiceConfig.Builder
clearTimeoutSeconds()
The function execution timeout.ServiceConfig.Builder
clearUri()
Output only.ServiceConfig.Builder
clearVpcConnector()
The Serverless VPC Access connector that this cloud function can connect to.ServiceConfig.Builder
clearVpcConnectorEgressSettings()
The egress settings for the connector, controlling what traffic is diverted through it.ServiceConfig.Builder
clone()
boolean
containsEnvironmentVariables(String key)
Environment variables that shall be available during function execution.boolean
getAllTrafficOnLatestRevision()
Whether 100% of traffic is routed to the latest revision.String
getAvailableCpu()
[Preview] The number of CPUs used in a single container instance.com.google.protobuf.ByteString
getAvailableCpuBytes()
[Preview] The number of CPUs used in a single container instance.String
getAvailableMemory()
The amount of memory available for a function.com.google.protobuf.ByteString
getAvailableMemoryBytes()
The amount of memory available for a function.ServiceConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,String>
getEnvironmentVariables()
Deprecated.int
getEnvironmentVariablesCount()
Environment variables that shall be available during function execution.Map<String,String>
getEnvironmentVariablesMap()
Environment variables that shall be available during function execution.String
getEnvironmentVariablesOrDefault(String key, String defaultValue)
Environment variables that shall be available during function execution.String
getEnvironmentVariablesOrThrow(String key)
Environment variables that shall be available during function execution.ServiceConfig.IngressSettings
getIngressSettings()
The ingress settings for the function, controlling what traffic can reach it.int
getIngressSettingsValue()
The ingress settings for the function, controlling what traffic can reach it.int
getMaxInstanceCount()
The limit on the maximum number of function instances that may coexist at a given time.int
getMaxInstanceRequestConcurrency()
[Preview] Sets the maximum number of concurrent requests that each instance can receive.int
getMinInstanceCount()
The limit on the minimum number of function instances that may coexist at a given time.Map<String,String>
getMutableEnvironmentVariables()
Deprecated.String
getRevision()
Output only.com.google.protobuf.ByteString
getRevisionBytes()
Output only.SecretEnvVar
getSecretEnvironmentVariables(int index)
Secret environment variables configuration.SecretEnvVar.Builder
getSecretEnvironmentVariablesBuilder(int index)
Secret environment variables configuration.List<SecretEnvVar.Builder>
getSecretEnvironmentVariablesBuilderList()
Secret environment variables configuration.int
getSecretEnvironmentVariablesCount()
Secret environment variables configuration.List<SecretEnvVar>
getSecretEnvironmentVariablesList()
Secret environment variables configuration.SecretEnvVarOrBuilder
getSecretEnvironmentVariablesOrBuilder(int index)
Secret environment variables configuration.List<? extends SecretEnvVarOrBuilder>
getSecretEnvironmentVariablesOrBuilderList()
Secret environment variables configuration.SecretVolume
getSecretVolumes(int index)
Secret volumes configuration.SecretVolume.Builder
getSecretVolumesBuilder(int index)
Secret volumes configuration.List<SecretVolume.Builder>
getSecretVolumesBuilderList()
Secret volumes configuration.int
getSecretVolumesCount()
Secret volumes configuration.List<SecretVolume>
getSecretVolumesList()
Secret volumes configuration.SecretVolumeOrBuilder
getSecretVolumesOrBuilder(int index)
Secret volumes configuration.List<? extends SecretVolumeOrBuilder>
getSecretVolumesOrBuilderList()
Secret volumes configuration.ServiceConfig.SecurityLevel
getSecurityLevel()
Security level configure whether the function only accepts https.int
getSecurityLevelValue()
Security level configure whether the function only accepts https.String
getService()
Output only.String
getServiceAccountEmail()
The email of the service's service account.com.google.protobuf.ByteString
getServiceAccountEmailBytes()
The email of the service's service account.com.google.protobuf.ByteString
getServiceBytes()
Output only.int
getTimeoutSeconds()
The function execution timeout.String
getUri()
Output only.com.google.protobuf.ByteString
getUriBytes()
Output only.String
getVpcConnector()
The Serverless VPC Access connector that this cloud function can connect to.com.google.protobuf.ByteString
getVpcConnectorBytes()
The Serverless VPC Access connector that this cloud function can connect to.ServiceConfig.VpcConnectorEgressSettings
getVpcConnectorEgressSettings()
The egress settings for the connector, controlling what traffic is diverted through it.int
getVpcConnectorEgressSettingsValue()
The egress settings for the connector, controlling what traffic is diverted through it.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
ServiceConfig.Builder
mergeFrom(ServiceConfig other)
ServiceConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ServiceConfig.Builder
mergeFrom(com.google.protobuf.Message other)
ServiceConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ServiceConfig.Builder
putAllEnvironmentVariables(Map<String,String> values)
Environment variables that shall be available during function execution.ServiceConfig.Builder
putEnvironmentVariables(String key, String value)
Environment variables that shall be available during function execution.ServiceConfig.Builder
removeEnvironmentVariables(String key)
Environment variables that shall be available during function execution.ServiceConfig.Builder
removeSecretEnvironmentVariables(int index)
Secret environment variables configuration.ServiceConfig.Builder
removeSecretVolumes(int index)
Secret volumes configuration.ServiceConfig.Builder
setAllTrafficOnLatestRevision(boolean value)
Whether 100% of traffic is routed to the latest revision.ServiceConfig.Builder
setAvailableCpu(String value)
[Preview] The number of CPUs used in a single container instance.ServiceConfig.Builder
setAvailableCpuBytes(com.google.protobuf.ByteString value)
[Preview] The number of CPUs used in a single container instance.ServiceConfig.Builder
setAvailableMemory(String value)
The amount of memory available for a function.ServiceConfig.Builder
setAvailableMemoryBytes(com.google.protobuf.ByteString value)
The amount of memory available for a function.ServiceConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ServiceConfig.Builder
setIngressSettings(ServiceConfig.IngressSettings value)
The ingress settings for the function, controlling what traffic can reach it.ServiceConfig.Builder
setIngressSettingsValue(int value)
The ingress settings for the function, controlling what traffic can reach it.ServiceConfig.Builder
setMaxInstanceCount(int value)
The limit on the maximum number of function instances that may coexist at a given time.ServiceConfig.Builder
setMaxInstanceRequestConcurrency(int value)
[Preview] Sets the maximum number of concurrent requests that each instance can receive.ServiceConfig.Builder
setMinInstanceCount(int value)
The limit on the minimum number of function instances that may coexist at a given time.ServiceConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ServiceConfig.Builder
setRevision(String value)
Output only.ServiceConfig.Builder
setRevisionBytes(com.google.protobuf.ByteString value)
Output only.ServiceConfig.Builder
setSecretEnvironmentVariables(int index, SecretEnvVar value)
Secret environment variables configuration.ServiceConfig.Builder
setSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue)
Secret environment variables configuration.ServiceConfig.Builder
setSecretVolumes(int index, SecretVolume value)
Secret volumes configuration.ServiceConfig.Builder
setSecretVolumes(int index, SecretVolume.Builder builderForValue)
Secret volumes configuration.ServiceConfig.Builder
setSecurityLevel(ServiceConfig.SecurityLevel value)
Security level configure whether the function only accepts https.ServiceConfig.Builder
setSecurityLevelValue(int value)
Security level configure whether the function only accepts https.ServiceConfig.Builder
setService(String value)
Output only.ServiceConfig.Builder
setServiceAccountEmail(String value)
The email of the service's service account.ServiceConfig.Builder
setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
The email of the service's service account.ServiceConfig.Builder
setServiceBytes(com.google.protobuf.ByteString value)
Output only.ServiceConfig.Builder
setTimeoutSeconds(int value)
The function execution timeout.ServiceConfig.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ServiceConfig.Builder
setUri(String value)
Output only.ServiceConfig.Builder
setUriBytes(com.google.protobuf.ByteString value)
Output only.ServiceConfig.Builder
setVpcConnector(String value)
The Serverless VPC Access connector that this cloud function can connect to.ServiceConfig.Builder
setVpcConnectorBytes(com.google.protobuf.ByteString value)
The Serverless VPC Access connector that this cloud function can connect to.ServiceConfig.Builder
setVpcConnectorEgressSettings(ServiceConfig.VpcConnectorEgressSettings value)
The egress settings for the connector, controlling what traffic is diverted through it.ServiceConfig.Builder
setVpcConnectorEgressSettingsValue(int value)
The egress settings for the connector, controlling what traffic is diverted through it.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceConfig.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceConfig.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceConfig.Builder>
-
clear
public ServiceConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceConfig.Builder>
-
getDefaultInstanceForType
public ServiceConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ServiceConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ServiceConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ServiceConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceConfig.Builder>
-
setField
public ServiceConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceConfig.Builder>
-
clearField
public ServiceConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceConfig.Builder>
-
clearOneof
public ServiceConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceConfig.Builder>
-
setRepeatedField
public ServiceConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceConfig.Builder>
-
addRepeatedField
public ServiceConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceConfig.Builder>
-
mergeFrom
public ServiceConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ServiceConfig.Builder>
-
mergeFrom
public ServiceConfig.Builder mergeFrom(ServiceConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceConfig.Builder>
-
mergeFrom
public ServiceConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ServiceConfig.Builder>
- Throws:
IOException
-
getService
public String 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:
getService
in 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:
getServiceBytes
in interfaceServiceConfigOrBuilder
- Returns:
- The bytes for service.
-
setService
public ServiceConfig.Builder setService(String value)
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
public ServiceConfig.Builder 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
public ServiceConfig.Builder setServiceBytes(com.google.protobuf.ByteString value)
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:
getTimeoutSeconds
in interfaceServiceConfigOrBuilder
- Returns:
- The timeoutSeconds.
-
setTimeoutSeconds
public ServiceConfig.Builder setTimeoutSeconds(int value)
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
public ServiceConfig.Builder 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
public String 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:
getAvailableMemory
in 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:
getAvailableMemoryBytes
in interfaceServiceConfigOrBuilder
- Returns:
- The bytes for availableMemory.
-
setAvailableMemory
public ServiceConfig.Builder setAvailableMemory(String value)
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
public ServiceConfig.Builder 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
public ServiceConfig.Builder setAvailableMemoryBytes(com.google.protobuf.ByteString value)
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
public String getAvailableCpu()
[Preview] 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:
getAvailableCpu
in interfaceServiceConfigOrBuilder
- Returns:
- The availableCpu.
-
getAvailableCpuBytes
public com.google.protobuf.ByteString getAvailableCpuBytes()
[Preview] 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:
getAvailableCpuBytes
in interfaceServiceConfigOrBuilder
- Returns:
- The bytes for availableCpu.
-
setAvailableCpu
public ServiceConfig.Builder setAvailableCpu(String value)
[Preview] 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
public ServiceConfig.Builder clearAvailableCpu()
[Preview] 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
public ServiceConfig.Builder setAvailableCpuBytes(com.google.protobuf.ByteString value)
[Preview] 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:ServiceConfigOrBuilder
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
- Specified by:
getEnvironmentVariablesCount
in interfaceServiceConfigOrBuilder
-
containsEnvironmentVariables
public boolean containsEnvironmentVariables(String key)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
- Specified by:
containsEnvironmentVariables
in interfaceServiceConfigOrBuilder
-
getEnvironmentVariables
@Deprecated public Map<String,String> getEnvironmentVariables()
Deprecated.UsegetEnvironmentVariablesMap()
instead.- Specified by:
getEnvironmentVariables
in interfaceServiceConfigOrBuilder
-
getEnvironmentVariablesMap
public Map<String,String> getEnvironmentVariablesMap()
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
- Specified by:
getEnvironmentVariablesMap
in interfaceServiceConfigOrBuilder
-
getEnvironmentVariablesOrDefault
public String getEnvironmentVariablesOrDefault(String key, String defaultValue)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
- Specified by:
getEnvironmentVariablesOrDefault
in interfaceServiceConfigOrBuilder
-
getEnvironmentVariablesOrThrow
public String getEnvironmentVariablesOrThrow(String key)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
- Specified by:
getEnvironmentVariablesOrThrow
in interfaceServiceConfigOrBuilder
-
clearEnvironmentVariables
public ServiceConfig.Builder clearEnvironmentVariables()
-
removeEnvironmentVariables
public ServiceConfig.Builder removeEnvironmentVariables(String key)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
-
getMutableEnvironmentVariables
@Deprecated public Map<String,String> getMutableEnvironmentVariables()
Deprecated.Use alternate mutation accessors instead.
-
putEnvironmentVariables
public ServiceConfig.Builder putEnvironmentVariables(String key, String value)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;
-
putAllEnvironmentVariables
public ServiceConfig.Builder putAllEnvironmentVariables(Map<String,String> values)
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:
getMaxInstanceCount
in interfaceServiceConfigOrBuilder
- Returns:
- The maxInstanceCount.
-
setMaxInstanceCount
public ServiceConfig.Builder setMaxInstanceCount(int value)
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
public ServiceConfig.Builder 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:
getMinInstanceCount
in interfaceServiceConfigOrBuilder
- Returns:
- The minInstanceCount.
-
setMinInstanceCount
public ServiceConfig.Builder setMinInstanceCount(int value)
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
public ServiceConfig.Builder 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
public String 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:
getVpcConnector
in 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:
getVpcConnectorBytes
in interfaceServiceConfigOrBuilder
- Returns:
- The bytes for vpcConnector.
-
setVpcConnector
public ServiceConfig.Builder setVpcConnector(String value)
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
public ServiceConfig.Builder 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
public ServiceConfig.Builder setVpcConnectorBytes(com.google.protobuf.ByteString value)
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.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;
- Specified by:
getVpcConnectorEgressSettingsValue
in interfaceServiceConfigOrBuilder
- Returns:
- The enum numeric value on the wire for vpcConnectorEgressSettings.
-
setVpcConnectorEgressSettingsValue
public ServiceConfig.Builder setVpcConnectorEgressSettingsValue(int value)
The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v2alpha.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
public ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings()
The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;
- Specified by:
getVpcConnectorEgressSettings
in 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.v2alpha.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;
- Parameters:
value
- The vpcConnectorEgressSettings to set.- Returns:
- This builder for chaining.
-
clearVpcConnectorEgressSettings
public ServiceConfig.Builder clearVpcConnectorEgressSettings()
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:
- This builder for chaining.
-
getIngressSettingsValue
public int getIngressSettingsValue()
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8;
- Specified by:
getIngressSettingsValue
in interfaceServiceConfigOrBuilder
- Returns:
- The enum numeric value on the wire for ingressSettings.
-
setIngressSettingsValue
public ServiceConfig.Builder setIngressSettingsValue(int value)
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8;
- Parameters:
value
- The enum numeric value on the wire for ingressSettings to set.- Returns:
- This builder for chaining.
-
getIngressSettings
public ServiceConfig.IngressSettings getIngressSettings()
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8;
- Specified by:
getIngressSettings
in interfaceServiceConfigOrBuilder
- Returns:
- The ingressSettings.
-
setIngressSettings
public ServiceConfig.Builder setIngressSettings(ServiceConfig.IngressSettings value)
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8;
- Parameters:
value
- The ingressSettings to set.- Returns:
- This builder for chaining.
-
clearIngressSettings
public ServiceConfig.Builder clearIngressSettings()
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v2alpha.ServiceConfig.IngressSettings ingress_settings = 8;
- Returns:
- This builder for chaining.
-
getUri
public String getUri()
Output only. URI of the Service deployed.
string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUri
in 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:
getUriBytes
in interfaceServiceConfigOrBuilder
- Returns:
- The bytes for uri.
-
setUri
public ServiceConfig.Builder setUri(String value)
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
public ServiceConfig.Builder clearUri()
Output only. URI of the Service deployed.
string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setUriBytes
public ServiceConfig.Builder setUriBytes(com.google.protobuf.ByteString value)
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
public String 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:
getServiceAccountEmail
in 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:
getServiceAccountEmailBytes
in interfaceServiceConfigOrBuilder
- Returns:
- The bytes for serviceAccountEmail.
-
setServiceAccountEmail
public ServiceConfig.Builder setServiceAccountEmail(String value)
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
public ServiceConfig.Builder 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
public ServiceConfig.Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
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:
getAllTrafficOnLatestRevision
in interfaceServiceConfigOrBuilder
- Returns:
- The allTrafficOnLatestRevision.
-
setAllTrafficOnLatestRevision
public ServiceConfig.Builder setAllTrafficOnLatestRevision(boolean value)
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
public ServiceConfig.Builder 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
public List<SecretEnvVar> getSecretEnvironmentVariablesList()
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
- Specified by:
getSecretEnvironmentVariablesList
in interfaceServiceConfigOrBuilder
-
getSecretEnvironmentVariablesCount
public int getSecretEnvironmentVariablesCount()
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
- Specified by:
getSecretEnvironmentVariablesCount
in interfaceServiceConfigOrBuilder
-
getSecretEnvironmentVariables
public SecretEnvVar getSecretEnvironmentVariables(int index)
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
- Specified by:
getSecretEnvironmentVariables
in interfaceServiceConfigOrBuilder
-
setSecretEnvironmentVariables
public ServiceConfig.Builder setSecretEnvironmentVariables(int index, SecretEnvVar value)
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
-
setSecretEnvironmentVariables
public ServiceConfig.Builder setSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue)
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
-
addSecretEnvironmentVariables
public ServiceConfig.Builder addSecretEnvironmentVariables(SecretEnvVar value)
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
-
addSecretEnvironmentVariables
public ServiceConfig.Builder addSecretEnvironmentVariables(int index, SecretEnvVar value)
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
-
addSecretEnvironmentVariables
public ServiceConfig.Builder addSecretEnvironmentVariables(SecretEnvVar.Builder builderForValue)
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
-
addSecretEnvironmentVariables
public ServiceConfig.Builder addSecretEnvironmentVariables(int index, SecretEnvVar.Builder builderForValue)
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
-
addAllSecretEnvironmentVariables
public ServiceConfig.Builder addAllSecretEnvironmentVariables(Iterable<? extends SecretEnvVar> values)
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
-
clearSecretEnvironmentVariables
public ServiceConfig.Builder clearSecretEnvironmentVariables()
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
-
removeSecretEnvironmentVariables
public ServiceConfig.Builder removeSecretEnvironmentVariables(int index)
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
-
getSecretEnvironmentVariablesBuilder
public SecretEnvVar.Builder getSecretEnvironmentVariablesBuilder(int index)
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
-
getSecretEnvironmentVariablesOrBuilder
public SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder(int index)
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
- Specified by:
getSecretEnvironmentVariablesOrBuilder
in interfaceServiceConfigOrBuilder
-
getSecretEnvironmentVariablesOrBuilderList
public List<? extends SecretEnvVarOrBuilder> getSecretEnvironmentVariablesOrBuilderList()
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
- Specified by:
getSecretEnvironmentVariablesOrBuilderList
in interfaceServiceConfigOrBuilder
-
addSecretEnvironmentVariablesBuilder
public SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder()
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
-
addSecretEnvironmentVariablesBuilder
public SecretEnvVar.Builder addSecretEnvironmentVariablesBuilder(int index)
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
-
getSecretEnvironmentVariablesBuilderList
public List<SecretEnvVar.Builder> getSecretEnvironmentVariablesBuilderList()
Secret environment variables configuration.
repeated .google.cloud.functions.v2alpha.SecretEnvVar secret_environment_variables = 17;
-
getSecretVolumesList
public List<SecretVolume> getSecretVolumesList()
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
- Specified by:
getSecretVolumesList
in interfaceServiceConfigOrBuilder
-
getSecretVolumesCount
public int getSecretVolumesCount()
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
- Specified by:
getSecretVolumesCount
in interfaceServiceConfigOrBuilder
-
getSecretVolumes
public SecretVolume getSecretVolumes(int index)
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
- Specified by:
getSecretVolumes
in interfaceServiceConfigOrBuilder
-
setSecretVolumes
public ServiceConfig.Builder setSecretVolumes(int index, SecretVolume value)
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
-
setSecretVolumes
public ServiceConfig.Builder setSecretVolumes(int index, SecretVolume.Builder builderForValue)
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
-
addSecretVolumes
public ServiceConfig.Builder addSecretVolumes(SecretVolume value)
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
-
addSecretVolumes
public ServiceConfig.Builder addSecretVolumes(int index, SecretVolume value)
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
-
addSecretVolumes
public ServiceConfig.Builder addSecretVolumes(SecretVolume.Builder builderForValue)
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
-
addSecretVolumes
public ServiceConfig.Builder addSecretVolumes(int index, SecretVolume.Builder builderForValue)
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
-
addAllSecretVolumes
public ServiceConfig.Builder addAllSecretVolumes(Iterable<? extends SecretVolume> values)
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
-
clearSecretVolumes
public ServiceConfig.Builder clearSecretVolumes()
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
-
removeSecretVolumes
public ServiceConfig.Builder removeSecretVolumes(int index)
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
-
getSecretVolumesBuilder
public SecretVolume.Builder getSecretVolumesBuilder(int index)
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
-
getSecretVolumesOrBuilder
public SecretVolumeOrBuilder getSecretVolumesOrBuilder(int index)
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
- Specified by:
getSecretVolumesOrBuilder
in interfaceServiceConfigOrBuilder
-
getSecretVolumesOrBuilderList
public List<? extends SecretVolumeOrBuilder> getSecretVolumesOrBuilderList()
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
- Specified by:
getSecretVolumesOrBuilderList
in interfaceServiceConfigOrBuilder
-
addSecretVolumesBuilder
public SecretVolume.Builder addSecretVolumesBuilder()
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
-
addSecretVolumesBuilder
public SecretVolume.Builder addSecretVolumesBuilder(int index)
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
-
getSecretVolumesBuilderList
public List<SecretVolume.Builder> getSecretVolumesBuilderList()
Secret volumes configuration.
repeated .google.cloud.functions.v2alpha.SecretVolume secret_volumes = 19;
-
getRevision
public String getRevision()
Output only. The name of service revision.
string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getRevision
in 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:
getRevisionBytes
in interfaceServiceConfigOrBuilder
- Returns:
- The bytes for revision.
-
setRevision
public ServiceConfig.Builder setRevision(String value)
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
public ServiceConfig.Builder clearRevision()
Output only. The name of service revision.
string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setRevisionBytes
public ServiceConfig.Builder setRevisionBytes(com.google.protobuf.ByteString value)
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()
[Preview] Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.
int32 max_instance_request_concurrency = 20;
- Specified by:
getMaxInstanceRequestConcurrency
in interfaceServiceConfigOrBuilder
- Returns:
- The maxInstanceRequestConcurrency.
-
setMaxInstanceRequestConcurrency
public ServiceConfig.Builder setMaxInstanceRequestConcurrency(int value)
[Preview] 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
public ServiceConfig.Builder clearMaxInstanceRequestConcurrency()
[Preview] 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.v2alpha.ServiceConfig.SecurityLevel security_level = 21;
- Specified by:
getSecurityLevelValue
in interfaceServiceConfigOrBuilder
- Returns:
- The enum numeric value on the wire for securityLevel.
-
setSecurityLevelValue
public ServiceConfig.Builder setSecurityLevelValue(int value)
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;
- Parameters:
value
- The enum numeric value on the wire for securityLevel to set.- Returns:
- This builder for chaining.
-
getSecurityLevel
public ServiceConfig.SecurityLevel 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.v2alpha.ServiceConfig.SecurityLevel security_level = 21;
- Specified by:
getSecurityLevel
in interfaceServiceConfigOrBuilder
- Returns:
- The securityLevel.
-
setSecurityLevel
public ServiceConfig.Builder setSecurityLevel(ServiceConfig.SecurityLevel value)
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;
- Parameters:
value
- The securityLevel to set.- Returns:
- This builder for chaining.
-
clearSecurityLevel
public ServiceConfig.Builder 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.v2alpha.ServiceConfig.SecurityLevel security_level = 21;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final ServiceConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceConfig.Builder>
-
mergeUnknownFields
public final ServiceConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ServiceConfig.Builder>
-
-