Interface ClassificationModelOptionsOrBuilder (2.25.0)

public interface ClassificationModelOptionsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getModelTypeCase()

public abstract ClassificationModelOptions.ModelTypeCase getModelTypeCase()
Returns
TypeDescription
ClassificationModelOptions.ModelTypeCase

getV1Model()

public abstract ClassificationModelOptions.V1Model getV1Model()

Setting this field will use the V1 model and V1 content categories version. The V1 model is a legacy model; support for this will be discontinued in the future.

.google.cloud.language.v1beta2.ClassificationModelOptions.V1Model v1_model = 1;

Returns
TypeDescription
ClassificationModelOptions.V1Model

The v1Model.

getV1ModelOrBuilder()

public abstract ClassificationModelOptions.V1ModelOrBuilder getV1ModelOrBuilder()

Setting this field will use the V1 model and V1 content categories version. The V1 model is a legacy model; support for this will be discontinued in the future.

.google.cloud.language.v1beta2.ClassificationModelOptions.V1Model v1_model = 1;

Returns
TypeDescription
ClassificationModelOptions.V1ModelOrBuilder

getV2Model()

public abstract ClassificationModelOptions.V2Model getV2Model()

Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model.

.google.cloud.language.v1beta2.ClassificationModelOptions.V2Model v2_model = 2;

Returns
TypeDescription
ClassificationModelOptions.V2Model

The v2Model.

getV2ModelOrBuilder()

public abstract ClassificationModelOptions.V2ModelOrBuilder getV2ModelOrBuilder()

Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model.

.google.cloud.language.v1beta2.ClassificationModelOptions.V2Model v2_model = 2;

Returns
TypeDescription
ClassificationModelOptions.V2ModelOrBuilder

hasV1Model()

public abstract boolean hasV1Model()

Setting this field will use the V1 model and V1 content categories version. The V1 model is a legacy model; support for this will be discontinued in the future.

.google.cloud.language.v1beta2.ClassificationModelOptions.V1Model v1_model = 1;

Returns
TypeDescription
boolean

Whether the v1Model field is set.

hasV2Model()

public abstract boolean hasV2Model()

Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model.

.google.cloud.language.v1beta2.ClassificationModelOptions.V2Model v2_model = 2;

Returns
TypeDescription
boolean

Whether the v2Model field is set.