Send feedback
Class ImportProcessorVersionRequest.Builder (2.20.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.20.0 keyboard_arrow_down
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]