public static final class GenerateGroundedContentRequest.GroundingSpec.Builder extends GeneratedMessageV3.Builder<GenerateGroundedContentRequest.GroundingSpec.Builder> implements GenerateGroundedContentRequest.GroundingSpecOrBuilder
Grounding specification.
Protobuf type
google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec
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
addAllGroundingSources(Iterable<? extends GenerateGroundedContentRequest.GroundingSource> values)
public GenerateGroundedContentRequest.GroundingSpec.Builder addAllGroundingSources(Iterable<? extends GenerateGroundedContentRequest.GroundingSource> values)
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource>
|
addGroundingSources(GenerateGroundedContentRequest.GroundingSource value)
public GenerateGroundedContentRequest.GroundingSpec.Builder addGroundingSources(GenerateGroundedContentRequest.GroundingSource value)
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
addGroundingSources(GenerateGroundedContentRequest.GroundingSource.Builder builderForValue)
public GenerateGroundedContentRequest.GroundingSpec.Builder addGroundingSources(GenerateGroundedContentRequest.GroundingSource.Builder builderForValue)
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
addGroundingSources(int index, GenerateGroundedContentRequest.GroundingSource value)
public GenerateGroundedContentRequest.GroundingSpec.Builder addGroundingSources(int index, GenerateGroundedContentRequest.GroundingSource value)
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
addGroundingSources(int index, GenerateGroundedContentRequest.GroundingSource.Builder builderForValue)
public GenerateGroundedContentRequest.GroundingSpec.Builder addGroundingSources(int index, GenerateGroundedContentRequest.GroundingSource.Builder builderForValue)
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
addGroundingSourcesBuilder()
public GenerateGroundedContentRequest.GroundingSource.Builder addGroundingSourcesBuilder()
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
addGroundingSourcesBuilder(int index)
public GenerateGroundedContentRequest.GroundingSource.Builder addGroundingSourcesBuilder(int index)
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenerateGroundedContentRequest.GroundingSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GenerateGroundedContentRequest.GroundingSpec build()
buildPartial()
public GenerateGroundedContentRequest.GroundingSpec buildPartial()
clear()
public GenerateGroundedContentRequest.GroundingSpec.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public GenerateGroundedContentRequest.GroundingSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearGroundingSources()
public GenerateGroundedContentRequest.GroundingSpec.Builder clearGroundingSources()
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public GenerateGroundedContentRequest.GroundingSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public GenerateGroundedContentRequest.GroundingSpec.Builder clone()
Overrides
getDefaultInstanceForType()
public GenerateGroundedContentRequest.GroundingSpec getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getGroundingSources(int index)
public GenerateGroundedContentRequest.GroundingSource getGroundingSources(int index)
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
Parameter |
Name |
Description |
index |
int
|
getGroundingSourcesBuilder(int index)
public GenerateGroundedContentRequest.GroundingSource.Builder getGroundingSourcesBuilder(int index)
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
Parameter |
Name |
Description |
index |
int
|
getGroundingSourcesBuilderList()
public List<GenerateGroundedContentRequest.GroundingSource.Builder> getGroundingSourcesBuilderList()
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
getGroundingSourcesCount()
public int getGroundingSourcesCount()
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
Returns |
Type |
Description |
int |
|
getGroundingSourcesList()
public List<GenerateGroundedContentRequest.GroundingSource> getGroundingSourcesList()
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
getGroundingSourcesOrBuilder(int index)
public GenerateGroundedContentRequest.GroundingSourceOrBuilder getGroundingSourcesOrBuilder(int index)
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
Parameter |
Name |
Description |
index |
int
|
getGroundingSourcesOrBuilderList()
public List<? extends GenerateGroundedContentRequest.GroundingSourceOrBuilder> getGroundingSourcesOrBuilderList()
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSourceOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(GenerateGroundedContentRequest.GroundingSpec other)
public GenerateGroundedContentRequest.GroundingSpec.Builder mergeFrom(GenerateGroundedContentRequest.GroundingSpec other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GenerateGroundedContentRequest.GroundingSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GenerateGroundedContentRequest.GroundingSpec.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenerateGroundedContentRequest.GroundingSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeGroundingSources(int index)
public GenerateGroundedContentRequest.GroundingSpec.Builder removeGroundingSources(int index)
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public GenerateGroundedContentRequest.GroundingSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setGroundingSources(int index, GenerateGroundedContentRequest.GroundingSource value)
public GenerateGroundedContentRequest.GroundingSpec.Builder setGroundingSources(int index, GenerateGroundedContentRequest.GroundingSource value)
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
setGroundingSources(int index, GenerateGroundedContentRequest.GroundingSource.Builder builderForValue)
public GenerateGroundedContentRequest.GroundingSpec.Builder setGroundingSources(int index, GenerateGroundedContentRequest.GroundingSource.Builder builderForValue)
Grounding sources.
repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenerateGroundedContentRequest.GroundingSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GenerateGroundedContentRequest.GroundingSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides