Class SubmitBuildRequest.BuildpacksBuild.Builder (0.54.0)

public static final class SubmitBuildRequest.BuildpacksBuild.Builder extends GeneratedMessageV3.Builder<SubmitBuildRequest.BuildpacksBuild.Builder> implements SubmitBuildRequest.BuildpacksBuildOrBuilder

Build the source using Buildpacks.

Protobuf type google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SubmitBuildRequest.BuildpacksBuild.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder
Overrides

build()

public SubmitBuildRequest.BuildpacksBuild build()
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild

buildPartial()

public SubmitBuildRequest.BuildpacksBuild buildPartial()
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild

clear()

public SubmitBuildRequest.BuildpacksBuild.Builder clear()
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder
Overrides

clearBaseImage()

public SubmitBuildRequest.BuildpacksBuild.Builder clearBaseImage()

Optional. The base image used to opt into automatic base image updates.

string base_image = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

This builder for chaining.

clearCacheImageUri()

public SubmitBuildRequest.BuildpacksBuild.Builder clearCacheImageUri()

Optional. cache_image_uri is the GCR/AR URL where the cache image will be stored. cache_image_uri is optional and omitting it will disable caching. This URL must be stable across builds. It is used to derive a build-specific temporary URL by substituting the tag with the build ID. The build will clean up the temporary image on a best-effort basis.

string cache_image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

This builder for chaining.

clearEnableAutomaticUpdates()

public SubmitBuildRequest.BuildpacksBuild.Builder clearEnableAutomaticUpdates()

Optional. Whether or not the application container will be enrolled in automatic base image updates. When true, the application will be built on a scratch base image, so the base layers can be appended at run time.

bool enable_automatic_updates = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

This builder for chaining.

clearEnvironmentVariables()

public SubmitBuildRequest.BuildpacksBuild.Builder clearEnvironmentVariables()
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

clearField(Descriptors.FieldDescriptor field)

public SubmitBuildRequest.BuildpacksBuild.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder
Overrides

clearFunctionTarget()

public SubmitBuildRequest.BuildpacksBuild.Builder clearFunctionTarget()

Optional. Name of the function target if the source is a function source. Required for function builds.

string function_target = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SubmitBuildRequest.BuildpacksBuild.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder
Overrides

clearRuntime() (deprecated)

public SubmitBuildRequest.BuildpacksBuild.Builder clearRuntime()

Deprecated. google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild.runtime is deprecated. See google/cloud/run/v2/build.proto;l=56

The runtime name, e.g. 'go113'. Leave blank for generic builds.

string runtime = 1 [deprecated = true];

Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

This builder for chaining.

clone()

public SubmitBuildRequest.BuildpacksBuild.Builder clone()
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder
Overrides

containsEnvironmentVariables(String key)

public boolean containsEnvironmentVariables(String key)

Optional. User-provided build-time environment variables.

map<string, string> environment_variables = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getBaseImage()

public String getBaseImage()

Optional. The base image used to opt into automatic base image updates.

string base_image = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The baseImage.

getBaseImageBytes()

public ByteString getBaseImageBytes()

Optional. The base image used to opt into automatic base image updates.

string base_image = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for baseImage.

getCacheImageUri()

public String getCacheImageUri()

Optional. cache_image_uri is the GCR/AR URL where the cache image will be stored. cache_image_uri is optional and omitting it will disable caching. This URL must be stable across builds. It is used to derive a build-specific temporary URL by substituting the tag with the build ID. The build will clean up the temporary image on a best-effort basis.

string cache_image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The cacheImageUri.

getCacheImageUriBytes()

public ByteString getCacheImageUriBytes()

Optional. cache_image_uri is the GCR/AR URL where the cache image will be stored. cache_image_uri is optional and omitting it will disable caching. This URL must be stable across builds. It is used to derive a build-specific temporary URL by substituting the tag with the build ID. The build will clean up the temporary image on a best-effort basis.

string cache_image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for cacheImageUri.

getDefaultInstanceForType()

public SubmitBuildRequest.BuildpacksBuild getDefaultInstanceForType()
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnableAutomaticUpdates()

public boolean getEnableAutomaticUpdates()

Optional. Whether or not the application container will be enrolled in automatic base image updates. When true, the application will be built on a scratch base image, so the base layers can be appended at run time.

bool enable_automatic_updates = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enableAutomaticUpdates.

getEnvironmentVariables() (deprecated)

public Map<String,String> getEnvironmentVariables()
Returns
Type Description
Map<String,String>

getEnvironmentVariablesCount()

public int getEnvironmentVariablesCount()

Optional. User-provided build-time environment variables.

map<string, string> environment_variables = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getEnvironmentVariablesMap()

public Map<String,String> getEnvironmentVariablesMap()

Optional. User-provided build-time environment variables.

map<string, string> environment_variables = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getEnvironmentVariablesOrDefault(String key, String defaultValue)

public String getEnvironmentVariablesOrDefault(String key, String defaultValue)

Optional. User-provided build-time environment variables.

map<string, string> environment_variables = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getEnvironmentVariablesOrThrow(String key)

public String getEnvironmentVariablesOrThrow(String key)

Optional. User-provided build-time environment variables.

map<string, string> environment_variables = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getFunctionTarget()

public String getFunctionTarget()

Optional. Name of the function target if the source is a function source. Required for function builds.

string function_target = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The functionTarget.

getFunctionTargetBytes()

public ByteString getFunctionTargetBytes()

Optional. Name of the function target if the source is a function source. Required for function builds.

string function_target = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for functionTarget.

getMutableEnvironmentVariables() (deprecated)

public Map<String,String> getMutableEnvironmentVariables()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getRuntime() (deprecated)

public String getRuntime()

Deprecated. google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild.runtime is deprecated. See google/cloud/run/v2/build.proto;l=56

The runtime name, e.g. 'go113'. Leave blank for generic builds.

string runtime = 1 [deprecated = true];

Returns
Type Description
String

The runtime.

getRuntimeBytes() (deprecated)

public ByteString getRuntimeBytes()

Deprecated. google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild.runtime is deprecated. See google/cloud/run/v2/build.proto;l=56

The runtime name, e.g. 'go113'. Leave blank for generic builds.

string runtime = 1 [deprecated = true];

Returns
Type Description
ByteString

The bytes for runtime.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SubmitBuildRequest.BuildpacksBuild other)

public SubmitBuildRequest.BuildpacksBuild.Builder mergeFrom(SubmitBuildRequest.BuildpacksBuild other)
Parameter
Name Description
other SubmitBuildRequest.BuildpacksBuild
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SubmitBuildRequest.BuildpacksBuild.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SubmitBuildRequest.BuildpacksBuild.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SubmitBuildRequest.BuildpacksBuild.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder
Overrides

putAllEnvironmentVariables(Map<String,String> values)

public SubmitBuildRequest.BuildpacksBuild.Builder putAllEnvironmentVariables(Map<String,String> values)

Optional. User-provided build-time environment variables.

map<string, string> environment_variables = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

putEnvironmentVariables(String key, String value)

public SubmitBuildRequest.BuildpacksBuild.Builder putEnvironmentVariables(String key, String value)

Optional. User-provided build-time environment variables.

map<string, string> environment_variables = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

removeEnvironmentVariables(String key)

public SubmitBuildRequest.BuildpacksBuild.Builder removeEnvironmentVariables(String key)

Optional. User-provided build-time environment variables.

map<string, string> environment_variables = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

setBaseImage(String value)

public SubmitBuildRequest.BuildpacksBuild.Builder setBaseImage(String value)

Optional. The base image used to opt into automatic base image updates.

string base_image = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The baseImage to set.

Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

This builder for chaining.

setBaseImageBytes(ByteString value)

public SubmitBuildRequest.BuildpacksBuild.Builder setBaseImageBytes(ByteString value)

Optional. The base image used to opt into automatic base image updates.

string base_image = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for baseImage to set.

Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

This builder for chaining.

setCacheImageUri(String value)

public SubmitBuildRequest.BuildpacksBuild.Builder setCacheImageUri(String value)

Optional. cache_image_uri is the GCR/AR URL where the cache image will be stored. cache_image_uri is optional and omitting it will disable caching. This URL must be stable across builds. It is used to derive a build-specific temporary URL by substituting the tag with the build ID. The build will clean up the temporary image on a best-effort basis.

string cache_image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The cacheImageUri to set.

Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

This builder for chaining.

setCacheImageUriBytes(ByteString value)

public SubmitBuildRequest.BuildpacksBuild.Builder setCacheImageUriBytes(ByteString value)

Optional. cache_image_uri is the GCR/AR URL where the cache image will be stored. cache_image_uri is optional and omitting it will disable caching. This URL must be stable across builds. It is used to derive a build-specific temporary URL by substituting the tag with the build ID. The build will clean up the temporary image on a best-effort basis.

string cache_image_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for cacheImageUri to set.

Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

This builder for chaining.

setEnableAutomaticUpdates(boolean value)

public SubmitBuildRequest.BuildpacksBuild.Builder setEnableAutomaticUpdates(boolean value)

Optional. Whether or not the application container will be enrolled in automatic base image updates. When true, the application will be built on a scratch base image, so the base layers can be appended at run time.

bool enable_automatic_updates = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The enableAutomaticUpdates to set.

Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SubmitBuildRequest.BuildpacksBuild.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder
Overrides

setFunctionTarget(String value)

public SubmitBuildRequest.BuildpacksBuild.Builder setFunctionTarget(String value)

Optional. Name of the function target if the source is a function source. Required for function builds.

string function_target = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The functionTarget to set.

Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

This builder for chaining.

setFunctionTargetBytes(ByteString value)

public SubmitBuildRequest.BuildpacksBuild.Builder setFunctionTargetBytes(ByteString value)

Optional. Name of the function target if the source is a function source. Required for function builds.

string function_target = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for functionTarget to set.

Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SubmitBuildRequest.BuildpacksBuild.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder
Overrides

setRuntime(String value) (deprecated)

public SubmitBuildRequest.BuildpacksBuild.Builder setRuntime(String value)

Deprecated. google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild.runtime is deprecated. See google/cloud/run/v2/build.proto;l=56

The runtime name, e.g. 'go113'. Leave blank for generic builds.

string runtime = 1 [deprecated = true];

Parameter
Name Description
value String

The runtime to set.

Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

This builder for chaining.

setRuntimeBytes(ByteString value) (deprecated)

public SubmitBuildRequest.BuildpacksBuild.Builder setRuntimeBytes(ByteString value)

Deprecated. google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild.runtime is deprecated. See google/cloud/run/v2/build.proto;l=56

The runtime name, e.g. 'go113'. Leave blank for generic builds.

string runtime = 1 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for runtime to set.

Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SubmitBuildRequest.BuildpacksBuild.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder
Overrides