api: google.golang.org/api/bigquery/v2 Index | Files

package bigquery

import "google.golang.org/api/bigquery/v2"

Package bigquery provides access to the BigQuery API.

See https://cloud.google.com/bigquery/

Usage example:

import "google.golang.org/api/bigquery/v2"
...
bigqueryService, err := bigquery.New(oauthHttpClient)

Index

Package Files

bigquery-gen.go

Constants

const (
    // View and manage your data in Google BigQuery
    BigqueryScope = "https://www.googleapis.com/auth/bigquery"

    // Insert data into Google BigQuery
    BigqueryInsertdataScope = "https://www.googleapis.com/auth/bigquery.insertdata"

    // View and manage your data across Google Cloud Platform services
    CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"

    // View your data across Google Cloud Platform services
    CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only"

    // Manage your data and permissions in Google Cloud Storage
    DevstorageFullControlScope = "https://www.googleapis.com/auth/devstorage.full_control"

    // View your data in Google Cloud Storage
    DevstorageReadOnlyScope = "https://www.googleapis.com/auth/devstorage.read_only"

    // Manage your data in Google Cloud Storage
    DevstorageReadWriteScope = "https://www.googleapis.com/auth/devstorage.read_write"
)

OAuth2 scopes used by this API.

type BigtableColumn Uses

type BigtableColumn struct {
    // Encoding: [Optional] The encoding of the values when the type is not
    // STRING. Acceptable encoding values are: TEXT - indicates values are
    // alphanumeric text strings. BINARY - indicates values are encoded
    // using HBase Bytes.toBytes family of functions. 'encoding' can also be
    // set at the column family level. However, the setting at this level
    // takes precedence if 'encoding' is set at both levels.
    Encoding string `json:"encoding,omitempty"`

    // FieldName: [Optional] If the qualifier is not a valid BigQuery field
    // identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid
    // identifier must be provided as the column field name and is used as
    // field name in queries.
    FieldName string `json:"fieldName,omitempty"`

    // OnlyReadLatest: [Optional] If this is set, only the latest version of
    // value in this column are exposed. 'onlyReadLatest' can also be set at
    // the column family level. However, the setting at this level takes
    // precedence if 'onlyReadLatest' is set at both levels.
    OnlyReadLatest bool `json:"onlyReadLatest,omitempty"`

    // QualifierEncoded: [Required] Qualifier of the column. Columns in the
    // parent column family that has this exact qualifier are exposed as .
    // field. If the qualifier is valid UTF-8 string, it can be specified in
    // the qualifier_string field. Otherwise, a base-64 encoded value must
    // be set to qualifier_encoded. The column field name is the same as the
    // column qualifier. However, if the qualifier is not a valid BigQuery
    // field identifier i.e. does not match [a-zA-Z][a-zA-Z0-9_]*, a valid
    // identifier must be provided as field_name.
    QualifierEncoded string `json:"qualifierEncoded,omitempty"`

    QualifierString string `json:"qualifierString,omitempty"`

    // Type: [Optional] The type to convert the value in cells of this
    // column. The values are expected to be encoded using HBase
    // Bytes.toBytes function when using the BINARY encoding value.
    // Following BigQuery types are allowed (case-sensitive) - BYTES STRING
    // INTEGER FLOAT BOOLEAN Default type is BYTES. 'type' can also be set
    // at the column family level. However, the setting at this level takes
    // precedence if 'type' is set at both levels.
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Encoding") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Encoding") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*BigtableColumn) MarshalJSON Uses

func (s *BigtableColumn) MarshalJSON() ([]byte, error)

type BigtableColumnFamily Uses

type BigtableColumnFamily struct {
    // Columns: [Optional] Lists of columns that should be exposed as
    // individual fields as opposed to a list of (column name, value) pairs.
    // All columns whose qualifier matches a qualifier in this list can be
    // accessed as .. Other columns can be accessed as a list through
    // .Column field.
    Columns []*BigtableColumn `json:"columns,omitempty"`

    // Encoding: [Optional] The encoding of the values when the type is not
    // STRING. Acceptable encoding values are: TEXT - indicates values are
    // alphanumeric text strings. BINARY - indicates values are encoded
    // using HBase Bytes.toBytes family of functions. This can be overridden
    // for a specific column by listing that column in 'columns' and
    // specifying an encoding for it.
    Encoding string `json:"encoding,omitempty"`

    // FamilyId: Identifier of the column family.
    FamilyId string `json:"familyId,omitempty"`

    // OnlyReadLatest: [Optional] If this is set only the latest version of
    // value are exposed for all columns in this column family. This can be
    // overridden for a specific column by listing that column in 'columns'
    // and specifying a different setting for that column.
    OnlyReadLatest bool `json:"onlyReadLatest,omitempty"`

    // Type: [Optional] The type to convert the value in cells of this
    // column family. The values are expected to be encoded using HBase
    // Bytes.toBytes function when using the BINARY encoding value.
    // Following BigQuery types are allowed (case-sensitive) - BYTES STRING
    // INTEGER FLOAT BOOLEAN Default type is BYTES. This can be overridden
    // for a specific column by listing that column in 'columns' and
    // specifying a type for it.
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Columns") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Columns") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*BigtableColumnFamily) MarshalJSON Uses

func (s *BigtableColumnFamily) MarshalJSON() ([]byte, error)

type BigtableOptions Uses

type BigtableOptions struct {
    // ColumnFamilies: [Optional] List of column families to expose in the
    // table schema along with their types. This list restricts the column
    // families that can be referenced in queries and specifies their value
    // types. You can use this list to do type conversions - see the 'type'
    // field for more details. If you leave this list empty, all column
    // families are present in the table schema and their values are read as
    // BYTES. During a query only the column families referenced in that
    // query are read from Bigtable.
    ColumnFamilies []*BigtableColumnFamily `json:"columnFamilies,omitempty"`

    // IgnoreUnspecifiedColumnFamilies: [Optional] If field is true, then
    // the column families that are not specified in columnFamilies list are
    // not exposed in the table schema. Otherwise, they are read with BYTES
    // type values. The default value is false.
    IgnoreUnspecifiedColumnFamilies bool `json:"ignoreUnspecifiedColumnFamilies,omitempty"`

    // ReadRowkeyAsString: [Optional] If field is true, then the rowkey
    // column families will be read and converted to string. Otherwise they
    // are read with BYTES type values and users need to manually cast them
    // with CAST if necessary. The default value is false.
    ReadRowkeyAsString bool `json:"readRowkeyAsString,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ColumnFamilies") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ColumnFamilies") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*BigtableOptions) MarshalJSON Uses

func (s *BigtableOptions) MarshalJSON() ([]byte, error)

type CsvOptions Uses

type CsvOptions struct {
    // AllowJaggedRows: [Optional] Indicates if BigQuery should accept rows
    // that are missing trailing optional columns. If true, BigQuery treats
    // missing trailing columns as null values. If false, records with
    // missing trailing columns are treated as bad records, and if there are
    // too many bad records, an invalid error is returned in the job result.
    // The default value is false.
    AllowJaggedRows bool `json:"allowJaggedRows,omitempty"`

    // AllowQuotedNewlines: [Optional] Indicates if BigQuery should allow
    // quoted data sections that contain newline characters in a CSV file.
    // The default value is false.
    AllowQuotedNewlines bool `json:"allowQuotedNewlines,omitempty"`

    // Encoding: [Optional] The character encoding of the data. The
    // supported values are UTF-8 or ISO-8859-1. The default value is UTF-8.
    // BigQuery decodes the data after the raw, binary data has been split
    // using the values of the quote and fieldDelimiter properties.
    Encoding string `json:"encoding,omitempty"`

    // FieldDelimiter: [Optional] The separator for fields in a CSV file.
    // BigQuery converts the string to ISO-8859-1 encoding, and then uses
    // the first byte of the encoded string to split the data in its raw,
    // binary state. BigQuery also supports the escape sequence "\t" to
    // specify a tab separator. The default value is a comma (',').
    FieldDelimiter string `json:"fieldDelimiter,omitempty"`

    // Quote: [Optional] The value that is used to quote data sections in a
    // CSV file. BigQuery converts the string to ISO-8859-1 encoding, and
    // then uses the first byte of the encoded string to split the data in
    // its raw, binary state. The default value is a double-quote ('"'). If
    // your data does not contain quoted sections, set the property value to
    // an empty string. If your data contains quoted newline characters, you
    // must also set the allowQuotedNewlines property to true.
    //
    // Default: "
    Quote *string `json:"quote,omitempty"`

    // SkipLeadingRows: [Optional] The number of rows at the top of a CSV
    // file that BigQuery will skip when reading the data. The default value
    // is 0. This property is useful if you have header rows in the file
    // that should be skipped.
    SkipLeadingRows int64 `json:"skipLeadingRows,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "AllowJaggedRows") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AllowJaggedRows") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*CsvOptions) MarshalJSON Uses

func (s *CsvOptions) MarshalJSON() ([]byte, error)

type Dataset Uses

type Dataset struct {
    // Access: [Optional] An array of objects that define dataset access for
    // one or more entities. You can set this property when inserting or
    // updating a dataset in order to control who is allowed to access the
    // data. If unspecified at dataset creation time, BigQuery adds default
    // dataset access for the following entities: access.specialGroup:
    // projectReaders; access.role: READER; access.specialGroup:
    // projectWriters; access.role: WRITER; access.specialGroup:
    // projectOwners; access.role: OWNER; access.userByEmail: [dataset
    // creator email]; access.role: OWNER;
    Access []*DatasetAccess `json:"access,omitempty"`

    // CreationTime: [Output-only] The time when this dataset was created,
    // in milliseconds since the epoch.
    CreationTime int64 `json:"creationTime,omitempty,string"`

    // DatasetReference: [Required] A reference that identifies the dataset.
    DatasetReference *DatasetReference `json:"datasetReference,omitempty"`

    // DefaultTableExpirationMs: [Optional] The default lifetime of all
    // tables in the dataset, in milliseconds. The minimum value is 3600000
    // milliseconds (one hour). Once this property is set, all newly-created
    // tables in the dataset will have an expirationTime property set to the
    // creation time plus the value in this property, and changing the value
    // will only affect new tables, not existing ones. When the
    // expirationTime for a given table is reached, that table will be
    // deleted automatically. If a table's expirationTime is modified or
    // removed before the table expires, or if you provide an explicit
    // expirationTime when creating a table, that value takes precedence
    // over the default expiration time indicated by this property.
    DefaultTableExpirationMs int64 `json:"defaultTableExpirationMs,omitempty,string"`

    // Description: [Optional] A user-friendly description of the dataset.
    Description string `json:"description,omitempty"`

    // Etag: [Output-only] A hash of the resource.
    Etag string `json:"etag,omitempty"`

    // FriendlyName: [Optional] A descriptive name for the dataset.
    FriendlyName string `json:"friendlyName,omitempty"`

    // Id: [Output-only] The fully-qualified unique name of the dataset in
    // the format projectId:datasetId. The dataset name without the project
    // name is given in the datasetId field. When creating a new dataset,
    // leave this field blank, and instead specify the datasetId field.
    Id  string `json:"id,omitempty"`

    // Kind: [Output-only] The resource type.
    Kind string `json:"kind,omitempty"`

    // Labels: The labels associated with this dataset. You can use these to
    // organize and group your datasets. You can set this property when
    // inserting or updating a dataset. See Labeling Datasets for more
    // information.
    Labels map[string]string `json:"labels,omitempty"`

    // LastModifiedTime: [Output-only] The date when this dataset or any of
    // its tables was last modified, in milliseconds since the epoch.
    LastModifiedTime int64 `json:"lastModifiedTime,omitempty,string"`

    // Location: The geographic location where the dataset should reside.
    // Possible values include EU and US. The default value is US.
    Location string `json:"location,omitempty"`

    // SelfLink: [Output-only] A URL that can be used to access the resource
    // again. You can use this URL in Get or Update requests to the
    // resource.
    SelfLink string `json:"selfLink,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Access") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Access") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*Dataset) MarshalJSON Uses

func (s *Dataset) MarshalJSON() ([]byte, error)

type DatasetAccess Uses

type DatasetAccess struct {
    // Domain: [Pick one] A domain to grant access to. Any users signed in
    // with the domain specified will be granted the specified access.
    // Example: "example.com".
    Domain string `json:"domain,omitempty"`

    // GroupByEmail: [Pick one] An email address of a Google Group to grant
    // access to.
    GroupByEmail string `json:"groupByEmail,omitempty"`

    // Role: [Required] Describes the rights granted to the user specified
    // by the other member of the access object. The following string values
    // are supported: READER, WRITER, OWNER.
    Role string `json:"role,omitempty"`

    // SpecialGroup: [Pick one] A special group to grant access to. Possible
    // values include: projectOwners: Owners of the enclosing project.
    // projectReaders: Readers of the enclosing project. projectWriters:
    // Writers of the enclosing project. allAuthenticatedUsers: All
    // authenticated BigQuery users.
    SpecialGroup string `json:"specialGroup,omitempty"`

    // UserByEmail: [Pick one] An email address of a user to grant access
    // to. For example: fred@example.com.
    UserByEmail string `json:"userByEmail,omitempty"`

    // View: [Pick one] A view from a different dataset to grant access to.
    // Queries executed against that view will have read access to tables in
    // this dataset. The role field is not required when this field is set.
    // If that view is updated by any user, access to the view needs to be
    // granted again via an update operation.
    View *TableReference `json:"view,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Domain") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Domain") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*DatasetAccess) MarshalJSON Uses

func (s *DatasetAccess) MarshalJSON() ([]byte, error)

type DatasetList Uses

type DatasetList struct {
    // Datasets: An array of the dataset resources in the project. Each
    // resource contains basic information. For full information about a
    // particular dataset resource, use the Datasets: get method. This
    // property is omitted when there are no datasets in the project.
    Datasets []*DatasetListDatasets `json:"datasets,omitempty"`

    // Etag: A hash value of the results page. You can use this property to
    // determine if the page has changed since the last request.
    Etag string `json:"etag,omitempty"`

    // Kind: The list type. This property always returns the value
    // "bigquery#datasetList".
    Kind string `json:"kind,omitempty"`

    // NextPageToken: A token that can be used to request the next results
    // page. This property is omitted on the final results page.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Datasets") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Datasets") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*DatasetList) MarshalJSON Uses

func (s *DatasetList) MarshalJSON() ([]byte, error)

type DatasetListDatasets Uses

type DatasetListDatasets struct {
    // DatasetReference: The dataset reference. Use this property to access
    // specific parts of the dataset's ID, such as project ID or dataset ID.
    DatasetReference *DatasetReference `json:"datasetReference,omitempty"`

    // FriendlyName: A descriptive name for the dataset, if one exists.
    FriendlyName string `json:"friendlyName,omitempty"`

    // Id: The fully-qualified, unique, opaque ID of the dataset.
    Id  string `json:"id,omitempty"`

    // Kind: The resource type. This property always returns the value
    // "bigquery#dataset".
    Kind string `json:"kind,omitempty"`

    // Labels: The labels associated with this dataset. You can use these to
    // organize and group your datasets.
    Labels map[string]string `json:"labels,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DatasetReference") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DatasetReference") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*DatasetListDatasets) MarshalJSON Uses

func (s *DatasetListDatasets) MarshalJSON() ([]byte, error)

type DatasetReference Uses

type DatasetReference struct {
    // DatasetId: [Required] A unique ID for this dataset, without the
    // project name. The ID must contain only letters (a-z, A-Z), numbers
    // (0-9), or underscores (_). The maximum length is 1,024 characters.
    DatasetId string `json:"datasetId,omitempty"`

    // ProjectId: [Optional] The ID of the project containing this dataset.
    ProjectId string `json:"projectId,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DatasetId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DatasetId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*DatasetReference) MarshalJSON Uses

func (s *DatasetReference) MarshalJSON() ([]byte, error)

type DatasetsDeleteCall Uses

type DatasetsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*DatasetsDeleteCall) Context Uses

func (c *DatasetsDeleteCall) Context(ctx context.Context) *DatasetsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DatasetsDeleteCall) DeleteContents Uses

func (c *DatasetsDeleteCall) DeleteContents(deleteContents bool) *DatasetsDeleteCall

DeleteContents sets the optional parameter "deleteContents": If True, delete all the tables in the dataset. If False and the dataset contains tables, the request will fail. Default is False

func (*DatasetsDeleteCall) Do Uses

func (c *DatasetsDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "bigquery.datasets.delete" call.

func (*DatasetsDeleteCall) Fields Uses

func (c *DatasetsDeleteCall) Fields(s ...googleapi.Field) *DatasetsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DatasetsDeleteCall) Header Uses

func (c *DatasetsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type DatasetsGetCall Uses

type DatasetsGetCall struct {
    // contains filtered or unexported fields
}

func (*DatasetsGetCall) Context Uses

func (c *DatasetsGetCall) Context(ctx context.Context) *DatasetsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DatasetsGetCall) Do Uses

func (c *DatasetsGetCall) Do(opts ...googleapi.CallOption) (*Dataset, error)

Do executes the "bigquery.datasets.get" call. Exactly one of *Dataset or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Dataset.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DatasetsGetCall) Fields Uses

func (c *DatasetsGetCall) Fields(s ...googleapi.Field) *DatasetsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DatasetsGetCall) Header Uses

func (c *DatasetsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*DatasetsGetCall) IfNoneMatch Uses

func (c *DatasetsGetCall) IfNoneMatch(entityTag string) *DatasetsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type DatasetsInsertCall Uses

type DatasetsInsertCall struct {
    // contains filtered or unexported fields
}

func (*DatasetsInsertCall) Context Uses

func (c *DatasetsInsertCall) Context(ctx context.Context) *DatasetsInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DatasetsInsertCall) Do Uses

func (c *DatasetsInsertCall) Do(opts ...googleapi.CallOption) (*Dataset, error)

Do executes the "bigquery.datasets.insert" call. Exactly one of *Dataset or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Dataset.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DatasetsInsertCall) Fields Uses

func (c *DatasetsInsertCall) Fields(s ...googleapi.Field) *DatasetsInsertCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DatasetsInsertCall) Header Uses

func (c *DatasetsInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type DatasetsListCall Uses

type DatasetsListCall struct {
    // contains filtered or unexported fields
}

func (*DatasetsListCall) All Uses

func (c *DatasetsListCall) All(all bool) *DatasetsListCall

All sets the optional parameter "all": Whether to list all datasets, including hidden ones

func (*DatasetsListCall) Context Uses

func (c *DatasetsListCall) Context(ctx context.Context) *DatasetsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DatasetsListCall) Do Uses

func (c *DatasetsListCall) Do(opts ...googleapi.CallOption) (*DatasetList, error)

Do executes the "bigquery.datasets.list" call. Exactly one of *DatasetList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DatasetList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DatasetsListCall) Fields Uses

func (c *DatasetsListCall) Fields(s ...googleapi.Field) *DatasetsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DatasetsListCall) Filter Uses

func (c *DatasetsListCall) Filter(filter string) *DatasetsListCall

Filter sets the optional parameter "filter": An expression for filtering the results of the request by label. The syntax is "labels.<name>[:<value>]". Multiple filters can be ANDed together by connecting with a space. Example: "labels.department:receiving labels.active". See Filtering datasets using labels for details.

func (*DatasetsListCall) Header Uses

func (c *DatasetsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*DatasetsListCall) IfNoneMatch Uses

func (c *DatasetsListCall) IfNoneMatch(entityTag string) *DatasetsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*DatasetsListCall) MaxResults Uses

func (c *DatasetsListCall) MaxResults(maxResults int64) *DatasetsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of results to return

func (*DatasetsListCall) PageToken Uses

func (c *DatasetsListCall) PageToken(pageToken string) *DatasetsListCall

PageToken sets the optional parameter "pageToken": Page token, returned by a previous call, to request the next page of results

func (*DatasetsListCall) Pages Uses

func (c *DatasetsListCall) Pages(ctx context.Context, f func(*DatasetList) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type DatasetsPatchCall Uses

type DatasetsPatchCall struct {
    // contains filtered or unexported fields
}

func (*DatasetsPatchCall) Context Uses

func (c *DatasetsPatchCall) Context(ctx context.Context) *DatasetsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DatasetsPatchCall) Do Uses

func (c *DatasetsPatchCall) Do(opts ...googleapi.CallOption) (*Dataset, error)

Do executes the "bigquery.datasets.patch" call. Exactly one of *Dataset or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Dataset.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DatasetsPatchCall) Fields Uses

func (c *DatasetsPatchCall) Fields(s ...googleapi.Field) *DatasetsPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DatasetsPatchCall) Header Uses

func (c *DatasetsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type DatasetsService Uses

type DatasetsService struct {
    // contains filtered or unexported fields
}

func NewDatasetsService Uses

func NewDatasetsService(s *Service) *DatasetsService

func (*DatasetsService) Delete Uses

func (r *DatasetsService) Delete(projectId string, datasetId string) *DatasetsDeleteCall

Delete: Deletes the dataset specified by the datasetId value. Before you can delete a dataset, you must delete all its tables, either manually or by specifying deleteContents. Immediately after deletion, you can create another dataset with the same name.

func (*DatasetsService) Get Uses

func (r *DatasetsService) Get(projectId string, datasetId string) *DatasetsGetCall

Get: Returns the dataset specified by datasetID.

func (*DatasetsService) Insert Uses

func (r *DatasetsService) Insert(projectId string, dataset *Dataset) *DatasetsInsertCall

Insert: Creates a new empty dataset.

func (*DatasetsService) List Uses

func (r *DatasetsService) List(projectId string) *DatasetsListCall

List: Lists all datasets in the specified project to which you have been granted the READER dataset role.

func (*DatasetsService) Patch Uses

func (r *DatasetsService) Patch(projectId string, datasetId string, dataset *Dataset) *DatasetsPatchCall

Patch: Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. This method supports patch semantics.

func (*DatasetsService) Update Uses

func (r *DatasetsService) Update(projectId string, datasetId string, dataset *Dataset) *DatasetsUpdateCall

Update: Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource.

type DatasetsUpdateCall Uses

type DatasetsUpdateCall struct {
    // contains filtered or unexported fields
}

func (*DatasetsUpdateCall) Context Uses

func (c *DatasetsUpdateCall) Context(ctx context.Context) *DatasetsUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DatasetsUpdateCall) Do Uses

func (c *DatasetsUpdateCall) Do(opts ...googleapi.CallOption) (*Dataset, error)

Do executes the "bigquery.datasets.update" call. Exactly one of *Dataset or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Dataset.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DatasetsUpdateCall) Fields Uses

func (c *DatasetsUpdateCall) Fields(s ...googleapi.Field) *DatasetsUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DatasetsUpdateCall) Header Uses

func (c *DatasetsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type EncryptionConfiguration Uses

type EncryptionConfiguration struct {
    // KmsKeyName: [Optional] Describes the Cloud KMS encryption key that
    // will be used to protect destination BigQuery table. The BigQuery
    // Service Account associated with your project requires access to this
    // encryption key.
    KmsKeyName string `json:"kmsKeyName,omitempty"`

    // ForceSendFields is a list of field names (e.g. "KmsKeyName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "KmsKeyName") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*EncryptionConfiguration) MarshalJSON Uses

func (s *EncryptionConfiguration) MarshalJSON() ([]byte, error)

type ErrorProto Uses

type ErrorProto struct {
    // DebugInfo: Debugging information. This property is internal to Google
    // and should not be used.
    DebugInfo string `json:"debugInfo,omitempty"`

    // Location: Specifies where the error occurred, if present.
    Location string `json:"location,omitempty"`

    // Message: A human-readable description of the error.
    Message string `json:"message,omitempty"`

    // Reason: A short error code that summarizes the error.
    Reason string `json:"reason,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DebugInfo") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DebugInfo") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ErrorProto) MarshalJSON Uses

func (s *ErrorProto) MarshalJSON() ([]byte, error)

type ExplainQueryStage Uses

type ExplainQueryStage struct {
    // CompletedParallelInputs: Number of parallel input segments completed.
    CompletedParallelInputs int64 `json:"completedParallelInputs,omitempty,string"`

    // ComputeMsAvg: Milliseconds the average shard spent on CPU-bound
    // tasks.
    ComputeMsAvg int64 `json:"computeMsAvg,omitempty,string"`

    // ComputeMsMax: Milliseconds the slowest shard spent on CPU-bound
    // tasks.
    ComputeMsMax int64 `json:"computeMsMax,omitempty,string"`

    // ComputeRatioAvg: Relative amount of time the average shard spent on
    // CPU-bound tasks.
    ComputeRatioAvg float64 `json:"computeRatioAvg,omitempty"`

    // ComputeRatioMax: Relative amount of time the slowest shard spent on
    // CPU-bound tasks.
    ComputeRatioMax float64 `json:"computeRatioMax,omitempty"`

    // Id: Unique ID for stage within plan.
    Id  int64 `json:"id,omitempty,string"`

    // Name: Human-readable name for stage.
    Name string `json:"name,omitempty"`

    // ParallelInputs: Number of parallel input segments to be processed.
    ParallelInputs int64 `json:"parallelInputs,omitempty,string"`

    // ReadMsAvg: Milliseconds the average shard spent reading input.
    ReadMsAvg int64 `json:"readMsAvg,omitempty,string"`

    // ReadMsMax: Milliseconds the slowest shard spent reading input.
    ReadMsMax int64 `json:"readMsMax,omitempty,string"`

    // ReadRatioAvg: Relative amount of time the average shard spent reading
    // input.
    ReadRatioAvg float64 `json:"readRatioAvg,omitempty"`

    // ReadRatioMax: Relative amount of time the slowest shard spent reading
    // input.
    ReadRatioMax float64 `json:"readRatioMax,omitempty"`

    // RecordsRead: Number of records read into the stage.
    RecordsRead int64 `json:"recordsRead,omitempty,string"`

    // RecordsWritten: Number of records written by the stage.
    RecordsWritten int64 `json:"recordsWritten,omitempty,string"`

    // ShuffleOutputBytes: Total number of bytes written to shuffle.
    ShuffleOutputBytes int64 `json:"shuffleOutputBytes,omitempty,string"`

    // ShuffleOutputBytesSpilled: Total number of bytes written to shuffle
    // and spilled to disk.
    ShuffleOutputBytesSpilled int64 `json:"shuffleOutputBytesSpilled,omitempty,string"`

    // Status: Current status for the stage.
    Status string `json:"status,omitempty"`

    // Steps: List of operations within the stage in dependency order
    // (approximately chronological).
    Steps []*ExplainQueryStep `json:"steps,omitempty"`

    // WaitMsAvg: Milliseconds the average shard spent waiting to be
    // scheduled.
    WaitMsAvg int64 `json:"waitMsAvg,omitempty,string"`

    // WaitMsMax: Milliseconds the slowest shard spent waiting to be
    // scheduled.
    WaitMsMax int64 `json:"waitMsMax,omitempty,string"`

    // WaitRatioAvg: Relative amount of time the average shard spent waiting
    // to be scheduled.
    WaitRatioAvg float64 `json:"waitRatioAvg,omitempty"`

    // WaitRatioMax: Relative amount of time the slowest shard spent waiting
    // to be scheduled.
    WaitRatioMax float64 `json:"waitRatioMax,omitempty"`

    // WriteMsAvg: Milliseconds the average shard spent on writing output.
    WriteMsAvg int64 `json:"writeMsAvg,omitempty,string"`

    // WriteMsMax: Milliseconds the slowest shard spent on writing output.
    WriteMsMax int64 `json:"writeMsMax,omitempty,string"`

    // WriteRatioAvg: Relative amount of time the average shard spent on
    // writing output.
    WriteRatioAvg float64 `json:"writeRatioAvg,omitempty"`

    // WriteRatioMax: Relative amount of time the slowest shard spent on
    // writing output.
    WriteRatioMax float64 `json:"writeRatioMax,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "CompletedParallelInputs") to unconditionally include in API
    // requests. By default, fields with empty values are omitted from API
    // requests. However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CompletedParallelInputs")
    // to include in API requests with the JSON null value. By default,
    // fields with empty values are omitted from API requests. However, any
    // field with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*ExplainQueryStage) MarshalJSON Uses

func (s *ExplainQueryStage) MarshalJSON() ([]byte, error)

func (*ExplainQueryStage) UnmarshalJSON Uses

func (s *ExplainQueryStage) UnmarshalJSON(data []byte) error

type ExplainQueryStep Uses

type ExplainQueryStep struct {
    // Kind: Machine-readable operation type.
    Kind string `json:"kind,omitempty"`

    // Substeps: Human-readable stage descriptions.
    Substeps []string `json:"substeps,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Kind") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ExplainQueryStep) MarshalJSON Uses

func (s *ExplainQueryStep) MarshalJSON() ([]byte, error)

type ExternalDataConfiguration Uses

type ExternalDataConfiguration struct {
    // Autodetect: Try to detect schema and format options automatically.
    // Any option specified explicitly will be honored.
    Autodetect bool `json:"autodetect,omitempty"`

    // BigtableOptions: [Optional] Additional options if sourceFormat is set
    // to BIGTABLE.
    BigtableOptions *BigtableOptions `json:"bigtableOptions,omitempty"`

    // Compression: [Optional] The compression type of the data source.
    // Possible values include GZIP and NONE. The default value is NONE.
    // This setting is ignored for Google Cloud Bigtable, Google Cloud
    // Datastore backups and Avro formats.
    Compression string `json:"compression,omitempty"`

    // CsvOptions: Additional properties to set if sourceFormat is set to
    // CSV.
    CsvOptions *CsvOptions `json:"csvOptions,omitempty"`

    // GoogleSheetsOptions: [Optional] Additional options if sourceFormat is
    // set to GOOGLE_SHEETS.
    GoogleSheetsOptions *GoogleSheetsOptions `json:"googleSheetsOptions,omitempty"`

    // IgnoreUnknownValues: [Optional] Indicates if BigQuery should allow
    // extra values that are not represented in the table schema. If true,
    // the extra values are ignored. If false, records with extra columns
    // are treated as bad records, and if there are too many bad records, an
    // invalid error is returned in the job result. The default value is
    // false. The sourceFormat property determines what BigQuery treats as
    // an extra value: CSV: Trailing columns JSON: Named values that don't
    // match any column names Google Cloud Bigtable: This setting is
    // ignored. Google Cloud Datastore backups: This setting is ignored.
    // Avro: This setting is ignored.
    IgnoreUnknownValues bool `json:"ignoreUnknownValues,omitempty"`

    // MaxBadRecords: [Optional] The maximum number of bad records that
    // BigQuery can ignore when reading data. If the number of bad records
    // exceeds this value, an invalid error is returned in the job result.
    // The default value is 0, which requires that all records are valid.
    // This setting is ignored for Google Cloud Bigtable, Google Cloud
    // Datastore backups and Avro formats.
    MaxBadRecords int64 `json:"maxBadRecords,omitempty"`

    // Schema: [Optional] The schema for the data. Schema is required for
    // CSV and JSON formats. Schema is disallowed for Google Cloud Bigtable,
    // Cloud Datastore backups, and Avro formats.
    Schema *TableSchema `json:"schema,omitempty"`

    // SourceFormat: [Required] The data format. For CSV files, specify
    // "CSV". For Google sheets, specify "GOOGLE_SHEETS". For
    // newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro
    // files, specify "AVRO". For Google Cloud Datastore backups, specify
    // "DATASTORE_BACKUP". [Beta] For Google Cloud Bigtable, specify
    // "BIGTABLE".
    SourceFormat string `json:"sourceFormat,omitempty"`

    // SourceUris: [Required] The fully-qualified URIs that point to your
    // data in Google Cloud. For Google Cloud Storage URIs: Each URI can
    // contain one '*' wildcard character and it must come after the
    // 'bucket' name. Size limits related to load jobs apply to external
    // data sources. For Google Cloud Bigtable URIs: Exactly one URI can be
    // specified and it has be a fully specified and valid HTTPS URL for a
    // Google Cloud Bigtable table. For Google Cloud Datastore backups,
    // exactly one URI can be specified. Also, the '*' wildcard character is
    // not allowed.
    SourceUris []string `json:"sourceUris,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Autodetect") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Autodetect") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ExternalDataConfiguration) MarshalJSON Uses

func (s *ExternalDataConfiguration) MarshalJSON() ([]byte, error)

type GetQueryResultsResponse Uses

type GetQueryResultsResponse struct {
    // CacheHit: Whether the query result was fetched from the query cache.
    CacheHit bool `json:"cacheHit,omitempty"`

    // Errors: [Output-only] The first errors or warnings encountered during
    // the running of the job. The final message includes the number of
    // errors that caused the process to stop. Errors here do not
    // necessarily mean that the job has completed or was unsuccessful.
    Errors []*ErrorProto `json:"errors,omitempty"`

    // Etag: A hash of this response.
    Etag string `json:"etag,omitempty"`

    // JobComplete: Whether the query has completed or not. If rows or
    // totalRows are present, this will always be true. If this is false,
    // totalRows will not be available.
    JobComplete bool `json:"jobComplete,omitempty"`

    // JobReference: Reference to the BigQuery Job that was created to run
    // the query. This field will be present even if the original request
    // timed out, in which case GetQueryResults can be used to read the
    // results once the query has completed. Since this API only returns the
    // first page of results, subsequent pages can be fetched via the same
    // mechanism (GetQueryResults).
    JobReference *JobReference `json:"jobReference,omitempty"`

    // Kind: The resource type of the response.
    Kind string `json:"kind,omitempty"`

    // NumDmlAffectedRows: [Output-only] The number of rows affected by a
    // DML statement. Present only for DML statements INSERT, UPDATE or
    // DELETE.
    NumDmlAffectedRows int64 `json:"numDmlAffectedRows,omitempty,string"`

    // PageToken: A token used for paging results.
    PageToken string `json:"pageToken,omitempty"`

    // Rows: An object with as many results as can be contained within the
    // maximum permitted reply size. To get any additional rows, you can
    // call GetQueryResults and specify the jobReference returned above.
    // Present only when the query completes successfully.
    Rows []*TableRow `json:"rows,omitempty"`

    // Schema: The schema of the results. Present only when the query
    // completes successfully.
    Schema *TableSchema `json:"schema,omitempty"`

    // TotalBytesProcessed: The total number of bytes processed for this
    // query.
    TotalBytesProcessed int64 `json:"totalBytesProcessed,omitempty,string"`

    // TotalRows: The total number of rows in the complete query result set,
    // which can be more than the number of rows in this single page of
    // results. Present only when the query completes successfully.
    TotalRows uint64 `json:"totalRows,omitempty,string"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "CacheHit") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CacheHit") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*GetQueryResultsResponse) MarshalJSON Uses

func (s *GetQueryResultsResponse) MarshalJSON() ([]byte, error)

type GetServiceAccountResponse Uses

type GetServiceAccountResponse struct {
    // Email: The service account email address.
    Email string `json:"email,omitempty"`

    // Kind: The resource type of the response.
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Email") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Email") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*GetServiceAccountResponse) MarshalJSON Uses

func (s *GetServiceAccountResponse) MarshalJSON() ([]byte, error)

type GoogleSheetsOptions Uses

type GoogleSheetsOptions struct {
    // SkipLeadingRows: [Optional] The number of rows at the top of a sheet
    // that BigQuery will skip when reading the data. The default value is
    // 0. This property is useful if you have header rows that should be
    // skipped. When autodetect is on, behavior is the following: *
    // skipLeadingRows unspecified - Autodetect tries to detect headers in
    // the first row. If they are not detected, the row is read as data.
    // Otherwise data is read starting from the second row. *
    // skipLeadingRows is 0 - Instructs autodetect that there are no headers
    // and data should be read starting from the first row. *
    // skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to
    // detect headers in row N. If headers are not detected, row N is just
    // skipped. Otherwise row N is used to extract column names for the
    // detected schema.
    SkipLeadingRows int64 `json:"skipLeadingRows,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "SkipLeadingRows") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "SkipLeadingRows") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*GoogleSheetsOptions) MarshalJSON Uses

func (s *GoogleSheetsOptions) MarshalJSON() ([]byte, error)

type Job Uses

type Job struct {
    // Configuration: [Required] Describes the job configuration.
    Configuration *JobConfiguration `json:"configuration,omitempty"`

    // Etag: [Output-only] A hash of this resource.
    Etag string `json:"etag,omitempty"`

    // Id: [Output-only] Opaque ID field of the job
    Id  string `json:"id,omitempty"`

    // JobReference: [Optional] Reference describing the unique-per-user
    // name of the job.
    JobReference *JobReference `json:"jobReference,omitempty"`

    // Kind: [Output-only] The type of the resource.
    Kind string `json:"kind,omitempty"`

    // SelfLink: [Output-only] A URL that can be used to access this
    // resource again.
    SelfLink string `json:"selfLink,omitempty"`

    // Statistics: [Output-only] Information about the job, including
    // starting time and ending time of the job.
    Statistics *JobStatistics `json:"statistics,omitempty"`

    // Status: [Output-only] The status of this job. Examine this value when
    // polling an asynchronous job to see if the job is complete.
    Status *JobStatus `json:"status,omitempty"`

    // UserEmail: [Output-only] Email address of the user who ran the job.
    UserEmail string `json:"user_email,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Configuration") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Configuration") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*Job) MarshalJSON Uses

func (s *Job) MarshalJSON() ([]byte, error)

type JobCancelResponse Uses

type JobCancelResponse struct {
    // Job: The final state of the job.
    Job *Job `json:"job,omitempty"`

    // Kind: The resource type of the response.
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Job") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Job") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*JobCancelResponse) MarshalJSON Uses

func (s *JobCancelResponse) MarshalJSON() ([]byte, error)

type JobConfiguration Uses

type JobConfiguration struct {
    // Copy: [Pick one] Copies a table.
    Copy *JobConfigurationTableCopy `json:"copy,omitempty"`

    // DryRun: [Optional] If set, don't actually run this job. A valid query
    // will return a mostly empty response with some processing statistics,
    // while an invalid query will return the same error it would if it
    // wasn't a dry run. Behavior of non-query jobs is undefined.
    DryRun bool `json:"dryRun,omitempty"`

    // Extract: [Pick one] Configures an extract job.
    Extract *JobConfigurationExtract `json:"extract,omitempty"`

    // Labels: [Experimental] The labels associated with this job. You can
    // use these to organize and group your jobs. Label keys and values can
    // be no longer than 63 characters, can only contain lowercase letters,
    // numeric characters, underscores and dashes. International characters
    // are allowed. Label values are optional. Label keys must start with a
    // letter and each label in the list must have a different key.
    Labels map[string]string `json:"labels,omitempty"`

    // Load: [Pick one] Configures a load job.
    Load *JobConfigurationLoad `json:"load,omitempty"`

    // Query: [Pick one] Configures a query job.
    Query *JobConfigurationQuery `json:"query,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Copy") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Copy") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*JobConfiguration) MarshalJSON Uses

func (s *JobConfiguration) MarshalJSON() ([]byte, error)

type JobConfigurationExtract Uses

type JobConfigurationExtract struct {
    // Compression: [Optional] The compression type to use for exported
    // files. Possible values include GZIP and NONE. The default value is
    // NONE.
    Compression string `json:"compression,omitempty"`

    // DestinationFormat: [Optional] The exported file format. Possible
    // values include CSV, NEWLINE_DELIMITED_JSON and AVRO. The default
    // value is CSV. Tables with nested or repeated fields cannot be
    // exported as CSV.
    DestinationFormat string `json:"destinationFormat,omitempty"`

    // DestinationUri: [Pick one] DEPRECATED: Use destinationUris instead,
    // passing only one URI as necessary. The fully-qualified Google Cloud
    // Storage URI where the extracted table should be written.
    DestinationUri string `json:"destinationUri,omitempty"`

    // DestinationUris: [Pick one] A list of fully-qualified Google Cloud
    // Storage URIs where the extracted table should be written.
    DestinationUris []string `json:"destinationUris,omitempty"`

    // FieldDelimiter: [Optional] Delimiter to use between fields in the
    // exported data. Default is ','
    FieldDelimiter string `json:"fieldDelimiter,omitempty"`

    // PrintHeader: [Optional] Whether to print out a header row in the
    // results. Default is true.
    //
    // Default: true
    PrintHeader *bool `json:"printHeader,omitempty"`

    // SourceTable: [Required] A reference to the table being exported.
    SourceTable *TableReference `json:"sourceTable,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Compression") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Compression") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*JobConfigurationExtract) MarshalJSON Uses

func (s *JobConfigurationExtract) MarshalJSON() ([]byte, error)

type JobConfigurationLoad Uses

type JobConfigurationLoad struct {
    // AllowJaggedRows: [Optional] Accept rows that are missing trailing
    // optional columns. The missing values are treated as nulls. If false,
    // records with missing trailing columns are treated as bad records, and
    // if there are too many bad records, an invalid error is returned in
    // the job result. The default value is false. Only applicable to CSV,
    // ignored for other formats.
    AllowJaggedRows bool `json:"allowJaggedRows,omitempty"`

    // AllowQuotedNewlines: Indicates if BigQuery should allow quoted data
    // sections that contain newline characters in a CSV file. The default
    // value is false.
    AllowQuotedNewlines bool `json:"allowQuotedNewlines,omitempty"`

    // Autodetect: Indicates if we should automatically infer the options
    // and schema for CSV and JSON sources.
    Autodetect bool `json:"autodetect,omitempty"`

    // CreateDisposition: [Optional] Specifies whether the job is allowed to
    // create new tables. The following values are supported:
    // CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the
    // table. CREATE_NEVER: The table must already exist. If it does not, a
    // 'notFound' error is returned in the job result. The default value is
    // CREATE_IF_NEEDED. Creation, truncation and append actions occur as
    // one atomic update upon job completion.
    CreateDisposition string `json:"createDisposition,omitempty"`

    // DestinationEncryptionConfiguration: [Experimental] Custom encryption
    // configuration (e.g., Cloud KMS keys).
    DestinationEncryptionConfiguration *EncryptionConfiguration `json:"destinationEncryptionConfiguration,omitempty"`

    // DestinationTable: [Required] The destination table to load the data
    // into.
    DestinationTable *TableReference `json:"destinationTable,omitempty"`

    // Encoding: [Optional] The character encoding of the data. The
    // supported values are UTF-8 or ISO-8859-1. The default value is UTF-8.
    // BigQuery decodes the data after the raw, binary data has been split
    // using the values of the quote and fieldDelimiter properties.
    Encoding string `json:"encoding,omitempty"`

    // FieldDelimiter: [Optional] The separator for fields in a CSV file.
    // The separator can be any ISO-8859-1 single-byte character. To use a
    // character in the range 128-255, you must encode the character as
    // UTF8. BigQuery converts the string to ISO-8859-1 encoding, and then
    // uses the first byte of the encoded string to split the data in its
    // raw, binary state. BigQuery also supports the escape sequence "\t" to
    // specify a tab separator. The default value is a comma (',').
    FieldDelimiter string `json:"fieldDelimiter,omitempty"`

    // IgnoreUnknownValues: [Optional] Indicates if BigQuery should allow
    // extra values that are not represented in the table schema. If true,
    // the extra values are ignored. If false, records with extra columns
    // are treated as bad records, and if there are too many bad records, an
    // invalid error is returned in the job result. The default value is
    // false. The sourceFormat property determines what BigQuery treats as
    // an extra value: CSV: Trailing columns JSON: Named values that don't
    // match any column names
    IgnoreUnknownValues bool `json:"ignoreUnknownValues,omitempty"`

    // MaxBadRecords: [Optional] The maximum number of bad records that
    // BigQuery can ignore when running the job. If the number of bad
    // records exceeds this value, an invalid error is returned in the job
    // result. The default value is 0, which requires that all records are
    // valid.
    MaxBadRecords int64 `json:"maxBadRecords,omitempty"`

    // NullMarker: [Optional] Specifies a string that represents a null
    // value in a CSV file. For example, if you specify "\N", BigQuery
    // interprets "\N" as a null value when loading a CSV file. The default
    // value is the empty string. If you set this property to a custom
    // value, BigQuery throws an error if an empty string is present for all
    // data types except for STRING and BYTE. For STRING and BYTE columns,
    // BigQuery interprets the empty string as an empty value.
    NullMarker string `json:"nullMarker,omitempty"`

    // ProjectionFields: If sourceFormat is set to "DATASTORE_BACKUP",
    // indicates which entity properties to load into BigQuery from a Cloud
    // Datastore backup. Property names are case sensitive and must be
    // top-level properties. If no properties are specified, BigQuery loads
    // all properties. If any named property isn't found in the Cloud
    // Datastore backup, an invalid error is returned in the job result.
    ProjectionFields []string `json:"projectionFields,omitempty"`

    // Quote: [Optional] The value that is used to quote data sections in a
    // CSV file. BigQuery converts the string to ISO-8859-1 encoding, and
    // then uses the first byte of the encoded string to split the data in
    // its raw, binary state. The default value is a double-quote ('"'). If
    // your data does not contain quoted sections, set the property value to
    // an empty string. If your data contains quoted newline characters, you
    // must also set the allowQuotedNewlines property to true.
    //
    // Default: "
    Quote *string `json:"quote,omitempty"`

    // Schema: [Optional] The schema for the destination table. The schema
    // can be omitted if the destination table already exists, or if you're
    // loading data from Google Cloud Datastore.
    Schema *TableSchema `json:"schema,omitempty"`

    // SchemaInline: [Deprecated] The inline schema. For CSV schemas,
    // specify as "Field1:Type1[,Field2:Type2]*". For example, "foo:STRING,
    // bar:INTEGER, baz:FLOAT".
    SchemaInline string `json:"schemaInline,omitempty"`

    // SchemaInlineFormat: [Deprecated] The format of the schemaInline
    // property.
    SchemaInlineFormat string `json:"schemaInlineFormat,omitempty"`

    // SchemaUpdateOptions: Allows the schema of the destination table to be
    // updated as a side effect of the load job if a schema is autodetected
    // or supplied in the job configuration. Schema update options are
    // supported in two cases: when writeDisposition is WRITE_APPEND; when
    // writeDisposition is WRITE_TRUNCATE and the destination table is a
    // partition of a table, specified by partition decorators. For normal
    // tables, WRITE_TRUNCATE will always overwrite the schema. One or more
    // of the following values are specified: ALLOW_FIELD_ADDITION: allow
    // adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow
    // relaxing a required field in the original schema to nullable.
    SchemaUpdateOptions []string `json:"schemaUpdateOptions,omitempty"`

    // SkipLeadingRows: [Optional] The number of rows at the top of a CSV
    // file that BigQuery will skip when loading the data. The default value
    // is 0. This property is useful if you have header rows in the file
    // that should be skipped.
    SkipLeadingRows int64 `json:"skipLeadingRows,omitempty"`

    // SourceFormat: [Optional] The format of the data files. For CSV files,
    // specify "CSV". For datastore backups, specify "DATASTORE_BACKUP". For
    // newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro,
    // specify "AVRO". The default value is CSV.
    SourceFormat string `json:"sourceFormat,omitempty"`

    // SourceUris: [Required] The fully-qualified URIs that point to your
    // data in Google Cloud. For Google Cloud Storage URIs: Each URI can
    // contain one '*' wildcard character and it must come after the
    // 'bucket' name. Size limits related to load jobs apply to external
    // data sources. For Google Cloud Bigtable URIs: Exactly one URI can be
    // specified and it has be a fully specified and valid HTTPS URL for a
    // Google Cloud Bigtable table. For Google Cloud Datastore backups:
    // Exactly one URI can be specified. Also, the '*' wildcard character is
    // not allowed.
    SourceUris []string `json:"sourceUris,omitempty"`

    // TimePartitioning: If specified, configures time-based partitioning
    // for the destination table.
    TimePartitioning *TimePartitioning `json:"timePartitioning,omitempty"`

    // WriteDisposition: [Optional] Specifies the action that occurs if the
    // destination table already exists. The following values are supported:
    // WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the
    // table data. WRITE_APPEND: If the table already exists, BigQuery
    // appends the data to the table. WRITE_EMPTY: If the table already
    // exists and contains data, a 'duplicate' error is returned in the job
    // result. The default value is WRITE_APPEND. Each action is atomic and
    // only occurs if BigQuery is able to complete the job successfully.
    // Creation, truncation and append actions occur as one atomic update
    // upon job completion.
    WriteDisposition string `json:"writeDisposition,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AllowJaggedRows") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AllowJaggedRows") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*JobConfigurationLoad) MarshalJSON Uses

func (s *JobConfigurationLoad) MarshalJSON() ([]byte, error)

type JobConfigurationQuery Uses

type JobConfigurationQuery struct {
    // AllowLargeResults: [Optional] If true and query uses legacy SQL
    // dialect, allows the query to produce arbitrarily large result tables
    // at a slight cost in performance. Requires destinationTable to be set.
    // For standard SQL queries, this flag is ignored and large results are
    // always allowed. However, you must still set destinationTable when
    // result size exceeds the allowed maximum response size.
    AllowLargeResults bool `json:"allowLargeResults,omitempty"`

    // CreateDisposition: [Optional] Specifies whether the job is allowed to
    // create new tables. The following values are supported:
    // CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the
    // table. CREATE_NEVER: The table must already exist. If it does not, a
    // 'notFound' error is returned in the job result. The default value is
    // CREATE_IF_NEEDED. Creation, truncation and append actions occur as
    // one atomic update upon job completion.
    CreateDisposition string `json:"createDisposition,omitempty"`

    // DefaultDataset: [Optional] Specifies the default dataset to use for
    // unqualified table names in the query.
    DefaultDataset *DatasetReference `json:"defaultDataset,omitempty"`

    // DestinationEncryptionConfiguration: [Experimental] Custom encryption
    // configuration (e.g., Cloud KMS keys).
    DestinationEncryptionConfiguration *EncryptionConfiguration `json:"destinationEncryptionConfiguration,omitempty"`

    // DestinationTable: [Optional] Describes the table where the query
    // results should be stored. If not present, a new table will be created
    // to store the results. This property must be set for large results
    // that exceed the maximum response size.
    DestinationTable *TableReference `json:"destinationTable,omitempty"`

    // FlattenResults: [Optional] If true and query uses legacy SQL dialect,
    // flattens all nested and repeated fields in the query results.
    // allowLargeResults must be true if this is set to false. For standard
    // SQL queries, this flag is ignored and results are never flattened.
    //
    // Default: true
    FlattenResults *bool `json:"flattenResults,omitempty"`

    // MaximumBillingTier: [Optional] Limits the billing tier for this job.
    // Queries that have resource usage beyond this tier will fail (without
    // incurring a charge). If unspecified, this will be set to your project
    // default.
    //
    // Default: 1
    MaximumBillingTier *int64 `json:"maximumBillingTier,omitempty"`

    // MaximumBytesBilled: [Optional] Limits the bytes billed for this job.
    // Queries that will have bytes billed beyond this limit will fail
    // (without incurring a charge). If unspecified, this will be set to
    // your project default.
    MaximumBytesBilled int64 `json:"maximumBytesBilled,omitempty,string"`

    // ParameterMode: Standard SQL only. Set to POSITIONAL to use positional
    // (?) query parameters or to NAMED to use named (@myparam) query
    // parameters in this query.
    ParameterMode string `json:"parameterMode,omitempty"`

    // PreserveNulls: [Deprecated] This property is deprecated.
    PreserveNulls bool `json:"preserveNulls,omitempty"`

    // Priority: [Optional] Specifies a priority for the query. Possible
    // values include INTERACTIVE and BATCH. The default value is
    // INTERACTIVE.
    Priority string `json:"priority,omitempty"`

    // Query: [Required] SQL query text to execute. The useLegacySql field
    // can be used to indicate whether the query uses legacy SQL or standard
    // SQL.
    Query string `json:"query,omitempty"`

    // QueryParameters: Query parameters for standard SQL queries.
    QueryParameters []*QueryParameter `json:"queryParameters,omitempty"`

    // SchemaUpdateOptions: Allows the schema of the destination table to be
    // updated as a side effect of the query job. Schema update options are
    // supported in two cases: when writeDisposition is WRITE_APPEND; when
    // writeDisposition is WRITE_TRUNCATE and the destination table is a
    // partition of a table, specified by partition decorators. For normal
    // tables, WRITE_TRUNCATE will always overwrite the schema. One or more
    // of the following values are specified: ALLOW_FIELD_ADDITION: allow
    // adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow
    // relaxing a required field in the original schema to nullable.
    SchemaUpdateOptions []string `json:"schemaUpdateOptions,omitempty"`

    // TableDefinitions: [Optional] If querying an external data source
    // outside of BigQuery, describes the data format, location and other
    // properties of the data source. By defining these properties, the data
    // source can then be queried as if it were a standard BigQuery table.
    TableDefinitions map[string]ExternalDataConfiguration `json:"tableDefinitions,omitempty"`

    // TimePartitioning: If specified, configures time-based partitioning
    // for the destination table.
    TimePartitioning *TimePartitioning `json:"timePartitioning,omitempty"`

    // UseLegacySql: Specifies whether to use BigQuery's legacy SQL dialect
    // for this query. The default value is true. If set to false, the query
    // will use BigQuery's standard SQL:
    // https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is
    // set to false, the value of flattenResults is ignored; query will be
    // run as if flattenResults is false.
    UseLegacySql bool `json:"useLegacySql,omitempty"`

    // UseQueryCache: [Optional] Whether to look for the result in the query
    // cache. The query cache is a best-effort cache that will be flushed
    // whenever tables in the query are modified. Moreover, the query cache
    // is only available when a query does not have a destination table
    // specified. The default value is true.
    //
    // Default: true
    UseQueryCache *bool `json:"useQueryCache,omitempty"`

    // UserDefinedFunctionResources: Describes user-defined function
    // resources used in the query.
    UserDefinedFunctionResources []*UserDefinedFunctionResource `json:"userDefinedFunctionResources,omitempty"`

    // WriteDisposition: [Optional] Specifies the action that occurs if the
    // destination table already exists. The following values are supported:
    // WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the
    // table data and uses the schema from the query result. WRITE_APPEND:
    // If the table already exists, BigQuery appends the data to the table.
    // WRITE_EMPTY: If the table already exists and contains data, a
    // 'duplicate' error is returned in the job result. The default value is
    // WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is
    // able to complete the job successfully. Creation, truncation and
    // append actions occur as one atomic update upon job completion.
    WriteDisposition string `json:"writeDisposition,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AllowLargeResults")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AllowLargeResults") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*JobConfigurationQuery) MarshalJSON Uses

func (s *JobConfigurationQuery) MarshalJSON() ([]byte, error)

type JobConfigurationTableCopy Uses

type JobConfigurationTableCopy struct {
    // CreateDisposition: [Optional] Specifies whether the job is allowed to
    // create new tables. The following values are supported:
    // CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the
    // table. CREATE_NEVER: The table must already exist. If it does not, a
    // 'notFound' error is returned in the job result. The default value is
    // CREATE_IF_NEEDED. Creation, truncation and append actions occur as
    // one atomic update upon job completion.
    CreateDisposition string `json:"createDisposition,omitempty"`

    // DestinationEncryptionConfiguration: [Experimental] Custom encryption
    // configuration (e.g., Cloud KMS keys).
    DestinationEncryptionConfiguration *EncryptionConfiguration `json:"destinationEncryptionConfiguration,omitempty"`

    // DestinationTable: [Required] The destination table
    DestinationTable *TableReference `json:"destinationTable,omitempty"`

    // SourceTable: [Pick one] Source table to copy.
    SourceTable *TableReference `json:"sourceTable,omitempty"`

    // SourceTables: [Pick one] Source tables to copy.
    SourceTables []*TableReference `json:"sourceTables,omitempty"`

    // WriteDisposition: [Optional] Specifies the action that occurs if the
    // destination table already exists. The following values are supported:
    // WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the
    // table data. WRITE_APPEND: If the table already exists, BigQuery
    // appends the data to the table. WRITE_EMPTY: If the table already
    // exists and contains data, a 'duplicate' error is returned in the job
    // result. The default value is WRITE_EMPTY. Each action is atomic and
    // only occurs if BigQuery is able to complete the job successfully.
    // Creation, truncation and append actions occur as one atomic update
    // upon job completion.
    WriteDisposition string `json:"writeDisposition,omitempty"`

    // ForceSendFields is a list of field names (e.g. "CreateDisposition")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CreateDisposition") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*JobConfigurationTableCopy) MarshalJSON Uses

func (s *JobConfigurationTableCopy) MarshalJSON() ([]byte, error)

type JobList Uses

type JobList struct {
    // Etag: A hash of this page of results.
    Etag string `json:"etag,omitempty"`

    // Jobs: List of jobs that were requested.
    Jobs []*JobListJobs `json:"jobs,omitempty"`

    // Kind: The resource type of the response.
    Kind string `json:"kind,omitempty"`

    // NextPageToken: A token to request the next page of results.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Etag") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Etag") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*JobList) MarshalJSON Uses

func (s *JobList) MarshalJSON() ([]byte, error)

type JobListJobs Uses

type JobListJobs struct {
    // Configuration: [Full-projection-only] Specifies the job
    // configuration.
    Configuration *JobConfiguration `json:"configuration,omitempty"`

    // ErrorResult: A result object that will be present only if the job has
    // failed.
    ErrorResult *ErrorProto `json:"errorResult,omitempty"`

    // Id: Unique opaque ID of the job.
    Id  string `json:"id,omitempty"`

    // JobReference: Job reference uniquely identifying the job.
    JobReference *JobReference `json:"jobReference,omitempty"`

    // Kind: The resource type.
    Kind string `json:"kind,omitempty"`

    // State: Running state of the job. When the state is DONE, errorResult
    // can be checked to determine whether the job succeeded or failed.
    State string `json:"state,omitempty"`

    // Statistics: [Output-only] Information about the job, including
    // starting time and ending time of the job.
    Statistics *JobStatistics `json:"statistics,omitempty"`

    // Status: [Full-projection-only] Describes the state of the job.
    Status *JobStatus `json:"status,omitempty"`

    // UserEmail: [Full-projection-only] Email address of the user who ran
    // the job.
    UserEmail string `json:"user_email,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Configuration") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Configuration") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*JobListJobs) MarshalJSON Uses

func (s *JobListJobs) MarshalJSON() ([]byte, error)

type JobReference Uses

type JobReference struct {
    // JobId: [Required] The ID of the job. The ID must contain only letters
    // (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). The
    // maximum length is 1,024 characters.
    JobId string `json:"jobId,omitempty"`

    // ProjectId: [Required] The ID of the project containing this job.
    ProjectId string `json:"projectId,omitempty"`

    // ForceSendFields is a list of field names (e.g. "JobId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "JobId") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*JobReference) MarshalJSON Uses

func (s *JobReference) MarshalJSON() ([]byte, error)

type JobStatistics Uses

type JobStatistics struct {
    // CreationTime: [Output-only] Creation time of this job, in
    // milliseconds since the epoch. This field will be present on all jobs.
    CreationTime int64 `json:"creationTime,omitempty,string"`

    // EndTime: [Output-only] End time of this job, in milliseconds since
    // the epoch. This field will be present whenever a job is in the DONE
    // state.
    EndTime int64 `json:"endTime,omitempty,string"`

    // Extract: [Output-only] Statistics for an extract job.
    Extract *JobStatistics4 `json:"extract,omitempty"`

    // Load: [Output-only] Statistics for a load job.
    Load *JobStatistics3 `json:"load,omitempty"`

    // Query: [Output-only] Statistics for a query job.
    Query *JobStatistics2 `json:"query,omitempty"`

    // StartTime: [Output-only] Start time of this job, in milliseconds
    // since the epoch. This field will be present when the job transitions
    // from the PENDING state to either RUNNING or DONE.
    StartTime int64 `json:"startTime,omitempty,string"`

    // TotalBytesProcessed: [Output-only] [Deprecated] Use the bytes
    // processed in the query statistics instead.
    TotalBytesProcessed int64 `json:"totalBytesProcessed,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "CreationTime") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CreationTime") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*JobStatistics) MarshalJSON Uses

func (s *JobStatistics) MarshalJSON() ([]byte, error)

type JobStatistics2 Uses

type JobStatistics2 struct {
    // BillingTier: [Output-only] Billing tier for the job.
    BillingTier int64 `json:"billingTier,omitempty"`

    // CacheHit: [Output-only] Whether the query result was fetched from the
    // query cache.
    CacheHit bool `json:"cacheHit,omitempty"`

    // DdlOperationPerformed: [Output-only, Experimental] The DDL operation
    // performed, possibly dependent on the pre-existence of the DDL target.
    // Possible values (new values might be added in the future): "CREATE":
    // The query created the DDL target. "SKIP": No-op. Example cases: the
    // query is CREATE TABLE IF NOT EXISTS while the table already exists,
    // or the query is DROP TABLE IF EXISTS while the table does not exist.
    // "REPLACE": The query replaced the DDL target. Example case: the query
    // is CREATE OR REPLACE TABLE, and the table already exists. "DROP": The
    // query deleted the DDL target.
    DdlOperationPerformed string `json:"ddlOperationPerformed,omitempty"`

    // DdlTargetTable: [Output-only, Experimental] The DDL target table.
    // Present only for CREATE/DROP TABLE/VIEW queries.
    DdlTargetTable *TableReference `json:"ddlTargetTable,omitempty"`

    // EstimatedBytesProcessed: [Output-only] The original estimate of bytes
    // processed for the job.
    EstimatedBytesProcessed int64 `json:"estimatedBytesProcessed,omitempty,string"`

    // NumDmlAffectedRows: [Output-only] The number of rows affected by a
    // DML statement. Present only for DML statements INSERT, UPDATE or
    // DELETE.
    NumDmlAffectedRows int64 `json:"numDmlAffectedRows,omitempty,string"`

    // QueryPlan: [Output-only] Describes execution plan for the query.
    QueryPlan []*ExplainQueryStage `json:"queryPlan,omitempty"`

    // ReferencedTables: [Output-only, Experimental] Referenced tables for
    // the job. Queries that reference more than 50 tables will not have a
    // complete list.
    ReferencedTables []*TableReference `json:"referencedTables,omitempty"`

    // Schema: [Output-only, Experimental] The schema of the results.
    // Present only for successful dry run of non-legacy SQL queries.
    Schema *TableSchema `json:"schema,omitempty"`

    // StatementType: [Output-only, Experimental] The type of query
    // statement, if valid. Possible values (new values might be added in
    // the future): "SELECT": SELECT query. "INSERT": INSERT query; see
    // https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language "UPDATE": UPDATE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language "DELETE": DELETE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation-language "CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. "CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... "DROP_TABLE": DROP TABLE query. "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS SELECT ... "DROP_VIEW": DROP VIEW
    // query.
    StatementType string `json:"statementType,omitempty"`

    // TotalBytesBilled: [Output-only] Total bytes billed for the job.
    TotalBytesBilled int64 `json:"totalBytesBilled,omitempty,string"`

    // TotalBytesProcessed: [Output-only] Total bytes processed for the job.
    TotalBytesProcessed int64 `json:"totalBytesProcessed,omitempty,string"`

    // TotalSlotMs: [Output-only] Slot-milliseconds for the job.
    TotalSlotMs int64 `json:"totalSlotMs,omitempty,string"`

    // UndeclaredQueryParameters: [Output-only, Experimental] Standard SQL
    // only: list of undeclared query parameters detected during a dry run
    // validation.
    UndeclaredQueryParameters []*QueryParameter `json:"undeclaredQueryParameters,omitempty"`

    // ForceSendFields is a list of field names (e.g. "BillingTier") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BillingTier") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*JobStatistics2) MarshalJSON Uses

func (s *JobStatistics2) MarshalJSON() ([]byte, error)

type JobStatistics3 Uses

type JobStatistics3 struct {
    // BadRecords: [Output-only] The number of bad records encountered. Note
    // that if the job has failed because of more bad records encountered
    // than the maximum allowed in the load job configuration, then this
    // number can be less than the total number of bad records present in
    // the input data.
    BadRecords int64 `json:"badRecords,omitempty,string"`

    // InputFileBytes: [Output-only] Number of bytes of source data in a
    // load job.
    InputFileBytes int64 `json:"inputFileBytes,omitempty,string"`

    // InputFiles: [Output-only] Number of source files in a load job.
    InputFiles int64 `json:"inputFiles,omitempty,string"`

    // OutputBytes: [Output-only] Size of the loaded data in bytes. Note
    // that while a load job is in the running state, this value may change.
    OutputBytes int64 `json:"outputBytes,omitempty,string"`

    // OutputRows: [Output-only] Number of rows imported in a load job. Note
    // that while an import job is in the running state, this value may
    // change.
    OutputRows int64 `json:"outputRows,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "BadRecords") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BadRecords") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*JobStatistics3) MarshalJSON Uses

func (s *JobStatistics3) MarshalJSON() ([]byte, error)

type JobStatistics4 Uses

type JobStatistics4 struct {
    // DestinationUriFileCounts: [Output-only] Number of files per
    // destination URI or URI pattern specified in the extract
    // configuration. These values will be in the same order as the URIs
    // specified in the 'destinationUris' field.
    DestinationUriFileCounts googleapi.Int64s `json:"destinationUriFileCounts,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "DestinationUriFileCounts") to unconditionally include in API
    // requests. By default, fields with empty values are omitted from API
    // requests. However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DestinationUriFileCounts")
    // to include in API requests with the JSON null value. By default,
    // fields with empty values are omitted from API requests. However, any
    // field with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*JobStatistics4) MarshalJSON Uses

func (s *JobStatistics4) MarshalJSON() ([]byte, error)

type JobStatus Uses

type JobStatus struct {
    // ErrorResult: [Output-only] Final error result of the job. If present,
    // indicates that the job has completed and was unsuccessful.
    ErrorResult *ErrorProto `json:"errorResult,omitempty"`

    // Errors: [Output-only] The first errors encountered during the running
    // of the job. The final message includes the number of errors that
    // caused the process to stop. Errors here do not necessarily mean that
    // the job has completed or was unsuccessful.
    Errors []*ErrorProto `json:"errors,omitempty"`

    // State: [Output-only] Running state of the job.
    State string `json:"state,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ErrorResult") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ErrorResult") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*JobStatus) MarshalJSON Uses

func (s *JobStatus) MarshalJSON() ([]byte, error)

type JobsCancelCall Uses

type JobsCancelCall struct {
    // contains filtered or unexported fields
}

func (*JobsCancelCall) Context Uses

func (c *JobsCancelCall) Context(ctx context.Context) *JobsCancelCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*JobsCancelCall) Do Uses

func (c *JobsCancelCall) Do(opts ...googleapi.CallOption) (*JobCancelResponse, error)

Do executes the "bigquery.jobs.cancel" call. Exactly one of *JobCancelResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *JobCancelResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*JobsCancelCall) Fields Uses

func (c *JobsCancelCall) Fields(s ...googleapi.Field) *JobsCancelCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*JobsCancelCall) Header Uses

func (c *JobsCancelCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type JobsGetCall Uses

type JobsGetCall struct {
    // contains filtered or unexported fields
}

func (*JobsGetCall) Context Uses

func (c *JobsGetCall) Context(ctx context.Context) *JobsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*JobsGetCall) Do Uses

func (c *JobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error)

Do executes the "bigquery.jobs.get" call. Exactly one of *Job or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Job.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*JobsGetCall) Fields Uses

func (c *JobsGetCall) Fields(s ...googleapi.Field) *JobsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*JobsGetCall) Header Uses

func (c *JobsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*JobsGetCall) IfNoneMatch Uses

func (c *JobsGetCall) IfNoneMatch(entityTag string) *JobsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type JobsGetQueryResultsCall Uses

type JobsGetQueryResultsCall struct {
    // contains filtered or unexported fields
}

func (*JobsGetQueryResultsCall) Context Uses

func (c *JobsGetQueryResultsCall) Context(ctx context.Context) *JobsGetQueryResultsCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*JobsGetQueryResultsCall) Do Uses

func (c *JobsGetQueryResultsCall) Do(opts ...googleapi.CallOption) (*GetQueryResultsResponse, error)

Do executes the "bigquery.jobs.getQueryResults" call. Exactly one of *GetQueryResultsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GetQueryResultsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*JobsGetQueryResultsCall) Fields Uses

func (c *JobsGetQueryResultsCall) Fields(s ...googleapi.Field) *JobsGetQueryResultsCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*JobsGetQueryResultsCall) Header Uses

func (c *JobsGetQueryResultsCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*JobsGetQueryResultsCall) IfNoneMatch Uses

func (c *JobsGetQueryResultsCall) IfNoneMatch(entityTag string) *JobsGetQueryResultsCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*JobsGetQueryResultsCall) MaxResults Uses

func (c *JobsGetQueryResultsCall) MaxResults(maxResults int64) *JobsGetQueryResultsCall

MaxResults sets the optional parameter "maxResults": Maximum number of results to read

func (*JobsGetQueryResultsCall) PageToken Uses

func (c *JobsGetQueryResultsCall) PageToken(pageToken string) *JobsGetQueryResultsCall

PageToken sets the optional parameter "pageToken": Page token, returned by a previous call, to request the next page of results

func (*JobsGetQueryResultsCall) Pages Uses

func (c *JobsGetQueryResultsCall) Pages(ctx context.Context, f func(*GetQueryResultsResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*JobsGetQueryResultsCall) StartIndex Uses

func (c *JobsGetQueryResultsCall) StartIndex(startIndex uint64) *JobsGetQueryResultsCall

StartIndex sets the optional parameter "startIndex": Zero-based index of the starting row

func (*JobsGetQueryResultsCall) TimeoutMs Uses

func (c *JobsGetQueryResultsCall) TimeoutMs(timeoutMs int64) *JobsGetQueryResultsCall

TimeoutMs sets the optional parameter "timeoutMs": How long to wait for the query to complete, in milliseconds, before returning. Default is 10 seconds. If the timeout passes before the job completes, the 'jobComplete' field in the response will be false

type JobsInsertCall Uses

type JobsInsertCall struct {
    // contains filtered or unexported fields
}

func (*JobsInsertCall) Context Uses

func (c *JobsInsertCall) Context(ctx context.Context) *JobsInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled. This context will supersede any context previously provided to the ResumableMedia method.

func (*JobsInsertCall) Do Uses

func (c *JobsInsertCall) Do(opts ...googleapi.CallOption) (*Job, error)

Do executes the "bigquery.jobs.insert" call. Exactly one of *Job or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Job.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*JobsInsertCall) Fields Uses

func (c *JobsInsertCall) Fields(s ...googleapi.Field) *JobsInsertCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*JobsInsertCall) Header Uses

func (c *JobsInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*JobsInsertCall) Media Uses

func (c *JobsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *JobsInsertCall

Media specifies the media to upload in one or more chunks. The chunk size may be controlled by supplying a MediaOption generated by googleapi.ChunkSize. The chunk size defaults to googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload request will be determined by sniffing the contents of r, unless a MediaOption generated by googleapi.ContentType is supplied. At most one of Media and ResumableMedia may be set.

func (*JobsInsertCall) ProgressUpdater Uses

func (c *JobsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *JobsInsertCall

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*JobsInsertCall) ResumableMedia Uses

func (c *JobsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *JobsInsertCall

ResumableMedia specifies the media to upload in chunks and can be canceled with ctx.

Deprecated: use Media instead.

At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.

type JobsListCall Uses

type JobsListCall struct {
    // contains filtered or unexported fields
}

func (*JobsListCall) AllUsers Uses

func (c *JobsListCall) AllUsers(allUsers bool) *JobsListCall

AllUsers sets the optional parameter "allUsers": Whether to display jobs owned by all users in the project. Default false

func (*JobsListCall) Context Uses

func (c *JobsListCall) Context(ctx context.Context) *JobsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*JobsListCall) Do Uses

func (c *JobsListCall) Do(opts ...googleapi.CallOption) (*JobList, error)

Do executes the "bigquery.jobs.list" call. Exactly one of *JobList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *JobList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*JobsListCall) Fields Uses

func (c *JobsListCall) Fields(s ...googleapi.Field) *JobsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*JobsListCall) Header Uses

func (c *JobsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*JobsListCall) IfNoneMatch Uses

func (c *JobsListCall) IfNoneMatch(entityTag string) *JobsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*JobsListCall) MaxResults Uses

func (c *JobsListCall) MaxResults(maxResults int64) *JobsListCall

MaxResults sets the optional parameter "maxResults": Maximum number of results to return

func (*JobsListCall) PageToken Uses

func (c *JobsListCall) PageToken(pageToken string) *JobsListCall

PageToken sets the optional parameter "pageToken": Page token, returned by a previous call, to request the next page of results

func (*JobsListCall) Pages Uses

func (c *JobsListCall) Pages(ctx context.Context, f func(*JobList) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*JobsListCall) Projection Uses

func (c *JobsListCall) Projection(projection string) *JobsListCall

Projection sets the optional parameter "projection": Restrict information returned to a set of selected fields

Possible values:

"full" - Includes all job data
"minimal" - Does not include the job configuration

func (*JobsListCall) StateFilter Uses

func (c *JobsListCall) StateFilter(stateFilter ...string) *JobsListCall

StateFilter sets the optional parameter "stateFilter": Filter for job state

Possible values:

"done" - Finished jobs
"pending" - Pending jobs
"running" - Running jobs

type JobsQueryCall Uses

type JobsQueryCall struct {
    // contains filtered or unexported fields
}

func (*JobsQueryCall) Context Uses

func (c *JobsQueryCall) Context(ctx context.Context) *JobsQueryCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*JobsQueryCall) Do Uses

func (c *JobsQueryCall) Do(opts ...googleapi.CallOption) (*QueryResponse, error)

Do executes the "bigquery.jobs.query" call. Exactly one of *QueryResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *QueryResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*JobsQueryCall) Fields Uses

func (c *JobsQueryCall) Fields(s ...googleapi.Field) *JobsQueryCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*JobsQueryCall) Header Uses

func (c *JobsQueryCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type JobsService Uses

type JobsService struct {
    // contains filtered or unexported fields
}

func NewJobsService Uses

func NewJobsService(s *Service) *JobsService

func (*JobsService) Cancel Uses

func (r *JobsService) Cancel(projectId string, jobId string) *JobsCancelCall

Cancel: Requests that a job be cancelled. This call will return immediately, and the client will need to poll for the job status to see if the cancel completed successfully. Cancelled jobs may still incur costs.

func (*JobsService) Get Uses

func (r *JobsService) Get(projectId string, jobId string) *JobsGetCall

Get: Returns information about a specific job. Job information is available for a six month period after creation. Requires that you're the person who ran the job, or have the Is Owner project role.

func (*JobsService) GetQueryResults Uses

func (r *JobsService) GetQueryResults(projectId string, jobId string) *JobsGetQueryResultsCall

GetQueryResults: Retrieves the results of a query job.

func (*JobsService) Insert Uses

func (r *JobsService) Insert(projectId string, job *Job) *JobsInsertCall

Insert: Starts a new asynchronous job. Requires the Can View project role.

func (*JobsService) List Uses

func (r *JobsService) List(projectId string) *JobsListCall

List: Lists all jobs that you started in the specified project. Job information is available for a six month period after creation. The job list is sorted in reverse chronological order, by job creation time. Requires the Can View project role, or the Is Owner project role if you set the allUsers property.

func (*JobsService) Query Uses

func (r *JobsService) Query(projectId string, queryrequest *QueryRequest) *JobsQueryCall

Query: Runs a BigQuery SQL query synchronously and returns query results if the query completes within a specified timeout.

type JsonValue Uses

type JsonValue interface{}

type ProjectList Uses

type ProjectList struct {
    // Etag: A hash of the page of results
    Etag string `json:"etag,omitempty"`

    // Kind: The type of list.
    Kind string `json:"kind,omitempty"`

    // NextPageToken: A token to request the next page of results.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // Projects: Projects to which you have at least READ access.
    Projects []*ProjectListProjects `json:"projects,omitempty"`

    // TotalItems: The total number of projects in the list.
    TotalItems int64 `json:"totalItems,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Etag") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Etag") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ProjectList) MarshalJSON Uses

func (s *ProjectList) MarshalJSON() ([]byte, error)

type ProjectListProjects Uses

type ProjectListProjects struct {
    // FriendlyName: A descriptive name for this project.
    FriendlyName string `json:"friendlyName,omitempty"`

    // Id: An opaque ID of this project.
    Id  string `json:"id,omitempty"`

    // Kind: The resource type.
    Kind string `json:"kind,omitempty"`

    // NumericId: The numeric ID of this project.
    NumericId uint64 `json:"numericId,omitempty,string"`

    // ProjectReference: A unique reference to this project.
    ProjectReference *ProjectReference `json:"projectReference,omitempty"`

    // ForceSendFields is a list of field names (e.g. "FriendlyName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "FriendlyName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ProjectListProjects) MarshalJSON Uses

func (s *ProjectListProjects) MarshalJSON() ([]byte, error)

type ProjectReference Uses

type ProjectReference struct {
    // ProjectId: [Required] ID of the project. Can be either the numeric ID
    // or the assigned ID of the project.
    ProjectId string `json:"projectId,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ProjectId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ProjectId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ProjectReference) MarshalJSON Uses

func (s *ProjectReference) MarshalJSON() ([]byte, error)

type ProjectsGetServiceAccountCall Uses

type ProjectsGetServiceAccountCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsGetServiceAccountCall) Context Uses

func (c *ProjectsGetServiceAccountCall) Context(ctx context.Context) *ProjectsGetServiceAccountCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsGetServiceAccountCall) Do Uses

func (c *ProjectsGetServiceAccountCall) Do(opts ...googleapi.CallOption) (*GetServiceAccountResponse, error)

Do executes the "bigquery.projects.getServiceAccount" call. Exactly one of *GetServiceAccountResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GetServiceAccountResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsGetServiceAccountCall) Fields Uses

func (c *ProjectsGetServiceAccountCall) Fields(s ...googleapi.Field) *ProjectsGetServiceAccountCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsGetServiceAccountCall) Header Uses

func (c *ProjectsGetServiceAccountCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsGetServiceAccountCall) IfNoneMatch Uses

func (c *ProjectsGetServiceAccountCall) IfNoneMatch(entityTag string) *ProjectsGetServiceAccountCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ProjectsListCall Uses

type ProjectsListCall struct {
    // contains filtered or unexported fields
}

func (*ProjectsListCall) Context Uses

func (c *ProjectsListCall) Context(ctx context.Context) *ProjectsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ProjectsListCall) Do Uses

func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ProjectList, error)

Do executes the "bigquery.projects.list" call. Exactly one of *ProjectList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProjectList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ProjectsListCall) Fields Uses

func (c *ProjectsListCall) Fields(s ...googleapi.Field) *ProjectsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsListCall) Header Uses

func (c *ProjectsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsListCall) IfNoneMatch Uses

func (c *ProjectsListCall) IfNoneMatch(entityTag string) *ProjectsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ProjectsListCall) MaxResults Uses

func (c *ProjectsListCall) MaxResults(maxResults int64) *ProjectsListCall

MaxResults sets the optional parameter "maxResults": Maximum number of results to return

func (*ProjectsListCall) PageToken Uses

func (c *ProjectsListCall) PageToken(pageToken string) *ProjectsListCall

PageToken sets the optional parameter "pageToken": Page token, returned by a previous call, to request the next page of results

func (*ProjectsListCall) Pages Uses

func (c *ProjectsListCall) Pages(ctx context.Context, f func(*ProjectList) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ProjectsService Uses

type ProjectsService struct {
    // contains filtered or unexported fields
}

func NewProjectsService Uses

func NewProjectsService(s *Service) *ProjectsService

func (*ProjectsService) GetServiceAccount Uses

func (r *ProjectsService) GetServiceAccount(projectId string) *ProjectsGetServiceAccountCall

GetServiceAccount: Returns the email address of the service account for your project used for interactions with Google Cloud KMS.

func (*ProjectsService) List Uses

func (r *ProjectsService) List() *ProjectsListCall

List: Lists all projects to which you have been granted any project role.

type QueryParameter Uses

type QueryParameter struct {
    // Name: [Optional] If unset, this is a positional parameter. Otherwise,
    // should be unique within a query.
    Name string `json:"name,omitempty"`

    // ParameterType: [Required] The type of this parameter.
    ParameterType *QueryParameterType `json:"parameterType,omitempty"`

    // ParameterValue: [Required] The value of this parameter.
    ParameterValue *QueryParameterValue `json:"parameterValue,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Name") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Name") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*QueryParameter) MarshalJSON Uses

func (s *QueryParameter) MarshalJSON() ([]byte, error)

type QueryParameterType Uses

type QueryParameterType struct {
    // ArrayType: [Optional] The type of the array's elements, if this is an
    // array.
    ArrayType *QueryParameterType `json:"arrayType,omitempty"`

    // StructTypes: [Optional] The types of the fields of this struct, in
    // order, if this is a struct.
    StructTypes []*QueryParameterTypeStructTypes `json:"structTypes,omitempty"`

    // Type: [Required] The top level type of this field.
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ArrayType") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ArrayType") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*QueryParameterType) MarshalJSON Uses

func (s *QueryParameterType) MarshalJSON() ([]byte, error)

type QueryParameterTypeStructTypes Uses

type QueryParameterTypeStructTypes struct {
    // Description: [Optional] Human-oriented description of the field.
    Description string `json:"description,omitempty"`

    // Name: [Optional] The name of this field.
    Name string `json:"name,omitempty"`

    // Type: [Required] The type of this field.
    Type *QueryParameterType `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Description") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Description") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*QueryParameterTypeStructTypes) MarshalJSON Uses

func (s *QueryParameterTypeStructTypes) MarshalJSON() ([]byte, error)

type QueryParameterValue Uses

type QueryParameterValue struct {
    // ArrayValues: [Optional] The array values, if this is an array type.
    ArrayValues []*QueryParameterValue `json:"arrayValues,omitempty"`

    // StructValues: [Optional] The struct field values, in order of the
    // struct type's declaration.
    StructValues map[string]QueryParameterValue `json:"structValues,omitempty"`

    // Value: [Optional] The value of this value, if a simple scalar type.
    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ArrayValues") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ArrayValues") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*QueryParameterValue) MarshalJSON Uses

func (s *QueryParameterValue) MarshalJSON() ([]byte, error)

type QueryRequest Uses

type QueryRequest struct {
    // DefaultDataset: [Optional] Specifies the default datasetId and
    // projectId to assume for any unqualified table names in the query. If
    // not set, all table names in the query string must be qualified in the
    // format 'datasetId.tableId'.
    DefaultDataset *DatasetReference `json:"defaultDataset,omitempty"`

    // DryRun: [Optional] If set to true, BigQuery doesn't run the job.
    // Instead, if the query is valid, BigQuery returns statistics about the
    // job such as how many bytes would be processed. If the query is
    // invalid, an error returns. The default value is false.
    DryRun bool `json:"dryRun,omitempty"`

    // Kind: The resource type of the request.
    Kind string `json:"kind,omitempty"`

    // MaxResults: [Optional] The maximum number of rows of data to return
    // per page of results. Setting this flag to a small value such as 1000
    // and then paging through results might improve reliability when the
    // query result set is large. In addition to this limit, responses are
    // also limited to 10 MB. By default, there is no maximum row count, and
    // only the byte limit applies.
    MaxResults int64 `json:"maxResults,omitempty"`

    // ParameterMode: Standard SQL only. Set to POSITIONAL to use positional
    // (?) query parameters or to NAMED to use named (@myparam) query
    // parameters in this query.
    ParameterMode string `json:"parameterMode,omitempty"`

    // PreserveNulls: [Deprecated] This property is deprecated.
    PreserveNulls bool `json:"preserveNulls,omitempty"`

    // Query: [Required] A query string, following the BigQuery query
    // syntax, of the query to execute. Example: "SELECT count(f1) FROM
    // [myProjectId:myDatasetId.myTableId]".
    Query string `json:"query,omitempty"`

    // QueryParameters: Query parameters for Standard SQL queries.
    QueryParameters []*QueryParameter `json:"queryParameters,omitempty"`

    // TimeoutMs: [Optional] How long to wait for the query to complete, in
    // milliseconds, before the request times out and returns. Note that
    // this is only a timeout for the request, not the query. If the query
    // takes longer to run than the timeout value, the call returns without
    // any results and with the 'jobComplete' flag set to false. You can
    // call GetQueryResults() to wait for the query to complete and read the
    // results. The default value is 10000 milliseconds (10 seconds).
    TimeoutMs int64 `json:"timeoutMs,omitempty"`

    // UseLegacySql: Specifies whether to use BigQuery's legacy SQL dialect
    // for this query. The default value is true. If set to false, the query
    // will use BigQuery's standard SQL:
    // https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is
    // set to false, the value of flattenResults is ignored; query will be
    // run as if flattenResults is false.
    //
    // Default: true
    UseLegacySql *bool `json:"useLegacySql,omitempty"`

    // UseQueryCache: [Optional] Whether to look for the result in the query
    // cache. The query cache is a best-effort cache that will be flushed
    // whenever tables in the query are modified. The default value is true.
    //
    // Default: true
    UseQueryCache *bool `json:"useQueryCache,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DefaultDataset") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DefaultDataset") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*QueryRequest) MarshalJSON Uses

func (s *QueryRequest) MarshalJSON() ([]byte, error)

type QueryResponse Uses

type QueryResponse struct {
    // CacheHit: Whether the query result was fetched from the query cache.
    CacheHit bool `json:"cacheHit,omitempty"`

    // Errors: [Output-only] The first errors or warnings encountered during
    // the running of the job. The final message includes the number of
    // errors that caused the process to stop. Errors here do not
    // necessarily mean that the job has completed or was unsuccessful.
    Errors []*ErrorProto `json:"errors,omitempty"`

    // JobComplete: Whether the query has completed or not. If rows or
    // totalRows are present, this will always be true. If this is false,
    // totalRows will not be available.
    JobComplete bool `json:"jobComplete,omitempty"`

    // JobReference: Reference to the Job that was created to run the query.
    // This field will be present even if the original request timed out, in
    // which case GetQueryResults can be used to read the results once the
    // query has completed. Since this API only returns the first page of
    // results, subsequent pages can be fetched via the same mechanism
    // (GetQueryResults).
    JobReference *JobReference `json:"jobReference,omitempty"`

    // Kind: The resource type.
    Kind string `json:"kind,omitempty"`

    // NumDmlAffectedRows: [Output-only] The number of rows affected by a
    // DML statement. Present only for DML statements INSERT, UPDATE or
    // DELETE.
    NumDmlAffectedRows int64 `json:"numDmlAffectedRows,omitempty,string"`

    // PageToken: A token used for paging results.
    PageToken string `json:"pageToken,omitempty"`

    // Rows: An object with as many results as can be contained within the
    // maximum permitted reply size. To get any additional rows, you can
    // call GetQueryResults and specify the jobReference returned above.
    Rows []*TableRow `json:"rows,omitempty"`

    // Schema: The schema of the results. Present only when the query
    // completes successfully.
    Schema *TableSchema `json:"schema,omitempty"`

    // TotalBytesProcessed: The total number of bytes processed for this
    // query. If this query was a dry run, this is the number of bytes that
    // would be processed if the query were run.
    TotalBytesProcessed int64 `json:"totalBytesProcessed,omitempty,string"`

    // TotalRows: The total number of rows in the complete query result set,
    // which can be more than the number of rows in this single page of
    // results.
    TotalRows uint64 `json:"totalRows,omitempty,string"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "CacheHit") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CacheHit") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*QueryResponse) MarshalJSON Uses

func (s *QueryResponse) MarshalJSON() ([]byte, error)

type Service Uses

type Service struct {
    BasePath  string // API endpoint base URL
    UserAgent string // optional additional User-Agent fragment

    Datasets *DatasetsService

    Jobs *JobsService

    Projects *ProjectsService

    Tabledata *TabledataService

    Tables *TablesService
    // contains filtered or unexported fields
}

func New Uses

func New(client *http.Client) (*Service, error)

type Streamingbuffer Uses

type Streamingbuffer struct {
    // EstimatedBytes: [Output-only] A lower-bound estimate of the number of
    // bytes currently in the streaming buffer.
    EstimatedBytes uint64 `json:"estimatedBytes,omitempty,string"`

    // EstimatedRows: [Output-only] A lower-bound estimate of the number of
    // rows currently in the streaming buffer.
    EstimatedRows uint64 `json:"estimatedRows,omitempty,string"`

    // OldestEntryTime: [Output-only] Contains the timestamp of the oldest
    // entry in the streaming buffer, in milliseconds since the epoch, if
    // the streaming buffer is available.
    OldestEntryTime uint64 `json:"oldestEntryTime,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "EstimatedBytes") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "EstimatedBytes") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*Streamingbuffer) MarshalJSON Uses

func (s *Streamingbuffer) MarshalJSON() ([]byte, error)

type Table Uses

type Table struct {
    // CreationTime: [Output-only] The time when this table was created, in
    // milliseconds since the epoch.
    CreationTime int64 `json:"creationTime,omitempty,string"`

    // Description: [Optional] A user-friendly description of this table.
    Description string `json:"description,omitempty"`

    // EncryptionConfiguration: [Experimental] Custom encryption
    // configuration (e.g., Cloud KMS keys).
    EncryptionConfiguration *EncryptionConfiguration `json:"encryptionConfiguration,omitempty"`

    // Etag: [Output-only] A hash of this resource.
    Etag string `json:"etag,omitempty"`

    // ExpirationTime: [Optional] The time when this table expires, in
    // milliseconds since the epoch. If not present, the table will persist
    // indefinitely. Expired tables will be deleted and their storage
    // reclaimed.
    ExpirationTime int64 `json:"expirationTime,omitempty,string"`

    // ExternalDataConfiguration: [Optional] Describes the data format,
    // location, and other properties of a table stored outside of BigQuery.
    // By defining these properties, the data source can then be queried as
    // if it were a standard BigQuery table.
    ExternalDataConfiguration *ExternalDataConfiguration `json:"externalDataConfiguration,omitempty"`

    // FriendlyName: [Optional] A descriptive name for this table.
    FriendlyName string `json:"friendlyName,omitempty"`

    // Id: [Output-only] An opaque ID uniquely identifying the table.
    Id  string `json:"id,omitempty"`

    // Kind: [Output-only] The type of the resource.
    Kind string `json:"kind,omitempty"`

    // Labels: [Experimental] The labels associated with this table. You can
    // use these to organize and group your tables. Label keys and values
    // can be no longer than 63 characters, can only contain lowercase
    // letters, numeric characters, underscores and dashes. International
    // characters are allowed. Label values are optional. Label keys must
    // start with a letter and each label in the list must have a different
    // key.
    Labels map[string]string `json:"labels,omitempty"`

    // LastModifiedTime: [Output-only] The time when this table was last
    // modified, in milliseconds since the epoch.
    LastModifiedTime uint64 `json:"lastModifiedTime,omitempty,string"`

    // Location: [Output-only] The geographic location where the table
    // resides. This value is inherited from the dataset.
    Location string `json:"location,omitempty"`

    // NumBytes: [Output-only] The size of this table in bytes, excluding
    // any data in the streaming buffer.
    NumBytes int64 `json:"numBytes,omitempty,string"`

    // NumLongTermBytes: [Output-only] The number of bytes in the table that
    // are considered "long-term storage".
    NumLongTermBytes int64 `json:"numLongTermBytes,omitempty,string"`

    // NumRows: [Output-only] The number of rows of data in this table,
    // excluding any data in the streaming buffer.
    NumRows uint64 `json:"numRows,omitempty,string"`

    // Schema: [Optional] Describes the schema of this table.
    Schema *TableSchema `json:"schema,omitempty"`

    // SelfLink: [Output-only] A URL that can be used to access this
    // resource again.
    SelfLink string `json:"selfLink,omitempty"`

    // StreamingBuffer: [Output-only] Contains information regarding this
    // table's streaming buffer, if one is present. This field will be
    // absent if the table is not being streamed to or if there is no data
    // in the streaming buffer.
    StreamingBuffer *Streamingbuffer `json:"streamingBuffer,omitempty"`

    // TableReference: [Required] Reference describing the ID of this table.
    TableReference *TableReference `json:"tableReference,omitempty"`

    // TimePartitioning: If specified, configures time-based partitioning
    // for this table.
    TimePartitioning *TimePartitioning `json:"timePartitioning,omitempty"`

    // Type: [Output-only] Describes the table type. The following values
    // are supported: TABLE: A normal BigQuery table. VIEW: A virtual table
    // defined by a SQL query. EXTERNAL: A table that references data stored
    // in an external storage system, such as Google Cloud Storage. The
    // default value is TABLE.
    Type string `json:"type,omitempty"`

    // View: [Optional] The view definition.
    View *ViewDefinition `json:"view,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "CreationTime") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CreationTime") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*Table) MarshalJSON Uses

func (s *Table) MarshalJSON() ([]byte, error)

type TableCell Uses

type TableCell struct {
    V   interface{} `json:"v,omitempty"`

    // ForceSendFields is a list of field names (e.g. "V") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "V") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TableCell) MarshalJSON Uses

func (s *TableCell) MarshalJSON() ([]byte, error)

type TableDataInsertAllRequest Uses

type TableDataInsertAllRequest struct {
    // IgnoreUnknownValues: [Optional] Accept rows that contain values that
    // do not match the schema. The unknown values are ignored. Default is
    // false, which treats unknown values as errors.
    IgnoreUnknownValues bool `json:"ignoreUnknownValues,omitempty"`

    // Kind: The resource type of the response.
    Kind string `json:"kind,omitempty"`

    // Rows: The rows to insert.
    Rows []*TableDataInsertAllRequestRows `json:"rows,omitempty"`

    // SkipInvalidRows: [Optional] Insert all valid rows of a request, even
    // if invalid rows exist. The default value is false, which causes the
    // entire request to fail if any invalid rows exist.
    SkipInvalidRows bool `json:"skipInvalidRows,omitempty"`

    // TemplateSuffix: [Experimental] If specified, treats the destination
    // table as a base template, and inserts the rows into an instance table
    // named "{destination}{templateSuffix}". BigQuery will manage creation
    // of the instance table, using the schema of the base template table.
    // See
    // https://cloud.google.com/bigquery/streaming-data-into-bigquery#template-tables for considerations when working with templates
    // tables.
    TemplateSuffix string `json:"templateSuffix,omitempty"`

    // ForceSendFields is a list of field names (e.g. "IgnoreUnknownValues")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "IgnoreUnknownValues") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*TableDataInsertAllRequest) MarshalJSON Uses

func (s *TableDataInsertAllRequest) MarshalJSON() ([]byte, error)

type TableDataInsertAllRequestRows Uses

type TableDataInsertAllRequestRows struct {
    // InsertId: [Optional] A unique ID for each row. BigQuery uses this
    // property to detect duplicate insertion requests on a best-effort
    // basis.
    InsertId string `json:"insertId,omitempty"`

    // Json: [Required] A JSON object that contains a row of data. The
    // object's properties and values must match the destination table's
    // schema.
    Json map[string]JsonValue `json:"json,omitempty"`

    // ForceSendFields is a list of field names (e.g. "InsertId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "InsertId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TableDataInsertAllRequestRows) MarshalJSON Uses

func (s *TableDataInsertAllRequestRows) MarshalJSON() ([]byte, error)

type TableDataInsertAllResponse Uses

type TableDataInsertAllResponse struct {
    // InsertErrors: An array of errors for rows that were not inserted.
    InsertErrors []*TableDataInsertAllResponseInsertErrors `json:"insertErrors,omitempty"`

    // Kind: The resource type of the response.
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "InsertErrors") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "InsertErrors") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TableDataInsertAllResponse) MarshalJSON Uses

func (s *TableDataInsertAllResponse) MarshalJSON() ([]byte, error)

type TableDataInsertAllResponseInsertErrors Uses

type TableDataInsertAllResponseInsertErrors struct {
    // Errors: Error information for the row indicated by the index
    // property.
    Errors []*ErrorProto `json:"errors,omitempty"`

    // Index: The index of the row that error applies to.
    Index int64 `json:"index,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Errors") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Errors") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TableDataInsertAllResponseInsertErrors) MarshalJSON Uses

func (s *TableDataInsertAllResponseInsertErrors) MarshalJSON() ([]byte, error)

type TableDataList Uses

type TableDataList struct {
    // Etag: A hash of this page of results.
    Etag string `json:"etag,omitempty"`

    // Kind: The resource type of the response.
    Kind string `json:"kind,omitempty"`

    // PageToken: A token used for paging results. Providing this token
    // instead of the startIndex parameter can help you retrieve stable
    // results when an underlying table is changing.
    PageToken string `json:"pageToken,omitempty"`

    // Rows: Rows of results.
    Rows []*TableRow `json:"rows,omitempty"`

    // TotalRows: The total number of rows in the complete table.
    TotalRows int64 `json:"totalRows,omitempty,string"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Etag") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Etag") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TableDataList) MarshalJSON Uses

func (s *TableDataList) MarshalJSON() ([]byte, error)

type TableFieldSchema Uses

type TableFieldSchema struct {
    // Description: [Optional] The field description. The maximum length is
    // 1,024 characters.
    Description string `json:"description,omitempty"`

    // Fields: [Optional] Describes the nested schema fields if the type
    // property is set to RECORD.
    Fields []*TableFieldSchema `json:"fields,omitempty"`

    // Mode: [Optional] The field mode. Possible values include NULLABLE,
    // REQUIRED and REPEATED. The default value is NULLABLE.
    Mode string `json:"mode,omitempty"`

    // Name: [Required] The field name. The name must contain only letters
    // (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a
    // letter or underscore. The maximum length is 128 characters.
    Name string `json:"name,omitempty"`

    // Type: [Required] The field data type. Possible values include STRING,
    // BYTES, INTEGER, INT64 (same as INTEGER), FLOAT, FLOAT64 (same as
    // FLOAT), BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME,
    // DATETIME, RECORD (where RECORD indicates that the field contains a
    // nested schema) or STRUCT (same as RECORD).
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Description") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Description") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TableFieldSchema) MarshalJSON Uses

func (s *TableFieldSchema) MarshalJSON() ([]byte, error)

type TableList Uses

type TableList struct {
    // Etag: A hash of this page of results.
    Etag string `json:"etag,omitempty"`

    // Kind: The type of list.
    Kind string `json:"kind,omitempty"`

    // NextPageToken: A token to request the next page of results.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // Tables: Tables in the requested dataset.
    Tables []*TableListTables `json:"tables,omitempty"`

    // TotalItems: The total number of tables in the dataset.
    TotalItems int64 `json:"totalItems,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Etag") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Etag") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TableList) MarshalJSON Uses

func (s *TableList) MarshalJSON() ([]byte, error)

type TableListTables Uses

type TableListTables struct {
    // CreationTime: The time when this table was created, in milliseconds
    // since the epoch.
    CreationTime int64 `json:"creationTime,omitempty,string"`

    // ExpirationTime: [Optional] The time when this table expires, in
    // milliseconds since the epoch. If not present, the table will persist
    // indefinitely. Expired tables will be deleted and their storage
    // reclaimed.
    ExpirationTime int64 `json:"expirationTime,omitempty,string"`

    // FriendlyName: The user-friendly name for this table.
    FriendlyName string `json:"friendlyName,omitempty"`

    // Id: An opaque ID of the table
    Id  string `json:"id,omitempty"`

    // Kind: The resource type.
    Kind string `json:"kind,omitempty"`

    // Labels: [Experimental] The labels associated with this table. You can
    // use these to organize and group your tables.
    Labels map[string]string `json:"labels,omitempty"`

    // TableReference: A reference uniquely identifying the table.
    TableReference *TableReference `json:"tableReference,omitempty"`

    // TimePartitioning: The time-based partitioning for this table.
    TimePartitioning *TimePartitioning `json:"timePartitioning,omitempty"`

    // Type: The type of table. Possible values are: TABLE, VIEW.
    Type string `json:"type,omitempty"`

    // View: Additional details for a view.
    View *TableListTablesView `json:"view,omitempty"`

    // ForceSendFields is a list of field names (e.g. "CreationTime") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CreationTime") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TableListTables) MarshalJSON Uses

func (s *TableListTables) MarshalJSON() ([]byte, error)

type TableListTablesView Uses

type TableListTablesView struct {
    // UseLegacySql: True if view is defined in legacy SQL dialect, false if
    // in standard SQL.
    UseLegacySql bool `json:"useLegacySql,omitempty"`

    // ForceSendFields is a list of field names (e.g. "UseLegacySql") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "UseLegacySql") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

TableListTablesView: Additional details for a view.

func (*TableListTablesView) MarshalJSON Uses

func (s *TableListTablesView) MarshalJSON() ([]byte, error)

type TableReference Uses

type TableReference struct {
    // DatasetId: [Required] The ID of the dataset containing this table.
    DatasetId string `json:"datasetId,omitempty"`

    // ProjectId: [Required] The ID of the project containing this table.
    ProjectId string `json:"projectId,omitempty"`

    // TableId: [Required] The ID of the table. The ID must contain only
    // letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum
    // length is 1,024 characters.
    TableId string `json:"tableId,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DatasetId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DatasetId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TableReference) MarshalJSON Uses

func (s *TableReference) MarshalJSON() ([]byte, error)

type TableRow Uses

type TableRow struct {
    // F: Represents a single row in the result set, consisting of one or
    // more fields.
    F   []*TableCell `json:"f,omitempty"`

    // ForceSendFields is a list of field names (e.g. "F") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "F") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TableRow) MarshalJSON Uses

func (s *TableRow) MarshalJSON() ([]byte, error)

type TableSchema Uses

type TableSchema struct {
    // Fields: Describes the fields in a table.
    Fields []*TableFieldSchema `json:"fields,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Fields") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Fields") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TableSchema) MarshalJSON Uses

func (s *TableSchema) MarshalJSON() ([]byte, error)

type TabledataInsertAllCall Uses

type TabledataInsertAllCall struct {
    // contains filtered or unexported fields
}

func (*TabledataInsertAllCall) Context Uses

func (c *TabledataInsertAllCall) Context(ctx context.Context) *TabledataInsertAllCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TabledataInsertAllCall) Do Uses

func (c *TabledataInsertAllCall) Do(opts ...googleapi.CallOption) (*TableDataInsertAllResponse, error)

Do executes the "bigquery.tabledata.insertAll" call. Exactly one of *TableDataInsertAllResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TableDataInsertAllResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TabledataInsertAllCall) Fields Uses

func (c *TabledataInsertAllCall) Fields(s ...googleapi.Field) *TabledataInsertAllCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TabledataInsertAllCall) Header Uses

func (c *TabledataInsertAllCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type TabledataListCall Uses

type TabledataListCall struct {
    // contains filtered or unexported fields
}

func (*TabledataListCall) Context Uses

func (c *TabledataListCall) Context(ctx context.Context) *TabledataListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TabledataListCall) Do Uses

func (c *TabledataListCall) Do(opts ...googleapi.CallOption) (*TableDataList, error)

Do executes the "bigquery.tabledata.list" call. Exactly one of *TableDataList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TableDataList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TabledataListCall) Fields Uses

func (c *TabledataListCall) Fields(s ...googleapi.Field) *TabledataListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TabledataListCall) Header Uses

func (c *TabledataListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*TabledataListCall) IfNoneMatch Uses

func (c *TabledataListCall) IfNoneMatch(entityTag string) *TabledataListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TabledataListCall) MaxResults Uses

func (c *TabledataListCall) MaxResults(maxResults int64) *TabledataListCall

MaxResults sets the optional parameter "maxResults": Maximum number of results to return

func (*TabledataListCall) PageToken Uses

func (c *TabledataListCall) PageToken(pageToken string) *TabledataListCall

PageToken sets the optional parameter "pageToken": Page token, returned by a previous call, identifying the result set

func (*TabledataListCall) Pages Uses

func (c *TabledataListCall) Pages(ctx context.Context, f func(*TableDataList) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*TabledataListCall) SelectedFields Uses

func (c *TabledataListCall) SelectedFields(selectedFields string) *TabledataListCall

SelectedFields sets the optional parameter "selectedFields": List of fields to return (comma-separated). If unspecified, all fields are returned

func (*TabledataListCall) StartIndex Uses

func (c *TabledataListCall) StartIndex(startIndex uint64) *TabledataListCall

StartIndex sets the optional parameter "startIndex": Zero-based index of the starting row to read

type TabledataService Uses

type TabledataService struct {
    // contains filtered or unexported fields
}

func NewTabledataService Uses

func NewTabledataService(s *Service) *TabledataService

func (*TabledataService) InsertAll Uses

func (r *TabledataService) InsertAll(projectId string, datasetId string, tableId string, tabledatainsertallrequest *TableDataInsertAllRequest) *TabledataInsertAllCall

InsertAll: Streams data into BigQuery one record at a time without needing to run a load job. Requires the WRITER dataset role.

func (*TabledataService) List Uses

func (r *TabledataService) List(projectId string, datasetId string, tableId string) *TabledataListCall

List: Retrieves table data from a specified set of rows. Requires the READER dataset role.

type TablesDeleteCall Uses

type TablesDeleteCall struct {
    // contains filtered or unexported fields
}

func (*TablesDeleteCall) Context Uses

func (c *TablesDeleteCall) Context(ctx context.Context) *TablesDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesDeleteCall) Do Uses

func (c *TablesDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "bigquery.tables.delete" call.

func (*TablesDeleteCall) Fields Uses

func (c *TablesDeleteCall) Fields(s ...googleapi.Field) *TablesDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TablesDeleteCall) Header Uses

func (c *TablesDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type TablesGetCall Uses

type TablesGetCall struct {
    // contains filtered or unexported fields
}

func (*TablesGetCall) Context Uses

func (c *TablesGetCall) Context(ctx context.Context) *TablesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesGetCall) Do Uses

func (c *TablesGetCall) Do(opts ...googleapi.CallOption) (*Table, error)

Do executes the "bigquery.tables.get" call. Exactly one of *Table or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Table.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesGetCall) Fields Uses

func (c *TablesGetCall) Fields(s ...googleapi.Field) *TablesGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TablesGetCall) Header Uses

func (c *TablesGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*TablesGetCall) IfNoneMatch Uses

func (c *TablesGetCall) IfNoneMatch(entityTag string) *TablesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TablesGetCall) SelectedFields Uses

func (c *TablesGetCall) SelectedFields(selectedFields string) *TablesGetCall

SelectedFields sets the optional parameter "selectedFields": List of fields to return (comma-separated). If unspecified, all fields are returned

type TablesInsertCall Uses

type TablesInsertCall struct {
    // contains filtered or unexported fields
}

func (*TablesInsertCall) Context Uses

func (c *TablesInsertCall) Context(ctx context.Context) *TablesInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesInsertCall) Do Uses

func (c *TablesInsertCall) Do(opts ...googleapi.CallOption) (*Table, error)

Do executes the "bigquery.tables.insert" call. Exactly one of *Table or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Table.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesInsertCall) Fields Uses

func (c *TablesInsertCall) Fields(s ...googleapi.Field) *TablesInsertCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TablesInsertCall) Header Uses

func (c *TablesInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type TablesListCall Uses

type TablesListCall struct {
    // contains filtered or unexported fields
}

func (*TablesListCall) Context Uses

func (c *TablesListCall) Context(ctx context.Context) *TablesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesListCall) Do Uses

func (c *TablesListCall) Do(opts ...googleapi.CallOption) (*TableList, error)

Do executes the "bigquery.tables.list" call. Exactly one of *TableList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TableList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesListCall) Fields Uses

func (c *TablesListCall) Fields(s ...googleapi.Field) *TablesListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TablesListCall) Header Uses

func (c *TablesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*TablesListCall) IfNoneMatch Uses

func (c *TablesListCall) IfNoneMatch(entityTag string) *TablesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TablesListCall) MaxResults Uses

func (c *TablesListCall) MaxResults(maxResults int64) *TablesListCall

MaxResults sets the optional parameter "maxResults": Maximum number of results to return

func (*TablesListCall) PageToken Uses

func (c *TablesListCall) PageToken(pageToken string) *TablesListCall

PageToken sets the optional parameter "pageToken": Page token, returned by a previous call, to request the next page of results

func (*TablesListCall) Pages Uses

func (c *TablesListCall) Pages(ctx context.Context, f func(*TableList) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type TablesPatchCall Uses

type TablesPatchCall struct {
    // contains filtered or unexported fields
}

func (*TablesPatchCall) Context Uses

func (c *TablesPatchCall) Context(ctx context.Context) *TablesPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesPatchCall) Do Uses

func (c *TablesPatchCall) Do(opts ...googleapi.CallOption) (*Table, error)

Do executes the "bigquery.tables.patch" call. Exactly one of *Table or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Table.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesPatchCall) Fields Uses

func (c *TablesPatchCall) Fields(s ...googleapi.Field) *TablesPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TablesPatchCall) Header Uses

func (c *TablesPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type TablesService Uses

type TablesService struct {
    // contains filtered or unexported fields
}

func NewTablesService Uses

func NewTablesService(s *Service) *TablesService

func (*TablesService) Delete Uses

func (r *TablesService) Delete(projectId string, datasetId string, tableId string) *TablesDeleteCall

Delete: Deletes the table specified by tableId from the dataset. If the table contains data, all the data will be deleted.

func (*TablesService) Get Uses

func (r *TablesService) Get(projectId string, datasetId string, tableId string) *TablesGetCall

Get: Gets the specified table resource by table ID. This method does not return the data in the table, it only returns the table resource, which describes the structure of this table.

func (*TablesService) Insert Uses

func (r *TablesService) Insert(projectId string, datasetId string, table *Table) *TablesInsertCall

Insert: Creates a new, empty table in the dataset.

func (*TablesService) List Uses

func (r *TablesService) List(projectId string, datasetId string) *TablesListCall

List: Lists all tables in the specified dataset. Requires the READER dataset role.

func (*TablesService) Patch Uses

func (r *TablesService) Patch(projectId string, datasetId string, tableId string, table *Table) *TablesPatchCall

Patch: Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource. This method supports patch semantics.

func (*TablesService) Update Uses

func (r *TablesService) Update(projectId string, datasetId string, tableId string, table *Table) *TablesUpdateCall

Update: Updates information in an existing table. The update method replaces the entire table resource, whereas the patch method only replaces fields that are provided in the submitted table resource.

type TablesUpdateCall Uses

type TablesUpdateCall struct {
    // contains filtered or unexported fields
}

func (*TablesUpdateCall) Context Uses

func (c *TablesUpdateCall) Context(ctx context.Context) *TablesUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TablesUpdateCall) Do Uses

func (c *TablesUpdateCall) Do(opts ...googleapi.CallOption) (*Table, error)

Do executes the "bigquery.tables.update" call. Exactly one of *Table or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Table.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*TablesUpdateCall) Fields Uses

func (c *TablesUpdateCall) Fields(s ...googleapi.Field) *TablesUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TablesUpdateCall) Header Uses

func (c *TablesUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type TimePartitioning Uses

type TimePartitioning struct {
    // ExpirationMs: [Optional] Number of milliseconds for which to keep the
    // storage for a partition.
    ExpirationMs int64 `json:"expirationMs,omitempty,string"`

    // Field: [Experimental] [Optional] If not set, the table is partitioned
    // by pseudo column '_PARTITIONTIME'; if set, the table is partitioned
    // by this field. The field must be a top-level TIMESTAMP or DATE field.
    // Its mode must be NULLABLE or REQUIRED.
    Field string `json:"field,omitempty"`

    // Type: [Required] The only type supported is DAY, which will generate
    // one partition per day.
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ExpirationMs") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExpirationMs") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TimePartitioning) MarshalJSON Uses

func (s *TimePartitioning) MarshalJSON() ([]byte, error)

type UserDefinedFunctionResource Uses

type UserDefinedFunctionResource struct {
    // InlineCode: [Pick one] An inline resource that contains code for a
    // user-defined function (UDF). Providing a inline code resource is
    // equivalent to providing a URI for a file containing the same code.
    InlineCode string `json:"inlineCode,omitempty"`

    // ResourceUri: [Pick one] A code resource to load from a Google Cloud
    // Storage URI (gs://bucket/path).
    ResourceUri string `json:"resourceUri,omitempty"`

    // ForceSendFields is a list of field names (e.g. "InlineCode") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "InlineCode") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*UserDefinedFunctionResource) MarshalJSON Uses

func (s *UserDefinedFunctionResource) MarshalJSON() ([]byte, error)

type ViewDefinition Uses

type ViewDefinition struct {
    // Query: [Required] A query that BigQuery executes when the view is
    // referenced.
    Query string `json:"query,omitempty"`

    // UseLegacySql: Specifies whether to use BigQuery's legacy SQL for this
    // view. The default value is true. If set to false, the view will use
    // BigQuery's standard SQL:
    // https://cloud.google.com/bigquery/sql-reference/ Queries and views
    // that reference this view must use the same flag value.
    UseLegacySql bool `json:"useLegacySql,omitempty"`

    // UserDefinedFunctionResources: Describes user-defined function
    // resources used in the query.
    UserDefinedFunctionResources []*UserDefinedFunctionResource `json:"userDefinedFunctionResources,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Query") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Query") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ViewDefinition) MarshalJSON Uses

func (s *ViewDefinition) MarshalJSON() ([]byte, error)

Package bigquery imports 13 packages (graph) and is imported by 162 packages. Updated 2017-12-16. Refresh now. Tools for package owners.