Class GroundingSettings.Builder (2.107.0)

public static final class GroundingSettings.Builder extends GeneratedMessage.Builder<GroundingSettings.Builder> implements GroundingSettingsOrBuilder

Settings for grounding extractions.

Protobuf type google.cloud.documentai.v1beta3.GroundingSettings

Static Methods

getDescriptor()

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

Methods

build()

public GroundingSettings build()
Returns
Type Description
GroundingSettings

buildPartial()

public GroundingSettings buildPartial()
Returns
Type Description
GroundingSettings

clear()

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

clearGroundingType()

public GroundingSettings.Builder clearGroundingType()

The type of grounding to apply.

.google.cloud.documentai.v1beta3.GroundingSettings.GroundingType grounding_type = 1;

Returns
Type Description
GroundingSettings.Builder

This builder for chaining.

getDefaultInstanceForType()

public GroundingSettings getDefaultInstanceForType()
Returns
Type Description
GroundingSettings

getDescriptorForType()

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

getGroundingType()

public GroundingSettings.GroundingType getGroundingType()

The type of grounding to apply.

.google.cloud.documentai.v1beta3.GroundingSettings.GroundingType grounding_type = 1;

Returns
Type Description
GroundingSettings.GroundingType

The groundingType.

getGroundingTypeValue()

public int getGroundingTypeValue()

The type of grounding to apply.

.google.cloud.documentai.v1beta3.GroundingSettings.GroundingType grounding_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for groundingType.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GroundingSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setGroundingType(GroundingSettings.GroundingType value)

public GroundingSettings.Builder setGroundingType(GroundingSettings.GroundingType value)

The type of grounding to apply.

.google.cloud.documentai.v1beta3.GroundingSettings.GroundingType grounding_type = 1;

Parameter
Name Description
value GroundingSettings.GroundingType

The groundingType to set.

Returns
Type Description
GroundingSettings.Builder

This builder for chaining.

setGroundingTypeValue(int value)

public GroundingSettings.Builder setGroundingTypeValue(int value)

The type of grounding to apply.

.google.cloud.documentai.v1beta3.GroundingSettings.GroundingType grounding_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for groundingType to set.

Returns
Type Description
GroundingSettings.Builder

This builder for chaining.