Class TaskRunnerSettings

  • All Implemented Interfaces:
    TaskRunnerSettingsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class TaskRunnerSettings
    extends com.google.protobuf.GeneratedMessageV3
    implements TaskRunnerSettingsOrBuilder
     Taskrunner configuration settings.
     
    Protobuf type google.dataflow.v1beta3.TaskRunnerSettings
    See Also:
    Serialized Form
    • Field Detail

      • TASK_GROUP_FIELD_NUMBER

        public static final int TASK_GROUP_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OAUTH_SCOPES_FIELD_NUMBER

        public static final int OAUTH_SCOPES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DATAFLOW_API_VERSION_FIELD_NUMBER

        public static final int DATAFLOW_API_VERSION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PARALLEL_WORKER_SETTINGS_FIELD_NUMBER

        public static final int PARALLEL_WORKER_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • BASE_TASK_DIR_FIELD_NUMBER

        public static final int BASE_TASK_DIR_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CONTINUE_ON_EXCEPTION_FIELD_NUMBER

        public static final int CONTINUE_ON_EXCEPTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LOG_TO_SERIALCONSOLE_FIELD_NUMBER

        public static final int LOG_TO_SERIALCONSOLE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ALSOLOGTOSTDERR_FIELD_NUMBER

        public static final int ALSOLOGTOSTDERR_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LOG_UPLOAD_LOCATION_FIELD_NUMBER

        public static final int LOG_UPLOAD_LOCATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TEMP_STORAGE_PREFIX_FIELD_NUMBER

        public static final int TEMP_STORAGE_PREFIX_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HARNESS_COMMAND_FIELD_NUMBER

        public static final int HARNESS_COMMAND_FIELD_NUMBER
        See Also:
        Constant Field Values
      • WORKFLOW_FILE_NAME_FIELD_NUMBER

        public static final int WORKFLOW_FILE_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • COMMANDLINES_FILE_NAME_FIELD_NUMBER

        public static final int COMMANDLINES_FILE_NAME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LANGUAGE_HINT_FIELD_NUMBER

        public static final int LANGUAGE_HINT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • STREAMING_WORKER_MAIN_CLASS_FIELD_NUMBER

        public static final int STREAMING_WORKER_MAIN_CLASS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getTaskUser

        public String getTaskUser()
         The UNIX user ID on the worker VM to use for tasks launched by
         taskrunner; e.g. "root".
         
        string task_user = 1;
        Specified by:
        getTaskUser in interface TaskRunnerSettingsOrBuilder
        Returns:
        The taskUser.
      • getTaskUserBytes

        public com.google.protobuf.ByteString getTaskUserBytes()
         The UNIX user ID on the worker VM to use for tasks launched by
         taskrunner; e.g. "root".
         
        string task_user = 1;
        Specified by:
        getTaskUserBytes in interface TaskRunnerSettingsOrBuilder
        Returns:
        The bytes for taskUser.
      • getTaskGroup

        public String getTaskGroup()
         The UNIX group ID on the worker VM to use for tasks launched by
         taskrunner; e.g. "wheel".
         
        string task_group = 2;
        Specified by:
        getTaskGroup in interface TaskRunnerSettingsOrBuilder
        Returns:
        The taskGroup.
      • getTaskGroupBytes

        public com.google.protobuf.ByteString getTaskGroupBytes()
         The UNIX group ID on the worker VM to use for tasks launched by
         taskrunner; e.g. "wheel".
         
        string task_group = 2;
        Specified by:
        getTaskGroupBytes in interface TaskRunnerSettingsOrBuilder
        Returns:
        The bytes for taskGroup.
      • getOauthScopesList

        public com.google.protobuf.ProtocolStringList getOauthScopesList()
         The OAuth2 scopes to be requested by the taskrunner in order to
         access the Cloud Dataflow API.
         
        repeated string oauth_scopes = 3;
        Specified by:
        getOauthScopesList in interface TaskRunnerSettingsOrBuilder
        Returns:
        A list containing the oauthScopes.
      • getOauthScopesCount

        public int getOauthScopesCount()
         The OAuth2 scopes to be requested by the taskrunner in order to
         access the Cloud Dataflow API.
         
        repeated string oauth_scopes = 3;
        Specified by:
        getOauthScopesCount in interface TaskRunnerSettingsOrBuilder
        Returns:
        The count of oauthScopes.
      • getOauthScopes

        public String getOauthScopes​(int index)
         The OAuth2 scopes to be requested by the taskrunner in order to
         access the Cloud Dataflow API.
         
        repeated string oauth_scopes = 3;
        Specified by:
        getOauthScopes in interface TaskRunnerSettingsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The oauthScopes at the given index.
      • getOauthScopesBytes

        public com.google.protobuf.ByteString getOauthScopesBytes​(int index)
         The OAuth2 scopes to be requested by the taskrunner in order to
         access the Cloud Dataflow API.
         
        repeated string oauth_scopes = 3;
        Specified by:
        getOauthScopesBytes in interface TaskRunnerSettingsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the oauthScopes at the given index.
      • getBaseUrl

        public String getBaseUrl()
         The base URL for the taskrunner to use when accessing Google Cloud APIs.
        
         When workers access Google Cloud APIs, they logically do so via
         relative URLs.  If this field is specified, it supplies the base
         URL to use for resolving these relative URLs.  The normative
         algorithm used is defined by RFC 1808, "Relative Uniform Resource
         Locators".
        
         If not specified, the default value is "http://www.googleapis.com/"
         
        string base_url = 4;
        Specified by:
        getBaseUrl in interface TaskRunnerSettingsOrBuilder
        Returns:
        The baseUrl.
      • getBaseUrlBytes

        public com.google.protobuf.ByteString getBaseUrlBytes()
         The base URL for the taskrunner to use when accessing Google Cloud APIs.
        
         When workers access Google Cloud APIs, they logically do so via
         relative URLs.  If this field is specified, it supplies the base
         URL to use for resolving these relative URLs.  The normative
         algorithm used is defined by RFC 1808, "Relative Uniform Resource
         Locators".
        
         If not specified, the default value is "http://www.googleapis.com/"
         
        string base_url = 4;
        Specified by:
        getBaseUrlBytes in interface TaskRunnerSettingsOrBuilder
        Returns:
        The bytes for baseUrl.
      • getDataflowApiVersionBytes

        public com.google.protobuf.ByteString getDataflowApiVersionBytes()
         The API version of endpoint, e.g. "v1b3"
         
        string dataflow_api_version = 5;
        Specified by:
        getDataflowApiVersionBytes in interface TaskRunnerSettingsOrBuilder
        Returns:
        The bytes for dataflowApiVersion.
      • hasParallelWorkerSettings

        public boolean hasParallelWorkerSettings()
         The settings to pass to the parallel worker harness.
         
        .google.dataflow.v1beta3.WorkerSettings parallel_worker_settings = 6;
        Specified by:
        hasParallelWorkerSettings in interface TaskRunnerSettingsOrBuilder
        Returns:
        Whether the parallelWorkerSettings field is set.
      • getBaseTaskDirBytes

        public com.google.protobuf.ByteString getBaseTaskDirBytes()
         The location on the worker for task-specific subdirectories.
         
        string base_task_dir = 7;
        Specified by:
        getBaseTaskDirBytes in interface TaskRunnerSettingsOrBuilder
        Returns:
        The bytes for baseTaskDir.
      • getContinueOnException

        public boolean getContinueOnException()
         Whether to continue taskrunner if an exception is hit.
         
        bool continue_on_exception = 8;
        Specified by:
        getContinueOnException in interface TaskRunnerSettingsOrBuilder
        Returns:
        The continueOnException.
      • getLogToSerialconsole

        public boolean getLogToSerialconsole()
         Whether to send taskrunner log info to Google Compute Engine VM serial
         console.
         
        bool log_to_serialconsole = 9;
        Specified by:
        getLogToSerialconsole in interface TaskRunnerSettingsOrBuilder
        Returns:
        The logToSerialconsole.
      • getAlsologtostderr

        public boolean getAlsologtostderr()
         Whether to also send taskrunner log info to stderr.
         
        bool alsologtostderr = 10;
        Specified by:
        getAlsologtostderr in interface TaskRunnerSettingsOrBuilder
        Returns:
        The alsologtostderr.
      • getLogUploadLocation

        public String getLogUploadLocation()
         Indicates where to put logs.  If this is not specified, the logs
         will not be uploaded.
        
         The supported resource type is:
        
         Google Cloud Storage:
           storage.googleapis.com/{bucket}/{object}
           bucket.storage.googleapis.com/{object}
         
        string log_upload_location = 11;
        Specified by:
        getLogUploadLocation in interface TaskRunnerSettingsOrBuilder
        Returns:
        The logUploadLocation.
      • getLogUploadLocationBytes

        public com.google.protobuf.ByteString getLogUploadLocationBytes()
         Indicates where to put logs.  If this is not specified, the logs
         will not be uploaded.
        
         The supported resource type is:
        
         Google Cloud Storage:
           storage.googleapis.com/{bucket}/{object}
           bucket.storage.googleapis.com/{object}
         
        string log_upload_location = 11;
        Specified by:
        getLogUploadLocationBytes in interface TaskRunnerSettingsOrBuilder
        Returns:
        The bytes for logUploadLocation.
      • getLogDirBytes

        public com.google.protobuf.ByteString getLogDirBytes()
         The directory on the VM to store logs.
         
        string log_dir = 12;
        Specified by:
        getLogDirBytes in interface TaskRunnerSettingsOrBuilder
        Returns:
        The bytes for logDir.
      • getTempStoragePrefix

        public String getTempStoragePrefix()
         The prefix of the resources the taskrunner should use for
         temporary storage.
        
         The supported resource type is:
        
         Google Cloud Storage:
           storage.googleapis.com/{bucket}/{object}
           bucket.storage.googleapis.com/{object}
         
        string temp_storage_prefix = 13;
        Specified by:
        getTempStoragePrefix in interface TaskRunnerSettingsOrBuilder
        Returns:
        The tempStoragePrefix.
      • getTempStoragePrefixBytes

        public com.google.protobuf.ByteString getTempStoragePrefixBytes()
         The prefix of the resources the taskrunner should use for
         temporary storage.
        
         The supported resource type is:
        
         Google Cloud Storage:
           storage.googleapis.com/{bucket}/{object}
           bucket.storage.googleapis.com/{object}
         
        string temp_storage_prefix = 13;
        Specified by:
        getTempStoragePrefixBytes in interface TaskRunnerSettingsOrBuilder
        Returns:
        The bytes for tempStoragePrefix.
      • getHarnessCommandBytes

        public com.google.protobuf.ByteString getHarnessCommandBytes()
         The command to launch the worker harness.
         
        string harness_command = 14;
        Specified by:
        getHarnessCommandBytes in interface TaskRunnerSettingsOrBuilder
        Returns:
        The bytes for harnessCommand.
      • getWorkflowFileNameBytes

        public com.google.protobuf.ByteString getWorkflowFileNameBytes()
         The file to store the workflow in.
         
        string workflow_file_name = 15;
        Specified by:
        getWorkflowFileNameBytes in interface TaskRunnerSettingsOrBuilder
        Returns:
        The bytes for workflowFileName.
      • getCommandlinesFileNameBytes

        public com.google.protobuf.ByteString getCommandlinesFileNameBytes()
         The file to store preprocessing commands in.
         
        string commandlines_file_name = 16;
        Specified by:
        getCommandlinesFileNameBytes in interface TaskRunnerSettingsOrBuilder
        Returns:
        The bytes for commandlinesFileName.
      • getVmIdBytes

        public com.google.protobuf.ByteString getVmIdBytes()
         The ID string of the VM.
         
        string vm_id = 17;
        Specified by:
        getVmIdBytes in interface TaskRunnerSettingsOrBuilder
        Returns:
        The bytes for vmId.
      • getLanguageHintBytes

        public com.google.protobuf.ByteString getLanguageHintBytes()
         The suggested backend language.
         
        string language_hint = 18;
        Specified by:
        getLanguageHintBytes in interface TaskRunnerSettingsOrBuilder
        Returns:
        The bytes for languageHint.
      • getStreamingWorkerMainClassBytes

        public com.google.protobuf.ByteString getStreamingWorkerMainClassBytes()
         The streaming worker main class name.
         
        string streaming_worker_main_class = 19;
        Specified by:
        getStreamingWorkerMainClassBytes in interface TaskRunnerSettingsOrBuilder
        Returns:
        The bytes for streamingWorkerMainClass.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static TaskRunnerSettings parseFrom​(ByteBuffer data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TaskRunnerSettings parseFrom​(ByteBuffer data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TaskRunnerSettings parseFrom​(com.google.protobuf.ByteString data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TaskRunnerSettings parseFrom​(com.google.protobuf.ByteString data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TaskRunnerSettings parseFrom​(byte[] data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TaskRunnerSettings parseFrom​(byte[] data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static TaskRunnerSettings parseFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws IOException
        Throws:
        IOException
      • newBuilderForType

        public TaskRunnerSettings.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public TaskRunnerSettings.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected TaskRunnerSettings.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<TaskRunnerSettings> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public TaskRunnerSettings getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder