Class BatchPredictionJob.InputConfig.Builder (3.30.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchPredictionJob.InputConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchPredictionJob.InputConfig.Builder
Overrides

build()

public BatchPredictionJob.InputConfig build()
Returns
TypeDescription
BatchPredictionJob.InputConfig

buildPartial()

public BatchPredictionJob.InputConfig buildPartial()
Returns
TypeDescription
BatchPredictionJob.InputConfig

clear()

public BatchPredictionJob.InputConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
BatchPredictionJob.InputConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public BatchPredictionJob.InputConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
BatchPredictionJob.InputConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchPredictionJob.InputConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchPredictionJob.InputConfig.Builder
Overrides

clearSource()

public BatchPredictionJob.InputConfig.Builder clearSource()
Returns
TypeDescription
BatchPredictionJob.InputConfig.Builder

clone()

public BatchPredictionJob.InputConfig.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
BigQuerySourceOrBuilder

getDefaultInstanceForType()

public BatchPredictionJob.InputConfig getDefaultInstanceForType()
Returns
TypeDescription
BatchPredictionJob.InputConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcsSource()

public GcsSource getGcsSource()

The Cloud Storage location for the input instances.

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

Returns
TypeDescription
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
TypeDescription
GcsSource.Builder

getGcsSourceOrBuilder()

public GcsSourceOrBuilder getGcsSourceOrBuilder()

The Cloud Storage location for the input instances.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for instancesFormat.

getSourceCase()

public BatchPredictionJob.InputConfig.SourceCase getSourceCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the gcsSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueBigQuerySource
Returns
TypeDescription
BatchPredictionJob.InputConfig.Builder

mergeFrom(BatchPredictionJob.InputConfig other)

public BatchPredictionJob.InputConfig.Builder mergeFrom(BatchPredictionJob.InputConfig other)
Parameter
NameDescription
otherBatchPredictionJob.InputConfig
Returns
TypeDescription
BatchPredictionJob.InputConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchPredictionJob.InputConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchPredictionJob.InputConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BatchPredictionJob.InputConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueGcsSource
Returns
TypeDescription
BatchPredictionJob.InputConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchPredictionJob.InputConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueBigQuerySource
Returns
TypeDescription
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
NameDescription
builderForValueBigQuerySource.Builder
Returns
TypeDescription
BatchPredictionJob.InputConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchPredictionJob.InputConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueGcsSource
Returns
TypeDescription
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
NameDescription
builderForValueGcsSource.Builder
Returns
TypeDescription
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
NameDescription
valueString

The instancesFormat to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for instancesFormat to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchPredictionJob.InputConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchPredictionJob.InputConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchPredictionJob.InputConfig.Builder
Overrides