Class Example.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Example.Builder>
com.google.cloud.aiplatform.v1beta1.Example.Builder
- All Implemented Interfaces:
ExampleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Example
public static final class Example.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Example.Builder>
implements ExampleOrBuilder
A single example to upload or read from the Example Store.Protobuf type
google.cloud.aiplatform.v1beta1.Example-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Optional.Optional.An example of chat history and its expected outcome to be used with GenerateContent.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.An example of chat history and its expected outcome to be used with GenerateContent.An example of chat history and its expected outcome to be used with GenerateContent.An example of chat history and its expected outcome to be used with GenerateContent.booleanOutput only.booleanAn example of chat history and its expected outcome to be used with GenerateContent.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) An example of chat history and its expected outcome to be used with GenerateContent.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDisplayName(String value) Optional.setDisplayNameBytes(com.google.protobuf.ByteString value) Optional.setExampleId(String value) Optional.setExampleIdBytes(com.google.protobuf.ByteString value) Optional.An example of chat history and its expected outcome to be used with GenerateContent.setStoredContentsExample(StoredContentsExample.Builder builderForValue) An example of chat history and its expected outcome to be used with GenerateContent.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<Example.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<Example.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<Example.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<Example.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Example.Builder>
-
mergeFrom
public Example.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<Example.Builder>- Throws:
IOException
-
getExampleTypeCase
- Specified by:
getExampleTypeCasein interfaceExampleOrBuilder
-
clearExampleType
-
hasStoredContentsExample
public boolean hasStoredContentsExample()An example of chat history and its expected outcome to be used with GenerateContent.
.google.cloud.aiplatform.v1beta1.StoredContentsExample stored_contents_example = 6;- Specified by:
hasStoredContentsExamplein interfaceExampleOrBuilder- Returns:
- Whether the storedContentsExample field is set.
-
getStoredContentsExample
An example of chat history and its expected outcome to be used with GenerateContent.
.google.cloud.aiplatform.v1beta1.StoredContentsExample stored_contents_example = 6;- Specified by:
getStoredContentsExamplein interfaceExampleOrBuilder- Returns:
- The storedContentsExample.
-
setStoredContentsExample
An example of chat history and its expected outcome to be used with GenerateContent.
.google.cloud.aiplatform.v1beta1.StoredContentsExample stored_contents_example = 6; -
setStoredContentsExample
An example of chat history and its expected outcome to be used with GenerateContent.
.google.cloud.aiplatform.v1beta1.StoredContentsExample stored_contents_example = 6; -
mergeStoredContentsExample
An example of chat history and its expected outcome to be used with GenerateContent.
.google.cloud.aiplatform.v1beta1.StoredContentsExample stored_contents_example = 6; -
clearStoredContentsExample
An example of chat history and its expected outcome to be used with GenerateContent.
.google.cloud.aiplatform.v1beta1.StoredContentsExample stored_contents_example = 6; -
getStoredContentsExampleBuilder
An example of chat history and its expected outcome to be used with GenerateContent.
.google.cloud.aiplatform.v1beta1.StoredContentsExample stored_contents_example = 6; -
getStoredContentsExampleOrBuilder
An example of chat history and its expected outcome to be used with GenerateContent.
.google.cloud.aiplatform.v1beta1.StoredContentsExample stored_contents_example = 6;- Specified by:
getStoredContentsExampleOrBuilderin interfaceExampleOrBuilder
-
getDisplayName
Optional. The display name for Example.
string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNamein interfaceExampleOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Optional. The display name for Example.
string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNameBytesin interfaceExampleOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Optional. The display name for Example.
string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Optional. The display name for Example.
string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Optional. The display name for Example.
string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getExampleId
Optional. Immutable. Unique identifier of an example. If not specified when upserting new examples, the example_id will be generated.
string example_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getExampleIdin interfaceExampleOrBuilder- Returns:
- The exampleId.
-
getExampleIdBytes
public com.google.protobuf.ByteString getExampleIdBytes()Optional. Immutable. Unique identifier of an example. If not specified when upserting new examples, the example_id will be generated.
string example_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getExampleIdBytesin interfaceExampleOrBuilder- Returns:
- The bytes for exampleId.
-
setExampleId
Optional. Immutable. Unique identifier of an example. If not specified when upserting new examples, the example_id will be generated.
string example_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The exampleId to set.- Returns:
- This builder for chaining.
-
clearExampleId
Optional. Immutable. Unique identifier of an example. If not specified when upserting new examples, the example_id will be generated.
string example_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setExampleIdBytes
Optional. Immutable. Unique identifier of an example. If not specified when upserting new examples, the example_id will be generated.
string example_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes for exampleId to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. Timestamp when this Example was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceExampleOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Timestamp when this Example was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceExampleOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Timestamp when this Example was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. Timestamp when this Example was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Timestamp when this Example was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Timestamp when this Example was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Timestamp when this Example was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Timestamp when this Example was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceExampleOrBuilder
-