Class SubmitBuildRequest.BuildpacksBuild (0.53.0)

public static final class SubmitBuildRequest.BuildpacksBuild extends GeneratedMessageV3 implements SubmitBuildRequest.BuildpacksBuildOrBuilder

Build the source using Buildpacks.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SubmitBuildRequest.BuildpacksBuild

Static Fields

BASE_IMAGE_FIELD_NUMBER

public static final int BASE_IMAGE_FIELD_NUMBER
Field Value
Type Description
int

CACHE_IMAGE_URI_FIELD_NUMBER

public static final int CACHE_IMAGE_URI_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_AUTOMATIC_UPDATES_FIELD_NUMBER

public static final int ENABLE_AUTOMATIC_UPDATES_FIELD_NUMBER
Field Value
Type Description
int

ENVIRONMENT_VARIABLES_FIELD_NUMBER

public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER
Field Value
Type Description
int

FUNCTION_TARGET_FIELD_NUMBER

public static final int FUNCTION_TARGET_FIELD_NUMBER
Field Value
Type Description
int

RUNTIME_FIELD_NUMBER

public static final int RUNTIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SubmitBuildRequest.BuildpacksBuild getDefaultInstance()
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild

getDescriptor()

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

newBuilder()

public static SubmitBuildRequest.BuildpacksBuild.Builder newBuilder()
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

newBuilder(SubmitBuildRequest.BuildpacksBuild prototype)

public static SubmitBuildRequest.BuildpacksBuild.Builder newBuilder(SubmitBuildRequest.BuildpacksBuild prototype)
Parameter
Name Description
prototype SubmitBuildRequest.BuildpacksBuild
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder

parseDelimitedFrom(InputStream input)

public static SubmitBuildRequest.BuildpacksBuild parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SubmitBuildRequest.BuildpacksBuild parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SubmitBuildRequest.BuildpacksBuild parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SubmitBuildRequest.BuildpacksBuild parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SubmitBuildRequest.BuildpacksBuild parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SubmitBuildRequest.BuildpacksBuild parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SubmitBuildRequest.BuildpacksBuild parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SubmitBuildRequest.BuildpacksBuild parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SubmitBuildRequest.BuildpacksBuild parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SubmitBuildRequest.BuildpacksBuild parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SubmitBuildRequest.BuildpacksBuild parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SubmitBuildRequest.BuildpacksBuild parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SubmitBuildRequest.BuildpacksBuild> parser()
Returns
Type Description
Parser<BuildpacksBuild>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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.

getParserForType()

public Parser<SubmitBuildRequest.BuildpacksBuild> getParserForType()
Returns
Type Description
Parser<BuildpacksBuild>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SubmitBuildRequest.BuildpacksBuild.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SubmitBuildRequest.BuildpacksBuild.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException