public static final class ProcessorType.Builder extends GeneratedMessageV3.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.v1beta3.ProcessorType
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ProcessorType.BuilderImplements
ProcessorTypeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllAvailableLocations(Iterable<? extends ProcessorType.LocationInfo> values)
public ProcessorType.Builder addAllAvailableLocations(Iterable<? extends ProcessorType.LocationInfo> values)
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Name | Description |
values | Iterable<? extends com.google.cloud.documentai.v1beta3.ProcessorType.LocationInfo> |
Type | Description |
ProcessorType.Builder |
addAvailableLocations(ProcessorType.LocationInfo value)
public ProcessorType.Builder addAvailableLocations(ProcessorType.LocationInfo value)
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Name | Description |
value | ProcessorType.LocationInfo |
Type | Description |
ProcessorType.Builder |
addAvailableLocations(ProcessorType.LocationInfo.Builder builderForValue)
public ProcessorType.Builder addAvailableLocations(ProcessorType.LocationInfo.Builder builderForValue)
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Name | Description |
builderForValue | ProcessorType.LocationInfo.Builder |
Type | Description |
ProcessorType.Builder |
addAvailableLocations(int index, ProcessorType.LocationInfo value)
public ProcessorType.Builder addAvailableLocations(int index, ProcessorType.LocationInfo value)
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Name | Description |
index | int |
value | ProcessorType.LocationInfo |
Type | Description |
ProcessorType.Builder |
addAvailableLocations(int index, ProcessorType.LocationInfo.Builder builderForValue)
public ProcessorType.Builder addAvailableLocations(int index, ProcessorType.LocationInfo.Builder builderForValue)
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Name | Description |
index | int |
builderForValue | ProcessorType.LocationInfo.Builder |
Type | Description |
ProcessorType.Builder |
addAvailableLocationsBuilder()
public ProcessorType.LocationInfo.Builder addAvailableLocationsBuilder()
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Type | Description |
ProcessorType.LocationInfo.Builder |
addAvailableLocationsBuilder(int index)
public ProcessorType.LocationInfo.Builder addAvailableLocationsBuilder(int index)
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Name | Description |
index | int |
Type | Description |
ProcessorType.LocationInfo.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProcessorType.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ProcessorType.Builder |
build()
public ProcessorType build()
Type | Description |
ProcessorType |
buildPartial()
public ProcessorType buildPartial()
Type | Description |
ProcessorType |
clear()
public ProcessorType.Builder clear()
Type | Description |
ProcessorType.Builder |
clearAllowCreation()
public ProcessorType.Builder clearAllowCreation()
Whether the processor type allows creation. If yes, user can create a processor of this processor type. Otherwise, user needs to require for whitelisting.
bool allow_creation = 6;
Type | Description |
ProcessorType.Builder | This builder for chaining. |
clearAvailableLocations()
public ProcessorType.Builder clearAvailableLocations()
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Type | Description |
ProcessorType.Builder |
clearCategory()
public ProcessorType.Builder clearCategory()
The processor category.
string category = 3;
Type | Description |
ProcessorType.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ProcessorType.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ProcessorType.Builder |
clearName()
public ProcessorType.Builder clearName()
The resource name of the processor type.
string name = 1;
Type | Description |
ProcessorType.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ProcessorType.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ProcessorType.Builder |
clearType()
public ProcessorType.Builder clearType()
The type of the processor.
string type = 2;
Type | Description |
ProcessorType.Builder | This builder for chaining. |
clone()
public ProcessorType.Builder clone()
Type | Description |
ProcessorType.Builder |
getAllowCreation()
public boolean getAllowCreation()
Whether the processor type allows creation. If yes, user can create a processor of this processor type. Otherwise, user needs to require for whitelisting.
bool allow_creation = 6;
Type | Description |
boolean | The allowCreation. |
getAvailableLocations(int index)
public ProcessorType.LocationInfo getAvailableLocations(int index)
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Name | Description |
index | int |
Type | Description |
ProcessorType.LocationInfo |
getAvailableLocationsBuilder(int index)
public ProcessorType.LocationInfo.Builder getAvailableLocationsBuilder(int index)
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Name | Description |
index | int |
Type | Description |
ProcessorType.LocationInfo.Builder |
getAvailableLocationsBuilderList()
public List<ProcessorType.LocationInfo.Builder> getAvailableLocationsBuilderList()
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Type | Description |
List<Builder> |
getAvailableLocationsCount()
public int getAvailableLocationsCount()
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Type | Description |
int |
getAvailableLocationsList()
public List<ProcessorType.LocationInfo> getAvailableLocationsList()
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Type | Description |
List<LocationInfo> |
getAvailableLocationsOrBuilder(int index)
public ProcessorType.LocationInfoOrBuilder getAvailableLocationsOrBuilder(int index)
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Name | Description |
index | int |
Type | Description |
ProcessorType.LocationInfoOrBuilder |
getAvailableLocationsOrBuilderList()
public List<? extends ProcessorType.LocationInfoOrBuilder> getAvailableLocationsOrBuilderList()
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.ProcessorType.LocationInfoOrBuilder> |
getCategory()
public String getCategory()
The processor category.
string category = 3;
Type | Description |
String | The category. |
getCategoryBytes()
public ByteString getCategoryBytes()
The processor category.
string category = 3;
Type | Description |
ByteString | The bytes for category. |
getDefaultInstanceForType()
public ProcessorType getDefaultInstanceForType()
Type | Description |
ProcessorType |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getName()
public String getName()
The resource name of the processor type.
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The resource name of the processor type.
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getType()
public String getType()
The type of the processor.
string type = 2;
Type | Description |
String | The type. |
getTypeBytes()
public ByteString getTypeBytes()
The type of the processor.
string type = 2;
Type | Description |
ByteString | The bytes for type. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(ProcessorType other)
public ProcessorType.Builder mergeFrom(ProcessorType other)
Name | Description |
other | ProcessorType |
Type | Description |
ProcessorType.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ProcessorType.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ProcessorType.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ProcessorType.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ProcessorType.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProcessorType.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ProcessorType.Builder |
removeAvailableLocations(int index)
public ProcessorType.Builder removeAvailableLocations(int index)
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Name | Description |
index | int |
Type | Description |
ProcessorType.Builder |
setAllowCreation(boolean value)
public ProcessorType.Builder setAllowCreation(boolean value)
Whether the processor type allows creation. If yes, user can create a processor of this processor type. Otherwise, user needs to require for whitelisting.
bool allow_creation = 6;
Name | Description |
value | boolean The allowCreation to set. |
Type | Description |
ProcessorType.Builder | This builder for chaining. |
setAvailableLocations(int index, ProcessorType.LocationInfo value)
public ProcessorType.Builder setAvailableLocations(int index, ProcessorType.LocationInfo value)
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Name | Description |
index | int |
value | ProcessorType.LocationInfo |
Type | Description |
ProcessorType.Builder |
setAvailableLocations(int index, ProcessorType.LocationInfo.Builder builderForValue)
public ProcessorType.Builder setAvailableLocations(int index, ProcessorType.LocationInfo.Builder builderForValue)
The locations in which this processor is available.
repeated .google.cloud.documentai.v1beta3.ProcessorType.LocationInfo available_locations = 4;
Name | Description |
index | int |
builderForValue | ProcessorType.LocationInfo.Builder |
Type | Description |
ProcessorType.Builder |
setCategory(String value)
public ProcessorType.Builder setCategory(String value)
The processor category.
string category = 3;
Name | Description |
value | String The category to set. |
Type | Description |
ProcessorType.Builder | This builder for chaining. |
setCategoryBytes(ByteString value)
public ProcessorType.Builder setCategoryBytes(ByteString value)
The processor category.
string category = 3;
Name | Description |
value | ByteString The bytes for category to set. |
Type | Description |
ProcessorType.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ProcessorType.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ProcessorType.Builder |
setName(String value)
public ProcessorType.Builder setName(String value)
The resource name of the processor type.
string name = 1;
Name | Description |
value | String The name to set. |
Type | Description |
ProcessorType.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public ProcessorType.Builder setNameBytes(ByteString value)
The resource name of the processor type.
string name = 1;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
ProcessorType.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProcessorType.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ProcessorType.Builder |
setType(String value)
public ProcessorType.Builder setType(String value)
The type of the processor.
string type = 2;
Name | Description |
value | String The type to set. |
Type | Description |
ProcessorType.Builder | This builder for chaining. |
setTypeBytes(ByteString value)
public ProcessorType.Builder setTypeBytes(ByteString value)
The type of the processor.
string type = 2;
Name | Description |
value | ByteString The bytes for type to set. |
Type | Description |
ProcessorType.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ProcessorType.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ProcessorType.Builder |