Class BatchPredictionJob.InputConfig.Builder (3.55.0)

public static final class BatchPredictionJob.InputConfig.Builder extends GeneratedMessageV3.Builder<BatchPredictionJob.InputConfig.Builder> implements BatchPredictionJob.InputConfigOrBuilder

Configures the input to BatchPredictionJob. See Model.supported_input_storage_formats for Model's supported input formats, and how instances should be expressed via any of them.

Protobuf type google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchPredictionJob.InputConfig build()
Returns
Type Description
BatchPredictionJob.InputConfig

buildPartial()

public BatchPredictionJob.InputConfig buildPartial()
Returns
Type Description
BatchPredictionJob.InputConfig

clear()

public BatchPredictionJob.InputConfig.Builder clear()
Returns
Type Description
BatchPredictionJob.InputConfig.Builder
Overrides

clearBigquerySource()

public BatchPredictionJob.InputConfig.Builder clearBigquerySource()

The BigQuery location of the input table. The schema of the table should be in the format described by the given context OpenAPI Schema, if one is provided. The table may contain additional columns that are not described by the schema, and they will be ignored.

.google.cloud.aiplatform.v1.BigQuerySource bigquery_source = 3;

Returns
Type Description
BatchPredictionJob.InputConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGcsSource()

public BatchPredictionJob.InputConfig.Builder clearGcsSource()

The Cloud Storage location for the input instances.

.google.cloud.aiplatform.v1.GcsSource gcs_source = 2;

Returns
Type Description
BatchPredictionJob.InputConfig.Builder

clearInstancesFormat()

public BatchPredictionJob.InputConfig.Builder clearInstancesFormat()

Required. The format in which instances are given, must be one of the Model's supported_input_storage_formats.

string instances_format = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchPredictionJob.InputConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSource()

public BatchPredictionJob.InputConfig.Builder clearSource()
Returns
Type Description
BatchPredictionJob.InputConfig.Builder

clone()

public BatchPredictionJob.InputConfig.Builder clone()
Returns
Type Description
BatchPredictionJob.InputConfig.Builder
Overrides

getBigquerySource()

public BigQuerySource getBigquerySource()

The BigQuery location of the input table. The schema of the table should be in the format described by the given context OpenAPI Schema, if one is provided. The table may contain additional columns that are not described by the schema, and they will be ignored.

.google.cloud.aiplatform.v1.BigQuerySource bigquery_source = 3;

Returns
Type Description
BigQuerySource

The bigquerySource.

getBigquerySourceBuilder()

public BigQuerySource.Builder getBigquerySourceBuilder()

The BigQuery location of the input table. The schema of the table should be in the format described by the given context OpenAPI Schema, if one is provided. The table may contain additional columns that are not described by the schema, and they will be ignored.

.google.cloud.aiplatform.v1.BigQuerySource bigquery_source = 3;

Returns
Type Description
BigQuerySource.Builder

getBigquerySourceOrBuilder()

public BigQuerySourceOrBuilder getBigquerySourceOrBuilder()

The BigQuery location of the input table. The schema of the table should be in the format described by the given context OpenAPI Schema, if one is provided. The table may contain additional columns that are not described by the schema, and they will be ignored.

.google.cloud.aiplatform.v1.BigQuerySource bigquery_source = 3;

Returns
Type Description
BigQuerySourceOrBuilder

getDefaultInstanceForType()

public BatchPredictionJob.InputConfig getDefaultInstanceForType()
Returns
Type Description
BatchPredictionJob.InputConfig

getDescriptorForType()

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

getGcsSource()

public GcsSource getGcsSource()

The Cloud Storage location for the input instances.

.google.cloud.aiplatform.v1.GcsSource gcs_source = 2;

Returns
Type Description
GcsSource

The gcsSource.

getGcsSourceBuilder()

public GcsSource.Builder getGcsSourceBuilder()

The Cloud Storage location for the input instances.

.google.cloud.aiplatform.v1.GcsSource gcs_source = 2;

Returns
Type Description
GcsSource.Builder

getGcsSourceOrBuilder()

public GcsSourceOrBuilder getGcsSourceOrBuilder()

The Cloud Storage location for the input instances.

.google.cloud.aiplatform.v1.GcsSource gcs_source = 2;

Returns
Type Description
GcsSourceOrBuilder

getInstancesFormat()

public String getInstancesFormat()

Required. The format in which instances are given, must be one of the Model's supported_input_storage_formats.

string instances_format = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The instancesFormat.

getInstancesFormatBytes()

public ByteString getInstancesFormatBytes()

Required. The format in which instances are given, must be one of the Model's supported_input_storage_formats.

string instances_format = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for instancesFormat.

getSourceCase()

public BatchPredictionJob.InputConfig.SourceCase getSourceCase()
Returns
Type Description
BatchPredictionJob.InputConfig.SourceCase

hasBigquerySource()

public boolean hasBigquerySource()

The BigQuery location of the input table. The schema of the table should be in the format described by the given context OpenAPI Schema, if one is provided. The table may contain additional columns that are not described by the schema, and they will be ignored.

.google.cloud.aiplatform.v1.BigQuerySource bigquery_source = 3;

Returns
Type Description
boolean

Whether the bigquerySource field is set.

hasGcsSource()

public boolean hasGcsSource()

The Cloud Storage location for the input instances.

.google.cloud.aiplatform.v1.GcsSource gcs_source = 2;

Returns
Type Description
boolean

Whether the gcsSource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBigquerySource(BigQuerySource value)

public BatchPredictionJob.InputConfig.Builder mergeBigquerySource(BigQuerySource value)

The BigQuery location of the input table. The schema of the table should be in the format described by the given context OpenAPI Schema, if one is provided. The table may contain additional columns that are not described by the schema, and they will be ignored.

.google.cloud.aiplatform.v1.BigQuerySource bigquery_source = 3;

Parameter
Name Description
value BigQuerySource
Returns
Type Description
BatchPredictionJob.InputConfig.Builder

mergeFrom(BatchPredictionJob.InputConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGcsSource(GcsSource value)

public BatchPredictionJob.InputConfig.Builder mergeGcsSource(GcsSource value)

The Cloud Storage location for the input instances.

.google.cloud.aiplatform.v1.GcsSource gcs_source = 2;

Parameter
Name Description
value GcsSource
Returns
Type Description
BatchPredictionJob.InputConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBigquerySource(BigQuerySource value)

public BatchPredictionJob.InputConfig.Builder setBigquerySource(BigQuerySource value)

The BigQuery location of the input table. The schema of the table should be in the format described by the given context OpenAPI Schema, if one is provided. The table may contain additional columns that are not described by the schema, and they will be ignored.

.google.cloud.aiplatform.v1.BigQuerySource bigquery_source = 3;

Parameter
Name Description
value BigQuerySource
Returns
Type Description
BatchPredictionJob.InputConfig.Builder

setBigquerySource(BigQuerySource.Builder builderForValue)

public BatchPredictionJob.InputConfig.Builder setBigquerySource(BigQuerySource.Builder builderForValue)

The BigQuery location of the input table. The schema of the table should be in the format described by the given context OpenAPI Schema, if one is provided. The table may contain additional columns that are not described by the schema, and they will be ignored.

.google.cloud.aiplatform.v1.BigQuerySource bigquery_source = 3;

Parameter
Name Description
builderForValue BigQuerySource.Builder
Returns
Type Description
BatchPredictionJob.InputConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsSource(GcsSource value)

public BatchPredictionJob.InputConfig.Builder setGcsSource(GcsSource value)

The Cloud Storage location for the input instances.

.google.cloud.aiplatform.v1.GcsSource gcs_source = 2;

Parameter
Name Description
value GcsSource
Returns
Type Description
BatchPredictionJob.InputConfig.Builder

setGcsSource(GcsSource.Builder builderForValue)

public BatchPredictionJob.InputConfig.Builder setGcsSource(GcsSource.Builder builderForValue)

The Cloud Storage location for the input instances.

.google.cloud.aiplatform.v1.GcsSource gcs_source = 2;

Parameter
Name Description
builderForValue GcsSource.Builder
Returns
Type Description
BatchPredictionJob.InputConfig.Builder

setInstancesFormat(String value)

public BatchPredictionJob.InputConfig.Builder setInstancesFormat(String value)

Required. The format in which instances are given, must be one of the Model's supported_input_storage_formats.

string instances_format = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The instancesFormat to set.

Returns
Type Description
BatchPredictionJob.InputConfig.Builder

This builder for chaining.

setInstancesFormatBytes(ByteString value)

public BatchPredictionJob.InputConfig.Builder setInstancesFormatBytes(ByteString value)

Required. The format in which instances are given, must be one of the Model's supported_input_storage_formats.

string instances_format = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for instancesFormat to set.

Returns
Type Description
BatchPredictionJob.InputConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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