Class ContentsExample.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ContentsExample.Builder>
com.google.cloud.aiplatform.v1beta1.ContentsExample.Builder
- All Implemented Interfaces:
ContentsExampleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ContentsExample
public static final class ContentsExample.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ContentsExample.Builder>
implements ContentsExampleOrBuilder
A single example of a conversation with the model.Protobuf type
google.cloud.aiplatform.v1beta1.ContentsExample-
Method Summary
Modifier and TypeMethodDescriptionaddAllContents(Iterable<? extends Content> values) Required.addAllExpectedContents(Iterable<? extends ContentsExample.ExpectedContent> values) Required.addContents(int index, Content value) Required.addContents(int index, Content.Builder builderForValue) Required.addContents(Content value) Required.addContents(Content.Builder builderForValue) Required.Required.addContentsBuilder(int index) Required.addExpectedContents(int index, ContentsExample.ExpectedContent value) Required.addExpectedContents(int index, ContentsExample.ExpectedContent.Builder builderForValue) Required.Required.addExpectedContents(ContentsExample.ExpectedContent.Builder builderForValue) Required.Required.addExpectedContentsBuilder(int index) Required.build()clear()Required.Required.getContents(int index) Required.getContentsBuilder(int index) Required.Required.intRequired.Required.getContentsOrBuilder(int index) Required.List<? extends ContentOrBuilder>Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExpectedContents(int index) Required.getExpectedContentsBuilder(int index) Required.Required.intRequired.Required.getExpectedContentsOrBuilder(int index) Required.List<? extends ContentsExample.ExpectedContentOrBuilder>Required.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ContentsExample other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeContents(int index) Required.removeExpectedContents(int index) Required.setContents(int index, Content value) Required.setContents(int index, Content.Builder builderForValue) Required.setExpectedContents(int index, ContentsExample.ExpectedContent value) Required.setExpectedContents(int index, ContentsExample.ExpectedContent.Builder builderForValue) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ContentsExample.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ContentsExample.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ContentsExample.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ContentsExample.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ContentsExample.Builder>
-
mergeFrom
public ContentsExample.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ContentsExample.Builder>- Throws:
IOException
-
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];- Specified by:
getContentsListin interfaceContentsExampleOrBuilder
-
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];- Specified by:
getContentsCountin interfaceContentsExampleOrBuilder
-
getContents
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];- Specified by:
getContentsin interfaceContentsExampleOrBuilder
-
setContents
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]; -
setContents
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]; -
addContents
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]; -
addContents
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]; -
addContents
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]; -
addContents
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]; -
addAllContents
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]; -
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]; -
removeContents
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]; -
getContentsBuilder
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
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];- Specified by:
getContentsOrBuilderin interfaceContentsExampleOrBuilder
-
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];- Specified by:
getContentsOrBuilderListin interfaceContentsExampleOrBuilder
-
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]; -
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]; -
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]; -
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];- Specified by:
getExpectedContentsListin interfaceContentsExampleOrBuilder
-
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];- Specified by:
getExpectedContentsCountin interfaceContentsExampleOrBuilder
-
getExpectedContents
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];- Specified by:
getExpectedContentsin interfaceContentsExampleOrBuilder
-
setExpectedContents
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]; -
setExpectedContents
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]; -
addExpectedContents
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]; -
addExpectedContents
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]; -
addExpectedContents
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]; -
addExpectedContents
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]; -
addAllExpectedContents
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]; -
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]; -
removeExpectedContents
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]; -
getExpectedContentsBuilder
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
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];- Specified by:
getExpectedContentsOrBuilderin interfaceContentsExampleOrBuilder
-
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];- Specified by:
getExpectedContentsOrBuilderListin interfaceContentsExampleOrBuilder
-
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]; -
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]; -
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];
-