Class AutoMlParams.Builder (2.25.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AutoMlParams build()
Returns
TypeDescription
AutoMlParams

buildPartial()

public AutoMlParams buildPartial()
Returns
TypeDescription
AutoMlParams

clear()

public AutoMlParams.Builder clear()
Returns
TypeDescription
AutoMlParams.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AutoMlParams.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
AutoMlParams.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AutoMlParams.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AutoMlParams.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public AutoMlParams getDefaultInstanceForType()
Returns
TypeDescription
AutoMlParams

getDescriptorForType()

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

The bytes for model.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AutoMlParams other)

public AutoMlParams.Builder mergeFrom(AutoMlParams other)
Parameter
NameDescription
otherAutoMlParams
Returns
TypeDescription
AutoMlParams.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutoMlParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutoMlParams.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The model to set.

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

The bytes for model to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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