Class CreateProcessorRequest.Builder (2.4.3)

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.v1beta3.CreateProcessorRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateProcessorRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateProcessorRequest.Builder
Overrides

build()

public CreateProcessorRequest build()
Returns
TypeDescription
CreateProcessorRequest

buildPartial()

public CreateProcessorRequest buildPartial()
Returns
TypeDescription
CreateProcessorRequest

clear()

public CreateProcessorRequest.Builder clear()
Returns
TypeDescription
CreateProcessorRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateProcessorRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateProcessorRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateProcessorRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateProcessorRequest.Builder
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
TypeDescription
CreateProcessorRequest.Builder

This builder for chaining.

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.v1beta3.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateProcessorRequest.Builder

clone()

public CreateProcessorRequest.Builder clone()
Returns
TypeDescription
CreateProcessorRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateProcessorRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateProcessorRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

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.v1beta3.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Processor

The processor.

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.v1beta3.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Processor.Builder

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.v1beta3.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProcessorOrBuilder

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.v1beta3.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the processor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateProcessorRequest other)

public CreateProcessorRequest.Builder mergeFrom(CreateProcessorRequest other)
Parameter
NameDescription
otherCreateProcessorRequest
Returns
TypeDescription
CreateProcessorRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateProcessorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateProcessorRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateProcessorRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateProcessorRequest.Builder
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.v1beta3.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueProcessor
Returns
TypeDescription
CreateProcessorRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateProcessorRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateProcessorRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateProcessorRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateProcessorRequest.Builder
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateProcessorRequest.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateProcessorRequest.Builder

This builder for chaining.

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.v1beta3.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueProcessor
Returns
TypeDescription
CreateProcessorRequest.Builder

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.v1beta3.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueProcessor.Builder
Returns
TypeDescription
CreateProcessorRequest.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateProcessorRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateProcessorRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateProcessorRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateProcessorRequest.Builder
Overrides