Interface GroundingChunk.RetrievedContextOrBuilder (3.56.0)

public static interface GroundingChunk.RetrievedContextOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getText()

public abstract String getText()

Text of the attribution.

optional string text = 3;

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

Text of the attribution.

optional string text = 3;

Returns
Type Description
ByteString

The bytes for text.

getTitle()

public abstract String getTitle()

Title of the attribution.

optional string title = 2;

Returns
Type Description
String

The title.

getTitleBytes()

public abstract ByteString getTitleBytes()

Title of the attribution.

optional string title = 2;

Returns
Type Description
ByteString

The bytes for title.

getUri()

public abstract String getUri()

URI reference of the attribution.

optional string uri = 1;

Returns
Type Description
String

The uri.

getUriBytes()

public abstract ByteString getUriBytes()

URI reference of the attribution.

optional string uri = 1;

Returns
Type Description
ByteString

The bytes for uri.

hasText()

public abstract boolean hasText()

Text of the attribution.

optional string text = 3;

Returns
Type Description
boolean

Whether the text field is set.

hasTitle()

public abstract boolean hasTitle()

Title of the attribution.

optional string title = 2;

Returns
Type Description
boolean

Whether the title field is set.

hasUri()

public abstract boolean hasUri()

URI reference of the attribution.

optional string uri = 1;

Returns
Type Description
boolean

Whether the uri field is set.