public static final class AugmentPromptResponse.Builder extends GeneratedMessage.Builder<AugmentPromptResponse.Builder> implements AugmentPromptResponseOrBuilder
Response message for AugmentPrompt.
Protobuf type google.cloud.aiplatform.v1beta1.AugmentPromptResponse
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllAugmentedPrompt(Iterable<? extends Content> values)
public AugmentPromptResponse.Builder addAllAugmentedPrompt(Iterable<? extends Content> values)
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.aiplatform.v1beta1.Content>
|
public AugmentPromptResponse.Builder addAllFacts(Iterable<? extends Fact> values)
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.aiplatform.v1beta1.Fact>
|
addAugmentedPrompt(Content value)
public AugmentPromptResponse.Builder addAugmentedPrompt(Content value)
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
| Parameter |
| Name |
Description |
value |
Content
|
addAugmentedPrompt(Content.Builder builderForValue)
public AugmentPromptResponse.Builder addAugmentedPrompt(Content.Builder builderForValue)
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
addAugmentedPrompt(int index, Content value)
public AugmentPromptResponse.Builder addAugmentedPrompt(int index, Content value)
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
| Parameters |
| Name |
Description |
index |
int
|
value |
Content
|
addAugmentedPrompt(int index, Content.Builder builderForValue)
public AugmentPromptResponse.Builder addAugmentedPrompt(int index, Content.Builder builderForValue)
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
public Content.Builder addAugmentedPromptBuilder()
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
public Content.Builder addAugmentedPromptBuilder(int index)
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
| Parameter |
| Name |
Description |
index |
int
|
public AugmentPromptResponse.Builder addFacts(Fact value)
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;
| Parameter |
| Name |
Description |
value |
Fact
|
public AugmentPromptResponse.Builder addFacts(Fact.Builder builderForValue)
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;
public AugmentPromptResponse.Builder addFacts(int index, Fact value)
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;
| Parameters |
| Name |
Description |
index |
int
|
value |
Fact
|
public AugmentPromptResponse.Builder addFacts(int index, Fact.Builder builderForValue)
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;
public Fact.Builder addFactsBuilder()
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;
public Fact.Builder addFactsBuilder(int index)
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;
| Parameter |
| Name |
Description |
index |
int
|
public AugmentPromptResponse build()
public AugmentPromptResponse buildPartial()
public AugmentPromptResponse.Builder clear()
Overrides
public AugmentPromptResponse.Builder clearAugmentedPrompt()
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
public AugmentPromptResponse.Builder clearFacts()
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;
public Content getAugmentedPrompt(int index)
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
| Parameter |
| Name |
Description |
index |
int
|
public Content.Builder getAugmentedPromptBuilder(int index)
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
| Parameter |
| Name |
Description |
index |
int
|
public List<Content.Builder> getAugmentedPromptBuilderList()
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
public int getAugmentedPromptCount()
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
| Returns |
| Type |
Description |
int |
|
public List<Content> getAugmentedPromptList()
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
public ContentOrBuilder getAugmentedPromptOrBuilder(int index)
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
| Parameter |
| Name |
Description |
index |
int
|
public List<? extends ContentOrBuilder> getAugmentedPromptOrBuilderList()
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> |
|
public AugmentPromptResponse getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public Fact getFacts(int index)
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;
| Parameter |
| Name |
Description |
index |
int
|
| Returns |
| Type |
Description |
Fact |
|
public Fact.Builder getFactsBuilder(int index)
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;
| Parameter |
| Name |
Description |
index |
int
|
public List<Fact.Builder> getFactsBuilderList()
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;
public int getFactsCount()
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;
| Returns |
| Type |
Description |
int |
|
public List<Fact> getFactsList()
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;
public FactOrBuilder getFactsOrBuilder(int index)
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;
| Parameter |
| Name |
Description |
index |
int
|
public List<? extends FactOrBuilder> getFactsOrBuilderList()
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.aiplatform.v1beta1.FactOrBuilder> |
|
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public AugmentPromptResponse.Builder mergeFrom(AugmentPromptResponse other)
public AugmentPromptResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public AugmentPromptResponse.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
public AugmentPromptResponse.Builder removeAugmentedPrompt(int index)
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
| Parameter |
| Name |
Description |
index |
int
|
public AugmentPromptResponse.Builder removeFacts(int index)
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;
| Parameter |
| Name |
Description |
index |
int
|
setAugmentedPrompt(int index, Content value)
public AugmentPromptResponse.Builder setAugmentedPrompt(int index, Content value)
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
| Parameters |
| Name |
Description |
index |
int
|
value |
Content
|
setAugmentedPrompt(int index, Content.Builder builderForValue)
public AugmentPromptResponse.Builder setAugmentedPrompt(int index, Content.Builder builderForValue)
Augmented prompt, only text format is supported for now.
repeated .google.cloud.aiplatform.v1beta1.Content augmented_prompt = 1;
public AugmentPromptResponse.Builder setFacts(int index, Fact value)
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;
| Parameters |
| Name |
Description |
index |
int
|
value |
Fact
|
public AugmentPromptResponse.Builder setFacts(int index, Fact.Builder builderForValue)
Retrieved facts from RAG data sources.
repeated .google.cloud.aiplatform.v1beta1.Fact facts = 2;