Package com.google.cloud.functions.v2
Class ServiceConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
@Generated
public final class ServiceConfig
extends com.google.protobuf.GeneratedMessage
implements ServiceConfigOrBuilder
Describes the Service being deployed. Currently Supported : Cloud Run (fully managed).Protobuf type
google.cloud.functions.v2.ServiceConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDescribes the Service being deployed.static enumAvailable ingress settings.static enumAvailable security level settings.static enumAvailable egress settings.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanEnvironment variables that shall be available during function execution.booleanbooleanWhether 100% of traffic is routed to the latest revision.The number of CPUs used in a single container instance.com.google.protobuf.ByteStringThe number of CPUs used in a single container instance.The amount of memory available for a function.com.google.protobuf.ByteStringThe amount of memory available for a function.Optional.com.google.protobuf.ByteStringOptional.static ServiceConfigstatic final com.google.protobuf.Descriptors.DescriptorDeprecated.intEnvironment variables that shall be available during function execution.Environment variables that shall be available during function execution.getEnvironmentVariablesOrDefault(String key, String defaultValue) Environment variables that shall be available during function execution.Environment variables that shall be available during function execution.The ingress settings for the function, controlling what traffic can reach it.intThe ingress settings for the function, controlling what traffic can reach it.intThe limit on the maximum number of function instances that may coexist at a given time.intSets the maximum number of concurrent requests that each instance can receive.intThe limit on the minimum number of function instances that may coexist at a given time.com.google.protobuf.Parser<ServiceConfig>Output only.com.google.protobuf.ByteStringOutput only.getSecretEnvironmentVariables(int index) Secret environment variables configuration.intSecret environment variables configuration.Secret environment variables configuration.getSecretEnvironmentVariablesOrBuilder(int index) Secret environment variables configuration.List<? extends SecretEnvVarOrBuilder>Secret environment variables configuration.getSecretVolumes(int index) Secret volumes configuration.intSecret volumes configuration.Secret volumes configuration.getSecretVolumesOrBuilder(int index) Secret volumes configuration.List<? extends SecretVolumeOrBuilder>Secret volumes configuration.Security level configure whether the function only accepts https.intSecurity level configure whether the function only accepts https.intOutput only.The email of the service's service account.com.google.protobuf.ByteStringThe email of the service's service account.com.google.protobuf.ByteStringOutput only.intThe function execution timeout.getUri()Output only.com.google.protobuf.ByteStringOutput only.The Serverless VPC Access connector that this cloud function can connect to.com.google.protobuf.ByteStringThe Serverless VPC Access connector that this cloud function can connect to.The egress settings for the connector, controlling what traffic is diverted through it.intThe egress settings for the connector, controlling what traffic is diverted through it.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic ServiceConfig.Builderstatic ServiceConfig.BuildernewBuilder(ServiceConfig prototype) protected ServiceConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SERVICE_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER- See Also:
-
TIMEOUT_SECONDS_FIELD_NUMBER
public static final int TIMEOUT_SECONDS_FIELD_NUMBER- See Also:
-
AVAILABLE_MEMORY_FIELD_NUMBER
public static final int AVAILABLE_MEMORY_FIELD_NUMBER- See Also:
-
AVAILABLE_CPU_FIELD_NUMBER
public static final int AVAILABLE_CPU_FIELD_NUMBER- See Also:
-
ENVIRONMENT_VARIABLES_FIELD_NUMBER
public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER- See Also:
-
MAX_INSTANCE_COUNT_FIELD_NUMBER
public static final int MAX_INSTANCE_COUNT_FIELD_NUMBER- See Also:
-
MIN_INSTANCE_COUNT_FIELD_NUMBER
public static final int MIN_INSTANCE_COUNT_FIELD_NUMBER- See Also:
-
VPC_CONNECTOR_FIELD_NUMBER
public static final int VPC_CONNECTOR_FIELD_NUMBER- See Also:
-
VPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER
public static final int VPC_CONNECTOR_EGRESS_SETTINGS_FIELD_NUMBER- See Also:
-
INGRESS_SETTINGS_FIELD_NUMBER
public static final int INGRESS_SETTINGS_FIELD_NUMBER- See Also:
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER- See Also:
-
SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER- See Also:
-
ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER
public static final int ALL_TRAFFIC_ON_LATEST_REVISION_FIELD_NUMBER- See Also:
-
SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER
public static final int SECRET_ENVIRONMENT_VARIABLES_FIELD_NUMBER- See Also:
-
SECRET_VOLUMES_FIELD_NUMBER
public static final int SECRET_VOLUMES_FIELD_NUMBER- See Also:
-
REVISION_FIELD_NUMBER
public static final int REVISION_FIELD_NUMBER- See Also:
-
MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER
public static final int MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER- See Also:
-
SECURITY_LEVEL_FIELD_NUMBER
public static final int SECURITY_LEVEL_FIELD_NUMBER- See Also:
-
BINARY_AUTHORIZATION_POLICY_FIELD_NUMBER
public static final int BINARY_AUTHORIZATION_POLICY_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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
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
The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
string available_cpu = 22;- Specified by:
getAvailableCpuin interfaceServiceConfigOrBuilder- Returns:
- The availableCpu.
-
getAvailableCpuBytes
public com.google.protobuf.ByteString getAvailableCpuBytes()The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements Example: "1" indicates 1 vCPU
string available_cpu = 22;- Specified by:
getAvailableCpuBytesin interfaceServiceConfigOrBuilder- Returns:
- The bytes for availableCpu.
-
getEnvironmentVariablesCount
public int getEnvironmentVariablesCount()Description copied from interface:ServiceConfigOrBuilderEnvironment variables that shall be available during function execution.
map<string, string> environment_variables = 4;- Specified by:
getEnvironmentVariablesCountin interfaceServiceConfigOrBuilder
-
containsEnvironmentVariables
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;- Specified by:
containsEnvironmentVariablesin interfaceServiceConfigOrBuilder
-
getEnvironmentVariables
Deprecated.UsegetEnvironmentVariablesMap()instead.- Specified by:
getEnvironmentVariablesin interfaceServiceConfigOrBuilder
-
getEnvironmentVariablesMap
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;- Specified by:
getEnvironmentVariablesMapin interfaceServiceConfigOrBuilder
-
getEnvironmentVariablesOrDefault
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;- Specified by:
getEnvironmentVariablesOrDefaultin interfaceServiceConfigOrBuilder
-
getEnvironmentVariablesOrThrow
Environment variables that shall be available during function execution.
map<string, string> environment_variables = 4;- Specified by:
getEnvironmentVariablesOrThrowin interfaceServiceConfigOrBuilder
-
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
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
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
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
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
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
Secret environment variables configuration.
repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17;- Specified by:
getSecretEnvironmentVariablesListin interfaceServiceConfigOrBuilder
-
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
Secret environment variables configuration.
repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17;- Specified by:
getSecretEnvironmentVariablesin interfaceServiceConfigOrBuilder
-
getSecretEnvironmentVariablesOrBuilder
Secret environment variables configuration.
repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17;- Specified by:
getSecretEnvironmentVariablesOrBuilderin interfaceServiceConfigOrBuilder
-
getSecretVolumesList
Secret volumes configuration.
repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19;- Specified by:
getSecretVolumesListin interfaceServiceConfigOrBuilder
-
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
Secret volumes configuration.
repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19;- Specified by:
getSecretVolumesin interfaceServiceConfigOrBuilder
-
getSecretVolumesOrBuilder
Secret volumes configuration.
repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19;- Specified by:
getSecretVolumesOrBuilderin interfaceServiceConfigOrBuilder
-
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()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
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.
-
getBinaryAuthorizationPolicy
Optional. The binary authorization policy to be checked when deploying the Cloud Run service.
string binary_authorization_policy = 23 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBinaryAuthorizationPolicyin interfaceServiceConfigOrBuilder- Returns:
- The binaryAuthorizationPolicy.
-
getBinaryAuthorizationPolicyBytes
public com.google.protobuf.ByteString getBinaryAuthorizationPolicyBytes()Optional. The binary authorization policy to be checked when deploying the Cloud Run service.
string binary_authorization_policy = 23 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBinaryAuthorizationPolicyBytesin interfaceServiceConfigOrBuilder- Returns:
- The bytes for binaryAuthorizationPolicy.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static ServiceConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ServiceConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-