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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenerateGroundedContentRequest.GroundingSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GenerateGroundedContentRequest.GroundingSource build()
buildPartial()
public GenerateGroundedContentRequest.GroundingSource buildPartial()
clear()
public GenerateGroundedContentRequest.GroundingSource.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public GenerateGroundedContentRequest.GroundingSource.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearInlineSource()
public GenerateGroundedContentRequest.GroundingSource.Builder clearInlineSource()
If set, grounding is performed with inline content.
.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public GenerateGroundedContentRequest.GroundingSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clearSource()
public GenerateGroundedContentRequest.GroundingSource.Builder clearSource()
clone()
public GenerateGroundedContentRequest.GroundingSource.Builder clone()
Overrides
getDefaultInstanceForType()
public GenerateGroundedContentRequest.GroundingSource getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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;
getInlineSource()
public GenerateGroundedContentRequest.GroundingSource.InlineSource getInlineSource()
If set, grounding is performed with inline content.
.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1;
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;
getInlineSourceOrBuilder()
public GenerateGroundedContentRequest.GroundingSource.InlineSourceOrBuilder getInlineSourceOrBuilder()
If set, grounding is performed with inline content.
.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1;
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;
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;
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;
getSourceCase()
public GenerateGroundedContentRequest.GroundingSource.SourceCase getSourceCase()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(GenerateGroundedContentRequest.GroundingSource other)
public GenerateGroundedContentRequest.GroundingSource.Builder mergeFrom(GenerateGroundedContentRequest.GroundingSource other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GenerateGroundedContentRequest.GroundingSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GenerateGroundedContentRequest.GroundingSource.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
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;
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;
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenerateGroundedContentRequest.GroundingSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GenerateGroundedContentRequest.GroundingSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenerateGroundedContentRequest.GroundingSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final GenerateGroundedContentRequest.GroundingSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides