Class CreateProcessorRequest.Builder (2.52.0)

public static final class CreateProcessorRequest.Builder extends GeneratedMessageV3.Builder<CreateProcessorRequest.Builder> implements CreateProcessorRequestOrBuilder

Request message for the CreateProcessor method. Notice this request is sent to a regionalized backend service. If the ProcessorType isn't available in that region, the creation fails.

Protobuf type google.cloud.documentai.v1beta3.CreateProcessorRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateProcessorRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateProcessorRequest.Builder
Overrides

build()

public CreateProcessorRequest build()
Returns
Type Description
CreateProcessorRequest

buildPartial()

public CreateProcessorRequest buildPartial()
Returns
Type Description
CreateProcessorRequest

clear()

public CreateProcessorRequest.Builder clear()
Returns
Type Description
CreateProcessorRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateProcessorRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateProcessorRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateProcessorRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
CreateProcessorRequest.Builder

This builder for chaining.

clearProcessor()

public CreateProcessorRequest.Builder clearProcessor()

Required. The processor to be created, requires Processor.type and Processor.display_name to be set. Also, the Processor.kms_key_name field must be set if the processor is under CMEK.

.google.cloud.documentai.v1beta3.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateProcessorRequest.Builder

clone()

public CreateProcessorRequest.Builder clone()
Returns
Type Description
CreateProcessorRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateProcessorRequest getDefaultInstanceForType()
Returns
Type Description
CreateProcessorRequest

getDescriptorForType()

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

The bytes for parent.

getProcessor()

public Processor getProcessor()

Required. The processor to be created, requires Processor.type and Processor.display_name to be set. Also, the Processor.kms_key_name field must be set if the processor is under CMEK.

.google.cloud.documentai.v1beta3.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Processor

The processor.

getProcessorBuilder()

public Processor.Builder getProcessorBuilder()

Required. The processor to be created, requires Processor.type and Processor.display_name to be set. Also, the Processor.kms_key_name field must be set if the processor is under CMEK.

.google.cloud.documentai.v1beta3.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Processor.Builder

getProcessorOrBuilder()

public ProcessorOrBuilder getProcessorOrBuilder()

Required. The processor to be created, requires Processor.type and Processor.display_name to be set. Also, the Processor.kms_key_name field must be set if the processor is under CMEK.

.google.cloud.documentai.v1beta3.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProcessorOrBuilder

hasProcessor()

public boolean hasProcessor()

Required. The processor to be created, requires Processor.type and Processor.display_name to be set. Also, the Processor.kms_key_name field must be set if the processor is under CMEK.

.google.cloud.documentai.v1beta3.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the processor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateProcessorRequest other)

public CreateProcessorRequest.Builder mergeFrom(CreateProcessorRequest other)
Parameter
Name Description
other CreateProcessorRequest
Returns
Type Description
CreateProcessorRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateProcessorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateProcessorRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateProcessorRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateProcessorRequest.Builder
Overrides

mergeProcessor(Processor value)

public CreateProcessorRequest.Builder mergeProcessor(Processor value)

Required. The processor to be created, requires Processor.type and Processor.display_name to be set. Also, the Processor.kms_key_name field must be set if the processor is under CMEK.

.google.cloud.documentai.v1beta3.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Processor
Returns
Type Description
CreateProcessorRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateProcessorRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateProcessorRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateProcessorRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The parent to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
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 Processor.display_name to be set. Also, the Processor.kms_key_name field must be set if the processor is under CMEK.

.google.cloud.documentai.v1beta3.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Processor
Returns
Type Description
CreateProcessorRequest.Builder

setProcessor(Processor.Builder builderForValue)

public CreateProcessorRequest.Builder setProcessor(Processor.Builder builderForValue)

Required. The processor to be created, requires Processor.type and Processor.display_name to be set. Also, the Processor.kms_key_name field must be set if the processor is under CMEK.

.google.cloud.documentai.v1beta3.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Processor.Builder
Returns
Type Description
CreateProcessorRequest.Builder

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

public CreateProcessorRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateProcessorRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateProcessorRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateProcessorRequest.Builder
Overrides