Represents a BigQuerySource.
Package
@google-cloud/retailConstructors
(constructor)(properties)
constructor(properties?: google.cloud.retail.v2.IBigQuerySource);
Constructs a new BigQuerySource.
Parameter | |
---|---|
Name | Description |
properties |
IBigQuerySource
Properties to set |
Properties
dataSchema
public dataSchema: string;
BigQuerySource dataSchema.
datasetId
public datasetId: string;
BigQuerySource datasetId.
gcsStagingDir
public gcsStagingDir: string;
BigQuerySource gcsStagingDir.
partition
public partition?: "partitionDate";
BigQuerySource partition.
partitionDate
public partitionDate?: (google.type.IDate|null);
BigQuerySource partitionDate.
projectId
public projectId: string;
BigQuerySource projectId.
tableId
public tableId: string;
BigQuerySource tableId.
Methods
create(properties)
public static create(properties?: google.cloud.retail.v2.IBigQuerySource): google.cloud.retail.v2.BigQuerySource;
Creates a new BigQuerySource instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
IBigQuerySource
Properties to set |
Returns | |
---|---|
Type | Description |
BigQuerySource |
BigQuerySource instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.retail.v2.BigQuerySource;
Decodes a BigQuerySource message from the specified reader or buffer.
Parameters | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Returns | |
---|---|
Type | Description |
BigQuerySource |
BigQuerySource |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.retail.v2.BigQuerySource;
Decodes a BigQuerySource message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
BigQuerySource |
BigQuerySource |
encode(message, writer)
public static encode(message: google.cloud.retail.v2.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified BigQuerySource message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IBigQuerySource
BigQuerySource message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.retail.v2.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified BigQuerySource message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IBigQuerySource
BigQuerySource message or plain object to encode |
writer< |