Class UpdateCollectionRequest.Builder

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

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

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

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

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

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

      public UpdateCollectionRequest.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<UpdateCollectionRequest.Builder>
      Throws:
      IOException
    • hasCollection

      public boolean hasCollection()
       Required. The collection to update.
      
       The collection's `name` field is used to identify the collection to be
       updated. Format:
       `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`
       
      .google.cloud.visionai.v1.Collection collection = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasCollection in interface UpdateCollectionRequestOrBuilder
      Returns:
      Whether the collection field is set.
    • getCollection

      public Collection getCollection()
       Required. The collection to update.
      
       The collection's `name` field is used to identify the collection to be
       updated. Format:
       `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`
       
      .google.cloud.visionai.v1.Collection collection = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCollection in interface UpdateCollectionRequestOrBuilder
      Returns:
      The collection.
    • setCollection

      public UpdateCollectionRequest.Builder setCollection(Collection value)
       Required. The collection to update.
      
       The collection's `name` field is used to identify the collection to be
       updated. Format:
       `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`
       
      .google.cloud.visionai.v1.Collection collection = 1 [(.google.api.field_behavior) = REQUIRED];
    • setCollection

      public UpdateCollectionRequest.Builder setCollection(Collection.Builder builderForValue)
       Required. The collection to update.
      
       The collection's `name` field is used to identify the collection to be
       updated. Format:
       `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`
       
      .google.cloud.visionai.v1.Collection collection = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeCollection

      public UpdateCollectionRequest.Builder mergeCollection(Collection value)
       Required. The collection to update.
      
       The collection's `name` field is used to identify the collection to be
       updated. Format:
       `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`
       
      .google.cloud.visionai.v1.Collection collection = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearCollection

      public UpdateCollectionRequest.Builder clearCollection()
       Required. The collection to update.
      
       The collection's `name` field is used to identify the collection to be
       updated. Format:
       `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`
       
      .google.cloud.visionai.v1.Collection collection = 1 [(.google.api.field_behavior) = REQUIRED];
    • getCollectionBuilder

      public Collection.Builder getCollectionBuilder()
       Required. The collection to update.
      
       The collection's `name` field is used to identify the collection to be
       updated. Format:
       `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`
       
      .google.cloud.visionai.v1.Collection collection = 1 [(.google.api.field_behavior) = REQUIRED];
    • getCollectionOrBuilder

      public CollectionOrBuilder getCollectionOrBuilder()
       Required. The collection to update.
      
       The collection's `name` field is used to identify the collection to be
       updated. Format:
       `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`
       
      .google.cloud.visionai.v1.Collection collection = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCollectionOrBuilder in interface UpdateCollectionRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       The list of fields to be updated.
       - Unset `update_mask` or set `update_mask` to be a single "*" only will
       update all updatable fields with the value provided in `collection`.
       - To update `display_name` value to empty string, set it in the
       `collection`
       to empty string, and set `update_mask` with "display_name". Same applies
       to other updatable string fields in the `collection`.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      hasUpdateMask in interface UpdateCollectionRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       The list of fields to be updated.
       - Unset `update_mask` or set `update_mask` to be a single "*" only will
       update all updatable fields with the value provided in `collection`.
       - To update `display_name` value to empty string, set it in the
       `collection`
       to empty string, and set `update_mask` with "display_name". Same applies
       to other updatable string fields in the `collection`.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMask in interface UpdateCollectionRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateCollectionRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       The list of fields to be updated.
       - Unset `update_mask` or set `update_mask` to be a single "*" only will
       update all updatable fields with the value provided in `collection`.
       - To update `display_name` value to empty string, set it in the
       `collection`
       to empty string, and set `update_mask` with "display_name". Same applies
       to other updatable string fields in the `collection`.
       
      .google.protobuf.FieldMask update_mask = 2;
    • setUpdateMask

      public UpdateCollectionRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       The list of fields to be updated.
       - Unset `update_mask` or set `update_mask` to be a single "*" only will
       update all updatable fields with the value provided in `collection`.
       - To update `display_name` value to empty string, set it in the
       `collection`
       to empty string, and set `update_mask` with "display_name". Same applies
       to other updatable string fields in the `collection`.
       
      .google.protobuf.FieldMask update_mask = 2;
    • mergeUpdateMask

      public UpdateCollectionRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       The list of fields to be updated.
       - Unset `update_mask` or set `update_mask` to be a single "*" only will
       update all updatable fields with the value provided in `collection`.
       - To update `display_name` value to empty string, set it in the
       `collection`
       to empty string, and set `update_mask` with "display_name". Same applies
       to other updatable string fields in the `collection`.
       
      .google.protobuf.FieldMask update_mask = 2;
    • clearUpdateMask

      public UpdateCollectionRequest.Builder clearUpdateMask()
       The list of fields to be updated.
       - Unset `update_mask` or set `update_mask` to be a single "*" only will
       update all updatable fields with the value provided in `collection`.
       - To update `display_name` value to empty string, set it in the
       `collection`
       to empty string, and set `update_mask` with "display_name". Same applies
       to other updatable string fields in the `collection`.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       The list of fields to be updated.
       - Unset `update_mask` or set `update_mask` to be a single "*" only will
       update all updatable fields with the value provided in `collection`.
       - To update `display_name` value to empty string, set it in the
       `collection`
       to empty string, and set `update_mask` with "display_name". Same applies
       to other updatable string fields in the `collection`.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       The list of fields to be updated.
       - Unset `update_mask` or set `update_mask` to be a single "*" only will
       update all updatable fields with the value provided in `collection`.
       - To update `display_name` value to empty string, set it in the
       `collection`
       to empty string, and set `update_mask` with "display_name". Same applies
       to other updatable string fields in the `collection`.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateCollectionRequestOrBuilder