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.v1.CreateProcessorRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateProcessorRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateProcessorRequest build()
buildPartial()
public CreateProcessorRequest buildPartial()
clear()
public CreateProcessorRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateProcessorRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateProcessorRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
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.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];
clone()
public CreateProcessorRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateProcessorRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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.v1.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.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];
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.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];
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.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the processor field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CreateProcessorRequest other)
public CreateProcessorRequest.Builder mergeFrom(CreateProcessorRequest other)
public CreateProcessorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateProcessorRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateProcessorRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateProcessorRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
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.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];
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.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateProcessorRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateProcessorRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides