exampleproto

package
v0.0.0-...-659f01f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_sample_data_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type SampleData

type SampleData struct {

	// The following types map directly between protocol buffers and their
	// corresponding BigQuery data types.
	BoolCol    *bool    `protobuf:"varint,1,opt,name=bool_col,json=boolCol" json:"bool_col,omitempty"`
	BytesCol   []byte   `protobuf:"bytes,2,opt,name=bytes_col,json=bytesCol" json:"bytes_col,omitempty"`
	Float64Col *float64 `protobuf:"fixed64,3,opt,name=float64_col,json=float64Col" json:"float64_col,omitempty"`
	Int64Col   *int64   `protobuf:"varint,4,opt,name=int64_col,json=int64Col" json:"int64_col,omitempty"`
	StringCol  *string  `protobuf:"bytes,5,opt,name=string_col,json=stringCol" json:"string_col,omitempty"`
	// The following data types require some encoding to use. See the
	// documentation for the expected data formats:
	// https://cloud.google.com/bigquery/docs/write-api#data_type_conversion
	DateCol       *int32  `protobuf:"varint,6,opt,name=date_col,json=dateCol" json:"date_col,omitempty"`
	DatetimeCol   *string `protobuf:"bytes,7,opt,name=datetime_col,json=datetimeCol" json:"datetime_col,omitempty"`
	GeographyCol  *string `protobuf:"bytes,8,opt,name=geography_col,json=geographyCol" json:"geography_col,omitempty"`
	NumericCol    *string `protobuf:"bytes,9,opt,name=numeric_col,json=numericCol" json:"numeric_col,omitempty"`
	BignumericCol *string `protobuf:"bytes,10,opt,name=bignumeric_col,json=bignumericCol" json:"bignumeric_col,omitempty"`
	TimeCol       *string `protobuf:"bytes,11,opt,name=time_col,json=timeCol" json:"time_col,omitempty"`
	TimestampCol  *int64  `protobuf:"varint,12,opt,name=timestamp_col,json=timestampCol" json:"timestamp_col,omitempty"`
	// Use a repeated field to represent a BigQuery ARRAY value.
	Int64List []int64 `protobuf:"varint,13,rep,name=int64_list,json=int64List" json:"int64_list,omitempty"`
	// Use a nested message to encode STRUCT and ARRAY<STRUCT> values.
	StructCol  *SampleStruct   `protobuf:"bytes,14,opt,name=struct_col,json=structCol" json:"struct_col,omitempty"`
	StructList []*SampleStruct `protobuf:"bytes,15,rep,name=struct_list,json=structList" json:"struct_list,omitempty"`
	// Use the required keyword for client-side validation of required fields.
	RowNum *int64 `protobuf:"varint,16,req,name=row_num,json=rowNum" json:"row_num,omitempty"`
	// contains filtered or unexported fields
}

Define a message type representing the rows in your table.

func (*SampleData) Descriptor deprecated

func (*SampleData) Descriptor() ([]byte, []int)

Deprecated: Use SampleData.ProtoReflect.Descriptor instead.

func (*SampleData) GetBignumericCol

func (x *SampleData) GetBignumericCol() string

func (*SampleData) GetBoolCol

func (x *SampleData) GetBoolCol() bool

func (*SampleData) GetBytesCol

func (x *SampleData) GetBytesCol() []byte

func (*SampleData) GetDateCol

func (x *SampleData) GetDateCol() int32

func (*SampleData) GetDatetimeCol

func (x *SampleData) GetDatetimeCol() string

func (*SampleData) GetFloat64Col

func (x *SampleData) GetFloat64Col() float64

func (*SampleData) GetGeographyCol

func (x *SampleData) GetGeographyCol() string

func (*SampleData) GetInt64Col

func (x *SampleData) GetInt64Col() int64

func (*SampleData) GetInt64List

func (x *SampleData) GetInt64List() []int64

func (*SampleData) GetNumericCol

func (x *SampleData) GetNumericCol() string

func (*SampleData) GetRowNum

func (x *SampleData) GetRowNum() int64

func (*SampleData) GetStringCol

func (x *SampleData) GetStringCol() string

func (*SampleData) GetStructCol

func (x *SampleData) GetStructCol() *SampleStruct

func (*SampleData) GetStructList

func (x *SampleData) GetStructList() []*SampleStruct

func (*SampleData) GetTimeCol

func (x *SampleData) GetTimeCol() string

func (*SampleData) GetTimestampCol

func (x *SampleData) GetTimestampCol() int64

func (*SampleData) ProtoMessage

func (*SampleData) ProtoMessage()

func (*SampleData) ProtoReflect

func (x *SampleData) ProtoReflect() protoreflect.Message

func (*SampleData) Reset

func (x *SampleData) Reset()

func (*SampleData) String

func (x *SampleData) String() string

type SampleStruct

type SampleStruct struct {
	SubIntCol *int64 `protobuf:"varint,1,opt,name=sub_int_col,json=subIntCol" json:"sub_int_col,omitempty"`
	// contains filtered or unexported fields
}

The SampleStruct demonstrates nesting of one proto message inside another. This also necessitates the use of proto normalization when communicating the descriptor to the BigQuery storage write API.

func (*SampleStruct) Descriptor deprecated

func (*SampleStruct) Descriptor() ([]byte, []int)

Deprecated: Use SampleStruct.ProtoReflect.Descriptor instead.

func (*SampleStruct) GetSubIntCol

func (x *SampleStruct) GetSubIntCol() int64

func (*SampleStruct) ProtoMessage

func (*SampleStruct) ProtoMessage()

func (*SampleStruct) ProtoReflect

func (x *SampleStruct) ProtoReflect() protoreflect.Message

func (*SampleStruct) Reset

func (x *SampleStruct) Reset()

func (*SampleStruct) String

func (x *SampleStruct) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL