Class GenerateSyntheticDataRequest (3.74.0)

public final class GenerateSyntheticDataRequest extends GeneratedMessageV3 implements GenerateSyntheticDataRequestOrBuilder

Request message for DataFoundryService.GenerateSyntheticData.

Protobuf type google.cloud.aiplatform.v1.GenerateSyntheticDataRequest

Static Fields

COUNT_FIELD_NUMBER

public static final int COUNT_FIELD_NUMBER
Field Value
Type Description
int

EXAMPLES_FIELD_NUMBER

public static final int EXAMPLES_FIELD_NUMBER
Field Value
Type Description
int

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
Type Description
int

OUTPUT_FIELD_SPECS_FIELD_NUMBER

public static final int OUTPUT_FIELD_SPECS_FIELD_NUMBER
Field Value
Type Description
int

TASK_DESCRIPTION_FIELD_NUMBER

public static final int TASK_DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GenerateSyntheticDataRequest getDefaultInstance()
Returns
Type Description
GenerateSyntheticDataRequest

getDescriptor()

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

newBuilder()

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

newBuilder(GenerateSyntheticDataRequest prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCount()

public int getCount()

Required. The number of synthetic examples to generate. For this stateless API, the count is limited to a small number.

int32 count = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count.

getDefaultInstanceForType()

public GenerateSyntheticDataRequest getDefaultInstanceForType()
Returns
Type Description
GenerateSyntheticDataRequest

getExamples(int index)

public SyntheticExample getExamples(int index)

Optional. A list of few-shot examples to guide the model's output style and format.

repeated .google.cloud.aiplatform.v1.SyntheticExample examples = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SyntheticExample

getExamplesCount()

public int getExamplesCount()

Optional. A list of few-shot examples to guide the model's output style and format.

repeated .google.cloud.aiplatform.v1.SyntheticExample examples = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getExamplesList()

public List<SyntheticExample> getExamplesList()

Optional. A list of few-shot examples to guide the model's output style and format.

repeated .google.cloud.aiplatform.v1.SyntheticExample examples = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<SyntheticExample>

getExamplesOrBuilder(int index)

public SyntheticExampleOrBuilder getExamplesOrBuilder(int index)

Optional. A list of few-shot examples to guide the model's output style and format.

repeated .google.cloud.aiplatform.v1.SyntheticExample examples = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
SyntheticExampleOrBuilder

getExamplesOrBuilderList()

public List<? extends SyntheticExampleOrBuilder> getExamplesOrBuilderList()

Optional. A list of few-shot examples to guide the model's output style and format.

repeated .google.cloud.aiplatform.v1.SyntheticExample examples = 5 [(.google.api.field_behavior) = OPTIONAL];

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

getLocation()

public String getLocation()

Required. The resource name of the Location to run the job. Format: projects/{project}/locations/{location}

string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

Required. The resource name of the Location to run the job. Format: projects/{project}/locations/{location}

string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for location.

getOutputFieldSpecs(int index)

public OutputFieldSpec getOutputFieldSpecs(int index)

Required. The schema of the desired output, defined by a list of fields.

repeated .google.cloud.aiplatform.v1.OutputFieldSpec output_field_specs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
OutputFieldSpec

getOutputFieldSpecsCount()

public int getOutputFieldSpecsCount()

Required. The schema of the desired output, defined by a list of fields.

repeated .google.cloud.aiplatform.v1.OutputFieldSpec output_field_specs = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getOutputFieldSpecsList()

public List<OutputFieldSpec> getOutputFieldSpecsList()

Required. The schema of the desired output, defined by a list of fields.

repeated .google.cloud.aiplatform.v1.OutputFieldSpec output_field_specs = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<OutputFieldSpec>

getOutputFieldSpecsOrBuilder(int index)

public OutputFieldSpecOrBuilder getOutputFieldSpecsOrBuilder(int index)

Required. The schema of the desired output, defined by a list of fields.

repeated .google.cloud.aiplatform.v1.OutputFieldSpec output_field_specs = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
OutputFieldSpecOrBuilder

getOutputFieldSpecsOrBuilderList()

public List<? extends OutputFieldSpecOrBuilder> getOutputFieldSpecsOrBuilderList()

Required. The schema of the desired output, defined by a list of fields.

repeated .google.cloud.aiplatform.v1.OutputFieldSpec output_field_specs = 4 [(.google.api.field_behavior) = REQUIRED];

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStrategyCase()

public GenerateSyntheticDataRequest.StrategyCase getStrategyCase()
Returns
Type Description
GenerateSyntheticDataRequest.StrategyCase

getTaskDescription()

public TaskDescriptionStrategy getTaskDescription()

Generate data from a high-level task description.

.google.cloud.aiplatform.v1.TaskDescriptionStrategy task_description = 3;

Returns
Type Description
TaskDescriptionStrategy

The taskDescription.

getTaskDescriptionOrBuilder()

public TaskDescriptionStrategyOrBuilder getTaskDescriptionOrBuilder()

Generate data from a high-level task description.

.google.cloud.aiplatform.v1.TaskDescriptionStrategy task_description = 3;

Returns
Type Description
TaskDescriptionStrategyOrBuilder

hasTaskDescription()

public boolean hasTaskDescription()

Generate data from a high-level task description.

.google.cloud.aiplatform.v1.TaskDescriptionStrategy task_description = 3;

Returns
Type Description
boolean

Whether the taskDescription field is set.

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 GenerateSyntheticDataRequest.Builder newBuilderForType()
Returns
Type Description
GenerateSyntheticDataRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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