Interface DeploymentOrBuilder (2.49.0)

public interface DeploymentOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract 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
Returns
Type Description
boolean

getLabels() (deprecated)

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public abstract 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

getLabelsMap()

public abstract 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
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract 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
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public abstract 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
Returns
Type Description
String

getProjectId()

public abstract 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.

getProjectIdBytes()

public abstract 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.

getTarget()

public abstract 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.

getTargetBytes()

public abstract 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.