NAME
Google::Dataflow::V1beta3::Environment - Compiled Protocol Buffers messages for google/dataflow/v1beta3/environment.proto
SYNOPSIS
use Google::Dataflow::V1beta3::Environment;
my $msg = Google::Dataflow::V1beta3::Environment::Environment->new({
temp_storage_prefix => $temp_storage_prefix,
cluster_manager_api_service => $cluster_manager_api_service,
experiments => $experiments,
service_options => $service_options,
});
# Read or update a field
my $val = $msg->temp_storage_prefix();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Dataflow::V1beta3::Environment::Environment->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/dataflow/v1beta3/environment.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Dataflow::V1beta3::Environment::Environment
Describes the environment in which a Dataflow Job runs.
Inherits from Protobuf::Message.
Accessors
$msg->temp_storage_prefix()/$msg->temp_storage_prefix($value)Type:
StringThe prefix of the resources the system should use for temporary storage. The system will append the suffix "/temp-{JOBNAME} to this resource prefix, where {JOBNAME} is the value of the job_name field. The resulting bucket and object prefix is used as the prefix of the resources used to store temporary data needed during the job execution. NOTE: This will override the value in taskrunner_settings. The supported resource type is:
Google Cloud Storage:
storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}$msg->cluster_manager_api_service()/$msg->cluster_manager_api_service($value)Type:
StringThe type of cluster manager API to use. If unknown or unspecified, the service will attempt to choose a reasonable default. This should be in the form of the API service name, e.g. "compute.googleapis.com".
$msg->experiments()/$msg->experiments($value)Type:
StringThe list of experiments to enable. This field should be used for SDK related experiments and not for service related experiments. The proper field for service related experiments is service_options.
$msg->service_options()/$msg->service_options($value)Type:
StringOptional. The list of service options to enable. This field should be used for service related experiments only. These experiments, when graduating to GA, should be replaced by dedicated fields or become default (i.e. always on).
$msg->service_kms_key_name()/$msg->service_kms_key_name($value)Type:
StringOptional. If set, contains the Cloud KMS key identifier used to encrypt data at rest, AKA a Customer Managed Encryption Key (CMEK).
Format: projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY
$msg->worker_pools()/$msg->worker_pools($value)Type:
Message(Google::Dataflow::V1beta3::Environment::WorkerPool)The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.
$msg->user_agent()/$msg->user_agent($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. A description of the process that generated the request.
$msg->version()/$msg->version($value)Type:
Message(Google::Protobuf::Struct::Struct)A structure describing which components and their versions of the service are required in order to run the job.
$msg->dataset()/$msg->dataset($value)Type:
StringOptional. The dataset for the current project where various workflow related tables are stored.
The supported resource type is:
Google BigQuery: bigquery.googleapis.com/{dataset}
$msg->sdk_pipeline_options()/$msg->sdk_pipeline_options($value)Type:
Message(Google::Protobuf::Struct::Struct)The Cloud Dataflow SDK pipeline options specified by the user. These options are passed through the service and are used to recreate the SDK pipeline options on the worker in a language agnostic and platform independent way.
$msg->internal_experiments()/$msg->internal_experiments($value)Type:
Message(Google::Protobuf::Any::Any)Experimental settings.
$msg->service_account_email()/$msg->service_account_email($value)Type:
StringOptional. Identity to run virtual machines as. Defaults to the default account.
$msg->flex_resource_scheduling_goal()/$msg->flex_resource_scheduling_goal($value)Type:
Enum(Google::Dataflow::V1beta3::FlexResourceSchedulingGoal)Optional. Which Flexible Resource Scheduling mode to run in.
$msg->worker_region()/$msg->worker_region($value)Type:
StringOptional. The Compute Engine region (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1". Mutually exclusive with worker_zone. If neither worker_region nor worker_zone is specified, default to the control plane's region.
$msg->worker_zone()/$msg->worker_zone($value)Type:
StringOptional. The Compute Engine zone (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in which worker processing should occur, e.g. "us-west1-a". Mutually exclusive with worker_region. If neither worker_region nor worker_zone is specified, a zone in the control plane's region is chosen based on available capacity.
$msg->shuffle_mode()/$msg->shuffle_mode($value)Type:
Enum(Google::Dataflow::V1beta3::ShuffleMode)Output only. The shuffle mode used for the job.
$msg->debug_options()/$msg->debug_options($value)Type:
Message(Google::Dataflow::V1beta3::Environment::DebugOptions)Optional. Any debugging options to be supplied to the job.
$msg->use_streaming_engine_resource_based_billing()/$msg->use_streaming_engine_resource_based_billing($value)Type:
BoolOutput only. Whether the job uses the Streaming Engine resource-based billing model.
$msg->streaming_mode()/$msg->streaming_mode($value)Type:
Enum(Google::Dataflow::V1beta3::StreamingMode)Optional. Specifies the Streaming Engine message processing guarantees. Reduces cost and latency but might result in duplicate messages committed to storage. Designed to run simple mapping streaming ETL jobs at the lowest cost. For example, Change Data Capture (CDC) to BigQuery is a canonical use case. For more information, see [Set the pipeline streaming mode](https://cloud.google.com/dataflow/docs/guides/streaming-modes).
$msg->use_public_ips()/$msg->use_public_ips($value)Type:
BoolOptional. True when any worker pool that uses public IPs is present.
Google::Dataflow::V1beta3::Environment::Package
The packages that must be installed in order for a worker to run the steps of the Cloud Dataflow job that will be assigned to its worker pool.
This is the mechanism by which the Cloud Dataflow SDK causes code to be loaded onto the workers. For example, the Cloud Dataflow Java SDK might use this to install jars containing the user's code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe name of the package.
$msg->location()/$msg->location($value)Type:
StringThe resource to read the package from. The supported resource type is:
Google Cloud Storage:
storage.googleapis.com/{bucket} bucket.storage.googleapis.com/$msg->sha256()/$msg->sha256($value)Type:
StringOptional. The hex-encoded SHA256 checksum of the package. If the checksum is provided, the worker will verify the checksum of the package before using it. If the checksum does not match, the worker will fail to start.
Google::Dataflow::V1beta3::Environment::Disk
Describes the data disk used by a workflow job.
Inherits from Protobuf::Message.
Accessors
$msg->size_gb()/$msg->size_gb($value)Type:
Int32Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
$msg->disk_type()/$msg->disk_type($value)Type:
StringDisk storage type, as defined by Google Compute Engine. This must be a disk type appropriate to the project and zone in which the workers will run. If unknown or unspecified, the service will attempt to choose a reasonable default.
For example, the standard persistent disk type is a resource name typically ending in "pd-standard". If SSD persistent disks are available, the resource name typically ends with "pd-ssd". The actual valid values are defined the Google Compute Engine API, not by the Cloud Dataflow API; consult the Google Compute Engine documentation for more information about determining the set of available disk types for a particular project and zone.
Google Compute Engine Disk types are local to a particular project in a particular zone, and so the resource name will typically look something like this:
compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
$msg->mount_point()/$msg->mount_point($value)Type:
StringDirectory in a VM where disk is mounted.
Google::Dataflow::V1beta3::Environment::WorkerSettings
Provides data to pass through to the worker harness.
Inherits from Protobuf::Message.
Accessors
$msg->base_url()/$msg->base_url($value)Type:
StringThe base URL for accessing Google Cloud APIs.
When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, "Relative Uniform Resource Locators".
If not specified, the default value is "http://www.googleapis.com/"
$msg->reporting_enabled()/$msg->reporting_enabled($value)Type:
BoolWhether to send work progress updates to the service.
$msg->service_path()/$msg->service_path($value)Type:
StringThe Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".
$msg->shuffle_service_path()/$msg->shuffle_service_path($value)Type:
StringThe Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".
$msg->worker_id()/$msg->worker_id($value)Type:
StringThe ID of the worker running this pipeline.
$msg->temp_storage_prefix()/$msg->temp_storage_prefix($value)Type:
StringThe prefix of the resources the system should use for temporary storage.
The supported resource type is:
Google Cloud Storage:
storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
Google::Dataflow::V1beta3::Environment::TaskRunnerSettings
Taskrunner configuration settings.
Inherits from Protobuf::Message.
Accessors
$msg->task_user()/$msg->task_user($value)Type:
StringThe UNIX user ID on the worker VM to use for tasks launched by taskrunner; e.g. "root".
$msg->task_group()/$msg->task_group($value)Type:
StringThe UNIX group ID on the worker VM to use for tasks launched by taskrunner; e.g. "wheel".
$msg->oauth_scopes()/$msg->oauth_scopes($value)Type:
StringThe OAuth2 scopes to be requested by the taskrunner in order to access the Cloud Dataflow API.
$msg->base_url()/$msg->base_url($value)Type:
StringThe base URL for the taskrunner to use when accessing Google Cloud APIs.
When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, "Relative Uniform Resource Locators".
If not specified, the default value is "http://www.googleapis.com/"
$msg->dataflow_api_version()/$msg->dataflow_api_version($value)Type:
StringThe API version of endpoint, e.g. "v1b3"
$msg->parallel_worker_settings()/$msg->parallel_worker_settings($value)Type:
Message(Google::Dataflow::V1beta3::Environment::WorkerSettings)The settings to pass to the parallel worker harness.
$msg->base_task_dir()/$msg->base_task_dir($value)Type:
StringThe location on the worker for task-specific subdirectories.
$msg->continue_on_exception()/$msg->continue_on_exception($value)Type:
BoolWhether to continue taskrunner if an exception is hit.
$msg->log_to_serialconsole()/$msg->log_to_serialconsole($value)Type:
BoolWhether to send taskrunner log info to Google Compute Engine VM serial console.
$msg->alsologtostderr()/$msg->alsologtostderr($value)Type:
BoolWhether to also send taskrunner log info to stderr.
$msg->log_upload_location()/$msg->log_upload_location($value)Type:
StringIndicates where to put logs. If this is not specified, the logs will not be uploaded.
The supported resource type is:
Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
$msg->log_dir()/$msg->log_dir($value)Type:
StringThe directory on the VM to store logs.
$msg->temp_storage_prefix()/$msg->temp_storage_prefix($value)Type:
StringThe prefix of the resources the taskrunner should use for temporary storage.
The supported resource type is:
Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}
$msg->harness_command()/$msg->harness_command($value)Type:
StringThe command to launch the worker harness.
$msg->workflow_file_name()/$msg->workflow_file_name($value)Type:
StringThe file to store the workflow in.
$msg->commandlines_file_name()/$msg->commandlines_file_name($value)Type:
StringThe file to store preprocessing commands in.
$msg->vm_id()/$msg->vm_id($value)Type:
StringThe ID string of the VM.
$msg->language_hint()/$msg->language_hint($value)Type:
StringThe suggested backend language.
$msg->streaming_worker_main_class()/$msg->streaming_worker_main_class($value)Type:
StringThe streaming worker main class name.
Google::Dataflow::V1beta3::Environment::AutoscalingSettings
Settings for WorkerPool autoscaling.
Inherits from Protobuf::Message.
Accessors
$msg->algorithm()/$msg->algorithm($value)Type:
Enum(Google::Dataflow::V1beta3::AutoscalingAlgorithm)The algorithm to use for autoscaling.
$msg->max_num_workers()/$msg->max_num_workers($value)Type:
Int32The maximum number of workers to cap scaling at.
Google::Dataflow::V1beta3::Environment::SdkHarnessContainerImage
Defines an SDK harness container for executing Dataflow pipelines.
Inherits from Protobuf::Message.
Accessors
$msg->container_image()/$msg->container_image($value)Type:
StringA docker container image that resides in Google Container Registry.
$msg->use_single_core_per_container()/$msg->use_single_core_per_container($value)Type:
BoolIf true, recommends the Dataflow service to use only one core per SDK container instance with this image. If false (or unset) recommends using more than one core per SDK container instance with this image for efficiency. Note that Dataflow service may choose to override this property if needed.
$msg->environment_id()/$msg->environment_id($value)Type:
StringEnvironment ID for the Beam runner API proto Environment that corresponds to the current SDK Harness.
$msg->capabilities()/$msg->capabilities($value)Type:
StringThe set of capabilities enumerated in the above Environment proto. See also [beam_runner_api.proto](https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/org/apache/beam/model/pipeline/v1/beam_runner_api.proto)
Google::Dataflow::V1beta3::Environment::WorkerPool
Describes one particular pool of Cloud Dataflow workers to be instantiated by the Cloud Dataflow service in order to perform the computations required by a job. Note that a workflow job may use multiple pools, in order to match the various computational requirements of the various stages of the job.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThe kind of the worker pool; currently only `harness` and `shuffle` are supported.
$msg->num_workers()/$msg->num_workers($value)Type:
Int32Number of Google Compute Engine workers in this pool needed to execute the job. If zero or unspecified, the service will attempt to choose a reasonable default.
$msg->packages()/$msg->packages($value)Type:
Message(Google::Dataflow::V1beta3::Environment::Package)Packages to be installed on workers.
$msg->default_package_set()/$msg->default_package_set($value)Type:
Enum(Google::Dataflow::V1beta3::DefaultPackageSet)The default package set to install. This allows the service to select a default set of packages which are useful to worker harnesses written in a particular language.
$msg->machine_type()/$msg->machine_type($value)Type:
StringMachine type (e.g. "n1-standard-1"). If empty or unspecified, the service will attempt to choose a reasonable default.
$msg->teardown_policy()/$msg->teardown_policy($value)Type:
Enum(Google::Dataflow::V1beta3::TeardownPolicy)Sets the policy for determining when to turndown worker pool. Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and `TEARDOWN_NEVER`. `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn down.
If the workers are not torn down by the service, they will continue to run and use Google Compute Engine VM resources in the user's project until they are explicitly terminated by the user. Because of this, Google recommends using the `TEARDOWN_ALWAYS` policy except for small, manually supervised test jobs.
If unknown or unspecified, the service will attempt to choose a reasonable default.
$msg->disk_size_gb()/$msg->disk_size_gb($value)Type:
Int32Size of root disk for VMs, in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
$msg->disk_type()/$msg->disk_type($value)Type:
StringType of root disk for VMs. If empty or unspecified, the service will attempt to choose a reasonable default.
$msg->disk_provisioned_iops()/$msg->disk_provisioned_iops($value)Type:
Int64Optional. IOPS provisioned for the root disk for VMs.
$msg->disk_provisioned_throughput_mibps()/$msg->disk_provisioned_throughput_mibps($value)Type:
Int64Optional. Throughput provisioned for the root disk for VMs.
$msg->disk_source_image()/$msg->disk_source_image($value)Type:
StringFully qualified source image for disks.
$msg->zone()/$msg->zone($value)Type:
StringZone to run the worker pools in. If empty or unspecified, the service will attempt to choose a reasonable default.
$msg->taskrunner_settings()/$msg->taskrunner_settings($value)Type:
Message(Google::Dataflow::V1beta3::Environment::TaskRunnerSettings)Settings passed through to Google Compute Engine workers when using the standard Dataflow task runner. Users should ignore this field.
$msg->on_host_maintenance()/$msg->on_host_maintenance($value)Type:
StringThe action to take on host maintenance, as defined by the Google Compute Engine API.
$msg->data_disks()/$msg->data_disks($value)Type:
Message(Google::Dataflow::V1beta3::Environment::Disk)Data disks that are used by a VM in this workflow.
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Dataflow::V1beta3::Environment::WorkerPool::MetadataEntry)Metadata to set on the Google Compute Engine VMs.
$msg->autoscaling_settings()/$msg->autoscaling_settings($value)Type:
Message(Google::Dataflow::V1beta3::Environment::AutoscalingSettings)Settings for autoscaling of this WorkerPool.
$msg->pool_args()/$msg->pool_args($value)Type:
Message(Google::Protobuf::Any::Any)Extra arguments for this worker pool.
$msg->network()/$msg->network($value)Type:
StringNetwork to which VMs will be assigned. If empty or unspecified, the service will use the network "default".
$msg->subnetwork()/$msg->subnetwork($value)Type:
StringSubnetwork to which VMs will be assigned, if desired. Expected to be of the form "regions/REGION/subnetworks/SUBNETWORK".
$msg->worker_harness_container_image()/$msg->worker_harness_container_image($value)Type:
StringRequired. Docker container image that executes the Cloud Dataflow worker harness, residing in Google Container Registry.
Deprecated for the Fn API path. Use sdk_harness_container_images instead.
$msg->num_threads_per_worker()/$msg->num_threads_per_worker($value)Type:
Int32The number of threads per worker harness. If empty or unspecified, the service will choose a number of threads (according to the number of cores on the selected machine type for batch, or 1 by convention for streaming).
$msg->ip_configuration()/$msg->ip_configuration($value)Type:
Enum(Google::Dataflow::V1beta3::WorkerIPAddressConfiguration)Configuration for VM IPs.
$msg->sdk_harness_container_images()/$msg->sdk_harness_container_images($value)Type:
Message(Google::Dataflow::V1beta3::Environment::SdkHarnessContainerImage)Set of SDK harness containers needed to execute this pipeline. This will only be set in the Fn API path. For non-cross-language pipelines this should have only one entry. Cross-language pipelines will have two or more entries.
Google::Dataflow::V1beta3::Environment::DataSamplingConfig
Configuration options for sampling elements.
Inherits from Protobuf::Message.
Accessors
$msg->behaviors()/$msg->behaviors($value)Type:
Enum(Google::Dataflow::V1beta3::DataSamplingConfig::DataSamplingBehavior)List of given sampling behaviors to enable. For example, specifying behaviors = [ALWAYS_ON] samples in-flight elements but does not sample exceptions. Can be used to specify multiple behaviors like, behaviors = [ALWAYS_ON, EXCEPTIONS] for specifying periodic sampling and exception sampling.
If DISABLED is in the list, then sampling will be disabled and ignore the other given behaviors.
Ordering does not matter.
Enum: DataSamplingConfig::DataSamplingBehavior
DATA_SAMPLING_BEHAVIOR_UNSPECIFIED=>0DISABLED=>1ALWAYS_ON=>2EXCEPTIONS=>3
Google::Dataflow::V1beta3::Environment::DebugOptions
Describes any options that have an effect on the debugging of pipelines.
Inherits from Protobuf::Message.
Accessors
$msg->enable_hot_key_logging()/$msg->enable_hot_key_logging($value)Type:
BoolOptional. When true, enables the logging of the literal hot key to the user's Cloud Logging.
$msg->data_sampling()/$msg->data_sampling($value)Type:
Message(Google::Dataflow::V1beta3::Environment::DataSamplingConfig)Configuration options for sampling elements from a running pipeline.
SEE ALSO
Protobuf, Protobuf::Message, Google::Dataflow::V1beta3::Environment::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.