// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/bigquery/v2/standard_sql.proto

package bigquery

import (
	fmt "fmt"
	math "math"

	proto "github.com/golang/protobuf/proto"
	_ "google.golang.org/genproto/googleapis/api/annotations"
)

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package

type StandardSqlDataType_TypeKind int32

const (
	// Invalid type.
	StandardSqlDataType_TYPE_KIND_UNSPECIFIED StandardSqlDataType_TypeKind = 0
	// Encoded as a string in decimal format.
	StandardSqlDataType_INT64 StandardSqlDataType_TypeKind = 2
	// Encoded as a boolean "false" or "true".
	StandardSqlDataType_BOOL StandardSqlDataType_TypeKind = 5
	// Encoded as a number, or string "NaN", "Infinity" or "-Infinity".
	StandardSqlDataType_FLOAT64 StandardSqlDataType_TypeKind = 7
	// Encoded as a string value.
	StandardSqlDataType_STRING StandardSqlDataType_TypeKind = 8
	// Encoded as a base64 string per RFC 4648, section 4.
	StandardSqlDataType_BYTES StandardSqlDataType_TypeKind = 9
	// Encoded as an RFC 3339 timestamp with mandatory "Z" time zone string:
	// 1985-04-12T23:20:50.52Z
	StandardSqlDataType_TIMESTAMP StandardSqlDataType_TypeKind = 19
	// Encoded as RFC 3339 full-date format string: 1985-04-12
	StandardSqlDataType_DATE StandardSqlDataType_TypeKind = 10
	// Encoded as RFC 3339 partial-time format string: 23:20:50.52
	StandardSqlDataType_TIME StandardSqlDataType_TypeKind = 20
	// Encoded as RFC 3339 full-date "T" partial-time: 1985-04-12T23:20:50.52
	StandardSqlDataType_DATETIME StandardSqlDataType_TypeKind = 21
	// Encoded as WKT
	StandardSqlDataType_GEOGRAPHY StandardSqlDataType_TypeKind = 22
	// Encoded as a decimal string.
	StandardSqlDataType_NUMERIC StandardSqlDataType_TypeKind = 23
	// Encoded as a list with types matching Type.array_type.
	StandardSqlDataType_ARRAY StandardSqlDataType_TypeKind = 16
	// Encoded as a list with fields of type Type.struct_type[i]. List is used
	// because a JSON object cannot have duplicate field names.
	StandardSqlDataType_STRUCT StandardSqlDataType_TypeKind = 17
)

var StandardSqlDataType_TypeKind_name = map[int32]string{
	0:  "TYPE_KIND_UNSPECIFIED",
	2:  "INT64",
	5:  "BOOL",
	7:  "FLOAT64",
	8:  "STRING",
	9:  "BYTES",
	19: "TIMESTAMP",
	10: "DATE",
	20: "TIME",
	21: "DATETIME",
	22: "GEOGRAPHY",
	23: "NUMERIC",
	16: "ARRAY",
	17: "STRUCT",
}

var StandardSqlDataType_TypeKind_value = map[string]int32{
	"TYPE_KIND_UNSPECIFIED": 0,
	"INT64":                 2,
	"BOOL":                  5,
	"FLOAT64":               7,
	"STRING":                8,
	"BYTES":                 9,
	"TIMESTAMP":             19,
	"DATE":                  10,
	"TIME":                  20,
	"DATETIME":              21,
	"GEOGRAPHY":             22,
	"NUMERIC":               23,
	"ARRAY":                 16,
	"STRUCT":                17,
}

func (x StandardSqlDataType_TypeKind) String() string {
	return proto.EnumName(StandardSqlDataType_TypeKind_name, int32(x))
}

func (StandardSqlDataType_TypeKind) EnumDescriptor() ([]byte, []int) {
	return fileDescriptor_17cd17721212b1f9, []int{0, 0}
}

// The type of a variable, e.g., a function argument.
// Examples:
// INT64: {type_kind="INT64"}
// ARRAY<STRING>: {type_kind="ARRAY", array_element_type="STRING"}
// STRUCT<x STRING, y ARRAY<DATE>>:
//   {type_kind="STRUCT",
//    struct_type={fields=[
//      {name="x", type={type_kind="STRING"}},
//      {name="y", type={type_kind="ARRAY", array_element_type="DATE"}}
//    ]}}
type StandardSqlDataType struct {
	// Required. The top level type of this field.
	// Can be any standard SQL data type (e.g., "INT64", "DATE", "ARRAY").
	TypeKind StandardSqlDataType_TypeKind `protobuf:"varint,1,opt,name=type_kind,json=typeKind,proto3,enum=google.cloud.bigquery.v2.StandardSqlDataType_TypeKind" json:"type_kind,omitempty"`
	// Types that are valid to be assigned to SubType:
	//	*StandardSqlDataType_ArrayElementType
	//	*StandardSqlDataType_StructType
	SubType              isStandardSqlDataType_SubType `protobuf_oneof:"sub_type"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

func (m *StandardSqlDataType) Reset()         { *m = StandardSqlDataType{} }
func (m *StandardSqlDataType) String() string { return proto.CompactTextString(m) }
func (*StandardSqlDataType) ProtoMessage()    {}
func (*StandardSqlDataType) Descriptor() ([]byte, []int) {
	return fileDescriptor_17cd17721212b1f9, []int{0}
}

func (m *StandardSqlDataType) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_StandardSqlDataType.Unmarshal(m, b)
}
func (m *StandardSqlDataType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_StandardSqlDataType.Marshal(b, m, deterministic)
}
func (m *StandardSqlDataType) XXX_Merge(src proto.Message) {
	xxx_messageInfo_StandardSqlDataType.Merge(m, src)
}
func (m *StandardSqlDataType) XXX_Size() int {
	return xxx_messageInfo_StandardSqlDataType.Size(m)
}
func (m *StandardSqlDataType) XXX_DiscardUnknown() {
	xxx_messageInfo_StandardSqlDataType.DiscardUnknown(m)
}

var xxx_messageInfo_StandardSqlDataType proto.InternalMessageInfo

func (m *StandardSqlDataType) GetTypeKind() StandardSqlDataType_TypeKind {
	if m != nil {
		return m.TypeKind
	}
	return StandardSqlDataType_TYPE_KIND_UNSPECIFIED
}

type isStandardSqlDataType_SubType interface {
	isStandardSqlDataType_SubType()
}

type StandardSqlDataType_ArrayElementType struct {
	ArrayElementType *StandardSqlDataType `protobuf:"bytes,2,opt,name=array_element_type,json=arrayElementType,proto3,oneof"`
}

type StandardSqlDataType_StructType struct {
	StructType *StandardSqlStructType `protobuf:"bytes,3,opt,name=struct_type,json=structType,proto3,oneof"`
}

func (*StandardSqlDataType_ArrayElementType) isStandardSqlDataType_SubType() {}

func (*StandardSqlDataType_StructType) isStandardSqlDataType_SubType() {}

func (m *StandardSqlDataType) GetSubType() isStandardSqlDataType_SubType {
	if m != nil {
		return m.SubType
	}
	return nil
}

func (m *StandardSqlDataType) GetArrayElementType() *StandardSqlDataType {
	if x, ok := m.GetSubType().(*StandardSqlDataType_ArrayElementType); ok {
		return x.ArrayElementType
	}
	return nil
}

func (m *StandardSqlDataType) GetStructType() *StandardSqlStructType {
	if x, ok := m.GetSubType().(*StandardSqlDataType_StructType); ok {
		return x.StructType
	}
	return nil
}

// XXX_OneofWrappers is for the internal use of the proto package.
func (*StandardSqlDataType) XXX_OneofWrappers() []interface{} {
	return []interface{}{
		(*StandardSqlDataType_ArrayElementType)(nil),
		(*StandardSqlDataType_StructType)(nil),
	}
}

// A field or a column.
type StandardSqlField struct {
	// Optional. The name of this field. Can be absent for struct fields.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. The type of this parameter. Absent if not explicitly
	// specified (e.g., CREATE FUNCTION statement can omit the return type;
	// in this case the output parameter does not have this "type" field).
	Type                 *StandardSqlDataType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (m *StandardSqlField) Reset()         { *m = StandardSqlField{} }
func (m *StandardSqlField) String() string { return proto.CompactTextString(m) }
func (*StandardSqlField) ProtoMessage()    {}
func (*StandardSqlField) Descriptor() ([]byte, []int) {
	return fileDescriptor_17cd17721212b1f9, []int{1}
}

func (m *StandardSqlField) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_StandardSqlField.Unmarshal(m, b)
}
func (m *StandardSqlField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_StandardSqlField.Marshal(b, m, deterministic)
}
func (m *StandardSqlField) XXX_Merge(src proto.Message) {
	xxx_messageInfo_StandardSqlField.Merge(m, src)
}
func (m *StandardSqlField) XXX_Size() int {
	return xxx_messageInfo_StandardSqlField.Size(m)
}
func (m *StandardSqlField) XXX_DiscardUnknown() {
	xxx_messageInfo_StandardSqlField.DiscardUnknown(m)
}

var xxx_messageInfo_StandardSqlField proto.InternalMessageInfo

func (m *StandardSqlField) GetName() string {
	if m != nil {
		return m.Name
	}
	return ""
}

func (m *StandardSqlField) GetType() *StandardSqlDataType {
	if m != nil {
		return m.Type
	}
	return nil
}

type StandardSqlStructType struct {
	Fields               []*StandardSqlField `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (m *StandardSqlStructType) Reset()         { *m = StandardSqlStructType{} }
func (m *StandardSqlStructType) String() string { return proto.CompactTextString(m) }
func (*StandardSqlStructType) ProtoMessage()    {}
func (*StandardSqlStructType) Descriptor() ([]byte, []int) {
	return fileDescriptor_17cd17721212b1f9, []int{2}
}

func (m *StandardSqlStructType) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_StandardSqlStructType.Unmarshal(m, b)
}
func (m *StandardSqlStructType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_StandardSqlStructType.Marshal(b, m, deterministic)
}
func (m *StandardSqlStructType) XXX_Merge(src proto.Message) {
	xxx_messageInfo_StandardSqlStructType.Merge(m, src)
}
func (m *StandardSqlStructType) XXX_Size() int {
	return xxx_messageInfo_StandardSqlStructType.Size(m)
}
func (m *StandardSqlStructType) XXX_DiscardUnknown() {
	xxx_messageInfo_StandardSqlStructType.DiscardUnknown(m)
}

var xxx_messageInfo_StandardSqlStructType proto.InternalMessageInfo

func (m *StandardSqlStructType) GetFields() []*StandardSqlField {
	if m != nil {
		return m.Fields
	}
	return nil
}

func init() {
	proto.RegisterEnum("google.cloud.bigquery.v2.StandardSqlDataType_TypeKind", StandardSqlDataType_TypeKind_name, StandardSqlDataType_TypeKind_value)
	proto.RegisterType((*StandardSqlDataType)(nil), "google.cloud.bigquery.v2.StandardSqlDataType")
	proto.RegisterType((*StandardSqlField)(nil), "google.cloud.bigquery.v2.StandardSqlField")
	proto.RegisterType((*StandardSqlStructType)(nil), "google.cloud.bigquery.v2.StandardSqlStructType")
}

func init() {
	proto.RegisterFile("google/cloud/bigquery/v2/standard_sql.proto", fileDescriptor_17cd17721212b1f9)
}

var fileDescriptor_17cd17721212b1f9 = []byte{
	// 517 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0xef, 0x8e, 0xd2, 0x40,
	0x10, 0xbf, 0x1e, 0x1c, 0x57, 0x06, 0x35, 0xeb, 0x9e, 0x78, 0x78, 0xb9, 0x44, 0xc2, 0x27, 0xa2,
	0xb1, 0x4d, 0xd0, 0xdc, 0x17, 0xbf, 0xd8, 0x42, 0xe1, 0x9a, 0x3b, 0xfe, 0xa4, 0x2d, 0x89, 0x68,
	0x4c, 0xb3, 0xd0, 0xb5, 0x36, 0x96, 0x5d, 0x68, 0x0b, 0x09, 0xaf, 0xe7, 0x93, 0xf8, 0x0e, 0xbe,
	0x80, 0xd9, 0x6d, 0x31, 0x24, 0xde, 0x25, 0xa7, 0x5f, 0x9a, 0xee, 0xcc, 0xef, 0xcf, 0xcc, 0xce,
	0x2c, 0xbc, 0x0e, 0x39, 0x0f, 0x63, 0xaa, 0x2f, 0x62, 0xbe, 0x09, 0xf4, 0x79, 0x14, 0xae, 0x37,
	0x34, 0xd9, 0xe9, 0xdb, 0x8e, 0x9e, 0x66, 0x84, 0x05, 0x24, 0x09, 0xfc, 0x74, 0x1d, 0x6b, 0xab,
	0x84, 0x67, 0x1c, 0x37, 0x72, 0xb0, 0x26, 0xc1, 0xda, 0x1e, 0xac, 0x6d, 0x3b, 0x17, 0x2f, 0x0b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