public static final class UpsertExamplesRequest.Builder extends GeneratedMessageV3.Builder<UpsertExamplesRequest.Builder> implements UpsertExamplesRequestOrBuilder
Request message for
ExampleStoreService.UpsertExamples.
Protobuf type google.cloud.aiplatform.v1beta1.UpsertExamplesRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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];
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.aiplatform.v1beta1.Example>
|
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];
Parameter |
Name |
Description |
value |
Example
|
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 value)
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
Parameters |
Name |
Description |
index |
int
|
value |
Example
|
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 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];
Parameter |
Name |
Description |
index |
int
|
public UpsertExamplesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public UpsertExamplesRequest build()
public UpsertExamplesRequest buildPartial()
public UpsertExamplesRequest.Builder clear()
Overrides
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 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 clearField(Descriptors.FieldDescriptor field)
Overrides
public UpsertExamplesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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 UpsertExamplesRequest.Builder clone()
Overrides
public UpsertExamplesRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public 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) = { ... }
Returns |
Type |
Description |
String |
The exampleStore.
|
public 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) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for exampleStore.
|
public 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];
Parameter |
Name |
Description |
index |
int
|
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];
Parameter |
Name |
Description |
index |
int
|
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 int getExamplesCount()
Required. A list of examples to be created/updated.
repeated .google.cloud.aiplatform.v1beta1.Example examples = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
|
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];
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];
Parameter |
Name |
Description |
index |
int
|
public 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];
Returns |
Type |
Description |
List<? extends com.google.cloud.aiplatform.v1beta1.ExampleOrBuilder> |
|
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];
Returns |
Type |
Description |
boolean |
The overwrite.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public UpsertExamplesRequest.Builder mergeFrom(UpsertExamplesRequest other)
public UpsertExamplesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public UpsertExamplesRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final UpsertExamplesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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];
Parameter |
Name |
Description |
index |
int
|
public 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) = { ... }
Parameter |
Name |
Description |
value |
String
The exampleStore to set.
|
public UpsertExamplesRequest.Builder setExampleStoreBytes(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) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for exampleStore to set.
|
public 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];
Parameters |
Name |
Description |
index |
int
|
value |
Example
|
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 setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public 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];
Parameter |
Name |
Description |
value |
boolean
The overwrite to set.
|
public UpsertExamplesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final UpsertExamplesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides