Class UpsertExamplesRequest (3.64.0)

public final class UpsertExamplesRequest extends GeneratedMessageV3 implements UpsertExamplesRequestOrBuilder

Request message for ExampleStoreService.UpsertExamples.

Protobuf type google.cloud.aiplatform.v1beta1.UpsertExamplesRequest

Static Fields

EXAMPLES_FIELD_NUMBER

public static final int EXAMPLES_FIELD_NUMBER
Field Value
Type Description
int

EXAMPLE_STORE_FIELD_NUMBER

public static final int EXAMPLE_STORE_FIELD_NUMBER
Field Value
Type Description
int

OVERWRITE_FIELD_NUMBER

public static final int OVERWRITE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static UpsertExamplesRequest getDefaultInstance()
Returns
Type Description
UpsertExamplesRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static UpsertExamplesRequest.Builder newBuilder()
Returns
Type Description
UpsertExamplesRequest.Builder

newBuilder(UpsertExamplesRequest prototype)

public static UpsertExamplesRequest.Builder newBuilder(UpsertExamplesRequest prototype)
Parameter
Name Description
prototype UpsertExamplesRequest
Returns
Type Description
UpsertExamplesRequest.Builder

parseDelimitedFrom(InputStream input)

public static UpsertExamplesRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UpsertExamplesRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpsertExamplesRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpsertExamplesRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static UpsertExamplesRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
UpsertExamplesRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UpsertExamplesRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpsertExamplesRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UpsertExamplesRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
UpsertExamplesRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UpsertExamplesRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpsertExamplesRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UpsertExamplesRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
UpsertExamplesRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UpsertExamplesRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpsertExamplesRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static UpsertExamplesRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UpsertExamplesRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpsertExamplesRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpsertExamplesRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static UpsertExamplesRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
UpsertExamplesRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UpsertExamplesRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpsertExamplesRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<UpsertExamplesRequest> parser()
Returns
Type Description
Parser<UpsertExamplesRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public UpsertExamplesRequest getDefaultInstanceForType()
Returns
Type Description
UpsertExamplesRequest

getExampleStore()

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.

getExampleStoreBytes()

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.

getExamples(int index)

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
Returns
Type Description
Example

getExamplesCount()

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

getExamplesList()

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];

Returns
Type Description
List<Example>

getExamplesOrBuilder(int index)

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
Returns
Type Description
ExampleOrBuilder

getExamplesOrBuilderList()

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>

getOverwrite()

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.

getParserForType()

public Parser<UpsertExamplesRequest> getParserForType()
Returns
Type Description
Parser<UpsertExamplesRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public UpsertExamplesRequest.Builder newBuilderForType()
Returns
Type Description
UpsertExamplesRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UpsertExamplesRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
UpsertExamplesRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public UpsertExamplesRequest.Builder toBuilder()
Returns
Type Description
UpsertExamplesRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException