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
     Deployment contains the deployment identification information.
     
    Protobuf type google.devtools.cloudprofiler.v2.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
      • getProjectId

        public String getProjectId()
         Project ID is the ID of a cloud project.
         Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
         
        string project_id = 1;
        Specified by:
        getProjectId in interface DeploymentOrBuilder
        Returns:
        The projectId.
      • getProjectIdBytes

        public com.google.protobuf.ByteString getProjectIdBytes()
         Project ID is the ID of a cloud project.
         Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
         
        string project_id = 1;
        Specified by:
        getProjectIdBytes in interface DeploymentOrBuilder
        Returns:
        The bytes for projectId.
      • setProjectId

        public Deployment.Builder setProjectId​(String value)
         Project ID is the ID of a cloud project.
         Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
         
        string project_id = 1;
        Parameters:
        value - The projectId to set.
        Returns:
        This builder for chaining.
      • clearProjectId

        public Deployment.Builder clearProjectId()
         Project ID is the ID of a cloud project.
         Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
         
        string project_id = 1;
        Returns:
        This builder for chaining.
      • setProjectIdBytes

        public Deployment.Builder setProjectIdBytes​(com.google.protobuf.ByteString value)
         Project ID is the ID of a cloud project.
         Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.
         
        string project_id = 1;
        Parameters:
        value - The bytes for projectId to set.
        Returns:
        This builder for chaining.
      • getTarget

        public String getTarget()
         Target is the service name used to group related deployments:
         * Service name for App Engine Flex / Standard.
         * Cluster and container name for GKE.
         * User-specified string for direct Compute Engine profiling (e.g. Java).
         * Job name for Dataflow.
         Validation regex: `^[a-z0-9]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
         
        string target = 2;
        Specified by:
        getTarget in interface DeploymentOrBuilder
        Returns:
        The target.
      • getTargetBytes

        public com.google.protobuf.ByteString getTargetBytes()
         Target is the service name used to group related deployments:
         * Service name for App Engine Flex / Standard.
         * Cluster and container name for GKE.
         * User-specified string for direct Compute Engine profiling (e.g. Java).
         * Job name for Dataflow.
         Validation regex: `^[a-z0-9]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
         
        string target = 2;
        Specified by:
        getTargetBytes in interface DeploymentOrBuilder
        Returns:
        The bytes for target.
      • setTarget

        public Deployment.Builder setTarget​(String value)
         Target is the service name used to group related deployments:
         * Service name for App Engine Flex / Standard.
         * Cluster and container name for GKE.
         * User-specified string for direct Compute Engine profiling (e.g. Java).
         * Job name for Dataflow.
         Validation regex: `^[a-z0-9]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
         
        string target = 2;
        Parameters:
        value - The target to set.
        Returns:
        This builder for chaining.
      • clearTarget

        public Deployment.Builder clearTarget()
         Target is the service name used to group related deployments:
         * Service name for App Engine Flex / Standard.
         * Cluster and container name for GKE.
         * User-specified string for direct Compute Engine profiling (e.g. Java).
         * Job name for Dataflow.
         Validation regex: `^[a-z0-9]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
         
        string target = 2;
        Returns:
        This builder for chaining.
      • setTargetBytes

        public Deployment.Builder setTargetBytes​(com.google.protobuf.ByteString value)
         Target is the service name used to group related deployments:
         * Service name for App Engine Flex / Standard.
         * Cluster and container name for GKE.
         * User-specified string for direct Compute Engine profiling (e.g. Java).
         * Job name for Dataflow.
         Validation regex: `^[a-z0-9]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
         
        string target = 2;
        Parameters:
        value - The bytes for target to set.
        Returns:
        This builder for chaining.
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: DeploymentOrBuilder
         Labels identify the deployment within the user universe and same target.
         Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
         Value for an individual label must be <= 512 bytes, the total
         size of all label names and values must be <= 1024 bytes.
        
         Label named "language" can be used to record the programming language of
         the profiled deployment. The standard choices for the value include "java",
         "go", "python", "ruby", "nodejs", "php", "dotnet".
        
         For deployments running on Google Cloud Platform, "zone" or "region" label
         should be present describing the deployment location. An example of a zone
         is "us-central1-a", an example of a region is "us-central1" or
         "us-central".
         
        map<string, string> labels = 3;
        Specified by:
        getLabelsCount in interface DeploymentOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Labels identify the deployment within the user universe and same target.
         Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
         Value for an individual label must be <= 512 bytes, the total
         size of all label names and values must be <= 1024 bytes.
        
         Label named "language" can be used to record the programming language of
         the profiled deployment. The standard choices for the value include "java",
         "go", "python", "ruby", "nodejs", "php", "dotnet".
        
         For deployments running on Google Cloud Platform, "zone" or "region" label
         should be present describing the deployment location. An example of a zone
         is "us-central1-a", an example of a region is "us-central1" or
         "us-central".
         
        map<string, string> labels = 3;
        Specified by:
        containsLabels in interface DeploymentOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         Labels identify the deployment within the user universe and same target.
         Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
         Value for an individual label must be <= 512 bytes, the total
         size of all label names and values must be <= 1024 bytes.
        
         Label named "language" can be used to record the programming language of
         the profiled deployment. The standard choices for the value include "java",
         "go", "python", "ruby", "nodejs", "php", "dotnet".
        
         For deployments running on Google Cloud Platform, "zone" or "region" label
         should be present describing the deployment location. An example of a zone
         is "us-central1-a", an example of a region is "us-central1" or
         "us-central".
         
        map<string, string> labels = 3;
        Specified by:
        getLabelsMap in interface DeploymentOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         Labels identify the deployment within the user universe and same target.
         Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
         Value for an individual label must be <= 512 bytes, the total
         size of all label names and values must be <= 1024 bytes.
        
         Label named "language" can be used to record the programming language of
         the profiled deployment. The standard choices for the value include "java",
         "go", "python", "ruby", "nodejs", "php", "dotnet".
        
         For deployments running on Google Cloud Platform, "zone" or "region" label
         should be present describing the deployment location. An example of a zone
         is "us-central1-a", an example of a region is "us-central1" or
         "us-central".
         
        map<string, string> labels = 3;
        Specified by:
        getLabelsOrDefault in interface DeploymentOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         Labels identify the deployment within the user universe and same target.
         Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
         Value for an individual label must be <= 512 bytes, the total
         size of all label names and values must be <= 1024 bytes.
        
         Label named "language" can be used to record the programming language of
         the profiled deployment. The standard choices for the value include "java",
         "go", "python", "ruby", "nodejs", "php", "dotnet".
        
         For deployments running on Google Cloud Platform, "zone" or "region" label
         should be present describing the deployment location. An example of a zone
         is "us-central1-a", an example of a region is "us-central1" or
         "us-central".
         
        map<string, string> labels = 3;
        Specified by:
        getLabelsOrThrow in interface DeploymentOrBuilder
      • removeLabels

        public Deployment.Builder removeLabels​(String key)
         Labels identify the deployment within the user universe and same target.
         Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
         Value for an individual label must be <= 512 bytes, the total
         size of all label names and values must be <= 1024 bytes.
        
         Label named "language" can be used to record the programming language of
         the profiled deployment. The standard choices for the value include "java",
         "go", "python", "ruby", "nodejs", "php", "dotnet".
        
         For deployments running on Google Cloud Platform, "zone" or "region" label
         should be present describing the deployment location. An example of a zone
         is "us-central1-a", an example of a region is "us-central1" or
         "us-central".
         
        map<string, string> labels = 3;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public Deployment.Builder putLabels​(String key,
                                            String value)
         Labels identify the deployment within the user universe and same target.
         Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
         Value for an individual label must be <= 512 bytes, the total
         size of all label names and values must be <= 1024 bytes.
        
         Label named "language" can be used to record the programming language of
         the profiled deployment. The standard choices for the value include "java",
         "go", "python", "ruby", "nodejs", "php", "dotnet".
        
         For deployments running on Google Cloud Platform, "zone" or "region" label
         should be present describing the deployment location. An example of a zone
         is "us-central1-a", an example of a region is "us-central1" or
         "us-central".
         
        map<string, string> labels = 3;
      • putAllLabels

        public Deployment.Builder putAllLabels​(Map<String,​String> values)
         Labels identify the deployment within the user universe and same target.
         Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
         Value for an individual label must be <= 512 bytes, the total
         size of all label names and values must be <= 1024 bytes.
        
         Label named "language" can be used to record the programming language of
         the profiled deployment. The standard choices for the value include "java",
         "go", "python", "ruby", "nodejs", "php", "dotnet".
        
         For deployments running on Google Cloud Platform, "zone" or "region" label
         should be present describing the deployment location. An example of a zone
         is "us-central1-a", an example of a region is "us-central1" or
         "us-central".
         
        map<string, string> labels = 3;
      • 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>