class Google::Apis::RetailV2::GoogleCloudRetailV2BigQuerySource
BigQuery source import data from.
Attributes
The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [ Importing catalog data from Merchant Center](cloud.google.com/retail/ recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * ` user_event_ga360`: Using support.google.com/analytics/answer/3437719. Corresponds to the JSON property `dataSchema` @return [String]
Required. The BigQuery data set to copy the data from with a length limit of 1, 024 characters. Corresponds to the JSON property `datasetId` @return [String]
Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory. Corresponds to the JSON property `gcsStagingDir` @return [String]
Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and ` google.protobuf.Timestamp`. Corresponds to the JSON property `partitionDate` @return [Google::Apis::RetailV2::GoogleTypeDate]
The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request. Corresponds to the JSON property `projectId` @return [String]
Required. The BigQuery table to copy the data from with a length limit of 1, 024 characters. Corresponds to the JSON property `tableId` @return [String]
Public Class Methods
# File lib/google/apis/retail_v2/classes.rb, line 458 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/retail_v2/classes.rb, line 463 def update!(**args) @data_schema = args[:data_schema] if args.key?(:data_schema) @dataset_id = args[:dataset_id] if args.key?(:dataset_id) @gcs_staging_dir = args[:gcs_staging_dir] if args.key?(:gcs_staging_dir) @partition_date = args[:partition_date] if args.key?(:partition_date) @project_id = args[:project_id] if args.key?(:project_id) @table_id = args[:table_id] if args.key?(:table_id) end