Interface ModerateTextRequestOrBuilder (2.44.0)

public interface ModerateTextRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDocument()

public abstract Document getDocument()

Required. Input document.

.google.cloud.language.v1beta2.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.v1beta2.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DocumentOrBuilder

hasDocument()

public abstract boolean hasDocument()

Required. Input document.

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

Returns
Type Description
boolean

Whether the document field is set.