Class UpdateAnnotationRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UpdateAnnotationRequest.Builder>
com.google.cloud.visionai.v1.UpdateAnnotationRequest.Builder
All Implemented Interfaces:
UpdateAnnotationRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UpdateAnnotationRequest

public static final class UpdateAnnotationRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpdateAnnotationRequest.Builder> implements UpdateAnnotationRequestOrBuilder
 Request message for UpdateAnnotation API.
 
Protobuf type google.cloud.visionai.v1.UpdateAnnotationRequest
  • 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<UpdateAnnotationRequest.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<UpdateAnnotationRequest.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<UpdateAnnotationRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public UpdateAnnotationRequest.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<UpdateAnnotationRequest.Builder>
      Throws:
      IOException
    • hasAnnotation

      public boolean hasAnnotation()
       Required. The annotation to update.
       The annotation's `name` field is used to identify the annotation to be
       updated. Format:
       `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}`
       
      .google.cloud.visionai.v1.Annotation annotation = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAnnotation in interface UpdateAnnotationRequestOrBuilder
      Returns:
      Whether the annotation field is set.
    • getAnnotation

      public Annotation getAnnotation()
       Required. The annotation to update.
       The annotation's `name` field is used to identify the annotation to be
       updated. Format:
       `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}`
       
      .google.cloud.visionai.v1.Annotation annotation = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAnnotation in interface UpdateAnnotationRequestOrBuilder
      Returns:
      The annotation.
    • setAnnotation

      public UpdateAnnotationRequest.Builder setAnnotation(Annotation value)
       Required. The annotation to update.
       The annotation's `name` field is used to identify the annotation to be
       updated. Format:
       `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}`
       
      .google.cloud.visionai.v1.Annotation annotation = 1 [(.google.api.field_behavior) = REQUIRED];
    • setAnnotation

      public UpdateAnnotationRequest.Builder setAnnotation(Annotation.Builder builderForValue)
       Required. The annotation to update.
       The annotation's `name` field is used to identify the annotation to be
       updated. Format:
       `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}`
       
      .google.cloud.visionai.v1.Annotation annotation = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeAnnotation

      public UpdateAnnotationRequest.Builder mergeAnnotation(Annotation value)
       Required. The annotation to update.
       The annotation's `name` field is used to identify the annotation to be
       updated. Format:
       `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}`
       
      .google.cloud.visionai.v1.Annotation annotation = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearAnnotation

      public UpdateAnnotationRequest.Builder clearAnnotation()
       Required. The annotation to update.
       The annotation's `name` field is used to identify the annotation to be
       updated. Format:
       `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}`
       
      .google.cloud.visionai.v1.Annotation annotation = 1 [(.google.api.field_behavior) = REQUIRED];
    • getAnnotationBuilder

      public Annotation.Builder getAnnotationBuilder()
       Required. The annotation to update.
       The annotation's `name` field is used to identify the annotation to be
       updated. Format:
       `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}`
       
      .google.cloud.visionai.v1.Annotation annotation = 1 [(.google.api.field_behavior) = REQUIRED];
    • getAnnotationOrBuilder

      public AnnotationOrBuilder getAnnotationOrBuilder()
       Required. The annotation to update.
       The annotation's `name` field is used to identify the annotation to be
       updated. Format:
       `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}/annotations/{annotation}`
       
      .google.cloud.visionai.v1.Annotation annotation = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAnnotationOrBuilder in interface UpdateAnnotationRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       The list of fields to be updated.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      hasUpdateMask in interface UpdateAnnotationRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       The list of fields to be updated.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMask in interface UpdateAnnotationRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateAnnotationRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       The list of fields to be updated.
       
      .google.protobuf.FieldMask update_mask = 2;
    • setUpdateMask

      public UpdateAnnotationRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       The list of fields to be updated.
       
      .google.protobuf.FieldMask update_mask = 2;
    • mergeUpdateMask

      public UpdateAnnotationRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       The list of fields to be updated.
       
      .google.protobuf.FieldMask update_mask = 2;
    • clearUpdateMask

      public UpdateAnnotationRequest.Builder clearUpdateMask()
       The list of fields to be updated.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       The list of fields to be updated.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       The list of fields to be updated.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateAnnotationRequestOrBuilder