Class GenerateGroundedContentRequest.GroundingSource.Builder (0.49.0)

public static final class GenerateGroundedContentRequest.GroundingSource.Builder extends GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GroundingSource.Builder> implements GenerateGroundedContentRequest.GroundingSourceOrBuilder

Grounding source.

Protobuf type google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GenerateGroundedContentRequest.GroundingSource.Builder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GenerateGroundedContentRequest.GroundingSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder
Overrides

build()

public GenerateGroundedContentRequest.GroundingSource build()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource

buildPartial()

public GenerateGroundedContentRequest.GroundingSource buildPartial()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource

clear()

public GenerateGroundedContentRequest.GroundingSource.Builder clear()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GenerateGroundedContentRequest.GroundingSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder
Overrides

clearGoogleSearchSource()

public GenerateGroundedContentRequest.GroundingSource.Builder clearGoogleSearchSource()

If set, grounding is performed with Google Search.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3;

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder

clearInlineSource()

public GenerateGroundedContentRequest.GroundingSource.Builder clearInlineSource()

If set, grounding is performed with inline content.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1;

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public GenerateGroundedContentRequest.GroundingSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder
Overrides

clearSearchSource()

public GenerateGroundedContentRequest.GroundingSource.Builder clearSearchSource()

If set, grounding is performed with Vertex AI Search.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2;

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder

clearSource()

public GenerateGroundedContentRequest.GroundingSource.Builder clearSource()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder

clone()

public GenerateGroundedContentRequest.GroundingSource.Builder clone()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder
Overrides

getDefaultInstanceForType()

public GenerateGroundedContentRequest.GroundingSource getDefaultInstanceForType()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource

getDescriptorForType()

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

getGoogleSearchSource()

public GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource getGoogleSearchSource()

If set, grounding is performed with Google Search.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3;

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource

The googleSearchSource.

getGoogleSearchSourceBuilder()

public GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource.Builder getGoogleSearchSourceBuilder()

If set, grounding is performed with Google Search.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3;

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource.Builder

getGoogleSearchSourceOrBuilder()

public GenerateGroundedContentRequest.GroundingSource.GoogleSearchSourceOrBuilder getGoogleSearchSourceOrBuilder()

If set, grounding is performed with Google Search.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3;

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.GoogleSearchSourceOrBuilder

getInlineSource()

public GenerateGroundedContentRequest.GroundingSource.InlineSource getInlineSource()

If set, grounding is performed with inline content.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1;

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource

The inlineSource.

getInlineSourceBuilder()

public GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder getInlineSourceBuilder()

If set, grounding is performed with inline content.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1;

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder

getInlineSourceOrBuilder()

public GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder getInlineSourceOrBuilder()

If set, grounding is performed with inline content.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1;

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder

getSearchSource()

public GenerateGroundedContentRequest.GroundingSource.SearchSource getSearchSource()

If set, grounding is performed with Vertex AI Search.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2;

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.SearchSource

The searchSource.

getSearchSourceBuilder()

public GenerateGroundedContentRequest.GroundingSource.SearchSource.Builder getSearchSourceBuilder()

If set, grounding is performed with Vertex AI Search.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2;

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.SearchSource.Builder

getSearchSourceOrBuilder()

public GenerateGroundedContentRequest.GroundingSource.SearchSourceOrBuilder getSearchSourceOrBuilder()

If set, grounding is performed with Vertex AI Search.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2;

Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.SearchSourceOrBuilder

getSourceCase()

public GenerateGroundedContentRequest.GroundingSource.SourceCase getSourceCase()
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.SourceCase

hasGoogleSearchSource()

public boolean hasGoogleSearchSource()

If set, grounding is performed with Google Search.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3;

Returns
Type Description
boolean

Whether the googleSearchSource field is set.

hasInlineSource()

public boolean hasInlineSource()

If set, grounding is performed with inline content.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1;

Returns
Type Description
boolean

Whether the inlineSource field is set.

hasSearchSource()

public boolean hasSearchSource()

If set, grounding is performed with Vertex AI Search.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2;

Returns
Type Description
boolean

Whether the searchSource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GenerateGroundedContentRequest.GroundingSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGoogleSearchSource(GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource value)

public GenerateGroundedContentRequest.GroundingSource.Builder mergeGoogleSearchSource(GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource value)

If set, grounding is performed with Google Search.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3;

Parameter
Name Description
value GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder

mergeInlineSource(GenerateGroundedContentRequest.GroundingSource.InlineSource value)

public GenerateGroundedContentRequest.GroundingSource.Builder mergeInlineSource(GenerateGroundedContentRequest.GroundingSource.InlineSource value)

If set, grounding is performed with inline content.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1;

Parameter
Name Description
value GenerateGroundedContentRequest.GroundingSource.InlineSource
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder

mergeSearchSource(GenerateGroundedContentRequest.GroundingSource.SearchSource value)

public GenerateGroundedContentRequest.GroundingSource.Builder mergeSearchSource(GenerateGroundedContentRequest.GroundingSource.SearchSource value)

If set, grounding is performed with Vertex AI Search.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2;

Parameter
Name Description
value GenerateGroundedContentRequest.GroundingSource.SearchSource
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerateGroundedContentRequest.GroundingSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public GenerateGroundedContentRequest.GroundingSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder
Overrides

setGoogleSearchSource(GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource value)

public GenerateGroundedContentRequest.GroundingSource.Builder setGoogleSearchSource(GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource value)

If set, grounding is performed with Google Search.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3;

Parameter
Name Description
value GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder

setGoogleSearchSource(GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource.Builder builderForValue)

public GenerateGroundedContentRequest.GroundingSource.Builder setGoogleSearchSource(GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource.Builder builderForValue)

If set, grounding is performed with Google Search.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3;

Parameter
Name Description
builderForValue GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource.Builder
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder

setInlineSource(GenerateGroundedContentRequest.GroundingSource.InlineSource value)

public GenerateGroundedContentRequest.GroundingSource.Builder setInlineSource(GenerateGroundedContentRequest.GroundingSource.InlineSource value)

If set, grounding is performed with inline content.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1;

Parameter
Name Description
value GenerateGroundedContentRequest.GroundingSource.InlineSource
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder

setInlineSource(GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder builderForValue)

public GenerateGroundedContentRequest.GroundingSource.Builder setInlineSource(GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder builderForValue)

If set, grounding is performed with inline content.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1;

Parameter
Name Description
builderForValue GenerateGroundedContentRequest.GroundingSource.InlineSource.Builder
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GenerateGroundedContentRequest.GroundingSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder
Overrides

setSearchSource(GenerateGroundedContentRequest.GroundingSource.SearchSource value)

public GenerateGroundedContentRequest.GroundingSource.Builder setSearchSource(GenerateGroundedContentRequest.GroundingSource.SearchSource value)

If set, grounding is performed with Vertex AI Search.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2;

Parameter
Name Description
value GenerateGroundedContentRequest.GroundingSource.SearchSource
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder

setSearchSource(GenerateGroundedContentRequest.GroundingSource.SearchSource.Builder builderForValue)

public GenerateGroundedContentRequest.GroundingSource.Builder setSearchSource(GenerateGroundedContentRequest.GroundingSource.SearchSource.Builder builderForValue)

If set, grounding is performed with Vertex AI Search.

.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2;

Parameter
Name Description
builderForValue GenerateGroundedContentRequest.GroundingSource.SearchSource.Builder
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final GenerateGroundedContentRequest.GroundingSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerateGroundedContentRequest.GroundingSource.Builder
Overrides