Class Deployment.Builder (2.24.0)

publicstaticfinalclass Deployment.BuilderextendsGeneratedMessageV3.Builder<Deployment.Builder>implementsDeploymentOrBuilder

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

Protobuf type google.appengine.v1.Deployment

Implements

DeploymentOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicDeployment.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Deployment.Builder
Overrides

build()

publicDeploymentbuild()
Returns
Type Description
Deployment

buildPartial()

publicDeploymentbuildPartial()
Returns
Type Description
Deployment

clear()

publicDeployment.Builderclear()
Returns
Type Description
Deployment.Builder
Overrides

clearCloudBuildOptions()

publicDeployment.BuilderclearCloudBuildOptions()

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()

publicDeployment.BuilderclearContainer()

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)

publicDeployment.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Deployment.Builder
Overrides

clearFiles()

publicDeployment.BuilderclearFiles()
Returns
Type Description
Deployment.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

publicDeployment.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Deployment.Builder
Overrides

clearZip()

publicDeployment.BuilderclearZip()

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

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

Returns
Type Description
Deployment.Builder

clone()

publicDeployment.Builderclone()
Returns
Type Description
Deployment.Builder
Overrides

containsFiles(String key)

publicbooleancontainsFiles(Stringkey)

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()

publicCloudBuildOptionsgetCloudBuildOptions()

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()

publicCloudBuildOptions.BuildergetCloudBuildOptionsBuilder()

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()

publicCloudBuildOptionsOrBuildergetCloudBuildOptionsOrBuilder()

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()

publicContainerInfogetContainer()

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()

publicContainerInfo.BuildergetContainerBuilder()

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()

publicContainerInfoOrBuildergetContainerOrBuilder()

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()

publicDeploymentgetDefaultInstanceForType()
Returns
Type Description
Deployment

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFiles()

publicMap<String,FileInfo>getFiles()

Use #getFilesMap() instead.

Returns
Type Description
Map<String,FileInfo>

getFilesCount()

publicintgetFilesCount()

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()

publicMap<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)

publicFileInfogetFilesOrDefault(Stringkey,FileInfodefaultValue)

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)

publicFileInfogetFilesOrThrow(Stringkey)

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()

publicMap<String,FileInfo>getMutableFiles()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,FileInfo>

getZip()

publicZipInfogetZip()

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()

publicZipInfo.BuildergetZipBuilder()

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

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

Returns
Type Description
ZipInfo.Builder

getZipOrBuilder()

publicZipInfoOrBuildergetZipOrBuilder()

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

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

Returns
Type Description
ZipInfoOrBuilder

hasCloudBuildOptions()

publicbooleanhasCloudBuildOptions()

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()

publicbooleanhasContainer()

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()

publicbooleanhasZip()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapField(int number)

protectedMapFieldinternalGetMapField(intnumber)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protectedMapFieldinternalGetMutableMapField(intnumber)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeCloudBuildOptions(CloudBuildOptions value)

publicDeployment.BuildermergeCloudBuildOptions(CloudBuildOptionsvalue)

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)

publicDeployment.BuildermergeContainer(ContainerInfovalue)

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)

publicDeployment.BuildermergeFrom(Deploymentother)
Parameter
Name Description
other Deployment
Returns
Type Description
Deployment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicDeployment.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Deployment.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicDeployment.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Deployment.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalDeployment.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Deployment.Builder
Overrides

mergeZip(ZipInfo value)

publicDeployment.BuildermergeZip(ZipInfovalue)

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)

publicDeployment.BuilderputAllFiles(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)

publicDeployment.BuilderputFiles(Stringkey,FileInfovalue)

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

removeFiles(String key)

publicDeployment.BuilderremoveFiles(Stringkey)

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)

publicDeployment.BuildersetCloudBuildOptions(CloudBuildOptionsvalue)

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)

publicDeployment.BuildersetCloudBuildOptions(CloudBuildOptions.BuilderbuilderForValue)

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)

publicDeployment.BuildersetContainer(ContainerInfovalue)

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)

publicDeployment.BuildersetContainer(ContainerInfo.BuilderbuilderForValue)

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)

publicDeployment.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Deployment.Builder
Overrides

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

publicDeployment.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Deployment.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalDeployment.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Deployment.Builder
Overrides

setZip(ZipInfo value)

publicDeployment.BuildersetZip(ZipInfovalue)

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)

publicDeployment.BuildersetZip(ZipInfo.BuilderbuilderForValue)

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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.