public static final class ImportProcessorVersionRequest.Builder extends GeneratedMessageV3.Builder<ImportProcessorVersionRequest.Builder> implements ImportProcessorVersionRequestOrBuilder
The request message for the ImportProcessorVersion method.
This method requires Document AI Service Agent of the destination project in
the source project's IAM with Document AI Editor
role.
The destination project is specified as part of the parent
field.
The source project is specified as part of source
field.
The Service Agent for Document AI can be found in
https://cloud.google.com/iam/docs/service-agents.
Protobuf type google.cloud.documentai.v1beta3.ImportProcessorVersionRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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 ImportProcessorVersionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ImportProcessorVersionRequest build()
buildPartial()
public ImportProcessorVersionRequest buildPartial()
clear()
public ImportProcessorVersionRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ImportProcessorVersionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ImportProcessorVersionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParent()
public ImportProcessorVersionRequest.Builder clearParent()
Required. The destination processor name to create the processor version
in. Format:
projects/{project}/locations/{location}/processors/{processor}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
clearProcessorVersionSource()
public ImportProcessorVersionRequest.Builder clearProcessorVersionSource()
The source processor version to import from.
string processor_version_source = 2 [(.google.api.resource_reference) = { ... }
clearSource()
public ImportProcessorVersionRequest.Builder clearSource()
clone()
public ImportProcessorVersionRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public ImportProcessorVersionRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getParent()
public String getParent()
Required. The destination processor name to create the processor version
in. Format:
projects/{project}/locations/{location}/processors/{processor}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
---|
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. The destination processor name to create the processor version
in. Format:
projects/{project}/locations/{location}/processors/{processor}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
---|
Type | Description |
ByteString | The bytes for parent.
|
getProcessorVersionSource()
public String getProcessorVersionSource()
The source processor version to import from.
string processor_version_source = 2 [(.google.api.resource_reference) = { ... }
Returns |
---|
Type | Description |
String | The processorVersionSource.
|
getProcessorVersionSourceBytes()
public ByteString getProcessorVersionSourceBytes()
The source processor version to import from.
string processor_version_source = 2 [(.google.api.resource_reference) = { ... }
Returns |
---|
Type | Description |
ByteString | The bytes for processorVersionSource.
|
getSourceCase()
public ImportProcessorVersionRequest.SourceCase getSourceCase()
hasProcessorVersionSource()
public boolean hasProcessorVersionSource()
The source processor version to import from.
string processor_version_source = 2 [(.google.api.resource_reference) = { ... }
Returns |
---|
Type | Description |
boolean | Whether the processorVersionSource field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ImportProcessorVersionRequest other)
public ImportProcessorVersionRequest.Builder mergeFrom(ImportProcessorVersionRequest other)
public ImportProcessorVersionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ImportProcessorVersionRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImportProcessorVersionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ImportProcessorVersionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setParent(String value)
public ImportProcessorVersionRequest.Builder setParent(String value)
Required. The destination processor name to create the processor version
in. Format:
projects/{project}/locations/{location}/processors/{processor}
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 ImportProcessorVersionRequest.Builder setParentBytes(ByteString value)
Required. The destination processor name to create the processor version
in. Format:
projects/{project}/locations/{location}/processors/{processor}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
---|
Name | Description |
value | ByteString
The bytes for parent to set.
|
setProcessorVersionSource(String value)
public ImportProcessorVersionRequest.Builder setProcessorVersionSource(String value)
The source processor version to import from.
string processor_version_source = 2 [(.google.api.resource_reference) = { ... }
Parameter |
---|
Name | Description |
value | String
The processorVersionSource to set.
|
setProcessorVersionSourceBytes(ByteString value)
public ImportProcessorVersionRequest.Builder setProcessorVersionSourceBytes(ByteString value)
The source processor version to import from.
string processor_version_source = 2 [(.google.api.resource_reference) = { ... }
Parameter |
---|
Name | Description |
value | ByteString
The bytes for processorVersionSource to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImportProcessorVersionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ImportProcessorVersionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides