public final class BuildConfig extends com.google.protobuf.GeneratedMessageV3 implements BuildConfigOrBuilder
Describes the Build step of the function that builds a container from the given source.Protobuf type
google.cloud.run.v2.BuildConfig| Modifier and Type | Class and Description |
|---|---|
static class |
BuildConfig.Builder
Describes the Build step of the function that builds a container from the
given source.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
BASE_IMAGE_FIELD_NUMBER |
static int |
ENABLE_AUTOMATIC_UPDATES_FIELD_NUMBER |
static int |
ENVIRONMENT_VARIABLES_FIELD_NUMBER |
static int |
FUNCTION_TARGET_FIELD_NUMBER |
static int |
IMAGE_URI_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
SERVICE_ACCOUNT_FIELD_NUMBER |
static int |
SOURCE_LOCATION_FIELD_NUMBER |
static int |
WORKER_POOL_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsEnvironmentVariables(String key)
Optional.
|
boolean |
equals(Object obj) |
String |
getBaseImage()
Optional.
|
com.google.protobuf.ByteString |
getBaseImageBytes()
Optional.
|
static BuildConfig |
getDefaultInstance() |
BuildConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getEnableAutomaticUpdates()
Optional.
|
Map<String,String> |
getEnvironmentVariables()
Deprecated.
|
int |
getEnvironmentVariablesCount()
Optional.
|
Map<String,String> |
getEnvironmentVariablesMap()
Optional.
|
String |
getEnvironmentVariablesOrDefault(String key,
String defaultValue)
Optional.
|
String |
getEnvironmentVariablesOrThrow(String key)
Optional.
|
String |
getFunctionTarget()
Optional.
|
com.google.protobuf.ByteString |
getFunctionTargetBytes()
Optional.
|
String |
getImageUri()
Optional.
|
com.google.protobuf.ByteString |
getImageUriBytes()
Optional.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
com.google.protobuf.Parser<BuildConfig> |
getParserForType() |
int |
getSerializedSize() |
String |
getServiceAccount()
Optional.
|
com.google.protobuf.ByteString |
getServiceAccountBytes()
Optional.
|
String |
getSourceLocation()
The Cloud Storage bucket URI where the function source code is located.
|
com.google.protobuf.ByteString |
getSourceLocationBytes()
The Cloud Storage bucket URI where the function source code is located.
|
String |
getWorkerPool()
Optional.
|
com.google.protobuf.ByteString |
getWorkerPoolBytes()
Optional.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static BuildConfig.Builder |
newBuilder() |
static BuildConfig.Builder |
newBuilder(BuildConfig prototype) |
BuildConfig.Builder |
newBuilderForType() |
protected BuildConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static BuildConfig |
parseDelimitedFrom(InputStream input) |
static BuildConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BuildConfig |
parseFrom(byte[] data) |
static BuildConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BuildConfig |
parseFrom(ByteBuffer data) |
static BuildConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BuildConfig |
parseFrom(com.google.protobuf.ByteString data) |
static BuildConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BuildConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static BuildConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static BuildConfig |
parseFrom(InputStream input) |
static BuildConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<BuildConfig> |
parser() |
BuildConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int SOURCE_LOCATION_FIELD_NUMBER
public static final int FUNCTION_TARGET_FIELD_NUMBER
public static final int IMAGE_URI_FIELD_NUMBER
public static final int BASE_IMAGE_FIELD_NUMBER
public static final int ENABLE_AUTOMATIC_UPDATES_FIELD_NUMBER
public static final int WORKER_POOL_FIELD_NUMBER
public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Output only. The Cloud Build name of the latest successful deployment of the function.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getName in interface BuildConfigOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The Cloud Build name of the latest successful deployment of the function.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getNameBytes in interface BuildConfigOrBuilderpublic String getSourceLocation()
The Cloud Storage bucket URI where the function source code is located.
string source_location = 2;getSourceLocation in interface BuildConfigOrBuilderpublic com.google.protobuf.ByteString getSourceLocationBytes()
The Cloud Storage bucket URI where the function source code is located.
string source_location = 2;getSourceLocationBytes in interface BuildConfigOrBuilderpublic String getFunctionTarget()
Optional. The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function".
string function_target = 3 [(.google.api.field_behavior) = OPTIONAL];getFunctionTarget in interface BuildConfigOrBuilderpublic com.google.protobuf.ByteString getFunctionTargetBytes()
Optional. The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function".
string function_target = 3 [(.google.api.field_behavior) = OPTIONAL];getFunctionTargetBytes in interface BuildConfigOrBuilderpublic String getImageUri()
Optional. Artifact Registry URI to store the built image.
string image_uri = 4 [(.google.api.field_behavior) = OPTIONAL];getImageUri in interface BuildConfigOrBuilderpublic com.google.protobuf.ByteString getImageUriBytes()
Optional. Artifact Registry URI to store the built image.
string image_uri = 4 [(.google.api.field_behavior) = OPTIONAL];getImageUriBytes in interface BuildConfigOrBuilderpublic String getBaseImage()
Optional. The base image used to build the function.
string base_image = 5 [(.google.api.field_behavior) = OPTIONAL];getBaseImage in interface BuildConfigOrBuilderpublic com.google.protobuf.ByteString getBaseImageBytes()
Optional. The base image used to build the function.
string base_image = 5 [(.google.api.field_behavior) = OPTIONAL];getBaseImageBytes in interface BuildConfigOrBuilderpublic boolean getEnableAutomaticUpdates()
Optional. Sets whether the function will receive automatic base image updates.
bool enable_automatic_updates = 6 [(.google.api.field_behavior) = OPTIONAL];getEnableAutomaticUpdates in interface BuildConfigOrBuilderpublic String getWorkerPool()
Optional. Name of the Cloud Build Custom Worker Pool that should be used to
build the Cloud Run function. The format of this field is
`projects/{project}/locations/{region}/workerPools/{workerPool}` where
`{project}` and `{region}` are the project id and region respectively where
the worker pool is defined and `{workerPool}` is the short name of the
worker pool.
string worker_pool = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getWorkerPool in interface BuildConfigOrBuilderpublic com.google.protobuf.ByteString getWorkerPoolBytes()
Optional. Name of the Cloud Build Custom Worker Pool that should be used to
build the Cloud Run function. The format of this field is
`projects/{project}/locations/{region}/workerPools/{workerPool}` where
`{project}` and `{region}` are the project id and region respectively where
the worker pool is defined and `{workerPool}` is the short name of the
worker pool.
string worker_pool = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getWorkerPoolBytes in interface BuildConfigOrBuilderpublic int getEnvironmentVariablesCount()
BuildConfigOrBuilderOptional. User-provided build-time environment variables for the function
map<string, string> environment_variables = 8 [(.google.api.field_behavior) = OPTIONAL];
getEnvironmentVariablesCount in interface BuildConfigOrBuilderpublic boolean containsEnvironmentVariables(String key)
Optional. User-provided build-time environment variables for the function
map<string, string> environment_variables = 8 [(.google.api.field_behavior) = OPTIONAL];
containsEnvironmentVariables in interface BuildConfigOrBuilder@Deprecated public Map<String,String> getEnvironmentVariables()
getEnvironmentVariablesMap() instead.getEnvironmentVariables in interface BuildConfigOrBuilderpublic Map<String,String> getEnvironmentVariablesMap()
Optional. User-provided build-time environment variables for the function
map<string, string> environment_variables = 8 [(.google.api.field_behavior) = OPTIONAL];
getEnvironmentVariablesMap in interface BuildConfigOrBuilderpublic String getEnvironmentVariablesOrDefault(String key, String defaultValue)
Optional. User-provided build-time environment variables for the function
map<string, string> environment_variables = 8 [(.google.api.field_behavior) = OPTIONAL];
getEnvironmentVariablesOrDefault in interface BuildConfigOrBuilderpublic String getEnvironmentVariablesOrThrow(String key)
Optional. User-provided build-time environment variables for the function
map<string, string> environment_variables = 8 [(.google.api.field_behavior) = OPTIONAL];
getEnvironmentVariablesOrThrow in interface BuildConfigOrBuilderpublic String getServiceAccount()
Optional. Service account to be used for building the container. The format
of this field is
`projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
string service_account = 9 [(.google.api.field_behavior) = OPTIONAL];getServiceAccount in interface BuildConfigOrBuilderpublic com.google.protobuf.ByteString getServiceAccountBytes()
Optional. Service account to be used for building the container. The format
of this field is
`projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
string service_account = 9 [(.google.api.field_behavior) = OPTIONAL];getServiceAccountBytes in interface BuildConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static BuildConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BuildConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BuildConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BuildConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BuildConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BuildConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static BuildConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static BuildConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BuildConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static BuildConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static BuildConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static BuildConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic BuildConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static BuildConfig.Builder newBuilder()
public static BuildConfig.Builder newBuilder(BuildConfig prototype)
public BuildConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected BuildConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static BuildConfig getDefaultInstance()
public static com.google.protobuf.Parser<BuildConfig> parser()
public com.google.protobuf.Parser<BuildConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public BuildConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.