Class Environment.Builder (0.14.1)

public static final class Environment.Builder extends GeneratedMessageV3.Builder<Environment.Builder> implements EnvironmentOrBuilder

Describes the environment in which a Dataflow Job runs.

Protobuf type google.events.cloud.dataflow.v1beta3.Environment

Static Methods

getDescriptor()

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

Methods

addAllExperiments(Iterable<String> values)

public Environment.Builder addAllExperiments(Iterable<String> values)

The 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.

repeated string experiments = 3;

Parameter
NameDescription
valuesIterable<String>

The experiments to add.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

addAllServiceOptions(Iterable<String> values)

public Environment.Builder addAllServiceOptions(Iterable<String> values)

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).

repeated string service_options = 16;

Parameter
NameDescription
valuesIterable<String>

The serviceOptions to add.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

addAllWorkerPools(Iterable<? extends WorkerPool> values)

public Environment.Builder addAllWorkerPools(Iterable<? extends WorkerPool> values)

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.events.cloud.dataflow.v1beta3.WorkerPool>
Returns
TypeDescription
Environment.Builder

addExperiments(String value)

public Environment.Builder addExperiments(String value)

The 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.

repeated string experiments = 3;

Parameter
NameDescription
valueString

The experiments to add.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

addExperimentsBytes(ByteString value)

public Environment.Builder addExperimentsBytes(ByteString value)

The 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.

repeated string experiments = 3;

Parameter
NameDescription
valueByteString

The bytes of the experiments to add.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addServiceOptions(String value)

public Environment.Builder addServiceOptions(String value)

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).

repeated string service_options = 16;

Parameter
NameDescription
valueString

The serviceOptions to add.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

addServiceOptionsBytes(ByteString value)

public Environment.Builder addServiceOptionsBytes(ByteString value)

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).

repeated string service_options = 16;

Parameter
NameDescription
valueByteString

The bytes of the serviceOptions to add.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

addWorkerPools(WorkerPool value)

public Environment.Builder addWorkerPools(WorkerPool value)

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Parameter
NameDescription
valueWorkerPool
Returns
TypeDescription
Environment.Builder

addWorkerPools(WorkerPool.Builder builderForValue)

public Environment.Builder addWorkerPools(WorkerPool.Builder builderForValue)

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Parameter
NameDescription
builderForValueWorkerPool.Builder
Returns
TypeDescription
Environment.Builder

addWorkerPools(int index, WorkerPool value)

public Environment.Builder addWorkerPools(int index, WorkerPool value)

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Parameters
NameDescription
indexint
valueWorkerPool
Returns
TypeDescription
Environment.Builder

addWorkerPools(int index, WorkerPool.Builder builderForValue)

public Environment.Builder addWorkerPools(int index, WorkerPool.Builder builderForValue)

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Parameters
NameDescription
indexint
builderForValueWorkerPool.Builder
Returns
TypeDescription
Environment.Builder

addWorkerPoolsBuilder()

public WorkerPool.Builder addWorkerPoolsBuilder()

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Returns
TypeDescription
WorkerPool.Builder

addWorkerPoolsBuilder(int index)

public WorkerPool.Builder addWorkerPoolsBuilder(int index)

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
WorkerPool.Builder

build()

public Environment build()
Returns
TypeDescription
Environment

buildPartial()

public Environment buildPartial()
Returns
TypeDescription
Environment

clear()

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

clearClusterManagerApiService()

public Environment.Builder clearClusterManagerApiService()

The 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".

string cluster_manager_api_service = 2;

Returns
TypeDescription
Environment.Builder

This builder for chaining.

clearDataset()

public Environment.Builder clearDataset()

The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset}

string dataset = 7;

Returns
TypeDescription
Environment.Builder

This builder for chaining.

clearDebugOptions()

public Environment.Builder clearDebugOptions()

Any debugging options to be supplied to the job.

.google.events.cloud.dataflow.v1beta3.DebugOptions debug_options = 17;

Returns
TypeDescription
Environment.Builder

clearExperiments()

public Environment.Builder clearExperiments()

The 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.

repeated string experiments = 3;

Returns
TypeDescription
Environment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFlexResourceSchedulingGoal()

public Environment.Builder clearFlexResourceSchedulingGoal()

Which Flexible Resource Scheduling mode to run in.

.google.events.cloud.dataflow.v1beta3.FlexResourceSchedulingGoal flex_resource_scheduling_goal = 11;

Returns
TypeDescription
Environment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSdkPipelineOptions()

public Environment.Builder clearSdkPipelineOptions()

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.

.google.protobuf.Struct sdk_pipeline_options = 8;

Returns
TypeDescription
Environment.Builder

clearServiceAccountEmail()

public Environment.Builder clearServiceAccountEmail()

Identity to run virtual machines as. Defaults to the default account.

string service_account_email = 10;

Returns
TypeDescription
Environment.Builder

This builder for chaining.

clearServiceKmsKeyName()

public Environment.Builder clearServiceKmsKeyName()

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

string service_kms_key_name = 12;

Returns
TypeDescription
Environment.Builder

This builder for chaining.

clearServiceOptions()

public Environment.Builder clearServiceOptions()

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).

repeated string service_options = 16;

Returns
TypeDescription
Environment.Builder

This builder for chaining.

clearShuffleMode()

public Environment.Builder clearShuffleMode()

Output only. The shuffle mode used for the job.

.google.events.cloud.dataflow.v1beta3.ShuffleMode shuffle_mode = 15;

Returns
TypeDescription
Environment.Builder

This builder for chaining.

clearTempStoragePrefix()

public Environment.Builder clearTempStoragePrefix()

The 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}

string temp_storage_prefix = 1;

Returns
TypeDescription
Environment.Builder

This builder for chaining.

clearUserAgent()

public Environment.Builder clearUserAgent()

A description of the process that generated the request.

.google.protobuf.Struct user_agent = 5;

Returns
TypeDescription
Environment.Builder

clearVersion()

public Environment.Builder clearVersion()

A structure describing which components and their versions of the service are required in order to run the job.

.google.protobuf.Struct version = 6;

Returns
TypeDescription
Environment.Builder

clearWorkerPools()

public Environment.Builder clearWorkerPools()

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Returns
TypeDescription
Environment.Builder

clearWorkerRegion()

public Environment.Builder clearWorkerRegion()

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.

string worker_region = 13;

Returns
TypeDescription
Environment.Builder

This builder for chaining.

clearWorkerZone()

public Environment.Builder clearWorkerZone()

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.

string worker_zone = 14;

Returns
TypeDescription
Environment.Builder

This builder for chaining.

clone()

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

getClusterManagerApiService()

public String getClusterManagerApiService()

The 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".

string cluster_manager_api_service = 2;

Returns
TypeDescription
String

The clusterManagerApiService.

getClusterManagerApiServiceBytes()

public ByteString getClusterManagerApiServiceBytes()

The 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".

string cluster_manager_api_service = 2;

Returns
TypeDescription
ByteString

The bytes for clusterManagerApiService.

getDataset()

public String getDataset()

The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset}

string dataset = 7;

Returns
TypeDescription
String

The dataset.

getDatasetBytes()

public ByteString getDatasetBytes()

The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset}

string dataset = 7;

Returns
TypeDescription
ByteString

The bytes for dataset.

getDebugOptions()

public DebugOptions getDebugOptions()

Any debugging options to be supplied to the job.

.google.events.cloud.dataflow.v1beta3.DebugOptions debug_options = 17;

Returns
TypeDescription
DebugOptions

The debugOptions.

getDebugOptionsBuilder()

public DebugOptions.Builder getDebugOptionsBuilder()

Any debugging options to be supplied to the job.

.google.events.cloud.dataflow.v1beta3.DebugOptions debug_options = 17;

Returns
TypeDescription
DebugOptions.Builder

getDebugOptionsOrBuilder()

public DebugOptionsOrBuilder getDebugOptionsOrBuilder()

Any debugging options to be supplied to the job.

.google.events.cloud.dataflow.v1beta3.DebugOptions debug_options = 17;

Returns
TypeDescription
DebugOptionsOrBuilder

getDefaultInstanceForType()

public Environment getDefaultInstanceForType()
Returns
TypeDescription
Environment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExperiments(int index)

public String getExperiments(int index)

The 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.

repeated string experiments = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The experiments at the given index.

getExperimentsBytes(int index)

public ByteString getExperimentsBytes(int index)

The 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.

repeated string experiments = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the experiments at the given index.

getExperimentsCount()

public int getExperimentsCount()

The 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.

repeated string experiments = 3;

Returns
TypeDescription
int

The count of experiments.

getExperimentsList()

public ProtocolStringList getExperimentsList()

The 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.

repeated string experiments = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the experiments.

getFlexResourceSchedulingGoal()

public FlexResourceSchedulingGoal getFlexResourceSchedulingGoal()

Which Flexible Resource Scheduling mode to run in.

.google.events.cloud.dataflow.v1beta3.FlexResourceSchedulingGoal flex_resource_scheduling_goal = 11;

Returns
TypeDescription
FlexResourceSchedulingGoal

The flexResourceSchedulingGoal.

getFlexResourceSchedulingGoalValue()

public int getFlexResourceSchedulingGoalValue()

Which Flexible Resource Scheduling mode to run in.

.google.events.cloud.dataflow.v1beta3.FlexResourceSchedulingGoal flex_resource_scheduling_goal = 11;

Returns
TypeDescription
int

The enum numeric value on the wire for flexResourceSchedulingGoal.

getSdkPipelineOptions()

public Struct getSdkPipelineOptions()

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.

.google.protobuf.Struct sdk_pipeline_options = 8;

Returns
TypeDescription
Struct

The sdkPipelineOptions.

getSdkPipelineOptionsBuilder()

public Struct.Builder getSdkPipelineOptionsBuilder()

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.

.google.protobuf.Struct sdk_pipeline_options = 8;

Returns
TypeDescription
Builder

getSdkPipelineOptionsOrBuilder()

public StructOrBuilder getSdkPipelineOptionsOrBuilder()

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.

.google.protobuf.Struct sdk_pipeline_options = 8;

Returns
TypeDescription
StructOrBuilder

getServiceAccountEmail()

public String getServiceAccountEmail()

Identity to run virtual machines as. Defaults to the default account.

string service_account_email = 10;

Returns
TypeDescription
String

The serviceAccountEmail.

getServiceAccountEmailBytes()

public ByteString getServiceAccountEmailBytes()

Identity to run virtual machines as. Defaults to the default account.

string service_account_email = 10;

Returns
TypeDescription
ByteString

The bytes for serviceAccountEmail.

getServiceKmsKeyName()

public String getServiceKmsKeyName()

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

string service_kms_key_name = 12;

Returns
TypeDescription
String

The serviceKmsKeyName.

getServiceKmsKeyNameBytes()

public ByteString getServiceKmsKeyNameBytes()

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

string service_kms_key_name = 12;

Returns
TypeDescription
ByteString

The bytes for serviceKmsKeyName.

getServiceOptions(int index)

public String getServiceOptions(int index)

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).

repeated string service_options = 16;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The serviceOptions at the given index.

getServiceOptionsBytes(int index)

public ByteString getServiceOptionsBytes(int index)

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).

repeated string service_options = 16;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the serviceOptions at the given index.

getServiceOptionsCount()

public int getServiceOptionsCount()

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).

repeated string service_options = 16;

Returns
TypeDescription
int

The count of serviceOptions.

getServiceOptionsList()

public ProtocolStringList getServiceOptionsList()

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).

repeated string service_options = 16;

Returns
TypeDescription
ProtocolStringList

A list containing the serviceOptions.

getShuffleMode()

public ShuffleMode getShuffleMode()

Output only. The shuffle mode used for the job.

.google.events.cloud.dataflow.v1beta3.ShuffleMode shuffle_mode = 15;

Returns
TypeDescription
ShuffleMode

The shuffleMode.

getShuffleModeValue()

public int getShuffleModeValue()

Output only. The shuffle mode used for the job.

.google.events.cloud.dataflow.v1beta3.ShuffleMode shuffle_mode = 15;

Returns
TypeDescription
int

The enum numeric value on the wire for shuffleMode.

getTempStoragePrefix()

public String getTempStoragePrefix()

The 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}

string temp_storage_prefix = 1;

Returns
TypeDescription
String

The tempStoragePrefix.

getTempStoragePrefixBytes()

public ByteString getTempStoragePrefixBytes()

The 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}

string temp_storage_prefix = 1;

Returns
TypeDescription
ByteString

The bytes for tempStoragePrefix.

getUserAgent()

public Struct getUserAgent()

A description of the process that generated the request.

.google.protobuf.Struct user_agent = 5;

Returns
TypeDescription
Struct

The userAgent.

getUserAgentBuilder()

public Struct.Builder getUserAgentBuilder()

A description of the process that generated the request.

.google.protobuf.Struct user_agent = 5;

Returns
TypeDescription
Builder

getUserAgentOrBuilder()

public StructOrBuilder getUserAgentOrBuilder()

A description of the process that generated the request.

.google.protobuf.Struct user_agent = 5;

Returns
TypeDescription
StructOrBuilder

getVersion()

public Struct getVersion()

A structure describing which components and their versions of the service are required in order to run the job.

.google.protobuf.Struct version = 6;

Returns
TypeDescription
Struct

The version.

getVersionBuilder()

public Struct.Builder getVersionBuilder()

A structure describing which components and their versions of the service are required in order to run the job.

.google.protobuf.Struct version = 6;

Returns
TypeDescription
Builder

getVersionOrBuilder()

public StructOrBuilder getVersionOrBuilder()

A structure describing which components and their versions of the service are required in order to run the job.

.google.protobuf.Struct version = 6;

Returns
TypeDescription
StructOrBuilder

getWorkerPools(int index)

public WorkerPool getWorkerPools(int index)

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
WorkerPool

getWorkerPoolsBuilder(int index)

public WorkerPool.Builder getWorkerPoolsBuilder(int index)

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
WorkerPool.Builder

getWorkerPoolsBuilderList()

public List<WorkerPool.Builder> getWorkerPoolsBuilderList()

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Returns
TypeDescription
List<Builder>

getWorkerPoolsCount()

public int getWorkerPoolsCount()

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Returns
TypeDescription
int

getWorkerPoolsList()

public List<WorkerPool> getWorkerPoolsList()

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Returns
TypeDescription
List<WorkerPool>

getWorkerPoolsOrBuilder(int index)

public WorkerPoolOrBuilder getWorkerPoolsOrBuilder(int index)

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
WorkerPoolOrBuilder

getWorkerPoolsOrBuilderList()

public List<? extends WorkerPoolOrBuilder> getWorkerPoolsOrBuilderList()

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Returns
TypeDescription
List<? extends com.google.events.cloud.dataflow.v1beta3.WorkerPoolOrBuilder>

getWorkerRegion()

public String getWorkerRegion()

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.

string worker_region = 13;

Returns
TypeDescription
String

The workerRegion.

getWorkerRegionBytes()

public ByteString getWorkerRegionBytes()

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.

string worker_region = 13;

Returns
TypeDescription
ByteString

The bytes for workerRegion.

getWorkerZone()

public String getWorkerZone()

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.

string worker_zone = 14;

Returns
TypeDescription
String

The workerZone.

getWorkerZoneBytes()

public ByteString getWorkerZoneBytes()

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.

string worker_zone = 14;

Returns
TypeDescription
ByteString

The bytes for workerZone.

hasDebugOptions()

public boolean hasDebugOptions()

Any debugging options to be supplied to the job.

.google.events.cloud.dataflow.v1beta3.DebugOptions debug_options = 17;

Returns
TypeDescription
boolean

Whether the debugOptions field is set.

hasSdkPipelineOptions()

public boolean hasSdkPipelineOptions()

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.

.google.protobuf.Struct sdk_pipeline_options = 8;

Returns
TypeDescription
boolean

Whether the sdkPipelineOptions field is set.

hasUserAgent()

public boolean hasUserAgent()

A description of the process that generated the request.

.google.protobuf.Struct user_agent = 5;

Returns
TypeDescription
boolean

Whether the userAgent field is set.

hasVersion()

public boolean hasVersion()

A structure describing which components and their versions of the service are required in order to run the job.

.google.protobuf.Struct version = 6;

Returns
TypeDescription
boolean

Whether the version field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDebugOptions(DebugOptions value)

public Environment.Builder mergeDebugOptions(DebugOptions value)

Any debugging options to be supplied to the job.

.google.events.cloud.dataflow.v1beta3.DebugOptions debug_options = 17;

Parameter
NameDescription
valueDebugOptions
Returns
TypeDescription
Environment.Builder

mergeFrom(Environment other)

public Environment.Builder mergeFrom(Environment other)
Parameter
NameDescription
otherEnvironment
Returns
TypeDescription
Environment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSdkPipelineOptions(Struct value)

public Environment.Builder mergeSdkPipelineOptions(Struct value)

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.

.google.protobuf.Struct sdk_pipeline_options = 8;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
Environment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUserAgent(Struct value)

public Environment.Builder mergeUserAgent(Struct value)

A description of the process that generated the request.

.google.protobuf.Struct user_agent = 5;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
Environment.Builder

mergeVersion(Struct value)

public Environment.Builder mergeVersion(Struct value)

A structure describing which components and their versions of the service are required in order to run the job.

.google.protobuf.Struct version = 6;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
Environment.Builder

removeWorkerPools(int index)

public Environment.Builder removeWorkerPools(int index)

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Environment.Builder

setClusterManagerApiService(String value)

public Environment.Builder setClusterManagerApiService(String value)

The 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".

string cluster_manager_api_service = 2;

Parameter
NameDescription
valueString

The clusterManagerApiService to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setClusterManagerApiServiceBytes(ByteString value)

public Environment.Builder setClusterManagerApiServiceBytes(ByteString value)

The 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".

string cluster_manager_api_service = 2;

Parameter
NameDescription
valueByteString

The bytes for clusterManagerApiService to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setDataset(String value)

public Environment.Builder setDataset(String value)

The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset}

string dataset = 7;

Parameter
NameDescription
valueString

The dataset to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setDatasetBytes(ByteString value)

public Environment.Builder setDatasetBytes(ByteString value)

The dataset for the current project where various workflow related tables are stored. The supported resource type is: Google BigQuery: bigquery.googleapis.com/{dataset}

string dataset = 7;

Parameter
NameDescription
valueByteString

The bytes for dataset to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setDebugOptions(DebugOptions value)

public Environment.Builder setDebugOptions(DebugOptions value)

Any debugging options to be supplied to the job.

.google.events.cloud.dataflow.v1beta3.DebugOptions debug_options = 17;

Parameter
NameDescription
valueDebugOptions
Returns
TypeDescription
Environment.Builder

setDebugOptions(DebugOptions.Builder builderForValue)

public Environment.Builder setDebugOptions(DebugOptions.Builder builderForValue)

Any debugging options to be supplied to the job.

.google.events.cloud.dataflow.v1beta3.DebugOptions debug_options = 17;

Parameter
NameDescription
builderForValueDebugOptions.Builder
Returns
TypeDescription
Environment.Builder

setExperiments(int index, String value)

public Environment.Builder setExperiments(int index, String value)

The 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.

repeated string experiments = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The experiments to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFlexResourceSchedulingGoal(FlexResourceSchedulingGoal value)

public Environment.Builder setFlexResourceSchedulingGoal(FlexResourceSchedulingGoal value)

Which Flexible Resource Scheduling mode to run in.

.google.events.cloud.dataflow.v1beta3.FlexResourceSchedulingGoal flex_resource_scheduling_goal = 11;

Parameter
NameDescription
valueFlexResourceSchedulingGoal

The flexResourceSchedulingGoal to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setFlexResourceSchedulingGoalValue(int value)

public Environment.Builder setFlexResourceSchedulingGoalValue(int value)

Which Flexible Resource Scheduling mode to run in.

.google.events.cloud.dataflow.v1beta3.FlexResourceSchedulingGoal flex_resource_scheduling_goal = 11;

Parameter
NameDescription
valueint

The enum numeric value on the wire for flexResourceSchedulingGoal to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

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

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

setSdkPipelineOptions(Struct value)

public Environment.Builder setSdkPipelineOptions(Struct value)

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.

.google.protobuf.Struct sdk_pipeline_options = 8;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
Environment.Builder

setSdkPipelineOptions(Struct.Builder builderForValue)

public Environment.Builder setSdkPipelineOptions(Struct.Builder builderForValue)

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.

.google.protobuf.Struct sdk_pipeline_options = 8;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Environment.Builder

setServiceAccountEmail(String value)

public Environment.Builder setServiceAccountEmail(String value)

Identity to run virtual machines as. Defaults to the default account.

string service_account_email = 10;

Parameter
NameDescription
valueString

The serviceAccountEmail to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setServiceAccountEmailBytes(ByteString value)

public Environment.Builder setServiceAccountEmailBytes(ByteString value)

Identity to run virtual machines as. Defaults to the default account.

string service_account_email = 10;

Parameter
NameDescription
valueByteString

The bytes for serviceAccountEmail to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setServiceKmsKeyName(String value)

public Environment.Builder setServiceKmsKeyName(String value)

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

string service_kms_key_name = 12;

Parameter
NameDescription
valueString

The serviceKmsKeyName to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setServiceKmsKeyNameBytes(ByteString value)

public Environment.Builder setServiceKmsKeyNameBytes(ByteString value)

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

string service_kms_key_name = 12;

Parameter
NameDescription
valueByteString

The bytes for serviceKmsKeyName to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setServiceOptions(int index, String value)

public Environment.Builder setServiceOptions(int index, String value)

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).

repeated string service_options = 16;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The serviceOptions to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setShuffleMode(ShuffleMode value)

public Environment.Builder setShuffleMode(ShuffleMode value)

Output only. The shuffle mode used for the job.

.google.events.cloud.dataflow.v1beta3.ShuffleMode shuffle_mode = 15;

Parameter
NameDescription
valueShuffleMode

The shuffleMode to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setShuffleModeValue(int value)

public Environment.Builder setShuffleModeValue(int value)

Output only. The shuffle mode used for the job.

.google.events.cloud.dataflow.v1beta3.ShuffleMode shuffle_mode = 15;

Parameter
NameDescription
valueint

The enum numeric value on the wire for shuffleMode to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setTempStoragePrefix(String value)

public Environment.Builder setTempStoragePrefix(String value)

The 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}

string temp_storage_prefix = 1;

Parameter
NameDescription
valueString

The tempStoragePrefix to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setTempStoragePrefixBytes(ByteString value)

public Environment.Builder setTempStoragePrefixBytes(ByteString value)

The 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}

string temp_storage_prefix = 1;

Parameter
NameDescription
valueByteString

The bytes for tempStoragePrefix to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserAgent(Struct value)

public Environment.Builder setUserAgent(Struct value)

A description of the process that generated the request.

.google.protobuf.Struct user_agent = 5;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
Environment.Builder

setUserAgent(Struct.Builder builderForValue)

public Environment.Builder setUserAgent(Struct.Builder builderForValue)

A description of the process that generated the request.

.google.protobuf.Struct user_agent = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Environment.Builder

setVersion(Struct value)

public Environment.Builder setVersion(Struct value)

A structure describing which components and their versions of the service are required in order to run the job.

.google.protobuf.Struct version = 6;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
Environment.Builder

setVersion(Struct.Builder builderForValue)

public Environment.Builder setVersion(Struct.Builder builderForValue)

A structure describing which components and their versions of the service are required in order to run the job.

.google.protobuf.Struct version = 6;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Environment.Builder

setWorkerPools(int index, WorkerPool value)

public Environment.Builder setWorkerPools(int index, WorkerPool value)

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Parameters
NameDescription
indexint
valueWorkerPool
Returns
TypeDescription
Environment.Builder

setWorkerPools(int index, WorkerPool.Builder builderForValue)

public Environment.Builder setWorkerPools(int index, WorkerPool.Builder builderForValue)

The worker pools. At least one "harness" worker pool must be specified in order for the job to have workers.

repeated .google.events.cloud.dataflow.v1beta3.WorkerPool worker_pools = 4;

Parameters
NameDescription
indexint
builderForValueWorkerPool.Builder
Returns
TypeDescription
Environment.Builder

setWorkerRegion(String value)

public Environment.Builder setWorkerRegion(String value)

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.

string worker_region = 13;

Parameter
NameDescription
valueString

The workerRegion to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setWorkerRegionBytes(ByteString value)

public Environment.Builder setWorkerRegionBytes(ByteString value)

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.

string worker_region = 13;

Parameter
NameDescription
valueByteString

The bytes for workerRegion to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setWorkerZone(String value)

public Environment.Builder setWorkerZone(String value)

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.

string worker_zone = 14;

Parameter
NameDescription
valueString

The workerZone to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.

setWorkerZoneBytes(ByteString value)

public Environment.Builder setWorkerZoneBytes(ByteString value)

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.

string worker_zone = 14;

Parameter
NameDescription
valueByteString

The bytes for workerZone to set.

Returns
TypeDescription
Environment.Builder

This builder for chaining.