Class ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder (2.55.0)

public static final class ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder extends GeneratedMessageV3.Builder<ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder> implements ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfoOrBuilder

Information for a custom Generative AI model created by the user. These are created with Create New Version in either the Call foundation model or Fine tuning tabs.

Protobuf type google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo build()
Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo

buildPartial()

public ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo buildPartial()
Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo

clear()

public ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder clear()
Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder
Overrides

clearBaseProcessorVersionId()

public ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder clearBaseProcessorVersionId()

The base processor version ID for the custom model.

string base_processor_version_id = 2;

Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder

This builder for chaining.

clearCustomModelType()

public ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder clearCustomModelType()

The type of custom model created by the user.

.google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType custom_model_type = 1;

Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder
Overrides

clone()

public ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder clone()
Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder
Overrides

getBaseProcessorVersionId()

public String getBaseProcessorVersionId()

The base processor version ID for the custom model.

string base_processor_version_id = 2;

Returns
Type Description
String

The baseProcessorVersionId.

getBaseProcessorVersionIdBytes()

public ByteString getBaseProcessorVersionIdBytes()

The base processor version ID for the custom model.

string base_processor_version_id = 2;

Returns
Type Description
ByteString

The bytes for baseProcessorVersionId.

getCustomModelType()

public ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType getCustomModelType()

The type of custom model created by the user.

.google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType custom_model_type = 1;

Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType

The customModelType.

getCustomModelTypeValue()

public int getCustomModelTypeValue()

The type of custom model created by the user.

.google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType custom_model_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for customModelType.

getDefaultInstanceForType()

public ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo getDefaultInstanceForType()
Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo other)

public ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder mergeFrom(ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo other)
Parameter
Name Description
other ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo
Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder
Overrides

setBaseProcessorVersionId(String value)

public ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder setBaseProcessorVersionId(String value)

The base processor version ID for the custom model.

string base_processor_version_id = 2;

Parameter
Name Description
value String

The baseProcessorVersionId to set.

Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder

This builder for chaining.

setBaseProcessorVersionIdBytes(ByteString value)

public ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder setBaseProcessorVersionIdBytes(ByteString value)

The base processor version ID for the custom model.

string base_processor_version_id = 2;

Parameter
Name Description
value ByteString

The bytes for baseProcessorVersionId to set.

Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder

This builder for chaining.

setCustomModelType(ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType value)

public ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder setCustomModelType(ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType value)

The type of custom model created by the user.

.google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType custom_model_type = 1;

Parameter
Name Description
value ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType

The customModelType to set.

Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder

This builder for chaining.

setCustomModelTypeValue(int value)

public ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder setCustomModelTypeValue(int value)

The type of custom model created by the user.

.google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType custom_model_type = 1;

Parameter
Name Description
value int

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

Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.Builder
Overrides