public static final class UpsertExamplesRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UpsertExamplesRequest.Builder> implements UpsertExamplesRequestOrBuilder
Request message for [ExampleStoreService.UpsertExamples][google.cloud.aiplatform.v1beta1.ExampleStoreService.UpsertExamples].Protobuf type
google.cloud.aiplatform.v1beta1.UpsertExamplesRequestgetAllFields, 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<UpsertExamplesRequest.Builder>public UpsertExamplesRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<UpsertExamplesRequest.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<UpsertExamplesRequest.Builder>public UpsertExamplesRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic UpsertExamplesRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic UpsertExamplesRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic UpsertExamplesRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<UpsertExamplesRequest.Builder>public UpsertExamplesRequest.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<UpsertExamplesRequest.Builder>public UpsertExamplesRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<UpsertExamplesRequest.Builder>public UpsertExamplesRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<UpsertExamplesRequest.Builder>public UpsertExamplesRequest.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<UpsertExamplesRequest.Builder>public UpsertExamplesRequest.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<UpsertExamplesRequest.Builder>public UpsertExamplesRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<UpsertExamplesRequest.Builder>public UpsertExamplesRequest.Builder mergeFrom(UpsertExamplesRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<UpsertExamplesRequest.Builder>public UpsertExamplesRequest.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<UpsertExamplesRequest.Builder>IOExceptionpublic String getExampleStore()
Required. The name of the ExampleStore resource that examples are added to
or updated in. Format:
`projects/{project}/locations/{location}/exampleStores/{example_store}`
string example_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getExampleStore in interface UpsertExamplesRequestOrBuilderpublic com.google.protobuf.ByteString getExampleStoreBytes()
Required. The name of the ExampleStore resource that examples are added to
or updated in. Format:
`projects/{project}/locations/{location}/exampleStores/{example_store}`
string example_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getExampleStoreBytes in interface UpsertExamplesRequestOrBuilderpublic UpsertExamplesRequest.Builder setExampleStore(String value)
Required. The name of the ExampleStore resource that examples are added to
or updated in. Format:
`projects/{project}/locations/{location}/exampleStores/{example_store}`
string example_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The exampleStore to set.public UpsertExamplesRequest.Builder clearExampleStore()
Required. The name of the ExampleStore resource that examples are added to
or updated in. Format:
`projects/{project}/locations/{location}/exampleStores/{example_store}`
string example_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public UpsertExamplesRequest.Builder setExampleStoreBytes(com.google.protobuf.ByteString value)
Required. The name of the ExampleStore resource that examples are added to
or updated in. Format:
`projects/{project}/locations/{location}/exampleStores/{example_store}`
string example_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for exampleStore to set.public List<Example> getExamplesList()
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
getExamplesList in interface UpsertExamplesRequestOrBuilderpublic int getExamplesCount()
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
getExamplesCount in interface UpsertExamplesRequestOrBuilderpublic Example getExamples(int index)
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
getExamples in interface UpsertExamplesRequestOrBuilderpublic UpsertExamplesRequest.Builder setExamples(int index, Example value)
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
public UpsertExamplesRequest.Builder setExamples(int index, Example.Builder builderForValue)
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
public UpsertExamplesRequest.Builder addExamples(Example value)
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
public UpsertExamplesRequest.Builder addExamples(int index, Example value)
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
public UpsertExamplesRequest.Builder addExamples(Example.Builder builderForValue)
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
public UpsertExamplesRequest.Builder addExamples(int index, Example.Builder builderForValue)
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
public UpsertExamplesRequest.Builder addAllExamples(Iterable<? extends Example> values)
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
public UpsertExamplesRequest.Builder clearExamples()
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
public UpsertExamplesRequest.Builder removeExamples(int index)
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
public Example.Builder getExamplesBuilder(int index)
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
public ExampleOrBuilder getExamplesOrBuilder(int index)
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
getExamplesOrBuilder in interface UpsertExamplesRequestOrBuilderpublic List<? extends ExampleOrBuilder> getExamplesOrBuilderList()
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
getExamplesOrBuilderList in interface UpsertExamplesRequestOrBuilderpublic Example.Builder addExamplesBuilder()
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
public Example.Builder addExamplesBuilder(int index)
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
public List<Example.Builder> getExamplesBuilderList()
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
public boolean getOverwrite()
Optional. A flag indicating whether an example can be overwritten if it already exists. If False (default) and the example already exists, the example will not be updated. This does not affect behavior if the example does not exist already.
bool overwrite = 4 [(.google.api.field_behavior) = OPTIONAL];getOverwrite in interface UpsertExamplesRequestOrBuilderpublic UpsertExamplesRequest.Builder setOverwrite(boolean value)
Optional. A flag indicating whether an example can be overwritten if it already exists. If False (default) and the example already exists, the example will not be updated. This does not affect behavior if the example does not exist already.
bool overwrite = 4 [(.google.api.field_behavior) = OPTIONAL];value - The overwrite to set.public UpsertExamplesRequest.Builder clearOverwrite()
Optional. A flag indicating whether an example can be overwritten if it already exists. If False (default) and the example already exists, the example will not be updated. This does not affect behavior if the example does not exist already.
bool overwrite = 4 [(.google.api.field_behavior) = OPTIONAL];public final UpsertExamplesRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UpsertExamplesRequest.Builder>public final UpsertExamplesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UpsertExamplesRequest.Builder>Copyright © 2025 Google LLC. All rights reserved.