Class CreateTaskRequest.Builder

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

    public static final class CreateTaskRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CreateTaskRequest.Builder>
    implements CreateTaskRequestOrBuilder
     Request message for
     [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
     
    Protobuf type google.cloud.tasks.v2beta2.CreateTaskRequest
    • 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<CreateTaskRequest.Builder>
      • clear

        public CreateTaskRequest.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<CreateTaskRequest.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<CreateTaskRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public CreateTaskRequest.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<CreateTaskRequest.Builder>
      • setField

        public CreateTaskRequest.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<CreateTaskRequest.Builder>
      • clearField

        public CreateTaskRequest.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<CreateTaskRequest.Builder>
      • clearOneof

        public CreateTaskRequest.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<CreateTaskRequest.Builder>
      • setRepeatedField

        public CreateTaskRequest.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<CreateTaskRequest.Builder>
      • addRepeatedField

        public CreateTaskRequest.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<CreateTaskRequest.Builder>
      • mergeFrom

        public CreateTaskRequest.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<CreateTaskRequest.Builder>
      • isInitialized

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

        public CreateTaskRequest.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<CreateTaskRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. The queue name. For example:
         `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
        
         The queue must already exist.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface CreateTaskRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The queue name. For example:
         `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
        
         The queue must already exist.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface CreateTaskRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateTaskRequest.Builder setParent​(String value)
         Required. The queue name. For example:
         `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
        
         The queue must already exist.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateTaskRequest.Builder clearParent()
         Required. The queue name. For example:
         `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
        
         The queue must already exist.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateTaskRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The queue name. For example:
         `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
        
         The queue must already exist.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • hasTask

        public boolean hasTask()
         Required. The task to add.
        
         Task names have the following format:
         `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
         The user can optionally specify a task
         [name][google.cloud.tasks.v2beta2.Task.name]. If a name is not specified
         then the system will generate a random unique task id, which will be set in
         the task returned in the [response][google.cloud.tasks.v2beta2.Task.name].
        
         If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not
         set or is in the past then Cloud Tasks will set it to the current time.
        
         Task De-duplication:
        
         Explicitly specifying a task ID enables task de-duplication.  If
         a task's ID is identical to that of an existing task or a task
         that was deleted or completed recently then the call will fail
         with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
         If the task's queue was created using Cloud Tasks, then another task with
         the same name can't be created for ~1 hour after the original task was
         deleted or completed. If the task's queue was created using queue.yaml or
         queue.xml, then another task with the same name can't be created
         for ~9 days after the original task was deleted or completed.
        
         Because there is an extra lookup cost to identify duplicate task
         names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]
         calls have significantly increased latency. Using hashed strings for the
         task id or for the prefix of the task id is recommended. Choosing task ids
         that are sequential or have sequential prefixes, for example using a
         timestamp, causes an increase in latency and error rates in all
         task commands. The infrastructure relies on an approximately
         uniform distribution of task ids to store and serve tasks
         efficiently.
         
        .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasTask in interface CreateTaskRequestOrBuilder
        Returns:
        Whether the task field is set.
      • getTask

        public Task getTask()
         Required. The task to add.
        
         Task names have the following format:
         `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
         The user can optionally specify a task
         [name][google.cloud.tasks.v2beta2.Task.name]. If a name is not specified
         then the system will generate a random unique task id, which will be set in
         the task returned in the [response][google.cloud.tasks.v2beta2.Task.name].
        
         If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not
         set or is in the past then Cloud Tasks will set it to the current time.
        
         Task De-duplication:
        
         Explicitly specifying a task ID enables task de-duplication.  If
         a task's ID is identical to that of an existing task or a task
         that was deleted or completed recently then the call will fail
         with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
         If the task's queue was created using Cloud Tasks, then another task with
         the same name can't be created for ~1 hour after the original task was
         deleted or completed. If the task's queue was created using queue.yaml or
         queue.xml, then another task with the same name can't be created
         for ~9 days after the original task was deleted or completed.
        
         Because there is an extra lookup cost to identify duplicate task
         names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]
         calls have significantly increased latency. Using hashed strings for the
         task id or for the prefix of the task id is recommended. Choosing task ids
         that are sequential or have sequential prefixes, for example using a
         timestamp, causes an increase in latency and error rates in all
         task commands. The infrastructure relies on an approximately
         uniform distribution of task ids to store and serve tasks
         efficiently.
         
        .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTask in interface CreateTaskRequestOrBuilder
        Returns:
        The task.
      • setTask

        public CreateTaskRequest.Builder setTask​(Task value)
         Required. The task to add.
        
         Task names have the following format:
         `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
         The user can optionally specify a task
         [name][google.cloud.tasks.v2beta2.Task.name]. If a name is not specified
         then the system will generate a random unique task id, which will be set in
         the task returned in the [response][google.cloud.tasks.v2beta2.Task.name].
        
         If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not
         set or is in the past then Cloud Tasks will set it to the current time.
        
         Task De-duplication:
        
         Explicitly specifying a task ID enables task de-duplication.  If
         a task's ID is identical to that of an existing task or a task
         that was deleted or completed recently then the call will fail
         with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
         If the task's queue was created using Cloud Tasks, then another task with
         the same name can't be created for ~1 hour after the original task was
         deleted or completed. If the task's queue was created using queue.yaml or
         queue.xml, then another task with the same name can't be created
         for ~9 days after the original task was deleted or completed.
        
         Because there is an extra lookup cost to identify duplicate task
         names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]
         calls have significantly increased latency. Using hashed strings for the
         task id or for the prefix of the task id is recommended. Choosing task ids
         that are sequential or have sequential prefixes, for example using a
         timestamp, causes an increase in latency and error rates in all
         task commands. The infrastructure relies on an approximately
         uniform distribution of task ids to store and serve tasks
         efficiently.
         
        .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED];
      • setTask

        public CreateTaskRequest.Builder setTask​(Task.Builder builderForValue)
         Required. The task to add.
        
         Task names have the following format:
         `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
         The user can optionally specify a task
         [name][google.cloud.tasks.v2beta2.Task.name]. If a name is not specified
         then the system will generate a random unique task id, which will be set in
         the task returned in the [response][google.cloud.tasks.v2beta2.Task.name].
        
         If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not
         set or is in the past then Cloud Tasks will set it to the current time.
        
         Task De-duplication:
        
         Explicitly specifying a task ID enables task de-duplication.  If
         a task's ID is identical to that of an existing task or a task
         that was deleted or completed recently then the call will fail
         with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
         If the task's queue was created using Cloud Tasks, then another task with
         the same name can't be created for ~1 hour after the original task was
         deleted or completed. If the task's queue was created using queue.yaml or
         queue.xml, then another task with the same name can't be created
         for ~9 days after the original task was deleted or completed.
        
         Because there is an extra lookup cost to identify duplicate task
         names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]
         calls have significantly increased latency. Using hashed strings for the
         task id or for the prefix of the task id is recommended. Choosing task ids
         that are sequential or have sequential prefixes, for example using a
         timestamp, causes an increase in latency and error rates in all
         task commands. The infrastructure relies on an approximately
         uniform distribution of task ids to store and serve tasks
         efficiently.
         
        .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeTask

        public CreateTaskRequest.Builder mergeTask​(Task value)
         Required. The task to add.
        
         Task names have the following format:
         `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
         The user can optionally specify a task
         [name][google.cloud.tasks.v2beta2.Task.name]. If a name is not specified
         then the system will generate a random unique task id, which will be set in
         the task returned in the [response][google.cloud.tasks.v2beta2.Task.name].
        
         If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not
         set or is in the past then Cloud Tasks will set it to the current time.
        
         Task De-duplication:
        
         Explicitly specifying a task ID enables task de-duplication.  If
         a task's ID is identical to that of an existing task or a task
         that was deleted or completed recently then the call will fail
         with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
         If the task's queue was created using Cloud Tasks, then another task with
         the same name can't be created for ~1 hour after the original task was
         deleted or completed. If the task's queue was created using queue.yaml or
         queue.xml, then another task with the same name can't be created
         for ~9 days after the original task was deleted or completed.
        
         Because there is an extra lookup cost to identify duplicate task
         names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]
         calls have significantly increased latency. Using hashed strings for the
         task id or for the prefix of the task id is recommended. Choosing task ids
         that are sequential or have sequential prefixes, for example using a
         timestamp, causes an increase in latency and error rates in all
         task commands. The infrastructure relies on an approximately
         uniform distribution of task ids to store and serve tasks
         efficiently.
         
        .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearTask

        public CreateTaskRequest.Builder clearTask()
         Required. The task to add.
        
         Task names have the following format:
         `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
         The user can optionally specify a task
         [name][google.cloud.tasks.v2beta2.Task.name]. If a name is not specified
         then the system will generate a random unique task id, which will be set in
         the task returned in the [response][google.cloud.tasks.v2beta2.Task.name].
        
         If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not
         set or is in the past then Cloud Tasks will set it to the current time.
        
         Task De-duplication:
        
         Explicitly specifying a task ID enables task de-duplication.  If
         a task's ID is identical to that of an existing task or a task
         that was deleted or completed recently then the call will fail
         with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
         If the task's queue was created using Cloud Tasks, then another task with
         the same name can't be created for ~1 hour after the original task was
         deleted or completed. If the task's queue was created using queue.yaml or
         queue.xml, then another task with the same name can't be created
         for ~9 days after the original task was deleted or completed.
        
         Because there is an extra lookup cost to identify duplicate task
         names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]
         calls have significantly increased latency. Using hashed strings for the
         task id or for the prefix of the task id is recommended. Choosing task ids
         that are sequential or have sequential prefixes, for example using a
         timestamp, causes an increase in latency and error rates in all
         task commands. The infrastructure relies on an approximately
         uniform distribution of task ids to store and serve tasks
         efficiently.
         
        .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED];
      • getTaskBuilder

        public Task.Builder getTaskBuilder()
         Required. The task to add.
        
         Task names have the following format:
         `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
         The user can optionally specify a task
         [name][google.cloud.tasks.v2beta2.Task.name]. If a name is not specified
         then the system will generate a random unique task id, which will be set in
         the task returned in the [response][google.cloud.tasks.v2beta2.Task.name].
        
         If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not
         set or is in the past then Cloud Tasks will set it to the current time.
        
         Task De-duplication:
        
         Explicitly specifying a task ID enables task de-duplication.  If
         a task's ID is identical to that of an existing task or a task
         that was deleted or completed recently then the call will fail
         with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
         If the task's queue was created using Cloud Tasks, then another task with
         the same name can't be created for ~1 hour after the original task was
         deleted or completed. If the task's queue was created using queue.yaml or
         queue.xml, then another task with the same name can't be created
         for ~9 days after the original task was deleted or completed.
        
         Because there is an extra lookup cost to identify duplicate task
         names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]
         calls have significantly increased latency. Using hashed strings for the
         task id or for the prefix of the task id is recommended. Choosing task ids
         that are sequential or have sequential prefixes, for example using a
         timestamp, causes an increase in latency and error rates in all
         task commands. The infrastructure relies on an approximately
         uniform distribution of task ids to store and serve tasks
         efficiently.
         
        .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED];
      • getTaskOrBuilder

        public TaskOrBuilder getTaskOrBuilder()
         Required. The task to add.
        
         Task names have the following format:
         `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
         The user can optionally specify a task
         [name][google.cloud.tasks.v2beta2.Task.name]. If a name is not specified
         then the system will generate a random unique task id, which will be set in
         the task returned in the [response][google.cloud.tasks.v2beta2.Task.name].
        
         If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not
         set or is in the past then Cloud Tasks will set it to the current time.
        
         Task De-duplication:
        
         Explicitly specifying a task ID enables task de-duplication.  If
         a task's ID is identical to that of an existing task or a task
         that was deleted or completed recently then the call will fail
         with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
         If the task's queue was created using Cloud Tasks, then another task with
         the same name can't be created for ~1 hour after the original task was
         deleted or completed. If the task's queue was created using queue.yaml or
         queue.xml, then another task with the same name can't be created
         for ~9 days after the original task was deleted or completed.
        
         Because there is an extra lookup cost to identify duplicate task
         names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]
         calls have significantly increased latency. Using hashed strings for the
         task id or for the prefix of the task id is recommended. Choosing task ids
         that are sequential or have sequential prefixes, for example using a
         timestamp, causes an increase in latency and error rates in all
         task commands. The infrastructure relies on an approximately
         uniform distribution of task ids to store and serve tasks
         efficiently.
         
        .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getTaskOrBuilder in interface CreateTaskRequestOrBuilder
      • getResponseViewValue

        public int getResponseViewValue()
         The response_view specifies which subset of the
         [Task][google.cloud.tasks.v2beta2.Task] will be returned.
        
         By default response_view is
         [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all information is
         retrieved by default because some data, such as payloads, might be
         desirable to return only when needed because of its large size or because
         of the sensitivity of data that it contains.
        
         Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL]
         requires `cloudtasks.tasks.fullView` [Google
         IAM](https://cloud.google.com/iam/) permission on the
         [Task][google.cloud.tasks.v2beta2.Task] resource.
         
        .google.cloud.tasks.v2beta2.Task.View response_view = 3;
        Specified by:
        getResponseViewValue in interface CreateTaskRequestOrBuilder
        Returns:
        The enum numeric value on the wire for responseView.
      • setResponseViewValue

        public CreateTaskRequest.Builder setResponseViewValue​(int value)
         The response_view specifies which subset of the
         [Task][google.cloud.tasks.v2beta2.Task] will be returned.
        
         By default response_view is
         [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all information is
         retrieved by default because some data, such as payloads, might be
         desirable to return only when needed because of its large size or because
         of the sensitivity of data that it contains.
        
         Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL]
         requires `cloudtasks.tasks.fullView` [Google
         IAM](https://cloud.google.com/iam/) permission on the
         [Task][google.cloud.tasks.v2beta2.Task] resource.
         
        .google.cloud.tasks.v2beta2.Task.View response_view = 3;
        Parameters:
        value - The enum numeric value on the wire for responseView to set.
        Returns:
        This builder for chaining.
      • getResponseView

        public Task.View getResponseView()
         The response_view specifies which subset of the
         [Task][google.cloud.tasks.v2beta2.Task] will be returned.
        
         By default response_view is
         [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all information is
         retrieved by default because some data, such as payloads, might be
         desirable to return only when needed because of its large size or because
         of the sensitivity of data that it contains.
        
         Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL]
         requires `cloudtasks.tasks.fullView` [Google
         IAM](https://cloud.google.com/iam/) permission on the
         [Task][google.cloud.tasks.v2beta2.Task] resource.
         
        .google.cloud.tasks.v2beta2.Task.View response_view = 3;
        Specified by:
        getResponseView in interface CreateTaskRequestOrBuilder
        Returns:
        The responseView.
      • setResponseView

        public CreateTaskRequest.Builder setResponseView​(Task.View value)
         The response_view specifies which subset of the
         [Task][google.cloud.tasks.v2beta2.Task] will be returned.
        
         By default response_view is
         [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all information is
         retrieved by default because some data, such as payloads, might be
         desirable to return only when needed because of its large size or because
         of the sensitivity of data that it contains.
        
         Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL]
         requires `cloudtasks.tasks.fullView` [Google
         IAM](https://cloud.google.com/iam/) permission on the
         [Task][google.cloud.tasks.v2beta2.Task] resource.
         
        .google.cloud.tasks.v2beta2.Task.View response_view = 3;
        Parameters:
        value - The responseView to set.
        Returns:
        This builder for chaining.
      • clearResponseView

        public CreateTaskRequest.Builder clearResponseView()
         The response_view specifies which subset of the
         [Task][google.cloud.tasks.v2beta2.Task] will be returned.
        
         By default response_view is
         [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all information is
         retrieved by default because some data, such as payloads, might be
         desirable to return only when needed because of its large size or because
         of the sensitivity of data that it contains.
        
         Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL]
         requires `cloudtasks.tasks.fullView` [Google
         IAM](https://cloud.google.com/iam/) permission on the
         [Task][google.cloud.tasks.v2beta2.Task] resource.
         
        .google.cloud.tasks.v2beta2.Task.View response_view = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CreateTaskRequest.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<CreateTaskRequest.Builder>
      • mergeUnknownFields

        public final CreateTaskRequest.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<CreateTaskRequest.Builder>