Class DocumentSchema.Builder

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

public static final class DocumentSchema.Builder extends com.google.protobuf.GeneratedMessage.Builder<DocumentSchema.Builder> implements DocumentSchemaOrBuilder
 The schema defines the output of the processed document by a processor.
 
Protobuf type google.cloud.documentai.v1.DocumentSchema
  • 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<DocumentSchema.Builder>
    • clear

      public DocumentSchema.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<DocumentSchema.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<DocumentSchema.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DocumentSchema.Builder mergeFrom(DocumentSchema other)
    • isInitialized

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

      public DocumentSchema.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<DocumentSchema.Builder>
      Throws:
      IOException
    • getDisplayName

      public String getDisplayName()
       Display name to show to users.
       
      string display_name = 1;
      Specified by:
      getDisplayName in interface DocumentSchemaOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Display name to show to users.
       
      string display_name = 1;
      Specified by:
      getDisplayNameBytes in interface DocumentSchemaOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public DocumentSchema.Builder setDisplayName(String value)
       Display name to show to users.
       
      string display_name = 1;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public DocumentSchema.Builder clearDisplayName()
       Display name to show to users.
       
      string display_name = 1;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public DocumentSchema.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Display name to show to users.
       
      string display_name = 1;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Description of the schema.
       
      string description = 2;
      Specified by:
      getDescription in interface DocumentSchemaOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Description of the schema.
       
      string description = 2;
      Specified by:
      getDescriptionBytes in interface DocumentSchemaOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public DocumentSchema.Builder setDescription(String value)
       Description of the schema.
       
      string description = 2;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public DocumentSchema.Builder clearDescription()
       Description of the schema.
       
      string description = 2;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public DocumentSchema.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Description of the schema.
       
      string description = 2;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getEntityTypesList

      public List<DocumentSchema.EntityType> getEntityTypesList()
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
      Specified by:
      getEntityTypesList in interface DocumentSchemaOrBuilder
    • getEntityTypesCount

      public int getEntityTypesCount()
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
      Specified by:
      getEntityTypesCount in interface DocumentSchemaOrBuilder
    • getEntityTypes

      public DocumentSchema.EntityType getEntityTypes(int index)
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
      Specified by:
      getEntityTypes in interface DocumentSchemaOrBuilder
    • setEntityTypes

      public DocumentSchema.Builder setEntityTypes(int index, DocumentSchema.EntityType value)
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
    • setEntityTypes

      public DocumentSchema.Builder setEntityTypes(int index, DocumentSchema.EntityType.Builder builderForValue)
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
    • addEntityTypes

      public DocumentSchema.Builder addEntityTypes(DocumentSchema.EntityType value)
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
    • addEntityTypes

      public DocumentSchema.Builder addEntityTypes(int index, DocumentSchema.EntityType value)
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
    • addEntityTypes

      public DocumentSchema.Builder addEntityTypes(DocumentSchema.EntityType.Builder builderForValue)
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
    • addEntityTypes

      public DocumentSchema.Builder addEntityTypes(int index, DocumentSchema.EntityType.Builder builderForValue)
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
    • addAllEntityTypes

      public DocumentSchema.Builder addAllEntityTypes(Iterable<? extends DocumentSchema.EntityType> values)
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
    • clearEntityTypes

      public DocumentSchema.Builder clearEntityTypes()
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
    • removeEntityTypes

      public DocumentSchema.Builder removeEntityTypes(int index)
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
    • getEntityTypesBuilder

      public DocumentSchema.EntityType.Builder getEntityTypesBuilder(int index)
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
    • getEntityTypesOrBuilder

      public DocumentSchema.EntityTypeOrBuilder getEntityTypesOrBuilder(int index)
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
      Specified by:
      getEntityTypesOrBuilder in interface DocumentSchemaOrBuilder
    • getEntityTypesOrBuilderList

      public List<? extends DocumentSchema.EntityTypeOrBuilder> getEntityTypesOrBuilderList()
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
      Specified by:
      getEntityTypesOrBuilderList in interface DocumentSchemaOrBuilder
    • addEntityTypesBuilder

      public DocumentSchema.EntityType.Builder addEntityTypesBuilder()
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
    • addEntityTypesBuilder

      public DocumentSchema.EntityType.Builder addEntityTypesBuilder(int index)
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
    • getEntityTypesBuilderList

      public List<DocumentSchema.EntityType.Builder> getEntityTypesBuilderList()
       Entity types of the schema.
       
      repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3;
    • hasMetadata

      public boolean hasMetadata()
       Metadata of the schema.
       
      .google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4;
      Specified by:
      hasMetadata in interface DocumentSchemaOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public DocumentSchema.Metadata getMetadata()
       Metadata of the schema.
       
      .google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4;
      Specified by:
      getMetadata in interface DocumentSchemaOrBuilder
      Returns:
      The metadata.
    • setMetadata

      public DocumentSchema.Builder setMetadata(DocumentSchema.Metadata value)
       Metadata of the schema.
       
      .google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4;
    • setMetadata

      public DocumentSchema.Builder setMetadata(DocumentSchema.Metadata.Builder builderForValue)
       Metadata of the schema.
       
      .google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4;
    • mergeMetadata

      public DocumentSchema.Builder mergeMetadata(DocumentSchema.Metadata value)
       Metadata of the schema.
       
      .google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4;
    • clearMetadata

      public DocumentSchema.Builder clearMetadata()
       Metadata of the schema.
       
      .google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4;
    • getMetadataBuilder

      public DocumentSchema.Metadata.Builder getMetadataBuilder()
       Metadata of the schema.
       
      .google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4;
    • getMetadataOrBuilder

      public DocumentSchema.MetadataOrBuilder getMetadataOrBuilder()
       Metadata of the schema.
       
      .google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4;
      Specified by:
      getMetadataOrBuilder in interface DocumentSchemaOrBuilder