Class TrainProcessorVersionRequest.FoundationModelTuningOptions (2.43.0)

public static final class TrainProcessorVersionRequest.FoundationModelTuningOptions extends GeneratedMessageV3 implements TrainProcessorVersionRequest.FoundationModelTuningOptionsOrBuilder

Options to control foundation model tuning of the processor.

Protobuf type google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > TrainProcessorVersionRequest.FoundationModelTuningOptions

Static Fields

LEARNING_RATE_MULTIPLIER_FIELD_NUMBER

public static final int LEARNING_RATE_MULTIPLIER_FIELD_NUMBER
Field Value
TypeDescription
int

TRAIN_STEPS_FIELD_NUMBER

public static final int TRAIN_STEPS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TrainProcessorVersionRequest.FoundationModelTuningOptions getDefaultInstance()
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions

getDescriptor()

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

newBuilder()

public static TrainProcessorVersionRequest.FoundationModelTuningOptions.Builder newBuilder()
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions.Builder

newBuilder(TrainProcessorVersionRequest.FoundationModelTuningOptions prototype)

public static TrainProcessorVersionRequest.FoundationModelTuningOptions.Builder newBuilder(TrainProcessorVersionRequest.FoundationModelTuningOptions prototype)
Parameter
NameDescription
prototypeTrainProcessorVersionRequest.FoundationModelTuningOptions
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions.Builder

parseDelimitedFrom(InputStream input)

public static TrainProcessorVersionRequest.FoundationModelTuningOptions parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TrainProcessorVersionRequest.FoundationModelTuningOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TrainProcessorVersionRequest.FoundationModelTuningOptions parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TrainProcessorVersionRequest.FoundationModelTuningOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TrainProcessorVersionRequest.FoundationModelTuningOptions parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TrainProcessorVersionRequest.FoundationModelTuningOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TrainProcessorVersionRequest.FoundationModelTuningOptions parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TrainProcessorVersionRequest.FoundationModelTuningOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TrainProcessorVersionRequest.FoundationModelTuningOptions parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TrainProcessorVersionRequest.FoundationModelTuningOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TrainProcessorVersionRequest.FoundationModelTuningOptions parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TrainProcessorVersionRequest.FoundationModelTuningOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TrainProcessorVersionRequest.FoundationModelTuningOptions> parser()
Returns
TypeDescription
Parser<FoundationModelTuningOptions>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public TrainProcessorVersionRequest.FoundationModelTuningOptions getDefaultInstanceForType()
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions

getLearningRateMultiplier()

public float getLearningRateMultiplier()

Optional. The multiplier to apply to the recommended learning rate. Valid values are between 0.1 and 10. If not provided, recommended learning rate will be used.

float learning_rate_multiplier = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
float

The learningRateMultiplier.

getParserForType()

public Parser<TrainProcessorVersionRequest.FoundationModelTuningOptions> getParserForType()
Returns
TypeDescription
Parser<FoundationModelTuningOptions>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTrainSteps()

public int getTrainSteps()

Optional. The number of steps to run for model tuning. Valid values are between 1 and 400. If not provided, recommended steps will be used.

int32 train_steps = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The trainSteps.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TrainProcessorVersionRequest.FoundationModelTuningOptions.Builder newBuilderForType()
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TrainProcessorVersionRequest.FoundationModelTuningOptions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TrainProcessorVersionRequest.FoundationModelTuningOptions.Builder toBuilder()
Returns
TypeDescription
TrainProcessorVersionRequest.FoundationModelTuningOptions.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException