Interface ModerateTextRequestOrBuilder (2.56.0)

public interface ModerateTextRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDocument()

public abstract Document getDocument()

Required. Input document.

.google.cloud.language.v2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Document

The document.

getDocumentOrBuilder()

public abstract DocumentOrBuilder getDocumentOrBuilder()

Required. Input document.

.google.cloud.language.v2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DocumentOrBuilder

getModelVersion()

public abstract ModerateTextRequest.ModelVersion getModelVersion()

Optional. The model version to use for ModerateText.

.google.cloud.language.v2.ModerateTextRequest.ModelVersion model_version = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ModerateTextRequest.ModelVersion

The modelVersion.

getModelVersionValue()

public abstract int getModelVersionValue()

Optional. The model version to use for ModerateText.

.google.cloud.language.v2.ModerateTextRequest.ModelVersion model_version = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for modelVersion.

hasDocument()

public abstract boolean hasDocument()

Required. Input document.

.google.cloud.language.v2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the document field is set.