Class Deployment.Builder (2.4.0)

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

Implements

DeploymentOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Deployment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Deployment.Builder
Overrides

build()

public Deployment build()
Returns
TypeDescription
Deployment

buildPartial()

public Deployment buildPartial()
Returns
TypeDescription
Deployment

clear()

public Deployment.Builder clear()
Returns
TypeDescription
Deployment.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Deployment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Deployment.Builder
Overrides

clearLabels()

public Deployment.Builder clearLabels()
Returns
TypeDescription
Deployment.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Deployment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Deployment.Builder
Overrides

clearProjectId()

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
TypeDescription
Deployment.Builder

This builder for chaining.

clearTarget()

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
TypeDescription
Deployment.Builder

This builder for chaining.

clone()

public Deployment.Builder clone()
Returns
TypeDescription
Deployment.Builder
Overrides

containsLabels(String key)

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
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public Deployment getDefaultInstanceForType()
Returns
TypeDescription
Deployment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

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
TypeDescription
int

getLabelsMap()

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
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

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
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getProjectId()

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
TypeDescription
String

The projectId.

getProjectIdBytes()

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
TypeDescription
ByteString

The bytes for projectId.

getTarget()

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
TypeDescription
String

The target.

getTargetBytes()

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
TypeDescription
ByteString

The bytes for target.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Deployment other)

public Deployment.Builder mergeFrom(Deployment other)
Parameter
NameDescription
otherDeployment
Returns
TypeDescription
Deployment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Deployment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Deployment.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Deployment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Deployment.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Deployment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Deployment.Builder
Overrides

putAllLabels(Map<String,String> values)

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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Deployment.Builder

putLabels(String key, String value)

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
NameDescription
keyString
valueString
Returns
TypeDescription
Deployment.Builder

removeLabels(String key)

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
NameDescription
keyString
Returns
TypeDescription
Deployment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Deployment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Deployment.Builder
Overrides

setProjectId(String value)

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
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
Deployment.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

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
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
Deployment.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Deployment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Deployment.Builder
Overrides

setTarget(String value)

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
NameDescription
valueString

The target to set.

Returns
TypeDescription
Deployment.Builder

This builder for chaining.

setTargetBytes(ByteString value)

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
NameDescription
valueByteString

The bytes for target to set.

Returns
TypeDescription
Deployment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Deployment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Deployment.Builder
Overrides