public static final class ContentsExample.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ContentsExample.Builder> implements ContentsExampleOrBuilder
A single example of a conversation with the model.Protobuf type
google.cloud.aiplatform.v1beta1.ContentsExamplegetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ContentsExample.Builder>public ContentsExample.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ContentsExample.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ContentsExample.Builder>public ContentsExample getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ContentsExample build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ContentsExample buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ContentsExample.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ContentsExample.Builder>public ContentsExample.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ContentsExample.Builder>public ContentsExample.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ContentsExample.Builder>public ContentsExample.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ContentsExample.Builder>public ContentsExample.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ContentsExample.Builder>public ContentsExample.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ContentsExample.Builder>public ContentsExample.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ContentsExample.Builder>public ContentsExample.Builder mergeFrom(ContentsExample other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ContentsExample.Builder>public ContentsExample.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ContentsExample.Builder>IOExceptionpublic 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];
getContentsList in interface ContentsExampleOrBuilderpublic 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];
getContentsCount in interface ContentsExampleOrBuilderpublic 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];
getContents in interface ContentsExampleOrBuilderpublic 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];
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];
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];
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];
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];
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];
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];
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];
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];
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];
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];
getContentsOrBuilder in interface ContentsExampleOrBuilderpublic 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];
getContentsOrBuilderList in interface ContentsExampleOrBuilderpublic 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];
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];
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];
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];
getExpectedContentsList in interface ContentsExampleOrBuilderpublic 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];
getExpectedContentsCount in interface ContentsExampleOrBuilderpublic 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];
getExpectedContents in interface ContentsExampleOrBuilderpublic 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];
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];
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];
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];
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];
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];
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];
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];
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];
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];
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];
getExpectedContentsOrBuilder in interface ContentsExampleOrBuilderpublic 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];
getExpectedContentsOrBuilderList in interface ContentsExampleOrBuilderpublic 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];
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];
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];
public final ContentsExample.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ContentsExample.Builder>public final ContentsExample.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ContentsExample.Builder>Copyright © 2025 Google LLC. All rights reserved.