(::Google::Protobuf::Map{::String => ::String}) — Labels identify the deployment within the user universe and same target.
Validation regex for label names: ^[a-z0-9]([a-z0-9-]{0,61}[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".
value (::Google::Protobuf::Map{::String => ::String}) — Labels identify the deployment within the user universe and same target.
Validation regex for label names: ^[a-z0-9]([a-z0-9-]{0,61}[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".
Returns
(::Google::Protobuf::Map{::String => ::String}) — Labels identify the deployment within the user universe and same target.
Validation regex for label names: ^[a-z0-9]([a-z0-9-]{0,61}[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".
#project_id
defproject_id()->::String
Returns
(::String) — Project ID is the ID of a cloud project.
Validation regex: ^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$.
#project_id=
defproject_id=(value)->::String
Parameter
value (::String) — Project ID is the ID of a cloud project.
Validation regex: ^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$.
Returns
(::String) — Project ID is the ID of a cloud project.
Validation regex: ^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$.
#target
deftarget()->::String
Returns
(::String) —
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]([-a-z0-9_.]{0,253}[a-z0-9])?$.
#target=
deftarget=(value)->::String
Parameter
value (::String) —
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]([-a-z0-9_.]{0,253}[a-z0-9])?$.
Returns
(::String) —
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]([-a-z0-9_.]{0,253}[a-z0-9])?$.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Profiler V2 API - Class Google::Cloud::Profiler::V2::Deployment (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-profiler-v2/latest/Google-Cloud-Profiler-V2-Deployment)\n- [1.2.1](/ruby/docs/reference/google-cloud-profiler-v2/1.2.1/Google-Cloud-Profiler-V2-Deployment)\n- [1.1.0](/ruby/docs/reference/google-cloud-profiler-v2/1.1.0/Google-Cloud-Profiler-V2-Deployment)\n- [1.0.1](/ruby/docs/reference/google-cloud-profiler-v2/1.0.1/Google-Cloud-Profiler-V2-Deployment)\n- [0.10.1](/ruby/docs/reference/google-cloud-profiler-v2/0.10.1/Google-Cloud-Profiler-V2-Deployment)\n- [0.9.2](/ruby/docs/reference/google-cloud-profiler-v2/0.9.2/Google-Cloud-Profiler-V2-Deployment)\n- [0.8.0](/ruby/docs/reference/google-cloud-profiler-v2/0.8.0/Google-Cloud-Profiler-V2-Deployment)\n- [0.7.0](/ruby/docs/reference/google-cloud-profiler-v2/0.7.0/Google-Cloud-Profiler-V2-Deployment)\n- [0.6.1](/ruby/docs/reference/google-cloud-profiler-v2/0.6.1/Google-Cloud-Profiler-V2-Deployment)\n- [0.5.0](/ruby/docs/reference/google-cloud-profiler-v2/0.5.0/Google-Cloud-Profiler-V2-Deployment)\n- [0.4.0](/ruby/docs/reference/google-cloud-profiler-v2/0.4.0/Google-Cloud-Profiler-V2-Deployment)\n- [0.3.0](/ruby/docs/reference/google-cloud-profiler-v2/0.3.0/Google-Cloud-Profiler-V2-Deployment)\n- [0.2.5](/ruby/docs/reference/google-cloud-profiler-v2/0.2.5/Google-Cloud-Profiler-V2-Deployment) \nReference documentation and code samples for the Cloud Profiler V2 API class Google::Cloud::Profiler::V2::Deployment.\n\nDeployment contains the deployment identification information. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #labels\n\n def labels() -\u003e ::Google::Protobuf::Map{::String =\u003e ::String}\n\n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- Labels identify the deployment within the user universe and same target. Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`. Value for an individual label must be \\\u003c= 512 bytes, the total size of all label names and values must be \\\u003c= 1024 bytes.\n\n\n Label named \"language\" can be used to record the programming language of\n the profiled deployment. The standard choices for the value include \"java\",\n \"go\", \"python\", \"ruby\", \"nodejs\", \"php\", \"dotnet\".\n\n For deployments running on Google Cloud Platform, \"zone\" or \"region\" label\n should be present describing the deployment location. An example of a zone\n is \"us-central1-a\", an example of a region is \"us-central1\" or\n \"us-central\".\n\n### #labels=\n\n def labels=(value) -\u003e ::Google::Protobuf::Map{::String =\u003e ::String}\n\n**Parameter**\n\n- **value** (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- Labels identify the deployment within the user universe and same target. Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`. Value for an individual label must be \\\u003c= 512 bytes, the total size of all label names and values must be \\\u003c= 1024 bytes.\n\n\n Label named \"language\" can be used to record the programming language of\n the profiled deployment. The standard choices for the value include \"java\",\n \"go\", \"python\", \"ruby\", \"nodejs\", \"php\", \"dotnet\".\n\n For deployments running on Google Cloud Platform, \"zone\" or \"region\" label\n should be present describing the deployment location. An example of a zone\n is \"us-central1-a\", an example of a region is \"us-central1\" or\n\"us-central\". \n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- Labels identify the deployment within the user universe and same target. Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`. Value for an individual label must be \\\u003c= 512 bytes, the total size of all label names and values must be \\\u003c= 1024 bytes.\n\n\n Label named \"language\" can be used to record the programming language of\n the profiled deployment. The standard choices for the value include \"java\",\n \"go\", \"python\", \"ruby\", \"nodejs\", \"php\", \"dotnet\".\n\n For deployments running on Google Cloud Platform, \"zone\" or \"region\" label\n should be present describing the deployment location. An example of a zone\n is \"us-central1-a\", an example of a region is \"us-central1\" or\n \"us-central\".\n\n### #project_id\n\n def project_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Project ID is the ID of a cloud project. Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.\n\n### #project_id=\n\n def project_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Project ID is the ID of a cloud project. Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`. \n**Returns**\n\n- (::String) --- Project ID is the ID of a cloud project. Validation regex: `^[a-z][-a-z0-9:.]{4,61}[a-z0-9]$`.\n\n### #target\n\n def target() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Target is the service name used to group related deployments:\n\n - Service name for App Engine Flex / Standard.\n - Cluster and container name for GKE.\n - User-specified string for direct Compute Engine profiling (e.g. Java).\n - Job name for Dataflow. Validation regex: `^[a-z0-9]([-a-z0-9_.]{0,253}[a-z0-9])?$`.\n\n### #target=\n\n def target=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) ---\n\n Target is the service name used to group related deployments:\n - Service name for App Engine Flex / Standard.\n - Cluster and container name for GKE.\n - User-specified string for direct Compute Engine profiling (e.g. Java).\n- Job name for Dataflow. Validation regex: `^[a-z0-9]([-a-z0-9_.]{0,253}[a-z0-9])?$`. \n**Returns**\n\n- (::String) --- Target is the service name used to group related deployments:\n\n - Service name for App Engine Flex / Standard.\n - Cluster and container name for GKE.\n - User-specified string for direct Compute Engine profiling (e.g. Java).\n - Job name for Dataflow. Validation regex: `^[a-z0-9]([-a-z0-9_.]{0,253}[a-z0-9])?$`."]]