Class ContentsExample.Builder (3.84.0)

public static final class ContentsExample.Builder extends GeneratedMessage.Builder<ContentsExample.Builder> implements ContentsExampleOrBuilder

A single example of a conversation with the model.

Protobuf type google.cloud.aiplatform.v1beta1.ContentsExample

Static Methods

getDescriptor()

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

Methods

addAllContents(Iterable<? extends Content> values)

public ContentsExample.Builder addAllContents(Iterable<? extends Content> values)

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

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

addAllExpectedContents(Iterable<? extends ContentsExample.ExpectedContent> values)

public ContentsExample.Builder addAllExpectedContents(Iterable<? extends ContentsExample.ExpectedContent> values)

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent>
Returns
Type Description
ContentsExample.Builder

addContents(Content value)

public ContentsExample.Builder addContents(Content value)

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Content
Returns
Type Description
ContentsExample.Builder

addContents(Content.Builder builderForValue)

public ContentsExample.Builder addContents(Content.Builder builderForValue)

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

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

addContents(int index, Content value)

public ContentsExample.Builder addContents(int index, Content value)

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

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

addContents(int index, Content.Builder builderForValue)

public ContentsExample.Builder addContents(int index, Content.Builder builderForValue)

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

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

addContentsBuilder()

public Content.Builder addContentsBuilder()

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Content.Builder

addContentsBuilder(int index)

public Content.Builder addContentsBuilder(int index)

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Content.Builder

addExpectedContents(ContentsExample.ExpectedContent value)

public ContentsExample.Builder addExpectedContents(ContentsExample.ExpectedContent value)

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ContentsExample.ExpectedContent
Returns
Type Description
ContentsExample.Builder

addExpectedContents(ContentsExample.ExpectedContent.Builder builderForValue)

public ContentsExample.Builder addExpectedContents(ContentsExample.ExpectedContent.Builder builderForValue)

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ContentsExample.ExpectedContent.Builder
Returns
Type Description
ContentsExample.Builder

addExpectedContents(int index, ContentsExample.ExpectedContent value)

public ContentsExample.Builder addExpectedContents(int index, ContentsExample.ExpectedContent value)

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value ContentsExample.ExpectedContent
Returns
Type Description
ContentsExample.Builder

addExpectedContents(int index, ContentsExample.ExpectedContent.Builder builderForValue)

public ContentsExample.Builder addExpectedContents(int index, ContentsExample.ExpectedContent.Builder builderForValue)

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue ContentsExample.ExpectedContent.Builder
Returns
Type Description
ContentsExample.Builder

addExpectedContentsBuilder()

public ContentsExample.ExpectedContent.Builder addExpectedContentsBuilder()

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContentsExample.ExpectedContent.Builder

addExpectedContentsBuilder(int index)

public ContentsExample.ExpectedContent.Builder addExpectedContentsBuilder(int index)

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ContentsExample.ExpectedContent.Builder

build()

public ContentsExample build()
Returns
Type Description
ContentsExample

buildPartial()

public ContentsExample buildPartial()
Returns
Type Description
ContentsExample

clear()

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

clearContents()

public ContentsExample.Builder clearContents()

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContentsExample.Builder

clearExpectedContents()

public ContentsExample.Builder clearExpectedContents()

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContentsExample.Builder

getContents(int index)

public Content getContents(int index)

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Content

getContentsBuilder(int index)

public Content.Builder getContentsBuilder(int index)

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Content.Builder

getContentsBuilderList()

public List<Content.Builder> getContentsBuilderList()

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getContentsCount()

public int getContentsCount()

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getContentsList()

public List<Content> getContentsList()

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Content>

getContentsOrBuilder(int index)

public ContentOrBuilder getContentsOrBuilder(int index)

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ContentOrBuilder

getContentsOrBuilderList()

public List<? extends ContentOrBuilder> getContentsOrBuilderList()

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

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

getDefaultInstanceForType()

public ContentsExample getDefaultInstanceForType()
Returns
Type Description
ContentsExample

getDescriptorForType()

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

getExpectedContents(int index)

public ContentsExample.ExpectedContent getExpectedContents(int index)

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ContentsExample.ExpectedContent

getExpectedContentsBuilder(int index)

public ContentsExample.ExpectedContent.Builder getExpectedContentsBuilder(int index)

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ContentsExample.ExpectedContent.Builder

getExpectedContentsBuilderList()

public List<ContentsExample.ExpectedContent.Builder> getExpectedContentsBuilderList()

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getExpectedContentsCount()

public int getExpectedContentsCount()

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getExpectedContentsList()

public List<ContentsExample.ExpectedContent> getExpectedContentsList()

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<ExpectedContent>

getExpectedContentsOrBuilder(int index)

public ContentsExample.ExpectedContentOrBuilder getExpectedContentsOrBuilder(int index)

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ContentsExample.ExpectedContentOrBuilder

getExpectedContentsOrBuilderList()

public List<? extends ContentsExample.ExpectedContentOrBuilder> getExpectedContentsOrBuilderList()

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContentOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ContentsExample other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeContents(int index)

public ContentsExample.Builder removeContents(int index)

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ContentsExample.Builder

removeExpectedContents(int index)

public ContentsExample.Builder removeExpectedContents(int index)

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ContentsExample.Builder

setContents(int index, Content value)

public ContentsExample.Builder setContents(int index, Content value)

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

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

setContents(int index, Content.Builder builderForValue)

public ContentsExample.Builder setContents(int index, Content.Builder builderForValue)

Required. The content of the conversation with the model that resulted in the expected output.

repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = REQUIRED];

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

setExpectedContents(int index, ContentsExample.ExpectedContent value)

public ContentsExample.Builder setExpectedContents(int index, ContentsExample.ExpectedContent value)

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value ContentsExample.ExpectedContent
Returns
Type Description
ContentsExample.Builder

setExpectedContents(int index, ContentsExample.ExpectedContent.Builder builderForValue)

public ContentsExample.Builder setExpectedContents(int index, ContentsExample.ExpectedContent.Builder builderForValue)

Required. The expected output for the given contents. To represent multi-step reasoning, this is a repeated field that contains the iterative steps of the expected output.

repeated .google.cloud.aiplatform.v1beta1.ContentsExample.ExpectedContent expected_contents = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue ContentsExample.ExpectedContent.Builder
Returns
Type Description
ContentsExample.Builder