Class Deployment.Builder (2.9.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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

publicDeploymentbuild()
Returns
Type Description

buildPartial()

publicDeploymentbuildPartial()
Returns
Type Description

clear()

publicDeployment.Builderclear()
Returns
Type Description
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

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

clearField(Descriptors.FieldDescriptor field)

publicDeployment.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearFiles()

publicDeployment.BuilderclearFiles()
Returns
Type Description

clearOneof(Descriptors.OneofDescriptor oneof)

publicDeployment.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
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

clone()

publicDeployment.Builderclone()
Returns
Type Description
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

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

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

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

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

getDefaultInstanceForType()

publicDeploymentgetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getFiles()

publicMap<String,FileInfo>getFiles()

Use #getFilesMap() instead.

Returns
Type Description

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

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

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

getMutableFiles()

publicMap<String,FileInfo>getMutableFiles()

Use alternate mutation accessors instead.

Returns
Type Description

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

getZipOrBuilder()

publicZipInfoOrBuildergetZipOrBuilder()

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

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

Returns
Type Description

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
Overrides

internalGetMapField(int number)

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

internalGetMutableMapField(int number)

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

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
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
Returns
Type Description

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
Returns
Type Description

mergeFrom(Deployment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicDeployment.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalDeployment.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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

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

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

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

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
Returns
Type Description

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

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
Returns
Type Description

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalDeployment.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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

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

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.