public static final class Deployment.Builder extends GeneratedMessageV3.Builder<Deployment.Builder> implements DeploymentOrBuilder
Deployment contains the deployment identification information.
Protobuf type google.devtools.cloudprofiler.v2.Deployment
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
public static final Descriptors.Descriptor getDescriptor()
Methods
public Deployment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Deployment build()
public Deployment buildPartial()
public Deployment.Builder clear()
Overrides
public Deployment.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public Deployment.Builder clearLabels()
public Deployment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public Deployment.Builder clearProjectId()
Project ID is the ID of a cloud project.
Validation regex: ^a-z{4,61}[a-z0-9]$
.
string project_id = 1;
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?$
.
string target = 2;
public Deployment.Builder clone()
Overrides
public boolean containsLabels(String key)
Labels identify the deployment within the user universe and same target.
Validation regex for label names: ^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;
Parameter |
---|
Name | Description |
key | String
|
public Deployment getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public Map<String,String> getLabels()
public int getLabelsCount()
Labels identify the deployment within the user universe and same target.
Validation regex for label names: ^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;
Returns |
---|
Type | Description |
int | |
public Map<String,String> getLabelsMap()
Labels identify the deployment within the user universe and same target.
Validation regex for label names: ^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 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?$
.
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 String getLabelsOrThrow(String key)
Labels identify the deployment within the user universe and same target.
Validation regex for label names: ^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;
Parameter |
---|
Name | Description |
key | String
|
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
public String getProjectId()
Project ID is the ID of a cloud project.
Validation regex: ^a-z{4,61}[a-z0-9]$
.
string project_id = 1;
Returns |
---|
Type | Description |
String | The projectId.
|
public ByteString getProjectIdBytes()
Project ID is the ID of a cloud project.
Validation regex: ^a-z{4,61}[a-z0-9]$
.
string project_id = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for projectId.
|
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?$
.
string target = 2;
Returns |
---|
Type | Description |
String | The target.
|
public 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?$
.
string target = 2;
Returns |
---|
Type | Description |
ByteString | The bytes for target.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
public final boolean isInitialized()
Overrides
public Deployment.Builder mergeFrom(Deployment other)
public Deployment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Deployment.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final Deployment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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?$
.
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 putLabels(String key, String value)
Labels identify the deployment within the user universe and same target.
Validation regex for label names: ^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 removeLabels(String key)
Labels identify the deployment within the user universe and same target.
Validation regex for label names: ^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;
Parameter |
---|
Name | Description |
key | String
|
public Deployment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Deployment.Builder setProjectId(String value)
Project ID is the ID of a cloud project.
Validation regex: ^a-z{4,61}[a-z0-9]$
.
string project_id = 1;
Parameter |
---|
Name | Description |
value | String
The projectId to set.
|
public Deployment.Builder setProjectIdBytes(ByteString value)
Project ID is the ID of a cloud project.
Validation regex: ^a-z{4,61}[a-z0-9]$
.
string project_id = 1;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for projectId to set.
|
public Deployment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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?$
.
string target = 2;
Parameter |
---|
Name | Description |
value | String
The target to set.
|
public Deployment.Builder setTargetBytes(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?$
.
string target = 2;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for target to set.
|
public final Deployment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides