public final class Deployment extends GeneratedMessageV3 implements DeploymentOrBuilder
Deployment contains the deployment identification information.
Protobuf type google.devtools.cloudprofiler.v2.Deployment
Static Fields
public static final int LABELS_FIELD_NUMBER
Field Value
public static final int PROJECT_ID_FIELD_NUMBER
Field Value
public static final int TARGET_FIELD_NUMBER
Field Value
Static Methods
public static Deployment getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static Deployment.Builder newBuilder()
Returns
public static Deployment.Builder newBuilder(Deployment prototype)
Parameter
Returns
public static Deployment parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Deployment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Deployment parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static Deployment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Deployment parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static Deployment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Deployment parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Deployment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Deployment parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Deployment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Deployment parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static Deployment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<Deployment> parser()
Returns
Methods
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 boolean equals(Object obj)
Parameter
Returns
Overrides
public Deployment getDefaultInstanceForType()
Returns
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 Parser<Deployment> getParserForType()
Returns
Overrides
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 int getSerializedSize()
Returns
Overrides
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
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Deployment.Builder newBuilderForType()
Returns
protected Deployment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public Deployment.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions