Class CitationAnchor.Builder (0.21.0)

public static final class CitationAnchor.Builder extends GeneratedMessage.Builder<CitationAnchor.Builder> implements CitationAnchorOrBuilder

The anchor of the citation.

Protobuf type google.cloud.geminidataanalytics.v1.CitationAnchor

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public CitationAnchor build()
Returns
Type Description
CitationAnchor

buildPartial()

public CitationAnchor buildPartial()
Returns
Type Description
CitationAnchor

clear()

public CitationAnchor.Builder clear()
Returns
Type Description
CitationAnchor.Builder
Overrides

clearAnchorType()

public CitationAnchor.Builder clearAnchorType()
Returns
Type Description
CitationAnchor.Builder

clearTextMessageAnchor()

public CitationAnchor.Builder clearTextMessageAnchor()

Output only. Only set if the citation is for a TextMessage.

.google.cloud.geminidataanalytics.v1.CitationAnchor.TextMessageCitationAnchor text_message_anchor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CitationAnchor.Builder

getAnchorTypeCase()

public CitationAnchor.AnchorTypeCase getAnchorTypeCase()
Returns
Type Description
CitationAnchor.AnchorTypeCase

getDefaultInstanceForType()

public CitationAnchor getDefaultInstanceForType()
Returns
Type Description
CitationAnchor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTextMessageAnchor()

public CitationAnchor.TextMessageCitationAnchor getTextMessageAnchor()

Output only. Only set if the citation is for a TextMessage.

.google.cloud.geminidataanalytics.v1.CitationAnchor.TextMessageCitationAnchor text_message_anchor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CitationAnchor.TextMessageCitationAnchor

The textMessageAnchor.

getTextMessageAnchorBuilder()

public CitationAnchor.TextMessageCitationAnchor.Builder getTextMessageAnchorBuilder()

Output only. Only set if the citation is for a TextMessage.

.google.cloud.geminidataanalytics.v1.CitationAnchor.TextMessageCitationAnchor text_message_anchor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CitationAnchor.TextMessageCitationAnchor.Builder

getTextMessageAnchorOrBuilder()

public CitationAnchor.TextMessageCitationAnchorOrBuilder getTextMessageAnchorOrBuilder()

Output only. Only set if the citation is for a TextMessage.

.google.cloud.geminidataanalytics.v1.CitationAnchor.TextMessageCitationAnchor text_message_anchor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CitationAnchor.TextMessageCitationAnchorOrBuilder

hasTextMessageAnchor()

public boolean hasTextMessageAnchor()

Output only. Only set if the citation is for a TextMessage.

.google.cloud.geminidataanalytics.v1.CitationAnchor.TextMessageCitationAnchor text_message_anchor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the textMessageAnchor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CitationAnchor other)

public CitationAnchor.Builder mergeFrom(CitationAnchor other)
Parameter
Name Description
other CitationAnchor
Returns
Type Description
CitationAnchor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CitationAnchor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CitationAnchor.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CitationAnchor.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CitationAnchor.Builder
Overrides

mergeTextMessageAnchor(CitationAnchor.TextMessageCitationAnchor value)

public CitationAnchor.Builder mergeTextMessageAnchor(CitationAnchor.TextMessageCitationAnchor value)

Output only. Only set if the citation is for a TextMessage.

.google.cloud.geminidataanalytics.v1.CitationAnchor.TextMessageCitationAnchor text_message_anchor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CitationAnchor.TextMessageCitationAnchor
Returns
Type Description
CitationAnchor.Builder

setTextMessageAnchor(CitationAnchor.TextMessageCitationAnchor value)

public CitationAnchor.Builder setTextMessageAnchor(CitationAnchor.TextMessageCitationAnchor value)

Output only. Only set if the citation is for a TextMessage.

.google.cloud.geminidataanalytics.v1.CitationAnchor.TextMessageCitationAnchor text_message_anchor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CitationAnchor.TextMessageCitationAnchor
Returns
Type Description
CitationAnchor.Builder

setTextMessageAnchor(CitationAnchor.TextMessageCitationAnchor.Builder builderForValue)

public CitationAnchor.Builder setTextMessageAnchor(CitationAnchor.TextMessageCitationAnchor.Builder builderForValue)

Output only. Only set if the citation is for a TextMessage.

.google.cloud.geminidataanalytics.v1.CitationAnchor.TextMessageCitationAnchor text_message_anchor = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue CitationAnchor.TextMessageCitationAnchor.Builder
Returns
Type Description
CitationAnchor.Builder