Class BufferTaskRequest.Builder

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public BufferTaskRequest.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<BufferTaskRequest.Builder>
        Throws:
        IOException
      • getQueue

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

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

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

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

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

        public String getTaskId()
         Optional. Task ID for the task being created. If not provided, a random
         task ID is assigned to the task.
         
        string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTaskId in interface BufferTaskRequestOrBuilder
        Returns:
        The taskId.
      • getTaskIdBytes

        public com.google.protobuf.ByteString getTaskIdBytes()
         Optional. Task ID for the task being created. If not provided, a random
         task ID is assigned to the task.
         
        string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTaskIdBytes in interface BufferTaskRequestOrBuilder
        Returns:
        The bytes for taskId.
      • setTaskId

        public BufferTaskRequest.Builder setTaskId​(String value)
         Optional. Task ID for the task being created. If not provided, a random
         task ID is assigned to the task.
         
        string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The taskId to set.
        Returns:
        This builder for chaining.
      • clearTaskId

        public BufferTaskRequest.Builder clearTaskId()
         Optional. Task ID for the task being created. If not provided, a random
         task ID is assigned to the task.
         
        string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setTaskIdBytes

        public BufferTaskRequest.Builder setTaskIdBytes​(com.google.protobuf.ByteString value)
         Optional. Task ID for the task being created. If not provided, a random
         task ID is assigned to the task.
         
        string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for taskId to set.
        Returns:
        This builder for chaining.
      • hasBody

        public boolean hasBody()
         Optional. Body of the HTTP request.
        
         The body can take any generic value. The value is written to the
         [HttpRequest][payload] of the [Task].
         
        .google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasBody in interface BufferTaskRequestOrBuilder
        Returns:
        Whether the body field is set.
      • getBody

        public com.google.api.HttpBody getBody()
         Optional. Body of the HTTP request.
        
         The body can take any generic value. The value is written to the
         [HttpRequest][payload] of the [Task].
         
        .google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getBody in interface BufferTaskRequestOrBuilder
        Returns:
        The body.
      • setBody

        public BufferTaskRequest.Builder setBody​(com.google.api.HttpBody value)
         Optional. Body of the HTTP request.
        
         The body can take any generic value. The value is written to the
         [HttpRequest][payload] of the [Task].
         
        .google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
      • setBody

        public BufferTaskRequest.Builder setBody​(com.google.api.HttpBody.Builder builderForValue)
         Optional. Body of the HTTP request.
        
         The body can take any generic value. The value is written to the
         [HttpRequest][payload] of the [Task].
         
        .google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
      • mergeBody

        public BufferTaskRequest.Builder mergeBody​(com.google.api.HttpBody value)
         Optional. Body of the HTTP request.
        
         The body can take any generic value. The value is written to the
         [HttpRequest][payload] of the [Task].
         
        .google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
      • clearBody

        public BufferTaskRequest.Builder clearBody()
         Optional. Body of the HTTP request.
        
         The body can take any generic value. The value is written to the
         [HttpRequest][payload] of the [Task].
         
        .google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getBodyBuilder

        public com.google.api.HttpBody.Builder getBodyBuilder()
         Optional. Body of the HTTP request.
        
         The body can take any generic value. The value is written to the
         [HttpRequest][payload] of the [Task].
         
        .google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getBodyOrBuilder

        public com.google.api.HttpBodyOrBuilder getBodyOrBuilder()
         Optional. Body of the HTTP request.
        
         The body can take any generic value. The value is written to the
         [HttpRequest][payload] of the [Task].
         
        .google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getBodyOrBuilder in interface BufferTaskRequestOrBuilder
      • setUnknownFields

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

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