Class ProcessorType.Builder

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

public static final class ProcessorType.Builder extends com.google.protobuf.GeneratedMessage.Builder<ProcessorType.Builder> implements ProcessorTypeOrBuilder
 A processor type is responsible for performing a certain document
 understanding task on a certain type of document.
 
Protobuf type google.cloud.documentai.v1.ProcessorType
  • 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<ProcessorType.Builder>
    • clear

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

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

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

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

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

      public ProcessorType.Builder mergeFrom(ProcessorType other)
    • isInitialized

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

      public ProcessorType.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<ProcessorType.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The resource name of the processor type.
       Format: `projects/{project}/processorTypes/{processor_type}`
       
      string name = 1;
      Specified by:
      getName in interface ProcessorTypeOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The resource name of the processor type.
       Format: `projects/{project}/processorTypes/{processor_type}`
       
      string name = 1;
      Specified by:
      getNameBytes in interface ProcessorTypeOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ProcessorType.Builder setName(String value)
       The resource name of the processor type.
       Format: `projects/{project}/processorTypes/{processor_type}`
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ProcessorType.Builder clearName()
       The resource name of the processor type.
       Format: `projects/{project}/processorTypes/{processor_type}`
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ProcessorType.Builder setNameBytes(com.google.protobuf.ByteString value)
       The resource name of the processor type.
       Format: `projects/{project}/processorTypes/{processor_type}`
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getType

      public String getType()
       The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
       
      string type = 2;
      Specified by:
      getType in interface ProcessorTypeOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
       
      string type = 2;
      Specified by:
      getTypeBytes in interface ProcessorTypeOrBuilder
      Returns:
      The bytes for type.
    • setType

      public ProcessorType.Builder setType(String value)
       The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
       
      string type = 2;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public ProcessorType.Builder clearType()
       The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
       
      string type = 2;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public ProcessorType.Builder setTypeBytes(com.google.protobuf.ByteString value)
       The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`.
       
      string type = 2;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getCategory

      public String getCategory()
       The processor category, used by UI to group processor types.
       
      string category = 3;
      Specified by:
      getCategory in interface ProcessorTypeOrBuilder
      Returns:
      The category.
    • getCategoryBytes

      public com.google.protobuf.ByteString getCategoryBytes()
       The processor category, used by UI to group processor types.
       
      string category = 3;
      Specified by:
      getCategoryBytes in interface ProcessorTypeOrBuilder
      Returns:
      The bytes for category.
    • setCategory

      public ProcessorType.Builder setCategory(String value)
       The processor category, used by UI to group processor types.
       
      string category = 3;
      Parameters:
      value - The category to set.
      Returns:
      This builder for chaining.
    • clearCategory

      public ProcessorType.Builder clearCategory()
       The processor category, used by UI to group processor types.
       
      string category = 3;
      Returns:
      This builder for chaining.
    • setCategoryBytes

      public ProcessorType.Builder setCategoryBytes(com.google.protobuf.ByteString value)
       The processor category, used by UI to group processor types.
       
      string category = 3;
      Parameters:
      value - The bytes for category to set.
      Returns:
      This builder for chaining.
    • getAvailableLocationsList

      public List<ProcessorType.LocationInfo> getAvailableLocationsList()
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
      Specified by:
      getAvailableLocationsList in interface ProcessorTypeOrBuilder
    • getAvailableLocationsCount

      public int getAvailableLocationsCount()
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
      Specified by:
      getAvailableLocationsCount in interface ProcessorTypeOrBuilder
    • getAvailableLocations

      public ProcessorType.LocationInfo getAvailableLocations(int index)
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
      Specified by:
      getAvailableLocations in interface ProcessorTypeOrBuilder
    • setAvailableLocations

      public ProcessorType.Builder setAvailableLocations(int index, ProcessorType.LocationInfo value)
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
    • setAvailableLocations

      public ProcessorType.Builder setAvailableLocations(int index, ProcessorType.LocationInfo.Builder builderForValue)
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
    • addAvailableLocations

      public ProcessorType.Builder addAvailableLocations(ProcessorType.LocationInfo value)
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
    • addAvailableLocations

      public ProcessorType.Builder addAvailableLocations(int index, ProcessorType.LocationInfo value)
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
    • addAvailableLocations

      public ProcessorType.Builder addAvailableLocations(ProcessorType.LocationInfo.Builder builderForValue)
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
    • addAvailableLocations

      public ProcessorType.Builder addAvailableLocations(int index, ProcessorType.LocationInfo.Builder builderForValue)
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
    • addAllAvailableLocations

      public ProcessorType.Builder addAllAvailableLocations(Iterable<? extends ProcessorType.LocationInfo> values)
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
    • clearAvailableLocations

      public ProcessorType.Builder clearAvailableLocations()
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
    • removeAvailableLocations

      public ProcessorType.Builder removeAvailableLocations(int index)
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
    • getAvailableLocationsBuilder

      public ProcessorType.LocationInfo.Builder getAvailableLocationsBuilder(int index)
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
    • getAvailableLocationsOrBuilder

      public ProcessorType.LocationInfoOrBuilder getAvailableLocationsOrBuilder(int index)
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
      Specified by:
      getAvailableLocationsOrBuilder in interface ProcessorTypeOrBuilder
    • getAvailableLocationsOrBuilderList

      public List<? extends ProcessorType.LocationInfoOrBuilder> getAvailableLocationsOrBuilderList()
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
      Specified by:
      getAvailableLocationsOrBuilderList in interface ProcessorTypeOrBuilder
    • addAvailableLocationsBuilder

      public ProcessorType.LocationInfo.Builder addAvailableLocationsBuilder()
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
    • addAvailableLocationsBuilder

      public ProcessorType.LocationInfo.Builder addAvailableLocationsBuilder(int index)
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
    • getAvailableLocationsBuilderList

      public List<ProcessorType.LocationInfo.Builder> getAvailableLocationsBuilderList()
       The locations in which this processor is available.
       
      repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;
    • getAllowCreation

      public boolean getAllowCreation()
       Whether the processor type allows creation. If true, users can create a
       processor of this processor type. Otherwise, users need to request access.
       
      bool allow_creation = 6;
      Specified by:
      getAllowCreation in interface ProcessorTypeOrBuilder
      Returns:
      The allowCreation.
    • setAllowCreation

      public ProcessorType.Builder setAllowCreation(boolean value)
       Whether the processor type allows creation. If true, users can create a
       processor of this processor type. Otherwise, users need to request access.
       
      bool allow_creation = 6;
      Parameters:
      value - The allowCreation to set.
      Returns:
      This builder for chaining.
    • clearAllowCreation

      public ProcessorType.Builder clearAllowCreation()
       Whether the processor type allows creation. If true, users can create a
       processor of this processor type. Otherwise, users need to request access.
       
      bool allow_creation = 6;
      Returns:
      This builder for chaining.
    • getLaunchStageValue

      public int getLaunchStageValue()
       Launch stage of the processor type
       
      .google.api.LaunchStage launch_stage = 8;
      Specified by:
      getLaunchStageValue in interface ProcessorTypeOrBuilder
      Returns:
      The enum numeric value on the wire for launchStage.
    • setLaunchStageValue

      public ProcessorType.Builder setLaunchStageValue(int value)
       Launch stage of the processor type
       
      .google.api.LaunchStage launch_stage = 8;
      Parameters:
      value - The enum numeric value on the wire for launchStage to set.
      Returns:
      This builder for chaining.
    • getLaunchStage

      public LaunchStage getLaunchStage()
       Launch stage of the processor type
       
      .google.api.LaunchStage launch_stage = 8;
      Specified by:
      getLaunchStage in interface ProcessorTypeOrBuilder
      Returns:
      The launchStage.
    • setLaunchStage

      public ProcessorType.Builder setLaunchStage(LaunchStage value)
       Launch stage of the processor type
       
      .google.api.LaunchStage launch_stage = 8;
      Parameters:
      value - The launchStage to set.
      Returns:
      This builder for chaining.
    • clearLaunchStage

      public ProcessorType.Builder clearLaunchStage()
       Launch stage of the processor type
       
      .google.api.LaunchStage launch_stage = 8;
      Returns:
      This builder for chaining.
    • getSampleDocumentUrisList

      public com.google.protobuf.ProtocolStringList getSampleDocumentUrisList()
       A set of Cloud Storage URIs of sample documents for this processor.
       
      repeated string sample_document_uris = 9;
      Specified by:
      getSampleDocumentUrisList in interface ProcessorTypeOrBuilder
      Returns:
      A list containing the sampleDocumentUris.
    • getSampleDocumentUrisCount

      public int getSampleDocumentUrisCount()
       A set of Cloud Storage URIs of sample documents for this processor.
       
      repeated string sample_document_uris = 9;
      Specified by:
      getSampleDocumentUrisCount in interface ProcessorTypeOrBuilder
      Returns:
      The count of sampleDocumentUris.
    • getSampleDocumentUris

      public String getSampleDocumentUris(int index)
       A set of Cloud Storage URIs of sample documents for this processor.
       
      repeated string sample_document_uris = 9;
      Specified by:
      getSampleDocumentUris in interface ProcessorTypeOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The sampleDocumentUris at the given index.
    • getSampleDocumentUrisBytes

      public com.google.protobuf.ByteString getSampleDocumentUrisBytes(int index)
       A set of Cloud Storage URIs of sample documents for this processor.
       
      repeated string sample_document_uris = 9;
      Specified by:
      getSampleDocumentUrisBytes in interface ProcessorTypeOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the sampleDocumentUris at the given index.
    • setSampleDocumentUris

      public ProcessorType.Builder setSampleDocumentUris(int index, String value)
       A set of Cloud Storage URIs of sample documents for this processor.
       
      repeated string sample_document_uris = 9;
      Parameters:
      index - The index to set the value at.
      value - The sampleDocumentUris to set.
      Returns:
      This builder for chaining.
    • addSampleDocumentUris

      public ProcessorType.Builder addSampleDocumentUris(String value)
       A set of Cloud Storage URIs of sample documents for this processor.
       
      repeated string sample_document_uris = 9;
      Parameters:
      value - The sampleDocumentUris to add.
      Returns:
      This builder for chaining.
    • addAllSampleDocumentUris

      public ProcessorType.Builder addAllSampleDocumentUris(Iterable<String> values)
       A set of Cloud Storage URIs of sample documents for this processor.
       
      repeated string sample_document_uris = 9;
      Parameters:
      values - The sampleDocumentUris to add.
      Returns:
      This builder for chaining.
    • clearSampleDocumentUris

      public ProcessorType.Builder clearSampleDocumentUris()
       A set of Cloud Storage URIs of sample documents for this processor.
       
      repeated string sample_document_uris = 9;
      Returns:
      This builder for chaining.
    • addSampleDocumentUrisBytes

      public ProcessorType.Builder addSampleDocumentUrisBytes(com.google.protobuf.ByteString value)
       A set of Cloud Storage URIs of sample documents for this processor.
       
      repeated string sample_document_uris = 9;
      Parameters:
      value - The bytes of the sampleDocumentUris to add.
      Returns:
      This builder for chaining.