Class Deployment.Builder

  • All Implemented Interfaces:
    DeploymentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Deployment

    public static final class Deployment.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>
    implements DeploymentOrBuilder
     Code and application artifacts used to deploy a version to App Engine.
     
    Protobuf type google.appengine.v1.Deployment
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>
      • clear

        public Deployment.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>
      • getDefaultInstanceForType

        public Deployment getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Deployment build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Deployment buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Deployment.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>
      • setField

        public Deployment.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>
      • clearField

        public Deployment.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>
      • clearOneof

        public Deployment.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>
      • setRepeatedField

        public Deployment.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>
      • addRepeatedField

        public Deployment.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>
      • mergeFrom

        public Deployment.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Deployment.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>
      • mergeFrom

        public Deployment.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Deployment.Builder>
        Throws:
        IOException
      • getFilesCount

        public int getFilesCount()
        Description copied from interface: DeploymentOrBuilder
         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;
        Specified by:
        getFilesCount in interface DeploymentOrBuilder
      • containsFiles

        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;
        Specified by:
        containsFiles in interface DeploymentOrBuilder
      • 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;
        Specified by:
        getFilesMap in interface DeploymentOrBuilder
      • getFilesOrDefault

        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;
        Specified by:
        getFilesOrDefault in interface DeploymentOrBuilder
      • getFilesOrThrow

        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;
        Specified by:
        getFilesOrThrow in interface DeploymentOrBuilder
      • removeFiles

        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;
      • putFiles

        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;
      • putAllFiles

        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;
      • 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;
        Specified by:
        hasContainer in interface DeploymentOrBuilder
        Returns:
        Whether the container field is set.
      • 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;
        Specified by:
        getContainer in interface DeploymentOrBuilder
        Returns:
        The container.
      • setContainer

        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;
      • setContainer

        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;
      • mergeContainer

        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;
      • 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;
      • 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;
      • 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;
        Specified by:
        getContainerOrBuilder in interface DeploymentOrBuilder
      • hasZip

        public boolean hasZip()
         The zip file for this deployment, if this is a zip deployment.
         
        .google.appengine.v1.ZipInfo zip = 3;
        Specified by:
        hasZip in interface DeploymentOrBuilder
        Returns:
        Whether the zip field is set.
      • getZip

        public ZipInfo getZip()
         The zip file for this deployment, if this is a zip deployment.
         
        .google.appengine.v1.ZipInfo zip = 3;
        Specified by:
        getZip in interface DeploymentOrBuilder
        Returns:
        The zip.
      • setZip

        public Deployment.Builder setZip​(ZipInfo value)
         The zip file for this deployment, if this is a zip deployment.
         
        .google.appengine.v1.ZipInfo zip = 3;
      • setZip

        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;
      • mergeZip

        public Deployment.Builder mergeZip​(ZipInfo value)
         The zip file for this deployment, if this is a zip deployment.
         
        .google.appengine.v1.ZipInfo zip = 3;
      • clearZip

        public Deployment.Builder clearZip()
         The zip file for this deployment, if this is a zip deployment.
         
        .google.appengine.v1.ZipInfo zip = 3;
      • getZipBuilder

        public ZipInfo.Builder getZipBuilder()
         The zip file for this deployment, if this is a zip deployment.
         
        .google.appengine.v1.ZipInfo zip = 3;
      • 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;
        Specified by:
        hasCloudBuildOptions in interface DeploymentOrBuilder
        Returns:
        Whether the cloudBuildOptions field is set.
      • 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;
        Specified by:
        getCloudBuildOptions in interface DeploymentOrBuilder
        Returns:
        The cloudBuildOptions.
      • setCloudBuildOptions

        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;
      • setCloudBuildOptions

        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;
      • mergeCloudBuildOptions

        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;
      • 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;
      • 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;
      • 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;
        Specified by:
        getCloudBuildOptionsOrBuilder in interface DeploymentOrBuilder
      • setUnknownFields

        public final Deployment.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>
      • mergeUnknownFields

        public final Deployment.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>