Class AutoMlParams.Builder (2.49.0)

public static final class AutoMlParams.Builder extends GeneratedMessageV3.Builder<AutoMlParams.Builder> implements AutoMlParamsOrBuilder

Parameters to control AutoML model prediction behavior.

Protobuf type google.cloud.documentai.v1beta2.AutoMlParams

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AutoMlParams build()
Returns
Type Description
AutoMlParams

buildPartial()

public AutoMlParams buildPartial()
Returns
Type Description
AutoMlParams

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearModel()

public AutoMlParams.Builder clearModel()

Resource name of the AutoML model.

Format: projects/{project-id}/locations/{location-id}/models/{model-id}.

string model = 1;

Returns
Type Description
AutoMlParams.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public AutoMlParams getDefaultInstanceForType()
Returns
Type Description
AutoMlParams

getDescriptorForType()

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

getModel()

public String getModel()

Resource name of the AutoML model.

Format: projects/{project-id}/locations/{location-id}/models/{model-id}.

string model = 1;

Returns
Type Description
String

The model.

getModelBytes()

public ByteString getModelBytes()

Resource name of the AutoML model.

Format: projects/{project-id}/locations/{location-id}/models/{model-id}.

string model = 1;

Returns
Type Description
ByteString

The bytes for model.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AutoMlParams other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setModel(String value)

public AutoMlParams.Builder setModel(String value)

Resource name of the AutoML model.

Format: projects/{project-id}/locations/{location-id}/models/{model-id}.

string model = 1;

Parameter
Name Description
value String

The model to set.

Returns
Type Description
AutoMlParams.Builder

This builder for chaining.

setModelBytes(ByteString value)

public AutoMlParams.Builder setModelBytes(ByteString value)

Resource name of the AutoML model.

Format: projects/{project-id}/locations/{location-id}/models/{model-id}.

string model = 1;

Parameter
Name Description
value ByteString

The bytes for model to set.

Returns
Type Description
AutoMlParams.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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