Class CitationSource.Builder (0.21.0)

public static final class CitationSource.Builder extends GeneratedMessage.Builder<CitationSource.Builder> implements CitationSourceOrBuilder

The source of the citation.

Protobuf type google.cloud.geminidataanalytics.v1.CitationSource

Static Methods

getDescriptor()

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

Methods

build()

public CitationSource build()
Returns
Type Description
CitationSource

buildPartial()

public CitationSource buildPartial()
Returns
Type Description
CitationSource

clear()

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

clearExampleQuery()

public CitationSource.Builder clearExampleQuery()

Output only. The example query used as the source.

.google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CitationSource.Builder

clearGlossaryTerm()

public CitationSource.Builder clearGlossaryTerm()

Output only. The glossary term used as the source.

.google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_term = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CitationSource.Builder

clearId()

public CitationSource.Builder clearId()

Output only. Unique identifier of the source. This ID is service-generated and is unique within the scope of a single Citation message.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CitationSource.Builder

This builder for chaining.

clearSourceType()

public CitationSource.Builder clearSourceType()
Returns
Type Description
CitationSource.Builder

clearTitle()

public CitationSource.Builder clearTitle()

Output only. The title of the source.

string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CitationSource.Builder

This builder for chaining.

clearUri()

public CitationSource.Builder clearUri()

Output only. The uri used as the source, such as a web grounding URL.

string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CitationSource.Builder

This builder for chaining.

getDefaultInstanceForType()

public CitationSource getDefaultInstanceForType()
Returns
Type Description
CitationSource

getDescriptorForType()

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

getExampleQuery()

public ExampleQuery getExampleQuery()

Output only. The example query used as the source.

.google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ExampleQuery

The exampleQuery.

getExampleQueryBuilder()

public ExampleQuery.Builder getExampleQueryBuilder()

Output only. The example query used as the source.

.google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ExampleQuery.Builder

getExampleQueryOrBuilder()

public ExampleQueryOrBuilder getExampleQueryOrBuilder()

Output only. The example query used as the source.

.google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ExampleQueryOrBuilder

getGlossaryTerm()

public GlossaryTerm getGlossaryTerm()

Output only. The glossary term used as the source.

.google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_term = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GlossaryTerm

The glossaryTerm.

getGlossaryTermBuilder()

public GlossaryTerm.Builder getGlossaryTermBuilder()

Output only. The glossary term used as the source.

.google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_term = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GlossaryTerm.Builder

getGlossaryTermOrBuilder()

public GlossaryTermOrBuilder getGlossaryTermOrBuilder()

Output only. The glossary term used as the source.

.google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_term = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GlossaryTermOrBuilder

getId()

public String getId()

Output only. Unique identifier of the source. This ID is service-generated and is unique within the scope of a single Citation message.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. Unique identifier of the source. This ID is service-generated and is unique within the scope of a single Citation message.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for id.

getSourceTypeCase()

public CitationSource.SourceTypeCase getSourceTypeCase()
Returns
Type Description
CitationSource.SourceTypeCase

getTitle()

public String getTitle()

Output only. The title of the source.

string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Output only. The title of the source.

string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for title.

getUri()

public String getUri()

Output only. The uri used as the source, such as a web grounding URL.

string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

Output only. The uri used as the source, such as a web grounding URL.

string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for uri.

hasExampleQuery()

public boolean hasExampleQuery()

Output only. The example query used as the source.

.google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the exampleQuery field is set.

hasGlossaryTerm()

public boolean hasGlossaryTerm()

Output only. The glossary term used as the source.

.google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_term = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the glossaryTerm field is set.

hasUri()

public boolean hasUri()

Output only. The uri used as the source, such as a web grounding URL.

string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the uri field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExampleQuery(ExampleQuery value)

public CitationSource.Builder mergeExampleQuery(ExampleQuery value)

Output only. The example query used as the source.

.google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ExampleQuery
Returns
Type Description
CitationSource.Builder

mergeFrom(CitationSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGlossaryTerm(GlossaryTerm value)

public CitationSource.Builder mergeGlossaryTerm(GlossaryTerm value)

Output only. The glossary term used as the source.

.google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_term = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value GlossaryTerm
Returns
Type Description
CitationSource.Builder

setExampleQuery(ExampleQuery value)

public CitationSource.Builder setExampleQuery(ExampleQuery value)

Output only. The example query used as the source.

.google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ExampleQuery
Returns
Type Description
CitationSource.Builder

setExampleQuery(ExampleQuery.Builder builderForValue)

public CitationSource.Builder setExampleQuery(ExampleQuery.Builder builderForValue)

Output only. The example query used as the source.

.google.cloud.geminidataanalytics.v1.ExampleQuery example_query = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue ExampleQuery.Builder
Returns
Type Description
CitationSource.Builder

setGlossaryTerm(GlossaryTerm value)

public CitationSource.Builder setGlossaryTerm(GlossaryTerm value)

Output only. The glossary term used as the source.

.google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_term = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value GlossaryTerm
Returns
Type Description
CitationSource.Builder

setGlossaryTerm(GlossaryTerm.Builder builderForValue)

public CitationSource.Builder setGlossaryTerm(GlossaryTerm.Builder builderForValue)

Output only. The glossary term used as the source.

.google.cloud.geminidataanalytics.v1.GlossaryTerm glossary_term = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue GlossaryTerm.Builder
Returns
Type Description
CitationSource.Builder

setId(String value)

public CitationSource.Builder setId(String value)

Output only. Unique identifier of the source. This ID is service-generated and is unique within the scope of a single Citation message.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The id to set.

Returns
Type Description
CitationSource.Builder

This builder for chaining.

setIdBytes(ByteString value)

public CitationSource.Builder setIdBytes(ByteString value)

Output only. Unique identifier of the source. This ID is service-generated and is unique within the scope of a single Citation message.

string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
CitationSource.Builder

This builder for chaining.

setTitle(String value)

public CitationSource.Builder setTitle(String value)

Output only. The title of the source.

string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The title to set.

Returns
Type Description
CitationSource.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public CitationSource.Builder setTitleBytes(ByteString value)

Output only. The title of the source.

string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
CitationSource.Builder

This builder for chaining.

setUri(String value)

public CitationSource.Builder setUri(String value)

Output only. The uri used as the source, such as a web grounding URL.

string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
CitationSource.Builder

This builder for chaining.

setUriBytes(ByteString value)

public CitationSource.Builder setUriBytes(ByteString value)

Output only. The uri used as the source, such as a web grounding URL.

string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
CitationSource.Builder

This builder for chaining.