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 class
ServiceConfig.Builder
Describes the Service being deployed.static class
ServiceConfig.IngressSettings
Available ingress settings.static class
ServiceConfig.SecurityLevel
Available security level settings.static class
ServiceConfig.VpcConnectorEgressSettings
Available 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 int
ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER
static int
AVAILABLE_CPU_FIELD_NUMBER
static int
AVAILABLE_MEMORY_FIELD_NUMBER
static int
ENVIRONMENT_VARIABLES_FIELD_NUMBER
static int
INGRESS_SETTINGS_FIELD_NUMBER
static int
MAX_INSTANCE_COUNT_FIELD_NUMBER
static int
MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER
static int
MIN_INSTANCE_COUNT_FIELD_NUMBER
static int
REVISION_FIELD_NUMBER
static int
SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER
static int
SECRET_VOLUMES_FIELD_NUMBER
static int
SECURITY_LEVEL_FIELD_NUMBER
static int
SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
static int
SERVICE_FIELD_NUMBER
static int
TIMEOUT_SECONDS_FIELD_NUMBER
static int
URI_FIELD_NUMBER
static int
VPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER
static int
VPC_CONNECTOR_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsEnvironmentVariables(String key)
Environment variables that shall be available during function execution.boolean
equals(Object obj)
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.static ServiceConfig
getDefaultInstance()
ServiceConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
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.com.google.protobuf.Parser<ServiceConfig>
getParserForType()
String
getRevision()
Output only.com.google.protobuf.ByteString
getRevisionBytes()
Output only.SecretEnvVar
getSecretEnvironmentVariables(int index)
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.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.int
getSerializedSize()
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.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static ServiceConfig.Builder
newBuilder()
static ServiceConfig.Builder
newBuilder(ServiceConfig prototype)
ServiceConfig.Builder
newBuilderForType()
protected ServiceConfig.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static ServiceConfig
parseDelimitedFrom(InputStream input)
static ServiceConfig
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ServiceConfig
parseFrom(byte[] data)
static ServiceConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ServiceConfig
parseFrom(com.google.protobuf.ByteString data)
static ServiceConfig
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ServiceConfig
parseFrom(com.google.protobuf.CodedInputStream input)
static ServiceConfig
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ServiceConfig
parseFrom(InputStream input)
static ServiceConfig
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ServiceConfig
parseFrom(ByteBuffer data)
static ServiceConfig
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<ServiceConfig>
parser()
ServiceConfig.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
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.
-
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.
-
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.
-
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.
-
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
-
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.
-
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.
-
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.
-
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:
getVpcConnectorEgressSettingsValue
in 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:
getVpcConnectorEgressSettings
in 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:
getIngressSettingsValue
in 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:
getIngressSettings
in 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:
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.
-
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.
-
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.
-
getSecretEnvironmentVariablesList
public List<SecretEnvVar> getSecretEnvironmentVariablesList()
Secret environment variables configuration.
repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17;
- Specified by:
getSecretEnvironmentVariablesList
in interfaceServiceConfigOrBuilder
-
getSecretEnvironmentVariablesOrBuilderList
public List<? extends SecretEnvVarOrBuilder> getSecretEnvironmentVariablesOrBuilderList()
Secret environment variables configuration.
repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17;
- Specified by:
getSecretEnvironmentVariablesOrBuilderList
in interfaceServiceConfigOrBuilder
-
getSecretEnvironmentVariablesCount
public int getSecretEnvironmentVariablesCount()
Secret environment variables configuration.
repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17;
- Specified by:
getSecretEnvironmentVariablesCount
in interfaceServiceConfigOrBuilder
-
getSecretEnvironmentVariables
public SecretEnvVar getSecretEnvironmentVariables(int index)
Secret environment variables configuration.
repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17;
- Specified by:
getSecretEnvironmentVariables
in interfaceServiceConfigOrBuilder
-
getSecretEnvironmentVariablesOrBuilder
public SecretEnvVarOrBuilder getSecretEnvironmentVariablesOrBuilder(int index)
Secret environment variables configuration.
repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17;
- Specified by:
getSecretEnvironmentVariablesOrBuilder
in interfaceServiceConfigOrBuilder
-
getSecretVolumesList
public List<SecretVolume> getSecretVolumesList()
Secret volumes configuration.
repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19;
- Specified by:
getSecretVolumesList
in interfaceServiceConfigOrBuilder
-
getSecretVolumesOrBuilderList
public List<? extends SecretVolumeOrBuilder> getSecretVolumesOrBuilderList()
Secret volumes configuration.
repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19;
- Specified by:
getSecretVolumesOrBuilderList
in interfaceServiceConfigOrBuilder
-
getSecretVolumesCount
public int getSecretVolumesCount()
Secret volumes configuration.
repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19;
- Specified by:
getSecretVolumesCount
in interfaceServiceConfigOrBuilder
-
getSecretVolumes
public SecretVolume getSecretVolumes(int index)
Secret volumes configuration.
repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19;
- Specified by:
getSecretVolumes
in interfaceServiceConfigOrBuilder
-
getSecretVolumesOrBuilder
public SecretVolumeOrBuilder getSecretVolumesOrBuilder(int index)
Secret volumes configuration.
repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19;
- Specified by:
getSecretVolumesOrBuilder
in interfaceServiceConfigOrBuilder
-
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.
-
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.
-
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:
getSecurityLevelValue
in 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:
getSecurityLevel
in interfaceServiceConfigOrBuilder
- Returns:
- The securityLevel.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ServiceConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ServiceConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-