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| Modifier and Type | Method and Description |
|---|---|
Deployment.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Deployment |
build() |
Deployment |
buildPartial() |
Deployment.Builder |
clear() |
Deployment.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Deployment.Builder |
clearLabels() |
Deployment.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Deployment.Builder |
clearProjectId()
Project ID is the ID of a cloud project.
|
Deployment.Builder |
clearTarget()
Target is the service name used to group related deployments:
* Service name for App Engine Flex / Standard
|
Deployment.Builder |
clone() |
boolean |
containsLabels(String key)
Labels identify the deployment within the user universe and same target.
|
Deployment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Labels identify the deployment within the user universe and same target.
|
Map<String,String> |
getLabelsMap()
Labels identify the deployment within the user universe and same target.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Labels identify the deployment within the user universe and same target.
|
String |
getLabelsOrThrow(String key)
Labels identify the deployment within the user universe and same target.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
String |
getProjectId()
Project ID is the ID of a cloud project.
|
com.google.protobuf.ByteString |
getProjectIdBytes()
Project ID is the ID of a cloud project.
|
String |
getTarget()
Target is the service name used to group related deployments:
* Service name for App Engine Flex / Standard
|
com.google.protobuf.ByteString |
getTargetBytes()
Target is the service name used to group related deployments:
* Service name for App Engine Flex / Standard
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
Deployment.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Deployment.Builder |
mergeFrom(Deployment other) |
Deployment.Builder |
mergeFrom(com.google.protobuf.Message other) |
Deployment.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Deployment.Builder |
putAllLabels(Map<String,String> values)
Labels identify the deployment within the user universe and same target.
|
Deployment.Builder |
putLabels(String key,
String value)
Labels identify the deployment within the user universe and same target.
|
Deployment.Builder |
removeLabels(String key)
Labels identify the deployment within the user universe and same target.
|
Deployment.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Deployment.Builder |
setProjectId(String value)
Project ID is the ID of a cloud project.
|
Deployment.Builder |
setProjectIdBytes(com.google.protobuf.ByteString value)
Project ID is the ID of a cloud project.
|
Deployment.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Deployment.Builder |
setTarget(String value)
Target is the service name used to group related deployments:
* Service name for App Engine Flex / Standard
|
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
|
Deployment.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>public Deployment.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>public Deployment getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Deployment build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Deployment buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Deployment.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>public Deployment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>public Deployment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>public Deployment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>public Deployment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>public Deployment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>public Deployment.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Deployment.Builder>public Deployment.Builder mergeFrom(Deployment other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>public Deployment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Deployment.Builder>IOExceptionpublic 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;getProjectId in interface DeploymentOrBuilderpublic 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;getProjectIdBytes in interface DeploymentOrBuilderpublic 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;value - The projectId to set.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;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;value - The bytes for projectId to set.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;getTarget in interface DeploymentOrBuilderpublic 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;getTargetBytes in interface DeploymentOrBuilderpublic 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;value - The target to set.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;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;value - The bytes for target to set.public int getLabelsCount()
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;getLabelsCount in interface DeploymentOrBuilderpublic 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;containsLabels in interface DeploymentOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface DeploymentOrBuilderpublic 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;getLabelsMap in interface DeploymentOrBuilderpublic 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;getLabelsOrDefault in interface DeploymentOrBuilderpublic 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;getLabelsOrThrow in interface DeploymentOrBuilderpublic Deployment.Builder clearLabels()
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;@Deprecated public Map<String,String> getMutableLabels()
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;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;public final Deployment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>public final Deployment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Deployment.Builder>Copyright © 2025 Google LLC. All rights reserved.