Class SetDefaultProcessorVersionRequest.Builder (2.59.0)

public static final class SetDefaultProcessorVersionRequest.Builder extends GeneratedMessageV3.Builder<SetDefaultProcessorVersionRequest.Builder> implements SetDefaultProcessorVersionRequestOrBuilder

Request message for the SetDefaultProcessorVersion method.

Protobuf type google.cloud.documentai.v1.SetDefaultProcessorVersionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SetDefaultProcessorVersionRequest build()
Returns
Type Description
SetDefaultProcessorVersionRequest

buildPartial()

public SetDefaultProcessorVersionRequest buildPartial()
Returns
Type Description
SetDefaultProcessorVersionRequest

clear()

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

clearDefaultProcessorVersion()

public SetDefaultProcessorVersionRequest.Builder clearDefaultProcessorVersion()

Required. The resource name of child ProcessorVersion to use as default. Format: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}

string default_processor_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
SetDefaultProcessorVersionRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public SetDefaultProcessorVersionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SetDefaultProcessorVersionRequest.Builder
Overrides

clearProcessor()

public SetDefaultProcessorVersionRequest.Builder clearProcessor()

Required. The resource name of the Processor to change default version.

string processor = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
SetDefaultProcessorVersionRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public SetDefaultProcessorVersionRequest getDefaultInstanceForType()
Returns
Type Description
SetDefaultProcessorVersionRequest

getDefaultProcessorVersion()

public String getDefaultProcessorVersion()

Required. The resource name of child ProcessorVersion to use as default. Format: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}

string default_processor_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The defaultProcessorVersion.

getDefaultProcessorVersionBytes()

public ByteString getDefaultProcessorVersionBytes()

Required. The resource name of child ProcessorVersion to use as default. Format: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}

string default_processor_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for defaultProcessorVersion.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getProcessor()

public String getProcessor()

Required. The resource name of the Processor to change default version.

string processor = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The processor.

getProcessorBytes()

public ByteString getProcessorBytes()

Required. The resource name of the Processor to change default version.

string processor = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for processor.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SetDefaultProcessorVersionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDefaultProcessorVersion(String value)

public SetDefaultProcessorVersionRequest.Builder setDefaultProcessorVersion(String value)

Required. The resource name of child ProcessorVersion to use as default. Format: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}

string default_processor_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The defaultProcessorVersion to set.

Returns
Type Description
SetDefaultProcessorVersionRequest.Builder

This builder for chaining.

setDefaultProcessorVersionBytes(ByteString value)

public SetDefaultProcessorVersionRequest.Builder setDefaultProcessorVersionBytes(ByteString value)

Required. The resource name of child ProcessorVersion to use as default. Format: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}

string default_processor_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for defaultProcessorVersion to set.

Returns
Type Description
SetDefaultProcessorVersionRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setProcessor(String value)

public SetDefaultProcessorVersionRequest.Builder setProcessor(String value)

Required. The resource name of the Processor to change default version.

string processor = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The processor to set.

Returns
Type Description
SetDefaultProcessorVersionRequest.Builder

This builder for chaining.

setProcessorBytes(ByteString value)

public SetDefaultProcessorVersionRequest.Builder setProcessorBytes(ByteString value)

Required. The resource name of the Processor to change default version.

string processor = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for processor to set.

Returns
Type Description
SetDefaultProcessorVersionRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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