Class Deployment.Builder (2.55.0)

public static final class Deployment.Builder extends GeneratedMessageV3.Builder<Deployment.Builder> implements DeploymentOrBuilder

Code and application artifacts used to deploy a version to App Engine.

Protobuf type google.appengine.v1.Deployment

Implements

DeploymentOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Deployment build()
Returns
Type Description
Deployment

buildPartial()

public Deployment buildPartial()
Returns
Type Description
Deployment

clear()

public Deployment.Builder clear()
Returns
Type Description
Deployment.Builder
Overrides

clearCloudBuildOptions()

public Deployment.Builder clearCloudBuildOptions()

Options for any Google Cloud Build builds created as a part of this deployment.

These options will only be used if a new build is created, such as when deploying to the App Engine flexible environment using files or zip.

.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;

Returns
Type Description
Deployment.Builder

clearContainer()

public Deployment.Builder clearContainer()

The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment.

.google.appengine.v1.ContainerInfo container = 2;

Returns
Type Description
Deployment.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFiles()

public Deployment.Builder clearFiles()
Returns
Type Description
Deployment.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearZip()

public Deployment.Builder clearZip()

The zip file for this deployment, if this is a zip deployment.

.google.appengine.v1.ZipInfo zip = 3;

Returns
Type Description
Deployment.Builder

clone()

public Deployment.Builder clone()
Returns
Type Description
Deployment.Builder
Overrides

containsFiles(String key)

public boolean containsFiles(String key)

Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call.

map<string, .google.appengine.v1.FileInfo> files = 1;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCloudBuildOptions()

public CloudBuildOptions getCloudBuildOptions()

Options for any Google Cloud Build builds created as a part of this deployment.

These options will only be used if a new build is created, such as when deploying to the App Engine flexible environment using files or zip.

.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;

Returns
Type Description
CloudBuildOptions

The cloudBuildOptions.

getCloudBuildOptionsBuilder()

public CloudBuildOptions.Builder getCloudBuildOptionsBuilder()

Options for any Google Cloud Build builds created as a part of this deployment.

These options will only be used if a new build is created, such as when deploying to the App Engine flexible environment using files or zip.

.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;

Returns
Type Description
CloudBuildOptions.Builder

getCloudBuildOptionsOrBuilder()

public CloudBuildOptionsOrBuilder getCloudBuildOptionsOrBuilder()

Options for any Google Cloud Build builds created as a part of this deployment.

These options will only be used if a new build is created, such as when deploying to the App Engine flexible environment using files or zip.

.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;

Returns
Type Description
CloudBuildOptionsOrBuilder

getContainer()

public ContainerInfo getContainer()

The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment.

.google.appengine.v1.ContainerInfo container = 2;

Returns
Type Description
ContainerInfo

The container.

getContainerBuilder()

public ContainerInfo.Builder getContainerBuilder()

The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment.

.google.appengine.v1.ContainerInfo container = 2;

Returns
Type Description
ContainerInfo.Builder

getContainerOrBuilder()

public ContainerInfoOrBuilder getContainerOrBuilder()

The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment.

.google.appengine.v1.ContainerInfo container = 2;

Returns
Type Description
ContainerInfoOrBuilder

getDefaultInstanceForType()

public Deployment getDefaultInstanceForType()
Returns
Type Description
Deployment

getDescriptorForType()

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

getFiles() (deprecated)

public Map<String,FileInfo> getFiles()

Use #getFilesMap() instead.

Returns
Type Description
Map<String,FileInfo>

getFilesCount()

public int getFilesCount()

Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call.

map<string, .google.appengine.v1.FileInfo> files = 1;

Returns
Type Description
int

getFilesMap()

public Map<String,FileInfo> getFilesMap()

Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call.

map<string, .google.appengine.v1.FileInfo> files = 1;

Returns
Type Description
Map<String,FileInfo>

getFilesOrDefault(String key, FileInfo defaultValue)

public FileInfo getFilesOrDefault(String key, FileInfo defaultValue)

Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call.

map<string, .google.appengine.v1.FileInfo> files = 1;

Parameters
Name Description
key String
defaultValue FileInfo
Returns
Type Description
FileInfo

getFilesOrThrow(String key)

public FileInfo getFilesOrThrow(String key)

Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call.

map<string, .google.appengine.v1.FileInfo> files = 1;

Parameter
Name Description
key String
Returns
Type Description
FileInfo

getMutableFiles() (deprecated)

public Map<String,FileInfo> getMutableFiles()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,FileInfo>

getZip()

public ZipInfo getZip()

The zip file for this deployment, if this is a zip deployment.

.google.appengine.v1.ZipInfo zip = 3;

Returns
Type Description
ZipInfo

The zip.

getZipBuilder()

public ZipInfo.Builder getZipBuilder()

The zip file for this deployment, if this is a zip deployment.

.google.appengine.v1.ZipInfo zip = 3;

Returns
Type Description
ZipInfo.Builder

getZipOrBuilder()

public ZipInfoOrBuilder getZipOrBuilder()

The zip file for this deployment, if this is a zip deployment.

.google.appengine.v1.ZipInfo zip = 3;

Returns
Type Description
ZipInfoOrBuilder

hasCloudBuildOptions()

public boolean hasCloudBuildOptions()

Options for any Google Cloud Build builds created as a part of this deployment.

These options will only be used if a new build is created, such as when deploying to the App Engine flexible environment using files or zip.

.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;

Returns
Type Description
boolean

Whether the cloudBuildOptions field is set.

hasContainer()

public boolean hasContainer()

The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment.

.google.appengine.v1.ContainerInfo container = 2;

Returns
Type Description
boolean

Whether the container field is set.

hasZip()

public boolean hasZip()

The zip file for this deployment, if this is a zip deployment.

.google.appengine.v1.ZipInfo zip = 3;

Returns
Type Description
boolean

Whether the zip field is set.

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

mergeCloudBuildOptions(CloudBuildOptions value)

public Deployment.Builder mergeCloudBuildOptions(CloudBuildOptions value)

Options for any Google Cloud Build builds created as a part of this deployment.

These options will only be used if a new build is created, such as when deploying to the App Engine flexible environment using files or zip.

.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;

Parameter
Name Description
value CloudBuildOptions
Returns
Type Description
Deployment.Builder

mergeContainer(ContainerInfo value)

public Deployment.Builder mergeContainer(ContainerInfo value)

The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment.

.google.appengine.v1.ContainerInfo container = 2;

Parameter
Name Description
value ContainerInfo
Returns
Type Description
Deployment.Builder

mergeFrom(Deployment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeZip(ZipInfo value)

public Deployment.Builder mergeZip(ZipInfo value)

The zip file for this deployment, if this is a zip deployment.

.google.appengine.v1.ZipInfo zip = 3;

Parameter
Name Description
value ZipInfo
Returns
Type Description
Deployment.Builder

putAllFiles(Map<String,FileInfo> values)

public Deployment.Builder putAllFiles(Map<String,FileInfo> values)

Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call.

map<string, .google.appengine.v1.FileInfo> files = 1;

Parameter
Name Description
values Map<String,FileInfo>
Returns
Type Description
Deployment.Builder

putFiles(String key, FileInfo value)

public Deployment.Builder putFiles(String key, FileInfo value)

Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call.

map<string, .google.appengine.v1.FileInfo> files = 1;

Parameters
Name Description
key String
value FileInfo
Returns
Type Description
Deployment.Builder

putFilesBuilderIfAbsent(String key)

public FileInfo.Builder putFilesBuilderIfAbsent(String key)

Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call.

map<string, .google.appengine.v1.FileInfo> files = 1;

Parameter
Name Description
key String
Returns
Type Description
FileInfo.Builder

removeFiles(String key)

public Deployment.Builder removeFiles(String key)

Manifest of the files stored in Google Cloud Storage that are included as part of this version. All files must be readable using the credentials supplied with this call.

map<string, .google.appengine.v1.FileInfo> files = 1;

Parameter
Name Description
key String
Returns
Type Description
Deployment.Builder

setCloudBuildOptions(CloudBuildOptions value)

public Deployment.Builder setCloudBuildOptions(CloudBuildOptions value)

Options for any Google Cloud Build builds created as a part of this deployment.

These options will only be used if a new build is created, such as when deploying to the App Engine flexible environment using files or zip.

.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;

Parameter
Name Description
value CloudBuildOptions
Returns
Type Description
Deployment.Builder

setCloudBuildOptions(CloudBuildOptions.Builder builderForValue)

public Deployment.Builder setCloudBuildOptions(CloudBuildOptions.Builder builderForValue)

Options for any Google Cloud Build builds created as a part of this deployment.

These options will only be used if a new build is created, such as when deploying to the App Engine flexible environment using files or zip.

.google.appengine.v1.CloudBuildOptions cloud_build_options = 6;

Parameter
Name Description
builderForValue CloudBuildOptions.Builder
Returns
Type Description
Deployment.Builder

setContainer(ContainerInfo value)

public Deployment.Builder setContainer(ContainerInfo value)

The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment.

.google.appengine.v1.ContainerInfo container = 2;

Parameter
Name Description
value ContainerInfo
Returns
Type Description
Deployment.Builder

setContainer(ContainerInfo.Builder builderForValue)

public Deployment.Builder setContainer(ContainerInfo.Builder builderForValue)

The Docker image for the container that runs the version. Only applicable for instances running in the App Engine flexible environment.

.google.appengine.v1.ContainerInfo container = 2;

Parameter
Name Description
builderForValue ContainerInfo.Builder
Returns
Type Description
Deployment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setZip(ZipInfo value)

public Deployment.Builder setZip(ZipInfo value)

The zip file for this deployment, if this is a zip deployment.

.google.appengine.v1.ZipInfo zip = 3;

Parameter
Name Description
value ZipInfo
Returns
Type Description
Deployment.Builder

setZip(ZipInfo.Builder builderForValue)

public Deployment.Builder setZip(ZipInfo.Builder builderForValue)

The zip file for this deployment, if this is a zip deployment.

.google.appengine.v1.ZipInfo zip = 3;

Parameter
Name Description
builderForValue ZipInfo.Builder
Returns
Type Description
Deployment.Builder