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()
Returns
Methods
public Deployment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Deployment build()
Returns
public Deployment buildPartial()
Returns
public Deployment.Builder clear()
Returns
Overrides
public Deployment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public Deployment.Builder clearLabels()
Returns
public Deployment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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;
Returns
public Deployment.Builder clearTarget()
Target is the service name used to group related deployments:
- Service name for GAE Flex / Standard.
- Cluster and container name for GKE.
- User-specified string for direct GCE profiling (e.g. Java).
- Job name for Dataflow.
Validation regex:
^a-z?$
.
string target = 2;
Returns
public Deployment.Builder clone()
Returns
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
Returns
public Deployment getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public Map<String,String> getLabels()
Returns
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
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;
Returns
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;
Parameters
Returns
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
Returns
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Returns
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
public String getTarget()
Target is the service name used to group related deployments:
- Service name for GAE Flex / Standard.
- Cluster and container name for GKE.
- User-specified string for direct GCE profiling (e.g. Java).
- Job name for Dataflow.
Validation regex:
^a-z?$
.
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 GAE Flex / Standard.
- Cluster and container name for GKE.
- User-specified string for direct GCE profiling (e.g. Java).
- Job name for Dataflow.
Validation regex:
^a-z?$
.
string target = 2;
Returns
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Deployment.Builder mergeFrom(Deployment other)
Parameter
Returns
public Deployment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public Deployment.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final Deployment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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;
Parameter
Returns
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;
Parameters
Returns
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
Returns
public Deployment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.
|
Returns
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.
|
Returns
public Deployment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public Deployment.Builder setTarget(String value)
Target is the service name used to group related deployments:
- Service name for GAE Flex / Standard.
- Cluster and container name for GKE.
- User-specified string for direct GCE profiling (e.g. Java).
- Job name for Dataflow.
Validation regex:
^a-z?$
.
string target = 2;
Parameter
Name | Description |
value | String
The target to set.
|
Returns
public Deployment.Builder setTargetBytes(ByteString value)
Target is the service name used to group related deployments:
- Service name for GAE Flex / Standard.
- Cluster and container name for GKE.
- User-specified string for direct GCE profiling (e.g. Java).
- Job name for Dataflow.
Validation regex:
^a-z?$
.
string target = 2;
Parameter
Name | Description |
value | ByteString
The bytes for target to set.
|
Returns
public final Deployment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides