Class SetDefaultProcessorVersionRequest.Builder (2.18.0)

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

Request message for the set default processor version method.

Protobuf type google.cloud.documentai.v1.SetDefaultProcessorVersionRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SetDefaultProcessorVersionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SetDefaultProcessorVersionRequest.Builder
Overrides

build()

public SetDefaultProcessorVersionRequest build()
Returns
TypeDescription
SetDefaultProcessorVersionRequest

buildPartial()

public SetDefaultProcessorVersionRequest buildPartial()
Returns
TypeDescription
SetDefaultProcessorVersionRequest

clear()

public SetDefaultProcessorVersionRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
SetDefaultProcessorVersionRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SetDefaultProcessorVersionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SetDefaultProcessorVersionRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SetDefaultProcessorVersionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SetDefaultProcessorVersionRequest.Builder

This builder for chaining.

clone()

public SetDefaultProcessorVersionRequest.Builder clone()
Returns
TypeDescription
SetDefaultProcessorVersionRequest.Builder
Overrides

getDefaultInstanceForType()

public SetDefaultProcessorVersionRequest getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for defaultProcessorVersion.

getDescriptorForType()

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

The bytes for processor.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SetDefaultProcessorVersionRequest other)

public SetDefaultProcessorVersionRequest.Builder mergeFrom(SetDefaultProcessorVersionRequest other)
Parameter
NameDescription
otherSetDefaultProcessorVersionRequest
Returns
TypeDescription
SetDefaultProcessorVersionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SetDefaultProcessorVersionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SetDefaultProcessorVersionRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SetDefaultProcessorVersionRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SetDefaultProcessorVersionRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SetDefaultProcessorVersionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The defaultProcessorVersion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for defaultProcessorVersion to set.

Returns
TypeDescription
SetDefaultProcessorVersionRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SetDefaultProcessorVersionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The processor to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for processor to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SetDefaultProcessorVersionRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SetDefaultProcessorVersionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SetDefaultProcessorVersionRequest.Builder
Overrides