Class Deployment.Builder (2.36.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Deployment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Deployment.Builder
Overrides

build()

public Deployment build()
Returns
TypeDescription
Deployment

buildPartial()

public Deployment buildPartial()
Returns
TypeDescription
Deployment

clear()

public Deployment.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Deployment.Builder

clearField(Descriptors.FieldDescriptor field)

public Deployment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Deployment.Builder
Overrides

clearFiles()

public Deployment.Builder clearFiles()
Returns
TypeDescription
Deployment.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Deployment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Deployment.Builder

clone()

public Deployment.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ContainerInfoOrBuilder

getDefaultInstanceForType()

public Deployment getDefaultInstanceForType()
Returns
TypeDescription
Deployment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFiles() (deprecated)

public Map<String,FileInfo> getFiles()

Use #getFilesMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueFileInfo
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
FileInfo

getMutableFiles() (deprecated)

public Map<String,FileInfo> getMutableFiles()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the zip field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCloudBuildOptions
Returns
TypeDescription
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
NameDescription
valueContainerInfo
Returns
TypeDescription
Deployment.Builder

mergeFrom(Deployment other)

public Deployment.Builder mergeFrom(Deployment other)
Parameter
NameDescription
otherDeployment
Returns
TypeDescription
Deployment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Deployment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Deployment.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Deployment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Deployment.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Deployment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueZipInfo
Returns
TypeDescription
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
NameDescription
valuesMap<String,FileInfo>
Returns
TypeDescription
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
NameDescription
keyString
valueFileInfo
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueCloudBuildOptions
Returns
TypeDescription
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
NameDescription
builderForValueCloudBuildOptions.Builder
Returns
TypeDescription
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
NameDescription
valueContainerInfo
Returns
TypeDescription
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
NameDescription
builderForValueContainerInfo.Builder
Returns
TypeDescription
Deployment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Deployment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Deployment.Builder
Overrides

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

public Deployment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Deployment.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Deployment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueZipInfo
Returns
TypeDescription
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
NameDescription
builderForValueZipInfo.Builder
Returns
TypeDescription
Deployment.Builder