...

Source file src/cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb/table_reference.pb.go

Documentation: cloud.google.com/go/bigquery/storage/apiv1beta1/storagepb

     1  // Copyright 2023 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.32.0
    18  // 	protoc        v4.25.2
    19  // source: google/cloud/bigquery/storage/v1beta1/table_reference.proto
    20  
    21  package storagepb
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    30  )
    31  
    32  const (
    33  	// Verify that this generated code is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    35  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    37  )
    38  
    39  // Table reference that includes just the 3 strings needed to identify a table.
    40  type TableReference struct {
    41  	state         protoimpl.MessageState
    42  	sizeCache     protoimpl.SizeCache
    43  	unknownFields protoimpl.UnknownFields
    44  
    45  	// The assigned project ID of the project.
    46  	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
    47  	// The ID of the dataset in the above project.
    48  	DatasetId string `protobuf:"bytes,2,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"`
    49  	// The ID of the table in the above dataset.
    50  	TableId string `protobuf:"bytes,3,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
    51  }
    52  
    53  func (x *TableReference) Reset() {
    54  	*x = TableReference{}
    55  	if protoimpl.UnsafeEnabled {
    56  		mi := &file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_msgTypes[0]
    57  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    58  		ms.StoreMessageInfo(mi)
    59  	}
    60  }
    61  
    62  func (x *TableReference) String() string {
    63  	return protoimpl.X.MessageStringOf(x)
    64  }
    65  
    66  func (*TableReference) ProtoMessage() {}
    67  
    68  func (x *TableReference) ProtoReflect() protoreflect.Message {
    69  	mi := &file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_msgTypes[0]
    70  	if protoimpl.UnsafeEnabled && x != nil {
    71  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    72  		if ms.LoadMessageInfo() == nil {
    73  			ms.StoreMessageInfo(mi)
    74  		}
    75  		return ms
    76  	}
    77  	return mi.MessageOf(x)
    78  }
    79  
    80  // Deprecated: Use TableReference.ProtoReflect.Descriptor instead.
    81  func (*TableReference) Descriptor() ([]byte, []int) {
    82  	return file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_rawDescGZIP(), []int{0}
    83  }
    84  
    85  func (x *TableReference) GetProjectId() string {
    86  	if x != nil {
    87  		return x.ProjectId
    88  	}
    89  	return ""
    90  }
    91  
    92  func (x *TableReference) GetDatasetId() string {
    93  	if x != nil {
    94  		return x.DatasetId
    95  	}
    96  	return ""
    97  }
    98  
    99  func (x *TableReference) GetTableId() string {
   100  	if x != nil {
   101  		return x.TableId
   102  	}
   103  	return ""
   104  }
   105  
   106  // All fields in this message optional.
   107  type TableModifiers struct {
   108  	state         protoimpl.MessageState
   109  	sizeCache     protoimpl.SizeCache
   110  	unknownFields protoimpl.UnknownFields
   111  
   112  	// The snapshot time of the table. If not set, interpreted as now.
   113  	SnapshotTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=snapshot_time,json=snapshotTime,proto3" json:"snapshot_time,omitempty"`
   114  }
   115  
   116  func (x *TableModifiers) Reset() {
   117  	*x = TableModifiers{}
   118  	if protoimpl.UnsafeEnabled {
   119  		mi := &file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_msgTypes[1]
   120  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   121  		ms.StoreMessageInfo(mi)
   122  	}
   123  }
   124  
   125  func (x *TableModifiers) String() string {
   126  	return protoimpl.X.MessageStringOf(x)
   127  }
   128  
   129  func (*TableModifiers) ProtoMessage() {}
   130  
   131  func (x *TableModifiers) ProtoReflect() protoreflect.Message {
   132  	mi := &file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_msgTypes[1]
   133  	if protoimpl.UnsafeEnabled && x != nil {
   134  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   135  		if ms.LoadMessageInfo() == nil {
   136  			ms.StoreMessageInfo(mi)
   137  		}
   138  		return ms
   139  	}
   140  	return mi.MessageOf(x)
   141  }
   142  
   143  // Deprecated: Use TableModifiers.ProtoReflect.Descriptor instead.
   144  func (*TableModifiers) Descriptor() ([]byte, []int) {
   145  	return file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_rawDescGZIP(), []int{1}
   146  }
   147  
   148  func (x *TableModifiers) GetSnapshotTime() *timestamppb.Timestamp {
   149  	if x != nil {
   150  		return x.SnapshotTime
   151  	}
   152  	return nil
   153  }
   154  
   155  var File_google_cloud_bigquery_storage_v1beta1_table_reference_proto protoreflect.FileDescriptor
   156  
   157  var file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_rawDesc = []byte{
   158  	0x0a, 0x3b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x62,
   159  	0x69, 0x67, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f,
   160  	0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65,
   161  	0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x25, 0x67,
   162  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71,
   163  	0x75, 0x65, 0x72, 0x79, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x62,
   164  	0x65, 0x74, 0x61, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
   165  	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e,
   166  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x69, 0x0a, 0x0e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65,
   167  	0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65,
   168  	0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f,
   169  	0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65,
   170  	0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61,
   171  	0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69,
   172  	0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64,
   173  	0x22, 0x51, 0x0a, 0x0e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65,
   174  	0x72, 0x73, 0x12, 0x3f, 0x0a, 0x0d, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x5f, 0x74,
   175  	0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   176  	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
   177  	0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x54,
   178  	0x69, 0x6d, 0x65, 0x42, 0x85, 0x01, 0x0a, 0x29, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
   179  	0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x62, 0x69, 0x67, 0x71, 0x75, 0x65, 0x72,
   180  	0x79, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
   181  	0x31, 0x42, 0x13, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63,
   182  	0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x43, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f,
   183  	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x69, 0x67, 0x71,
   184  	0x75, 0x65, 0x72, 0x79, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2f, 0x61, 0x70, 0x69,
   185  	0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x70,
   186  	0x62, 0x3b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
   187  	0x74, 0x6f, 0x33,
   188  }
   189  
   190  var (
   191  	file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_rawDescOnce sync.Once
   192  	file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_rawDescData = file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_rawDesc
   193  )
   194  
   195  func file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_rawDescGZIP() []byte {
   196  	file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_rawDescOnce.Do(func() {
   197  		file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_rawDescData)
   198  	})
   199  	return file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_rawDescData
   200  }
   201  
   202  var file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   203  var file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_goTypes = []interface{}{
   204  	(*TableReference)(nil),        // 0: google.cloud.bigquery.storage.v1beta1.TableReference
   205  	(*TableModifiers)(nil),        // 1: google.cloud.bigquery.storage.v1beta1.TableModifiers
   206  	(*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
   207  }
   208  var file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_depIdxs = []int32{
   209  	2, // 0: google.cloud.bigquery.storage.v1beta1.TableModifiers.snapshot_time:type_name -> google.protobuf.Timestamp
   210  	1, // [1:1] is the sub-list for method output_type
   211  	1, // [1:1] is the sub-list for method input_type
   212  	1, // [1:1] is the sub-list for extension type_name
   213  	1, // [1:1] is the sub-list for extension extendee
   214  	0, // [0:1] is the sub-list for field type_name
   215  }
   216  
   217  func init() { file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_init() }
   218  func file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_init() {
   219  	if File_google_cloud_bigquery_storage_v1beta1_table_reference_proto != nil {
   220  		return
   221  	}
   222  	if !protoimpl.UnsafeEnabled {
   223  		file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   224  			switch v := v.(*TableReference); i {
   225  			case 0:
   226  				return &v.state
   227  			case 1:
   228  				return &v.sizeCache
   229  			case 2:
   230  				return &v.unknownFields
   231  			default:
   232  				return nil
   233  			}
   234  		}
   235  		file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   236  			switch v := v.(*TableModifiers); i {
   237  			case 0:
   238  				return &v.state
   239  			case 1:
   240  				return &v.sizeCache
   241  			case 2:
   242  				return &v.unknownFields
   243  			default:
   244  				return nil
   245  			}
   246  		}
   247  	}
   248  	type x struct{}
   249  	out := protoimpl.TypeBuilder{
   250  		File: protoimpl.DescBuilder{
   251  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   252  			RawDescriptor: file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_rawDesc,
   253  			NumEnums:      0,
   254  			NumMessages:   2,
   255  			NumExtensions: 0,
   256  			NumServices:   0,
   257  		},
   258  		GoTypes:           file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_goTypes,
   259  		DependencyIndexes: file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_depIdxs,
   260  		MessageInfos:      file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_msgTypes,
   261  	}.Build()
   262  	File_google_cloud_bigquery_storage_v1beta1_table_reference_proto = out.File
   263  	file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_rawDesc = nil
   264  	file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_goTypes = nil
   265  	file_google_cloud_bigquery_storage_v1beta1_table_reference_proto_depIdxs = nil
   266  }
   267  

View as plain text