public static final class CreateProcessorRequest.Builder extends GeneratedMessageV3.Builder<CreateProcessorRequest.Builder> implements CreateProcessorRequestOrBuilder
Request message for create a processor. Notice this request is sent to
a regionalized backend service, and if the processor type is not available
on that region, the creation will fail.
Protobuf type google.cloud.documentai.v1.CreateProcessorRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateProcessorRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateProcessorRequest build()
Returns
buildPartial()
public CreateProcessorRequest buildPartial()
Returns
clear()
public CreateProcessorRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateProcessorRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateProcessorRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParent()
public CreateProcessorRequest.Builder clearParent()
Required. The parent (project and location) under which to create the processor.
Format: projects/{project}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearProcessor()
public CreateProcessorRequest.Builder clearProcessor()
Required. The processor to be created, requires [processor_type] and [display_name]
to be set. Also, the processor is under CMEK if CMEK fields are set.
.google.cloud.documentai.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public CreateProcessorRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateProcessorRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getParent()
public String getParent()
Required. The parent (project and location) under which to create the processor.
Format: projects/{project}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. The parent (project and location) under which to create the processor.
Format: projects/{project}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
getProcessor()
public Processor getProcessor()
Required. The processor to be created, requires [processor_type] and [display_name]
to be set. Also, the processor is under CMEK if CMEK fields are set.
.google.cloud.documentai.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getProcessorBuilder()
public Processor.Builder getProcessorBuilder()
Required. The processor to be created, requires [processor_type] and [display_name]
to be set. Also, the processor is under CMEK if CMEK fields are set.
.google.cloud.documentai.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getProcessorOrBuilder()
public ProcessorOrBuilder getProcessorOrBuilder()
Required. The processor to be created, requires [processor_type] and [display_name]
to be set. Also, the processor is under CMEK if CMEK fields are set.
.google.cloud.documentai.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
hasProcessor()
public boolean hasProcessor()
Required. The processor to be created, requires [processor_type] and [display_name]
to be set. Also, the processor is under CMEK if CMEK fields are set.
.google.cloud.documentai.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the processor field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CreateProcessorRequest other)
public CreateProcessorRequest.Builder mergeFrom(CreateProcessorRequest other)
Parameter
Returns
public CreateProcessorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateProcessorRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeProcessor(Processor value)
public CreateProcessorRequest.Builder mergeProcessor(Processor value)
Required. The processor to be created, requires [processor_type] and [display_name]
to be set. Also, the processor is under CMEK if CMEK fields are set.
.google.cloud.documentai.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateProcessorRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateProcessorRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setParent(String value)
public CreateProcessorRequest.Builder setParent(String value)
Required. The parent (project and location) under which to create the processor.
Format: projects/{project}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The parent to set.
|
Returns
setParentBytes(ByteString value)
public CreateProcessorRequest.Builder setParentBytes(ByteString value)
Required. The parent (project and location) under which to create the processor.
Format: projects/{project}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for parent to set.
|
Returns
setProcessor(Processor value)
public CreateProcessorRequest.Builder setProcessor(Processor value)
Required. The processor to be created, requires [processor_type] and [display_name]
to be set. Also, the processor is under CMEK if CMEK fields are set.
.google.cloud.documentai.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setProcessor(Processor.Builder builderForValue)
public CreateProcessorRequest.Builder setProcessor(Processor.Builder builderForValue)
Required. The processor to be created, requires [processor_type] and [display_name]
to be set. Also, the processor is under CMEK if CMEK fields are set.
.google.cloud.documentai.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateProcessorRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateProcessorRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides