Package com.google.cloud.functions.v2
Class ServiceConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.functions.v2.ServiceConfig
-
- All Implemented Interfaces:
ServiceConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class ServiceConfig extends com.google.protobuf.GeneratedMessageV3 implements ServiceConfigOrBuilder
Describes the Service being deployed. Currently Supported : Cloud Run (fully managed).
Protobuf typegoogle.cloud.functions.v2.ServiceConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classServiceConfig.BuilderDescribes the Service being deployed.static classServiceConfig.IngressSettingsAvailable ingress settings.static classServiceConfig.SecurityLevelAvailable security level settings.static classServiceConfig.VpcConnectorEgressSettingsAvailable egress settings.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBERstatic intAVAILABLE_CPU_FIELD_NUMBERstatic intAVAILABLE_MEMORY_FIELD_NUMBERstatic intENVIRONMENT_VARIABLES_FIELD_NUMBERstatic intINGRESS_SETTINGS_FIELD_NUMBERstatic intMAX_INSTANCE_COUNT_FIELD_NUMBERstatic intMAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBERstatic intMIN_INSTANCE_COUNT_FIELD_NUMBERstatic intREVISION_FIELD_NUMBERstatic intSECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBERstatic intSECRET_VOLUMES_FIELD_NUMBERstatic intSECURITY_LEVEL_FIELD_NUMBERstatic intSERVICE_ACCOUNT_EMAIL_FIELD_NUMBERstatic intSERVICE_FIELD_NUMBERstatic intTIMEOUT_SECONDS_FIELD_NUMBERstatic intURI_FIELD_NUMBERstatic intVPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBERstatic intVPC_CONNECTOR_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsEnvironmentVariables(String key)Environment variables that shall be available during function execution.booleanequals(Object obj)booleangetAllTrafficOnLatestRevision()Whether 100% of traffic is routed to the latest revision.StringgetAvailableCpu()[Preview] The number of CPUs used in a single container instance.com.google.protobuf.ByteStringgetAvailableCpuBytes()[Preview] The number of CPUs used in a single container instance.StringgetAvailableMemory()The amount of memory available for a function.com.google.protobuf.ByteStringgetAvailableMemoryBytes()The amount of memory available for a function.static ServiceConfiggetDefaultInstance()ServiceConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Map<String,String>getEnvironmentVariables()Deprecated.intgetEnvironmentVariablesCount()Environment variables that shall be available during function execution.Map<String,String>getEnvironmentVariablesMap()Environment variables that shall be available during function execution.StringgetEnvironmentVariablesOrDefault(String key, String defaultValue)Environment variables that shall be available during function execution.StringgetEnvironmentVariablesOrThrow(String key)Environment variables that shall be available during function execution.ServiceConfig.IngressSettingsgetIngressSettings()The ingress settings for the function, controlling what traffic can reach it.intgetIngressSettingsValue()The ingress settings for the function, controlling what traffic can reach it.intgetMaxInstanceCount()The limit on the maximum number of function instances that may coexist at a given time.intgetMaxInstanceRequestConcurrency()[Preview] Sets the maximum number of concurrent requests that each instance can receive.intgetMinInstanceCount()The limit on the minimum number of function instances that may coexist at a given time.com.google.protobuf.Parser<ServiceConfig>getParserForType()StringgetRevision()Output only.com.google.protobuf.ByteStringgetRevisionBytes()Output only.SecretEnvVargetSecretEnvironmentVariables(int index)Secret environment variables configuration.intgetSecretEnvironmentVariablesCount()Secret environment variables configuration.List<SecretEnvVar>getSecretEnvironmentVariablesList()Secret environment variables configuration.SecretEnvVarOrBuildergetSecretEnvironmentVariablesOrBuilder(int index)Secret environment variables configuration.List<? extends SecretEnvVarOrBuilder>getSecretEnvironmentVariablesOrBuilderList()Secret environment variables configuration.SecretVolumegetSecretVolumes(int index)Secret volumes configuration.intgetSecretVolumesCount()Secret volumes configuration.List<SecretVolume>getSecretVolumesList()Secret volumes configuration.SecretVolumeOrBuildergetSecretVolumesOrBuilder(int index)Secret volumes configuration.List<? extends SecretVolumeOrBuilder>getSecretVolumesOrBuilderList()Secret volumes configuration.ServiceConfig.SecurityLevelgetSecurityLevel()Security level configure whether the function only accepts https.intgetSecurityLevelValue()Security level configure whether the function only accepts https.intgetSerializedSize()StringgetService()Output only.StringgetServiceAccountEmail()The email of the service's service account.com.google.protobuf.ByteStringgetServiceAccountEmailBytes()The email of the service's service account.com.google.protobuf.ByteStringgetServiceBytes()Output only.intgetTimeoutSeconds()The function execution timeout.StringgetUri()Output only.com.google.protobuf.ByteStringgetUriBytes()Output only.StringgetVpcConnector()The Serverless VPC Access connector that this cloud function can connect to.com.google.protobuf.ByteStringgetVpcConnectorBytes()The Serverless VPC Access connector that this cloud function can connect to.ServiceConfig.VpcConnectorEgressSettingsgetVpcConnectorEgressSettings()The egress settings for the connector, controlling what traffic is diverted through it.intgetVpcConnectorEgressSettingsValue()The egress settings for the connector, controlling what traffic is diverted through it.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static ServiceConfig.BuildernewBuilder()static ServiceConfig.BuildernewBuilder(ServiceConfig prototype)ServiceConfig.BuildernewBuilderForType()protected ServiceConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ServiceConfigparseDelimitedFrom(InputStream input)static ServiceConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ServiceConfigparseFrom(byte[] data)static ServiceConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ServiceConfigparseFrom(com.google.protobuf.ByteString data)static ServiceConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ServiceConfigparseFrom(com.google.protobuf.CodedInputStream input)static ServiceConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ServiceConfigparseFrom(InputStream input)static ServiceConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ServiceConfigparseFrom(ByteBuffer data)static ServiceConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ServiceConfig>parser()ServiceConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SERVICE_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMEOUT_SECONDS_FIELD_NUMBER
public static final int TIMEOUT_SECONDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AVAILABLE_MEMORY_FIELD_NUMBER
public static final int AVAILABLE_MEMORY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AVAILABLE_CPU_FIELD_NUMBER
public static final int AVAILABLE_CPU_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENVIRONMENT_VARIABLES_FIELD_NUMBER
public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_INSTANCE_COUNT_FIELD_NUMBER
public static final int MAX_INSTANCE_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_INSTANCE_COUNT_FIELD_NUMBER
public static final int MIN_INSTANCE_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VPC_CONNECTOR_FIELD_NUMBER
public static final int VPC_CONNECTOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER
public static final int VPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INGRESS_SETTINGS_FIELD_NUMBER
public static final int INGRESS_SETTINGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER
public static final int ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER
public static final int SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SECRET_VOLUMES_FIELD_NUMBER
public static final int SECRET_VOLUMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REVISION_FIELD_NUMBER
public static final int REVISION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER
public static final int MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SECURITY_LEVEL_FIELD_NUMBER
public static final int SECURITY_LEVEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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:
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.
-
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.
-
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:
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.
-
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:
getAvailableCpuin 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:
getAvailableCpuBytesin interfaceServiceConfigOrBuilder- Returns:
- The bytes for availableCpu.
-
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
public boolean containsEnvironmentVariables(String key)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;- Specified by:
containsEnvironmentVariablesin interfaceServiceConfigOrBuilder
-
getEnvironmentVariables
@Deprecated public Map<String,String> getEnvironmentVariables()
Deprecated.UsegetEnvironmentVariablesMap()instead.- Specified by:
getEnvironmentVariablesin interfaceServiceConfigOrBuilder
-
getEnvironmentVariablesMap
public Map<String,String> getEnvironmentVariablesMap()
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;- Specified by:
getEnvironmentVariablesMapin 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:
getEnvironmentVariablesOrDefaultin interfaceServiceConfigOrBuilder
-
getEnvironmentVariablesOrThrow
public String getEnvironmentVariablesOrThrow(String key)
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;- Specified by:
getEnvironmentVariablesOrThrowin interfaceServiceConfigOrBuilder
-
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.
-
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.
-
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:
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.
-
getVpcConnectorEgressSettingsValue
public int getVpcConnectorEgressSettingsValue()
The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;- Specified by:
getVpcConnectorEgressSettingsValuein interfaceServiceConfigOrBuilder- Returns:
- The enum numeric value on the wire for vpcConnectorEgressSettings.
-
getVpcConnectorEgressSettings
public ServiceConfig.VpcConnectorEgressSettings getVpcConnectorEgressSettings()
The egress settings for the connector, controlling what traffic is diverted through it.
.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;- Specified by:
getVpcConnectorEgressSettingsin interfaceServiceConfigOrBuilder- Returns:
- The vpcConnectorEgressSettings.
-
getIngressSettingsValue
public int getIngressSettingsValue()
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8;- Specified by:
getIngressSettingsValuein interfaceServiceConfigOrBuilder- Returns:
- The enum numeric value on the wire for ingressSettings.
-
getIngressSettings
public ServiceConfig.IngressSettings getIngressSettings()
The ingress settings for the function, controlling what traffic can reach it.
.google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8;- Specified by:
getIngressSettingsin interfaceServiceConfigOrBuilder- Returns:
- The ingressSettings.
-
getUri
public String 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.
-
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:
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.
-
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.
-
getSecretEnvironmentVariablesList
public List<SecretEnvVar> getSecretEnvironmentVariablesList()
Secret environment variables configuration.
repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17;- Specified by:
getSecretEnvironmentVariablesListin interfaceServiceConfigOrBuilder
-
getSecretEnvironmentVariablesOrBuilderList
public List<? extends SecretEnvVarOrBuilder> getSecretEnvironmentVariablesOrBuilderList()
Secret environment variables configuration.
repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17;- Specified by:
getSecretEnvironmentVariablesOrBuilderListin interfaceServiceConfigOrBuilder
-
getSecretEnvironmentVariablesCount
public int getSecretEnvironmentVariablesCount()
Secret environment variables configuration.
repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17;- Specified by:
getSecretEnvironmentVariablesCountin interfaceServiceConfigOrBuilder
-
getSecretEnvironmentVariables
public SecretEnvVar getSecretEnvironmentVariables(int index)
Secret environment variables configuration.
repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17;- Specified by:
getSecretEnvironmentVariablesin interfaceServiceConfigOrBuilder
-
getSecretEnvironmentVariablesOrBuilder
public SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder(int index)
Secret environment variables configuration.
repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17;- Specified by:
getSecretEnvironmentVariablesOrBuilderin interfaceServiceConfigOrBuilder
-
getSecretVolumesList
public List<SecretVolume> getSecretVolumesList()
Secret volumes configuration.
repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19;- Specified by:
getSecretVolumesListin interfaceServiceConfigOrBuilder
-
getSecretVolumesOrBuilderList
public List<? extends SecretVolumeOrBuilder> getSecretVolumesOrBuilderList()
Secret volumes configuration.
repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19;- Specified by:
getSecretVolumesOrBuilderListin interfaceServiceConfigOrBuilder
-
getSecretVolumesCount
public int getSecretVolumesCount()
Secret volumes configuration.
repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19;- Specified by:
getSecretVolumesCountin interfaceServiceConfigOrBuilder
-
getSecretVolumes
public SecretVolume getSecretVolumes(int index)
Secret volumes configuration.
repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19;- Specified by:
getSecretVolumesin interfaceServiceConfigOrBuilder
-
getSecretVolumesOrBuilder
public SecretVolumeOrBuilder getSecretVolumesOrBuilder(int index)
Secret volumes configuration.
repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19;- Specified by:
getSecretVolumesOrBuilderin interfaceServiceConfigOrBuilder
-
getRevision
public String 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.
-
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:
getMaxInstanceRequestConcurrencyin interfaceServiceConfigOrBuilder- Returns:
- The maxInstanceRequestConcurrency.
-
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.v2.ServiceConfig.SecurityLevel security_level = 21;- Specified by:
getSecurityLevelValuein interfaceServiceConfigOrBuilder- Returns:
- The enum numeric value on the wire for securityLevel.
-
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.v2.ServiceConfig.SecurityLevel security_level = 21;- Specified by:
getSecurityLevelin interfaceServiceConfigOrBuilder- Returns:
- The securityLevel.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ServiceConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ServiceConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ServiceConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ServiceConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ServiceConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ServiceConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ServiceConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ServiceConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ServiceConfig.Builder newBuilder()
-
newBuilder
public static ServiceConfig.Builder newBuilder(ServiceConfig prototype)
-
toBuilder
public ServiceConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ServiceConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ServiceConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ServiceConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<ServiceConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ServiceConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-