1// Copyright 2021 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15// Code generated by protoc-gen-go. DO NOT EDIT. 16// versions: 17// protoc-gen-go v1.26.0 18// protoc v3.12.2 19// source: google/cloud/bigquery/storage/v1beta2/avro.proto 20 21package storage 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 28 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 29) 30 31const ( 32 // Verify that this generated code is sufficiently up-to-date. 33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 34 // Verify that runtime/protoimpl is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 36) 37 38// Avro schema. 39type AvroSchema struct { 40 state protoimpl.MessageState 41 sizeCache protoimpl.SizeCache 42 unknownFields protoimpl.UnknownFields 43 44 // Json serialized schema, as described at 45 // https://avro.apache.org/docs/1.8.1/spec.html. 46 Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` 47} 48 49func (x *AvroSchema) Reset() { 50 *x = AvroSchema{} 51 if protoimpl.UnsafeEnabled { 52 mi := &file_google_cloud_bigquery_storage_v1beta2_avro_proto_msgTypes[0] 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 ms.StoreMessageInfo(mi) 55 } 56} 57 58func (x *AvroSchema) String() string { 59 return protoimpl.X.MessageStringOf(x) 60} 61 62func (*AvroSchema) ProtoMessage() {} 63 64func (x *AvroSchema) ProtoReflect() protoreflect.Message { 65 mi := &file_google_cloud_bigquery_storage_v1beta2_avro_proto_msgTypes[0] 66 if protoimpl.UnsafeEnabled && x != nil { 67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 68 if ms.LoadMessageInfo() == nil { 69 ms.StoreMessageInfo(mi) 70 } 71 return ms 72 } 73 return mi.MessageOf(x) 74} 75 76// Deprecated: Use AvroSchema.ProtoReflect.Descriptor instead. 77func (*AvroSchema) Descriptor() ([]byte, []int) { 78 return file_google_cloud_bigquery_storage_v1beta2_avro_proto_rawDescGZIP(), []int{0} 79} 80 81func (x *AvroSchema) GetSchema() string { 82 if x != nil { 83 return x.Schema 84 } 85 return "" 86} 87 88// Avro rows. 89type AvroRows struct { 90 state protoimpl.MessageState 91 sizeCache protoimpl.SizeCache 92 unknownFields protoimpl.UnknownFields 93 94 // Binary serialized rows in a block. 95 SerializedBinaryRows []byte `protobuf:"bytes,1,opt,name=serialized_binary_rows,json=serializedBinaryRows,proto3" json:"serialized_binary_rows,omitempty"` 96} 97 98func (x *AvroRows) Reset() { 99 *x = AvroRows{} 100 if protoimpl.UnsafeEnabled { 101 mi := &file_google_cloud_bigquery_storage_v1beta2_avro_proto_msgTypes[1] 102 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 103 ms.StoreMessageInfo(mi) 104 } 105} 106 107func (x *AvroRows) String() string { 108 return protoimpl.X.MessageStringOf(x) 109} 110 111func (*AvroRows) ProtoMessage() {} 112 113func (x *AvroRows) ProtoReflect() protoreflect.Message { 114 mi := &file_google_cloud_bigquery_storage_v1beta2_avro_proto_msgTypes[1] 115 if protoimpl.UnsafeEnabled && x != nil { 116 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 117 if ms.LoadMessageInfo() == nil { 118 ms.StoreMessageInfo(mi) 119 } 120 return ms 121 } 122 return mi.MessageOf(x) 123} 124 125// Deprecated: Use AvroRows.ProtoReflect.Descriptor instead. 126func (*AvroRows) Descriptor() ([]byte, []int) { 127 return file_google_cloud_bigquery_storage_v1beta2_avro_proto_rawDescGZIP(), []int{1} 128} 129 130func (x *AvroRows) GetSerializedBinaryRows() []byte { 131 if x != nil { 132 return x.SerializedBinaryRows 133 } 134 return nil 135} 136 137var File_google_cloud_bigquery_storage_v1beta2_avro_proto protoreflect.FileDescriptor 138 139var file_google_cloud_bigquery_storage_v1beta2_avro_proto_rawDesc = []byte{ 140 0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62, 141 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 142 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x61, 0x76, 0x72, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 143 0x74, 0x6f, 0x12, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 144 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 145 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x22, 0x24, 0x0a, 0x0a, 0x41, 0x76, 0x72, 146 0x6f, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 147 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 148 0x40, 0x0a, 0x08, 0x41, 0x76, 0x72, 0x6f, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x73, 149 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 150 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x14, 0x73, 0x65, 0x72, 151 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x52, 0x6f, 0x77, 152 0x73, 0x42, 0x86, 0x01, 0x0a, 0x29, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 153 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 154 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x32, 0x42, 155 0x09, 0x41, 0x76, 0x72, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4c, 0x67, 0x6f, 156 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 157 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 158 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 159 0x72, 0x79, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 160 0x61, 0x32, 0x3b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 161 0x6f, 0x33, 162} 163 164var ( 165 file_google_cloud_bigquery_storage_v1beta2_avro_proto_rawDescOnce sync.Once 166 file_google_cloud_bigquery_storage_v1beta2_avro_proto_rawDescData = file_google_cloud_bigquery_storage_v1beta2_avro_proto_rawDesc 167) 168 169func file_google_cloud_bigquery_storage_v1beta2_avro_proto_rawDescGZIP() []byte { 170 file_google_cloud_bigquery_storage_v1beta2_avro_proto_rawDescOnce.Do(func() { 171 file_google_cloud_bigquery_storage_v1beta2_avro_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_bigquery_storage_v1beta2_avro_proto_rawDescData) 172 }) 173 return file_google_cloud_bigquery_storage_v1beta2_avro_proto_rawDescData 174} 175 176var file_google_cloud_bigquery_storage_v1beta2_avro_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 177var file_google_cloud_bigquery_storage_v1beta2_avro_proto_goTypes = []interface{}{ 178 (*AvroSchema)(nil), // 0: google.cloud.bigquery.storage.v1beta2.AvroSchema 179 (*AvroRows)(nil), // 1: google.cloud.bigquery.storage.v1beta2.AvroRows 180} 181var file_google_cloud_bigquery_storage_v1beta2_avro_proto_depIdxs = []int32{ 182 0, // [0:0] is the sub-list for method output_type 183 0, // [0:0] is the sub-list for method input_type 184 0, // [0:0] is the sub-list for extension type_name 185 0, // [0:0] is the sub-list for extension extendee 186 0, // [0:0] is the sub-list for field type_name 187} 188 189func init() { file_google_cloud_bigquery_storage_v1beta2_avro_proto_init() } 190func file_google_cloud_bigquery_storage_v1beta2_avro_proto_init() { 191 if File_google_cloud_bigquery_storage_v1beta2_avro_proto != nil { 192 return 193 } 194 if !protoimpl.UnsafeEnabled { 195 file_google_cloud_bigquery_storage_v1beta2_avro_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 196 switch v := v.(*AvroSchema); i { 197 case 0: 198 return &v.state 199 case 1: 200 return &v.sizeCache 201 case 2: 202 return &v.unknownFields 203 default: 204 return nil 205 } 206 } 207 file_google_cloud_bigquery_storage_v1beta2_avro_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 208 switch v := v.(*AvroRows); i { 209 case 0: 210 return &v.state 211 case 1: 212 return &v.sizeCache 213 case 2: 214 return &v.unknownFields 215 default: 216 return nil 217 } 218 } 219 } 220 type x struct{} 221 out := protoimpl.TypeBuilder{ 222 File: protoimpl.DescBuilder{ 223 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 224 RawDescriptor: file_google_cloud_bigquery_storage_v1beta2_avro_proto_rawDesc, 225 NumEnums: 0, 226 NumMessages: 2, 227 NumExtensions: 0, 228 NumServices: 0, 229 }, 230 GoTypes: file_google_cloud_bigquery_storage_v1beta2_avro_proto_goTypes, 231 DependencyIndexes: file_google_cloud_bigquery_storage_v1beta2_avro_proto_depIdxs, 232 MessageInfos: file_google_cloud_bigquery_storage_v1beta2_avro_proto_msgTypes, 233 }.Build() 234 File_google_cloud_bigquery_storage_v1beta2_avro_proto = out.File 235 file_google_cloud_bigquery_storage_v1beta2_avro_proto_rawDesc = nil 236 file_google_cloud_bigquery_storage_v1beta2_avro_proto_goTypes = nil 237 file_google_cloud_bigquery_storage_v1beta2_avro_proto_depIdxs = nil 238} 239