Class AugmentPromptResponse.Builder (3.56.0)

public static final class AugmentPromptResponse.Builder extends GeneratedMessageV3.Builder<AugmentPromptResponse.Builder> implements AugmentPromptResponseOrBuilder

Response message for AugmentPrompt.

Protobuf type google.cloud.aiplatform.v1.AugmentPromptResponse

Static Methods

getDescriptor()

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

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.v1.Content augmented_prompt = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1.Content>
Returns
Type Description
AugmentPromptResponse.Builder

addAllFacts(Iterable<? extends Fact> values)

public AugmentPromptResponse.Builder addAllFacts(Iterable<? extends Fact> values)

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1.Fact>
Returns
Type Description
AugmentPromptResponse.Builder

addAugmentedPrompt(Content value)

public AugmentPromptResponse.Builder addAugmentedPrompt(Content value)

Augmented prompt, only text format is supported for now.

repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1;

Parameter
Name Description
value Content
Returns
Type Description
AugmentPromptResponse.Builder

addAugmentedPrompt(Content.Builder builderForValue)

public AugmentPromptResponse.Builder addAugmentedPrompt(Content.Builder builderForValue)

Augmented prompt, only text format is supported for now.

repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1;

Parameter
Name Description
builderForValue Content.Builder
Returns
Type Description
AugmentPromptResponse.Builder

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.v1.Content augmented_prompt = 1;

Parameters
Name Description
index int
value Content
Returns
Type Description
AugmentPromptResponse.Builder

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.v1.Content augmented_prompt = 1;

Parameters
Name Description
index int
builderForValue Content.Builder
Returns
Type Description
AugmentPromptResponse.Builder

addAugmentedPromptBuilder()

public Content.Builder addAugmentedPromptBuilder()

Augmented prompt, only text format is supported for now.

repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1;

Returns
Type Description
Content.Builder

addAugmentedPromptBuilder(int index)

public Content.Builder addAugmentedPromptBuilder(int index)

Augmented prompt, only text format is supported for now.

repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1;

Parameter
Name Description
index int
Returns
Type Description
Content.Builder

addFacts(Fact value)

public AugmentPromptResponse.Builder addFacts(Fact value)

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Parameter
Name Description
value Fact
Returns
Type Description
AugmentPromptResponse.Builder

addFacts(Fact.Builder builderForValue)

public AugmentPromptResponse.Builder addFacts(Fact.Builder builderForValue)

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Parameter
Name Description
builderForValue Fact.Builder
Returns
Type Description
AugmentPromptResponse.Builder

addFacts(int index, Fact value)

public AugmentPromptResponse.Builder addFacts(int index, Fact value)

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Parameters
Name Description
index int
value Fact
Returns
Type Description
AugmentPromptResponse.Builder

addFacts(int index, Fact.Builder builderForValue)

public AugmentPromptResponse.Builder addFacts(int index, Fact.Builder builderForValue)

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Parameters
Name Description
index int
builderForValue Fact.Builder
Returns
Type Description
AugmentPromptResponse.Builder

addFactsBuilder()

public Fact.Builder addFactsBuilder()

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Returns
Type Description
Fact.Builder

addFactsBuilder(int index)

public Fact.Builder addFactsBuilder(int index)

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Parameter
Name Description
index int
Returns
Type Description
Fact.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AugmentPromptResponse build()
Returns
Type Description
AugmentPromptResponse

buildPartial()

public AugmentPromptResponse buildPartial()
Returns
Type Description
AugmentPromptResponse

clear()

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

clearAugmentedPrompt()

public AugmentPromptResponse.Builder clearAugmentedPrompt()

Augmented prompt, only text format is supported for now.

repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1;

Returns
Type Description
AugmentPromptResponse.Builder

clearFacts()

public AugmentPromptResponse.Builder clearFacts()

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Returns
Type Description
AugmentPromptResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public AugmentPromptResponse.Builder clone()
Returns
Type Description
AugmentPromptResponse.Builder
Overrides

getAugmentedPrompt(int index)

public Content getAugmentedPrompt(int index)

Augmented prompt, only text format is supported for now.

repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1;

Parameter
Name Description
index int
Returns
Type Description
Content

getAugmentedPromptBuilder(int index)

public Content.Builder getAugmentedPromptBuilder(int index)

Augmented prompt, only text format is supported for now.

repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1;

Parameter
Name Description
index int
Returns
Type Description
Content.Builder

getAugmentedPromptBuilderList()

public List<Content.Builder> getAugmentedPromptBuilderList()

Augmented prompt, only text format is supported for now.

repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1;

Returns
Type Description
List<Builder>

getAugmentedPromptCount()

public int getAugmentedPromptCount()

Augmented prompt, only text format is supported for now.

repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1;

Returns
Type Description
int

getAugmentedPromptList()

public List<Content> getAugmentedPromptList()

Augmented prompt, only text format is supported for now.

repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1;

Returns
Type Description
List<Content>

getAugmentedPromptOrBuilder(int index)

public ContentOrBuilder getAugmentedPromptOrBuilder(int index)

Augmented prompt, only text format is supported for now.

repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1;

Parameter
Name Description
index int
Returns
Type Description
ContentOrBuilder

getAugmentedPromptOrBuilderList()

public List<? extends ContentOrBuilder> getAugmentedPromptOrBuilderList()

Augmented prompt, only text format is supported for now.

repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1;

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1.ContentOrBuilder>

getDefaultInstanceForType()

public AugmentPromptResponse getDefaultInstanceForType()
Returns
Type Description
AugmentPromptResponse

getDescriptorForType()

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

getFacts(int index)

public Fact getFacts(int index)

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Parameter
Name Description
index int
Returns
Type Description
Fact

getFactsBuilder(int index)

public Fact.Builder getFactsBuilder(int index)

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Parameter
Name Description
index int
Returns
Type Description
Fact.Builder

getFactsBuilderList()

public List<Fact.Builder> getFactsBuilderList()

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Returns
Type Description
List<Builder>

getFactsCount()

public int getFactsCount()

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Returns
Type Description
int

getFactsList()

public List<Fact> getFactsList()

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Returns
Type Description
List<Fact>

getFactsOrBuilder(int index)

public FactOrBuilder getFactsOrBuilder(int index)

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Parameter
Name Description
index int
Returns
Type Description
FactOrBuilder

getFactsOrBuilderList()

public List<? extends FactOrBuilder> getFactsOrBuilderList()

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1.FactOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AugmentPromptResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAugmentedPrompt(int index)

public AugmentPromptResponse.Builder removeAugmentedPrompt(int index)

Augmented prompt, only text format is supported for now.

repeated .google.cloud.aiplatform.v1.Content augmented_prompt = 1;

Parameter
Name Description
index int
Returns
Type Description
AugmentPromptResponse.Builder

removeFacts(int index)

public AugmentPromptResponse.Builder removeFacts(int index)

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Parameter
Name Description
index int
Returns
Type Description
AugmentPromptResponse.Builder

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.v1.Content augmented_prompt = 1;

Parameters
Name Description
index int
value Content
Returns
Type Description
AugmentPromptResponse.Builder

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.v1.Content augmented_prompt = 1;

Parameters
Name Description
index int
builderForValue Content.Builder
Returns
Type Description
AugmentPromptResponse.Builder

setFacts(int index, Fact value)

public AugmentPromptResponse.Builder setFacts(int index, Fact value)

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Parameters
Name Description
index int
value Fact
Returns
Type Description
AugmentPromptResponse.Builder

setFacts(int index, Fact.Builder builderForValue)

public AugmentPromptResponse.Builder setFacts(int index, Fact.Builder builderForValue)

Retrieved facts from RAG data sources.

repeated .google.cloud.aiplatform.v1.Fact facts = 2;

Parameters
Name Description
index int
builderForValue Fact.Builder
Returns
Type Description
AugmentPromptResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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