Class protos.google.cloud.bigquery.datatransfer.v1.DataSourceParameter (3.1.5)

Represents a DataSourceParameter.

Package

@google-cloud/bigquery-data-transfer

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.bigquery.datatransfer.v1.IDataSourceParameter);

Constructs a new DataSourceParameter.

Parameter
NameDescription
properties IDataSourceParameter

Properties to set

Properties

allowedValues

public allowedValues: string[];

DataSourceParameter allowedValues.

deprecated

public deprecated: boolean;

DataSourceParameter deprecated.

description

public description: string;

DataSourceParameter description.

displayName

public displayName: string;

DataSourceParameter displayName.

fields

public fields: google.cloud.bigquery.datatransfer.v1.IDataSourceParameter[];

DataSourceParameter fields.

immutable

public immutable: boolean;

DataSourceParameter immutable.

maxValue

public maxValue?: (google.protobuf.IDoubleValue|null);

DataSourceParameter maxValue.

minValue

public minValue?: (google.protobuf.IDoubleValue|null);

DataSourceParameter minValue.

paramId

public paramId: string;

DataSourceParameter paramId.

recurse

public recurse: boolean;

DataSourceParameter recurse.

repeated

public repeated: boolean;

DataSourceParameter repeated.

required

public required: boolean;

DataSourceParameter required.

type

public type: (google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type|keyof typeof google.cloud.bigquery.datatransfer.v1.DataSourceParameter.Type);

DataSourceParameter type.

validationDescription

public validationDescription: string;

DataSourceParameter validationDescription.

validationHelpUrl

public validationHelpUrl: string;

DataSourceParameter validationHelpUrl.

validationRegex

public validationRegex: string;

DataSourceParameter validationRegex.

Methods

create(properties)

public static create(properties?: google.cloud.bigquery.datatransfer.v1.IDataSourceParameter): google.cloud.bigquery.datatransfer.v1.DataSourceParameter;

Creates a new DataSourceParameter instance using the specified properties.

Parameter
NameDescription
properties IDataSourceParameter

Properties to set

Returns
TypeDescription
google.cloud.bigquery.datatransfer.v1.DataSourceParameter

DataSourceParameter instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.datatransfer.v1.DataSourceParameter;

Decodes a DataSourceParameter message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.cloud.bigquery.datatransfer.v1.DataSourceParameter

DataSourceParameter

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.datatransfer.v1.DataSourceParameter;

Decodes a DataSourceParameter message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.bigquery.datatransfer.v1.DataSourceParameter

DataSourceParameter

encode(message, writer)

public static encode(message: google.cloud.bigquery.datatransfer.v1.IDataSourceParameter, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified DataSourceParameter message. Does not implicitly messages.

Parameters
NameDescription
message IDataSourceParameter

DataSourceParameter message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.bigquery.datatransfer.v1.IDataSourceParameter, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified DataSourceParameter message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message IDataSourceParameter

DataSourceParameter message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.datatransfer.v1.DataSourceParameter;

Creates a DataSourceParameter message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
google.cloud.bigquery.datatransfer.v1.DataSourceParameter

DataSourceParameter

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for DataSourceParameter

Parameter
NameDescription
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
TypeDescription
string

The default type url

toJSON()

public toJSON(): { [k: string]: any };

Converts this DataSourceParameter to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.bigquery.datatransfer.v1.DataSourceParameter, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a DataSourceParameter message. Also converts values to other types if specified.

Parameters
NameDescription
message google.cloud.bigquery.datatransfer.v1.DataSourceParameter

DataSourceParameter

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a DataSourceParameter message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not