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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public BatchPredictionJob.InputConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public BatchPredictionJob.InputConfig build()
Returns
public BatchPredictionJob.InputConfig buildPartial()
Returns
public BatchPredictionJob.InputConfig.Builder clear()
Returns
Overrides
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
public BatchPredictionJob.InputConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public BatchPredictionJob.InputConfig.Builder clearGcsSource()
The Cloud Storage location for the input instances.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 2;
Returns
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
public BatchPredictionJob.InputConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public BatchPredictionJob.InputConfig.Builder clearSource()
Returns
public BatchPredictionJob.InputConfig.Builder clone()
Returns
Overrides
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
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
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
public BatchPredictionJob.InputConfig getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public GcsSource getGcsSource()
The Cloud Storage location for the input instances.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 2;
Returns
public GcsSource.Builder getGcsSourceBuilder()
The Cloud Storage location for the input instances.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 2;
Returns
public GcsSourceOrBuilder getGcsSourceOrBuilder()
The Cloud Storage location for the input instances.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 2;
Returns
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.
|
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.
|
public BatchPredictionJob.InputConfig.SourceCase getSourceCase()
Returns
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
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
Returns
public BatchPredictionJob.InputConfig.Builder mergeFrom(BatchPredictionJob.InputConfig other)
Parameter
Returns
public BatchPredictionJob.InputConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public BatchPredictionJob.InputConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public BatchPredictionJob.InputConfig.Builder mergeGcsSource(GcsSource value)
The Cloud Storage location for the input instances.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 2;
Parameter
Returns
public final BatchPredictionJob.InputConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
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
Returns
public BatchPredictionJob.InputConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public BatchPredictionJob.InputConfig.Builder setGcsSource(GcsSource value)
The Cloud Storage location for the input instances.
.google.cloud.aiplatform.v1.GcsSource gcs_source = 2;
Parameter
Returns
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
Returns
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
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
public BatchPredictionJob.InputConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final BatchPredictionJob.InputConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides