Class CreateInstructionRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateInstructionRequest.Builder>
com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.Builder
All Implemented Interfaces:
CreateInstructionRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateInstructionRequest

public static final class CreateInstructionRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateInstructionRequest.Builder> implements CreateInstructionRequestOrBuilder
 Request message for CreateInstruction.
 
Protobuf type google.cloud.datalabeling.v1beta1.CreateInstructionRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CreateInstructionRequest.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.GeneratedMessage.Builder<CreateInstructionRequest.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.GeneratedMessage.Builder<CreateInstructionRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

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

      public String getParent()
       Required. Instruction resource parent, format:
       projects/{project_id}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateInstructionRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Instruction resource parent, format:
       projects/{project_id}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateInstructionRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateInstructionRequest.Builder setParent(String value)
       Required. Instruction resource parent, format:
       projects/{project_id}
       
      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 CreateInstructionRequest.Builder clearParent()
       Required. Instruction resource parent, format:
       projects/{project_id}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateInstructionRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Instruction resource parent, format:
       projects/{project_id}
       
      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.
    • hasInstruction

      public boolean hasInstruction()
       Required. Instruction of how to perform the labeling task.
       
      .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasInstruction in interface CreateInstructionRequestOrBuilder
      Returns:
      Whether the instruction field is set.
    • getInstruction

      public Instruction getInstruction()
       Required. Instruction of how to perform the labeling task.
       
      .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstruction in interface CreateInstructionRequestOrBuilder
      Returns:
      The instruction.
    • setInstruction

      public CreateInstructionRequest.Builder setInstruction(Instruction value)
       Required. Instruction of how to perform the labeling task.
       
      .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED];
    • setInstruction

      public CreateInstructionRequest.Builder setInstruction(Instruction.Builder builderForValue)
       Required. Instruction of how to perform the labeling task.
       
      .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeInstruction

      public CreateInstructionRequest.Builder mergeInstruction(Instruction value)
       Required. Instruction of how to perform the labeling task.
       
      .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearInstruction

      public CreateInstructionRequest.Builder clearInstruction()
       Required. Instruction of how to perform the labeling task.
       
      .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED];
    • getInstructionBuilder

      public Instruction.Builder getInstructionBuilder()
       Required. Instruction of how to perform the labeling task.
       
      .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED];
    • getInstructionOrBuilder

      public InstructionOrBuilder getInstructionOrBuilder()
       Required. Instruction of how to perform the labeling task.
       
      .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInstructionOrBuilder in interface CreateInstructionRequestOrBuilder