Class Environment.Builder

  • All Implemented Interfaces:
    EnvironmentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Environment

    public static final class Environment.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
    implements EnvironmentOrBuilder
     Describes the environment in which a Dataflow Job runs.
     
    Protobuf type google.dataflow.v1beta3.Environment
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
      • clear

        public Environment.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
      • getDefaultInstanceForType

        public Environment getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Environment build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Environment buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Environment.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
      • setField

        public Environment.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
      • clearField

        public Environment.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
      • clearOneof

        public Environment.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
      • setRepeatedField

        public Environment.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
      • addRepeatedField

        public Environment.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
      • mergeFrom

        public Environment.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Environment.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
      • mergeFrom

        public Environment.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Environment.Builder>
        Throws:
        IOException
      • 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;
        Specified by:
        getTempStoragePrefix in interface EnvironmentOrBuilder
        Returns:
        The tempStoragePrefix.
      • getTempStoragePrefixBytes

        public com.google.protobuf.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;
        Specified by:
        getTempStoragePrefixBytes in interface EnvironmentOrBuilder
        Returns:
        The bytes for tempStoragePrefix.
      • setTempStoragePrefix

        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;
        Parameters:
        value - The tempStoragePrefix to set.
        Returns:
        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:
        This builder for chaining.
      • setTempStoragePrefixBytes

        public Environment.Builder setTempStoragePrefixBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for tempStoragePrefix to set.
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        getClusterManagerApiService in interface EnvironmentOrBuilder
        Returns:
        The clusterManagerApiService.
      • getClusterManagerApiServiceBytes

        public com.google.protobuf.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;
        Specified by:
        getClusterManagerApiServiceBytes in interface EnvironmentOrBuilder
        Returns:
        The bytes for clusterManagerApiService.
      • setClusterManagerApiService

        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;
        Parameters:
        value - The clusterManagerApiService to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setClusterManagerApiServiceBytes

        public Environment.Builder setClusterManagerApiServiceBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for clusterManagerApiService to set.
        Returns:
        This builder for chaining.
      • getExperimentsList

        public com.google.protobuf.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;
        Specified by:
        getExperimentsList in interface EnvironmentOrBuilder
        Returns:
        A list containing the experiments.
      • 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;
        Specified by:
        getExperimentsCount in interface EnvironmentOrBuilder
        Returns:
        The count of experiments.
      • getExperiments

        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;
        Specified by:
        getExperiments in interface EnvironmentOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The experiments at the given index.
      • getExperimentsBytes

        public com.google.protobuf.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;
        Specified by:
        getExperimentsBytes in interface EnvironmentOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the experiments at the given index.
      • setExperiments

        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:
        index - The index to set the value at.
        value - The experiments to set.
        Returns:
        This builder for chaining.
      • addExperiments

        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;
        Parameters:
        value - The experiments to add.
        Returns:
        This builder for chaining.
      • addAllExperiments

        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;
        Parameters:
        values - The experiments to add.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • addExperimentsBytes

        public Environment.Builder addExperimentsBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes of the experiments to add.
        Returns:
        This builder for chaining.
      • getServiceOptionsList

        public com.google.protobuf.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;
        Specified by:
        getServiceOptionsList in interface EnvironmentOrBuilder
        Returns:
        A list containing the serviceOptions.
      • 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;
        Specified by:
        getServiceOptionsCount in interface EnvironmentOrBuilder
        Returns:
        The count of serviceOptions.
      • getServiceOptions

        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;
        Specified by:
        getServiceOptions in interface EnvironmentOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The serviceOptions at the given index.
      • getServiceOptionsBytes

        public com.google.protobuf.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;
        Specified by:
        getServiceOptionsBytes in interface EnvironmentOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the serviceOptions at the given index.
      • setServiceOptions

        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:
        index - The index to set the value at.
        value - The serviceOptions to set.
        Returns:
        This builder for chaining.
      • addServiceOptions

        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;
        Parameters:
        value - The serviceOptions to add.
        Returns:
        This builder for chaining.
      • addAllServiceOptions

        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;
        Parameters:
        values - The serviceOptions to add.
        Returns:
        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:
        This builder for chaining.
      • addServiceOptionsBytes

        public Environment.Builder addServiceOptionsBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes of the serviceOptions to add.
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        getServiceKmsKeyName in interface EnvironmentOrBuilder
        Returns:
        The serviceKmsKeyName.
      • getServiceKmsKeyNameBytes

        public com.google.protobuf.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;
        Specified by:
        getServiceKmsKeyNameBytes in interface EnvironmentOrBuilder
        Returns:
        The bytes for serviceKmsKeyName.
      • setServiceKmsKeyName

        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;
        Parameters:
        value - The serviceKmsKeyName to set.
        Returns:
        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:
        This builder for chaining.
      • setServiceKmsKeyNameBytes

        public Environment.Builder setServiceKmsKeyNameBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for serviceKmsKeyName to set.
        Returns:
        This builder for chaining.
      • 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.dataflow.v1beta3.WorkerPool worker_pools = 4;
        Specified by:
        getWorkerPoolsList in interface EnvironmentOrBuilder
      • 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.dataflow.v1beta3.WorkerPool worker_pools = 4;
        Specified by:
        getWorkerPoolsCount in interface EnvironmentOrBuilder
      • getWorkerPools

        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.dataflow.v1beta3.WorkerPool worker_pools = 4;
        Specified by:
        getWorkerPools in interface EnvironmentOrBuilder
      • setWorkerPools

        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.dataflow.v1beta3.WorkerPool worker_pools = 4;
      • setWorkerPools

        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.dataflow.v1beta3.WorkerPool worker_pools = 4;
      • addWorkerPools

        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.dataflow.v1beta3.WorkerPool worker_pools = 4;
      • addWorkerPools

        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.dataflow.v1beta3.WorkerPool worker_pools = 4;
      • addWorkerPools

        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.dataflow.v1beta3.WorkerPool worker_pools = 4;
      • addWorkerPools

        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.dataflow.v1beta3.WorkerPool worker_pools = 4;
      • addAllWorkerPools

        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.dataflow.v1beta3.WorkerPool worker_pools = 4;
      • 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.dataflow.v1beta3.WorkerPool worker_pools = 4;
      • removeWorkerPools

        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.dataflow.v1beta3.WorkerPool worker_pools = 4;
      • getWorkerPoolsBuilder

        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.dataflow.v1beta3.WorkerPool worker_pools = 4;
      • getWorkerPoolsOrBuilder

        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.dataflow.v1beta3.WorkerPool worker_pools = 4;
        Specified by:
        getWorkerPoolsOrBuilder in interface EnvironmentOrBuilder
      • 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.dataflow.v1beta3.WorkerPool worker_pools = 4;
        Specified by:
        getWorkerPoolsOrBuilderList in interface EnvironmentOrBuilder
      • 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.dataflow.v1beta3.WorkerPool worker_pools = 4;
      • addWorkerPoolsBuilder

        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.dataflow.v1beta3.WorkerPool worker_pools = 4;
      • 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.dataflow.v1beta3.WorkerPool worker_pools = 4;
      • hasUserAgent

        public boolean hasUserAgent()
         A description of the process that generated the request.
         
        .google.protobuf.Struct user_agent = 5;
        Specified by:
        hasUserAgent in interface EnvironmentOrBuilder
        Returns:
        Whether the userAgent field is set.
      • getUserAgent

        public com.google.protobuf.Struct getUserAgent()
         A description of the process that generated the request.
         
        .google.protobuf.Struct user_agent = 5;
        Specified by:
        getUserAgent in interface EnvironmentOrBuilder
        Returns:
        The userAgent.
      • setUserAgent

        public Environment.Builder setUserAgent​(com.google.protobuf.Struct value)
         A description of the process that generated the request.
         
        .google.protobuf.Struct user_agent = 5;
      • setUserAgent

        public Environment.Builder setUserAgent​(com.google.protobuf.Struct.Builder builderForValue)
         A description of the process that generated the request.
         
        .google.protobuf.Struct user_agent = 5;
      • mergeUserAgent

        public Environment.Builder mergeUserAgent​(com.google.protobuf.Struct value)
         A description of the process that generated the request.
         
        .google.protobuf.Struct user_agent = 5;
      • clearUserAgent

        public Environment.Builder clearUserAgent()
         A description of the process that generated the request.
         
        .google.protobuf.Struct user_agent = 5;
      • getUserAgentBuilder

        public com.google.protobuf.Struct.Builder getUserAgentBuilder()
         A description of the process that generated the request.
         
        .google.protobuf.Struct user_agent = 5;
      • getUserAgentOrBuilder

        public com.google.protobuf.StructOrBuilder getUserAgentOrBuilder()
         A description of the process that generated the request.
         
        .google.protobuf.Struct user_agent = 5;
        Specified by:
        getUserAgentOrBuilder in interface EnvironmentOrBuilder
      • 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;
        Specified by:
        hasVersion in interface EnvironmentOrBuilder
        Returns:
        Whether the version field is set.
      • getVersion

        public com.google.protobuf.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;
        Specified by:
        getVersion in interface EnvironmentOrBuilder
        Returns:
        The version.
      • setVersion

        public Environment.Builder setVersion​(com.google.protobuf.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;
      • setVersion

        public Environment.Builder setVersion​(com.google.protobuf.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;
      • mergeVersion

        public Environment.Builder mergeVersion​(com.google.protobuf.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;
      • 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;
      • getVersionBuilder

        public com.google.protobuf.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;
      • getVersionOrBuilder

        public com.google.protobuf.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;
        Specified by:
        getVersionOrBuilder in interface EnvironmentOrBuilder
      • 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;
        Specified by:
        getDataset in interface EnvironmentOrBuilder
        Returns:
        The dataset.
      • getDatasetBytes

        public com.google.protobuf.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;
        Specified by:
        getDatasetBytes in interface EnvironmentOrBuilder
        Returns:
        The bytes for dataset.
      • setDataset

        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;
        Parameters:
        value - The dataset to set.
        Returns:
        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:
        This builder for chaining.
      • setDatasetBytes

        public Environment.Builder setDatasetBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for dataset to set.
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        hasSdkPipelineOptions in interface EnvironmentOrBuilder
        Returns:
        Whether the sdkPipelineOptions field is set.
      • getSdkPipelineOptions

        public com.google.protobuf.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;
        Specified by:
        getSdkPipelineOptions in interface EnvironmentOrBuilder
        Returns:
        The sdkPipelineOptions.
      • setSdkPipelineOptions

        public Environment.Builder setSdkPipelineOptions​(com.google.protobuf.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;
      • setSdkPipelineOptions

        public Environment.Builder setSdkPipelineOptions​(com.google.protobuf.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;
      • mergeSdkPipelineOptions

        public Environment.Builder mergeSdkPipelineOptions​(com.google.protobuf.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;
      • 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;
      • getSdkPipelineOptionsBuilder

        public com.google.protobuf.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;
      • getSdkPipelineOptionsOrBuilder

        public com.google.protobuf.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;
        Specified by:
        getSdkPipelineOptionsOrBuilder in interface EnvironmentOrBuilder
      • hasInternalExperiments

        public boolean hasInternalExperiments()
         Experimental settings.
         
        .google.protobuf.Any internal_experiments = 9;
        Specified by:
        hasInternalExperiments in interface EnvironmentOrBuilder
        Returns:
        Whether the internalExperiments field is set.
      • getInternalExperiments

        public com.google.protobuf.Any getInternalExperiments()
         Experimental settings.
         
        .google.protobuf.Any internal_experiments = 9;
        Specified by:
        getInternalExperiments in interface EnvironmentOrBuilder
        Returns:
        The internalExperiments.
      • setInternalExperiments

        public Environment.Builder setInternalExperiments​(com.google.protobuf.Any value)
         Experimental settings.
         
        .google.protobuf.Any internal_experiments = 9;
      • setInternalExperiments

        public Environment.Builder setInternalExperiments​(com.google.protobuf.Any.Builder builderForValue)
         Experimental settings.
         
        .google.protobuf.Any internal_experiments = 9;
      • mergeInternalExperiments

        public Environment.Builder mergeInternalExperiments​(com.google.protobuf.Any value)
         Experimental settings.
         
        .google.protobuf.Any internal_experiments = 9;
      • clearInternalExperiments

        public Environment.Builder clearInternalExperiments()
         Experimental settings.
         
        .google.protobuf.Any internal_experiments = 9;
      • getInternalExperimentsBuilder

        public com.google.protobuf.Any.Builder getInternalExperimentsBuilder()
         Experimental settings.
         
        .google.protobuf.Any internal_experiments = 9;
      • getInternalExperimentsOrBuilder

        public com.google.protobuf.AnyOrBuilder getInternalExperimentsOrBuilder()
         Experimental settings.
         
        .google.protobuf.Any internal_experiments = 9;
        Specified by:
        getInternalExperimentsOrBuilder in interface EnvironmentOrBuilder
      • getServiceAccountEmail

        public String getServiceAccountEmail()
         Identity to run virtual machines as. Defaults to the default account.
         
        string service_account_email = 10;
        Specified by:
        getServiceAccountEmail in interface EnvironmentOrBuilder
        Returns:
        The serviceAccountEmail.
      • getServiceAccountEmailBytes

        public com.google.protobuf.ByteString getServiceAccountEmailBytes()
         Identity to run virtual machines as. Defaults to the default account.
         
        string service_account_email = 10;
        Specified by:
        getServiceAccountEmailBytes in interface EnvironmentOrBuilder
        Returns:
        The bytes for serviceAccountEmail.
      • setServiceAccountEmail

        public Environment.Builder setServiceAccountEmail​(String value)
         Identity to run virtual machines as. Defaults to the default account.
         
        string service_account_email = 10;
        Parameters:
        value - The serviceAccountEmail to set.
        Returns:
        This builder for chaining.
      • clearServiceAccountEmail

        public Environment.Builder clearServiceAccountEmail()
         Identity to run virtual machines as. Defaults to the default account.
         
        string service_account_email = 10;
        Returns:
        This builder for chaining.
      • setServiceAccountEmailBytes

        public Environment.Builder setServiceAccountEmailBytes​(com.google.protobuf.ByteString value)
         Identity to run virtual machines as. Defaults to the default account.
         
        string service_account_email = 10;
        Parameters:
        value - The bytes for serviceAccountEmail to set.
        Returns:
        This builder for chaining.
      • getFlexResourceSchedulingGoalValue

        public int getFlexResourceSchedulingGoalValue()
         Which Flexible Resource Scheduling mode to run in.
         
        .google.dataflow.v1beta3.FlexResourceSchedulingGoal flex_resource_scheduling_goal = 11;
        Specified by:
        getFlexResourceSchedulingGoalValue in interface EnvironmentOrBuilder
        Returns:
        The enum numeric value on the wire for flexResourceSchedulingGoal.
      • setFlexResourceSchedulingGoalValue

        public Environment.Builder setFlexResourceSchedulingGoalValue​(int value)
         Which Flexible Resource Scheduling mode to run in.
         
        .google.dataflow.v1beta3.FlexResourceSchedulingGoal flex_resource_scheduling_goal = 11;
        Parameters:
        value - The enum numeric value on the wire for flexResourceSchedulingGoal to set.
        Returns:
        This builder for chaining.
      • setFlexResourceSchedulingGoal

        public Environment.Builder setFlexResourceSchedulingGoal​(FlexResourceSchedulingGoal value)
         Which Flexible Resource Scheduling mode to run in.
         
        .google.dataflow.v1beta3.FlexResourceSchedulingGoal flex_resource_scheduling_goal = 11;
        Parameters:
        value - The flexResourceSchedulingGoal to set.
        Returns:
        This builder for chaining.
      • clearFlexResourceSchedulingGoal

        public Environment.Builder clearFlexResourceSchedulingGoal()
         Which Flexible Resource Scheduling mode to run in.
         
        .google.dataflow.v1beta3.FlexResourceSchedulingGoal flex_resource_scheduling_goal = 11;
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        getWorkerRegion in interface EnvironmentOrBuilder
        Returns:
        The workerRegion.
      • getWorkerRegionBytes

        public com.google.protobuf.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;
        Specified by:
        getWorkerRegionBytes in interface EnvironmentOrBuilder
        Returns:
        The bytes for workerRegion.
      • setWorkerRegion

        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;
        Parameters:
        value - The workerRegion to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setWorkerRegionBytes

        public Environment.Builder setWorkerRegionBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for workerRegion to set.
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        getWorkerZone in interface EnvironmentOrBuilder
        Returns:
        The workerZone.
      • getWorkerZoneBytes

        public com.google.protobuf.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;
        Specified by:
        getWorkerZoneBytes in interface EnvironmentOrBuilder
        Returns:
        The bytes for workerZone.
      • setWorkerZone

        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;
        Parameters:
        value - The workerZone to set.
        Returns:
        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:
        This builder for chaining.
      • setWorkerZoneBytes

        public Environment.Builder setWorkerZoneBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for workerZone to set.
        Returns:
        This builder for chaining.
      • getShuffleModeValue

        public int getShuffleModeValue()
         Output only. The shuffle mode used for the job.
         
        .google.dataflow.v1beta3.ShuffleMode shuffle_mode = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getShuffleModeValue in interface EnvironmentOrBuilder
        Returns:
        The enum numeric value on the wire for shuffleMode.
      • setShuffleModeValue

        public Environment.Builder setShuffleModeValue​(int value)
         Output only. The shuffle mode used for the job.
         
        .google.dataflow.v1beta3.ShuffleMode shuffle_mode = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for shuffleMode to set.
        Returns:
        This builder for chaining.
      • getShuffleMode

        public ShuffleMode getShuffleMode()
         Output only. The shuffle mode used for the job.
         
        .google.dataflow.v1beta3.ShuffleMode shuffle_mode = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getShuffleMode in interface EnvironmentOrBuilder
        Returns:
        The shuffleMode.
      • setShuffleMode

        public Environment.Builder setShuffleMode​(ShuffleMode value)
         Output only. The shuffle mode used for the job.
         
        .google.dataflow.v1beta3.ShuffleMode shuffle_mode = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The shuffleMode to set.
        Returns:
        This builder for chaining.
      • clearShuffleMode

        public Environment.Builder clearShuffleMode()
         Output only. The shuffle mode used for the job.
         
        .google.dataflow.v1beta3.ShuffleMode shuffle_mode = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasDebugOptions

        public boolean hasDebugOptions()
         Any debugging options to be supplied to the job.
         
        .google.dataflow.v1beta3.DebugOptions debug_options = 17;
        Specified by:
        hasDebugOptions in interface EnvironmentOrBuilder
        Returns:
        Whether the debugOptions field is set.
      • getDebugOptions

        public DebugOptions getDebugOptions()
         Any debugging options to be supplied to the job.
         
        .google.dataflow.v1beta3.DebugOptions debug_options = 17;
        Specified by:
        getDebugOptions in interface EnvironmentOrBuilder
        Returns:
        The debugOptions.
      • setDebugOptions

        public Environment.Builder setDebugOptions​(DebugOptions value)
         Any debugging options to be supplied to the job.
         
        .google.dataflow.v1beta3.DebugOptions debug_options = 17;
      • setDebugOptions

        public Environment.Builder setDebugOptions​(DebugOptions.Builder builderForValue)
         Any debugging options to be supplied to the job.
         
        .google.dataflow.v1beta3.DebugOptions debug_options = 17;
      • mergeDebugOptions

        public Environment.Builder mergeDebugOptions​(DebugOptions value)
         Any debugging options to be supplied to the job.
         
        .google.dataflow.v1beta3.DebugOptions debug_options = 17;
      • clearDebugOptions

        public Environment.Builder clearDebugOptions()
         Any debugging options to be supplied to the job.
         
        .google.dataflow.v1beta3.DebugOptions debug_options = 17;
      • getDebugOptionsBuilder

        public DebugOptions.Builder getDebugOptionsBuilder()
         Any debugging options to be supplied to the job.
         
        .google.dataflow.v1beta3.DebugOptions debug_options = 17;
      • setUnknownFields

        public final Environment.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>
      • mergeUnknownFields

        public final Environment.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Environment.Builder>