Class SyntheticExample.Builder (3.74.0)

public static final class SyntheticExample.Builder extends GeneratedMessageV3.Builder<SyntheticExample.Builder> implements SyntheticExampleOrBuilder

Represents a single synthetic example, composed of multiple fields. Used for providing few-shot examples in the request and for returning generated examples in the response.

Protobuf type google.cloud.aiplatform.v1.SyntheticExample

Static Methods

getDescriptor()

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

Methods

addAllFields(Iterable<? extends SyntheticField> values)

public SyntheticExample.Builder addAllFields(Iterable<? extends SyntheticField> values)

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1.SyntheticField>
Returns
Type Description
SyntheticExample.Builder

addFields(SyntheticField value)

public SyntheticExample.Builder addFields(SyntheticField value)

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SyntheticField
Returns
Type Description
SyntheticExample.Builder

addFields(SyntheticField.Builder builderForValue)

public SyntheticExample.Builder addFields(SyntheticField.Builder builderForValue)

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue SyntheticField.Builder
Returns
Type Description
SyntheticExample.Builder

addFields(int index, SyntheticField value)

public SyntheticExample.Builder addFields(int index, SyntheticField value)

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value SyntheticField
Returns
Type Description
SyntheticExample.Builder

addFields(int index, SyntheticField.Builder builderForValue)

public SyntheticExample.Builder addFields(int index, SyntheticField.Builder builderForValue)

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue SyntheticField.Builder
Returns
Type Description
SyntheticExample.Builder

addFieldsBuilder()

public SyntheticField.Builder addFieldsBuilder()

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SyntheticField.Builder

addFieldsBuilder(int index)

public SyntheticField.Builder addFieldsBuilder(int index)

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SyntheticField.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SyntheticExample.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SyntheticExample.Builder
Overrides

build()

public SyntheticExample build()
Returns
Type Description
SyntheticExample

buildPartial()

public SyntheticExample buildPartial()
Returns
Type Description
SyntheticExample

clear()

public SyntheticExample.Builder clear()
Returns
Type Description
SyntheticExample.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SyntheticExample.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SyntheticExample.Builder
Overrides

clearFields()

public SyntheticExample.Builder clearFields()

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SyntheticExample.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SyntheticExample.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SyntheticExample.Builder
Overrides

clone()

public SyntheticExample.Builder clone()
Returns
Type Description
SyntheticExample.Builder
Overrides

getDefaultInstanceForType()

public SyntheticExample getDefaultInstanceForType()
Returns
Type Description
SyntheticExample

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFields(int index)

public SyntheticField getFields(int index)

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SyntheticField

getFieldsBuilder(int index)

public SyntheticField.Builder getFieldsBuilder(int index)

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SyntheticField.Builder

getFieldsBuilderList()

public List<SyntheticField.Builder> getFieldsBuilderList()

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getFieldsCount()

public int getFieldsCount()

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getFieldsList()

public List<SyntheticField> getFieldsList()

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<SyntheticField>

getFieldsOrBuilder(int index)

public SyntheticFieldOrBuilder getFieldsOrBuilder(int index)

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SyntheticFieldOrBuilder

getFieldsOrBuilderList()

public List<? extends SyntheticFieldOrBuilder> getFieldsOrBuilderList()

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1.SyntheticFieldOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SyntheticExample other)

public SyntheticExample.Builder mergeFrom(SyntheticExample other)
Parameter
Name Description
other SyntheticExample
Returns
Type Description
SyntheticExample.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SyntheticExample.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SyntheticExample.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SyntheticExample.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SyntheticExample.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SyntheticExample.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SyntheticExample.Builder
Overrides

removeFields(int index)

public SyntheticExample.Builder removeFields(int index)

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
SyntheticExample.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SyntheticExample.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SyntheticExample.Builder
Overrides

setFields(int index, SyntheticField value)

public SyntheticExample.Builder setFields(int index, SyntheticField value)

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value SyntheticField
Returns
Type Description
SyntheticExample.Builder

setFields(int index, SyntheticField.Builder builderForValue)

public SyntheticExample.Builder setFields(int index, SyntheticField.Builder builderForValue)

Required. A list of fields that constitute an example.

repeated .google.cloud.aiplatform.v1.SyntheticField fields = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue SyntheticField.Builder
Returns
Type Description
SyntheticExample.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SyntheticExample.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SyntheticExample.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SyntheticExample.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SyntheticExample.Builder
Overrides