Interface ClassificationModelOptionsOrBuilder (2.33.0)

publicinterface ClassificationModelOptionsOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getModelTypeCase()

publicabstractClassificationModelOptions.ModelTypeCasegetModelTypeCase()
Returns
Type Description
ClassificationModelOptions.ModelTypeCase

getV1Model()

publicabstractClassificationModelOptions.V1ModelgetV1Model()

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.v1.ClassificationModelOptions.V1Model v1_model = 1;

Returns
Type Description
ClassificationModelOptions.V1Model

The v1Model.

getV1ModelOrBuilder()

publicabstractClassificationModelOptions.V1ModelOrBuildergetV1ModelOrBuilder()

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.v1.ClassificationModelOptions.V1Model v1_model = 1;

Returns
Type Description
ClassificationModelOptions.V1ModelOrBuilder

getV2Model()

publicabstractClassificationModelOptions.V2ModelgetV2Model()

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.v1.ClassificationModelOptions.V2Model v2_model = 2;

Returns
Type Description
ClassificationModelOptions.V2Model

The v2Model.

getV2ModelOrBuilder()

publicabstractClassificationModelOptions.V2ModelOrBuildergetV2ModelOrBuilder()

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.v1.ClassificationModelOptions.V2Model v2_model = 2;

Returns
Type Description
ClassificationModelOptions.V2ModelOrBuilder

hasV1Model()

publicabstractbooleanhasV1Model()

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.v1.ClassificationModelOptions.V1Model v1_model = 1;

Returns
Type Description
boolean

Whether the v1Model field is set.

hasV2Model()

publicabstractbooleanhasV2Model()

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.v1.ClassificationModelOptions.V2Model v2_model = 2;

Returns
Type Description
boolean

Whether the v2Model field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.