Interface CreateCollectionRequestOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
CreateCollectionRequest, CreateCollectionRequest.Builder

@Generated public interface CreateCollectionRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Required.
    Optional.
    com.google.protobuf.ByteString
    Optional.
    Required.
    Required.
    com.google.protobuf.ByteString
    Required.
    boolean
    Required.
    boolean
    Optional.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getParent

      String getParent()
       Required. The parent resource where this collection will be created.
       Format: `projects/{project_number}/locations/{location}/corpora/{corpus}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      The parent.
    • getParentBytes

      com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource where this collection will be created.
       Format: `projects/{project_number}/locations/{location}/corpora/{corpus}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      The bytes for parent.
    • hasCollection

      boolean hasCollection()
       Required. The collection resource to be created.
       
      .google.cloud.visionai.v1.Collection collection = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      Whether the collection field is set.
    • getCollection

      Collection getCollection()
       Required. The collection resource to be created.
       
      .google.cloud.visionai.v1.Collection collection = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The collection.
    • getCollectionOrBuilder

      CollectionOrBuilder getCollectionOrBuilder()
       Required. The collection resource to be created.
       
      .google.cloud.visionai.v1.Collection collection = 2 [(.google.api.field_behavior) = REQUIRED];
    • hasCollectionId

      boolean hasCollectionId()
       Optional. The ID to use for the collection, which will become the final
       component of the resource name if user choose to specify. Otherwise,
       collection id will be generated by system.
      
       This value should be up to 55 characters, and valid characters
       are /[a-z][0-9]-/. The first character must be a letter, the last could be
       a letter or a number.
       
      optional string collection_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the collectionId field is set.
    • getCollectionId

      String getCollectionId()
       Optional. The ID to use for the collection, which will become the final
       component of the resource name if user choose to specify. Otherwise,
       collection id will be generated by system.
      
       This value should be up to 55 characters, and valid characters
       are /[a-z][0-9]-/. The first character must be a letter, the last could be
       a letter or a number.
       
      optional string collection_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The collectionId.
    • getCollectionIdBytes

      com.google.protobuf.ByteString getCollectionIdBytes()
       Optional. The ID to use for the collection, which will become the final
       component of the resource name if user choose to specify. Otherwise,
       collection id will be generated by system.
      
       This value should be up to 55 characters, and valid characters
       are /[a-z][0-9]-/. The first character must be a letter, the last could be
       a letter or a number.
       
      optional string collection_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for collectionId.