Class CreateAnnotationSpecSetRequest.Builder

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

public static final class CreateAnnotationSpecSetRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateAnnotationSpecSetRequest.Builder> implements CreateAnnotationSpecSetRequestOrBuilder
 Request message for CreateAnnotationSpecSet.
 
Protobuf type google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest
  • 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<CreateAnnotationSpecSetRequest.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<CreateAnnotationSpecSetRequest.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<CreateAnnotationSpecSetRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

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

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

       Required. AnnotationSpecSet 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

       Required. AnnotationSpecSet 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 CreateAnnotationSpecSetRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. AnnotationSpecSet 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.
    • hasAnnotationSpecSet

      public boolean hasAnnotationSpecSet()
       Required. Annotation spec set to create. Annotation specs must be included.
       Only one annotation spec will be accepted for annotation specs with same
       display_name.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAnnotationSpecSet in interface CreateAnnotationSpecSetRequestOrBuilder
      Returns:
      Whether the annotationSpecSet field is set.
    • getAnnotationSpecSet

      public AnnotationSpecSet getAnnotationSpecSet()
       Required. Annotation spec set to create. Annotation specs must be included.
       Only one annotation spec will be accepted for annotation specs with same
       display_name.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAnnotationSpecSet in interface CreateAnnotationSpecSetRequestOrBuilder
      Returns:
      The annotationSpecSet.
    • setAnnotationSpecSet

      public CreateAnnotationSpecSetRequest.Builder setAnnotationSpecSet(AnnotationSpecSet value)
       Required. Annotation spec set to create. Annotation specs must be included.
       Only one annotation spec will be accepted for annotation specs with same
       display_name.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];
    • setAnnotationSpecSet

      public CreateAnnotationSpecSetRequest.Builder setAnnotationSpecSet(AnnotationSpecSet.Builder builderForValue)
       Required. Annotation spec set to create. Annotation specs must be included.
       Only one annotation spec will be accepted for annotation specs with same
       display_name.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeAnnotationSpecSet

      public CreateAnnotationSpecSetRequest.Builder mergeAnnotationSpecSet(AnnotationSpecSet value)
       Required. Annotation spec set to create. Annotation specs must be included.
       Only one annotation spec will be accepted for annotation specs with same
       display_name.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearAnnotationSpecSet

      public CreateAnnotationSpecSetRequest.Builder clearAnnotationSpecSet()
       Required. Annotation spec set to create. Annotation specs must be included.
       Only one annotation spec will be accepted for annotation specs with same
       display_name.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];
    • getAnnotationSpecSetBuilder

      public AnnotationSpecSet.Builder getAnnotationSpecSetBuilder()
       Required. Annotation spec set to create. Annotation specs must be included.
       Only one annotation spec will be accepted for annotation specs with same
       display_name.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];
    • getAnnotationSpecSetOrBuilder

      public AnnotationSpecSetOrBuilder getAnnotationSpecSetOrBuilder()
       Required. Annotation spec set to create. Annotation specs must be included.
       Only one annotation spec will be accepted for annotation specs with same
       display_name.
       
      .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAnnotationSpecSetOrBuilder in interface CreateAnnotationSpecSetRequestOrBuilder