1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/privacy/dlp/v2beta1/storage.proto
6 import proto "github.com/golang/protobuf/proto"
9 import _ "google.golang.org/genproto/googleapis/api/annotations"
10 import _ "github.com/golang/protobuf/ptypes/timestamp"
12 // Reference imports to suppress errors if they are not otherwise used.
17 // Type of information detected by the API.
18 type InfoType struct {
19 // Name of the information type.
20 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
23 func (m *InfoType) Reset() { *m = InfoType{} }
24 func (m *InfoType) String() string { return proto.CompactTextString(m) }
25 func (*InfoType) ProtoMessage() {}
26 func (*InfoType) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
28 func (m *InfoType) GetName() string {
35 // General identifier of a data field in a storage service.
37 // Name describing the field.
38 ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName" json:"column_name,omitempty"`
41 func (m *FieldId) Reset() { *m = FieldId{} }
42 func (m *FieldId) String() string { return proto.CompactTextString(m) }
43 func (*FieldId) ProtoMessage() {}
44 func (*FieldId) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
46 func (m *FieldId) GetColumnName() string {
53 // Datastore partition ID.
54 // A partition ID identifies a grouping of entities. The grouping is always
55 // by project and namespace, however the namespace ID may be empty.
57 // A partition ID contains several dimensions:
58 // project ID and namespace ID.
59 type PartitionId struct {
60 // The ID of the project to which the entities belong.
61 ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
62 // If not empty, the ID of the namespace to which the entities belong.
63 NamespaceId string `protobuf:"bytes,4,opt,name=namespace_id,json=namespaceId" json:"namespace_id,omitempty"`
66 func (m *PartitionId) Reset() { *m = PartitionId{} }
67 func (m *PartitionId) String() string { return proto.CompactTextString(m) }
68 func (*PartitionId) ProtoMessage() {}
69 func (*PartitionId) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
71 func (m *PartitionId) GetProjectId() string {
78 func (m *PartitionId) GetNamespaceId() string {
85 // A representation of a Datastore kind.
86 type KindExpression struct {
87 // The name of the kind.
88 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
91 func (m *KindExpression) Reset() { *m = KindExpression{} }
92 func (m *KindExpression) String() string { return proto.CompactTextString(m) }
93 func (*KindExpression) ProtoMessage() {}
94 func (*KindExpression) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
96 func (m *KindExpression) GetName() string {
103 // A reference to a property relative to the Datastore kind expressions.
104 type PropertyReference struct {
105 // The name of the property.
106 // If name includes "."s, it may be interpreted as a property name path.
107 Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
110 func (m *PropertyReference) Reset() { *m = PropertyReference{} }
111 func (m *PropertyReference) String() string { return proto.CompactTextString(m) }
112 func (*PropertyReference) ProtoMessage() {}
113 func (*PropertyReference) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
115 func (m *PropertyReference) GetName() string {
122 // A representation of a Datastore property in a projection.
123 type Projection struct {
124 // The property to project.
125 Property *PropertyReference `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
128 func (m *Projection) Reset() { *m = Projection{} }
129 func (m *Projection) String() string { return proto.CompactTextString(m) }
130 func (*Projection) ProtoMessage() {}
131 func (*Projection) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
133 func (m *Projection) GetProperty() *PropertyReference {
140 // Options defining a data set within Google Cloud Datastore.
141 type DatastoreOptions struct {
142 // A partition ID identifies a grouping of entities. The grouping is always
143 // by project and namespace, however the namespace ID may be empty.
144 PartitionId *PartitionId `protobuf:"bytes,1,opt,name=partition_id,json=partitionId" json:"partition_id,omitempty"`
145 // The kind to process.
146 Kind *KindExpression `protobuf:"bytes,2,opt,name=kind" json:"kind,omitempty"`
147 // Properties to scan. If none are specified, all properties will be scanned
149 Projection []*Projection `protobuf:"bytes,3,rep,name=projection" json:"projection,omitempty"`
152 func (m *DatastoreOptions) Reset() { *m = DatastoreOptions{} }
153 func (m *DatastoreOptions) String() string { return proto.CompactTextString(m) }
154 func (*DatastoreOptions) ProtoMessage() {}
155 func (*DatastoreOptions) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{6} }
157 func (m *DatastoreOptions) GetPartitionId() *PartitionId {
164 func (m *DatastoreOptions) GetKind() *KindExpression {
171 func (m *DatastoreOptions) GetProjection() []*Projection {
178 // Options defining a file or a set of files (path ending with *) within
179 // a Google Cloud Storage bucket.
180 type CloudStorageOptions struct {
181 FileSet *CloudStorageOptions_FileSet `protobuf:"bytes,1,opt,name=file_set,json=fileSet" json:"file_set,omitempty"`
184 func (m *CloudStorageOptions) Reset() { *m = CloudStorageOptions{} }
185 func (m *CloudStorageOptions) String() string { return proto.CompactTextString(m) }
186 func (*CloudStorageOptions) ProtoMessage() {}
187 func (*CloudStorageOptions) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7} }
189 func (m *CloudStorageOptions) GetFileSet() *CloudStorageOptions_FileSet {
196 // Set of files to scan.
197 type CloudStorageOptions_FileSet struct {
198 // The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the
200 Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
203 func (m *CloudStorageOptions_FileSet) Reset() { *m = CloudStorageOptions_FileSet{} }
204 func (m *CloudStorageOptions_FileSet) String() string { return proto.CompactTextString(m) }
205 func (*CloudStorageOptions_FileSet) ProtoMessage() {}
206 func (*CloudStorageOptions_FileSet) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{7, 0} }
208 func (m *CloudStorageOptions_FileSet) GetUrl() string {
215 // A location in Cloud Storage.
216 type CloudStoragePath struct {
217 // The url, in the format of `gs://bucket/<path>`.
218 Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
221 func (m *CloudStoragePath) Reset() { *m = CloudStoragePath{} }
222 func (m *CloudStoragePath) String() string { return proto.CompactTextString(m) }
223 func (*CloudStoragePath) ProtoMessage() {}
224 func (*CloudStoragePath) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{8} }
226 func (m *CloudStoragePath) GetPath() string {
233 // Options defining BigQuery table and row identifiers.
234 type BigQueryOptions struct {
235 // Complete BigQuery table reference.
236 TableReference *BigQueryTable `protobuf:"bytes,1,opt,name=table_reference,json=tableReference" json:"table_reference,omitempty"`
237 // References to fields uniquely identifying rows within the table.
238 // Nested fields in the format, like `person.birthdate.year`, are allowed.
239 IdentifyingFields []*FieldId `protobuf:"bytes,2,rep,name=identifying_fields,json=identifyingFields" json:"identifying_fields,omitempty"`
242 func (m *BigQueryOptions) Reset() { *m = BigQueryOptions{} }
243 func (m *BigQueryOptions) String() string { return proto.CompactTextString(m) }
244 func (*BigQueryOptions) ProtoMessage() {}
245 func (*BigQueryOptions) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{9} }
247 func (m *BigQueryOptions) GetTableReference() *BigQueryTable {
249 return m.TableReference
254 func (m *BigQueryOptions) GetIdentifyingFields() []*FieldId {
256 return m.IdentifyingFields
261 // Shared message indicating Cloud storage type.
262 type StorageConfig struct {
263 // Types that are valid to be assigned to Type:
264 // *StorageConfig_DatastoreOptions
265 // *StorageConfig_CloudStorageOptions
266 // *StorageConfig_BigQueryOptions
267 Type isStorageConfig_Type `protobuf_oneof:"type"`
270 func (m *StorageConfig) Reset() { *m = StorageConfig{} }
271 func (m *StorageConfig) String() string { return proto.CompactTextString(m) }
272 func (*StorageConfig) ProtoMessage() {}
273 func (*StorageConfig) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{10} }
275 type isStorageConfig_Type interface {
276 isStorageConfig_Type()
279 type StorageConfig_DatastoreOptions struct {
280 DatastoreOptions *DatastoreOptions `protobuf:"bytes,2,opt,name=datastore_options,json=datastoreOptions,oneof"`
282 type StorageConfig_CloudStorageOptions struct {
283 CloudStorageOptions *CloudStorageOptions `protobuf:"bytes,3,opt,name=cloud_storage_options,json=cloudStorageOptions,oneof"`
285 type StorageConfig_BigQueryOptions struct {
286 BigQueryOptions *BigQueryOptions `protobuf:"bytes,4,opt,name=big_query_options,json=bigQueryOptions,oneof"`
289 func (*StorageConfig_DatastoreOptions) isStorageConfig_Type() {}
290 func (*StorageConfig_CloudStorageOptions) isStorageConfig_Type() {}
291 func (*StorageConfig_BigQueryOptions) isStorageConfig_Type() {}
293 func (m *StorageConfig) GetType() isStorageConfig_Type {
300 func (m *StorageConfig) GetDatastoreOptions() *DatastoreOptions {
301 if x, ok := m.GetType().(*StorageConfig_DatastoreOptions); ok {
302 return x.DatastoreOptions
307 func (m *StorageConfig) GetCloudStorageOptions() *CloudStorageOptions {
308 if x, ok := m.GetType().(*StorageConfig_CloudStorageOptions); ok {
309 return x.CloudStorageOptions
314 func (m *StorageConfig) GetBigQueryOptions() *BigQueryOptions {
315 if x, ok := m.GetType().(*StorageConfig_BigQueryOptions); ok {
316 return x.BigQueryOptions
321 // XXX_OneofFuncs is for the internal use of the proto package.
322 func (*StorageConfig) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
323 return _StorageConfig_OneofMarshaler, _StorageConfig_OneofUnmarshaler, _StorageConfig_OneofSizer, []interface{}{
324 (*StorageConfig_DatastoreOptions)(nil),
325 (*StorageConfig_CloudStorageOptions)(nil),
326 (*StorageConfig_BigQueryOptions)(nil),
330 func _StorageConfig_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
331 m := msg.(*StorageConfig)
333 switch x := m.Type.(type) {
334 case *StorageConfig_DatastoreOptions:
335 b.EncodeVarint(2<<3 | proto.WireBytes)
336 if err := b.EncodeMessage(x.DatastoreOptions); err != nil {
339 case *StorageConfig_CloudStorageOptions:
340 b.EncodeVarint(3<<3 | proto.WireBytes)
341 if err := b.EncodeMessage(x.CloudStorageOptions); err != nil {
344 case *StorageConfig_BigQueryOptions:
345 b.EncodeVarint(4<<3 | proto.WireBytes)
346 if err := b.EncodeMessage(x.BigQueryOptions); err != nil {
351 return fmt.Errorf("StorageConfig.Type has unexpected type %T", x)
356 func _StorageConfig_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
357 m := msg.(*StorageConfig)
359 case 2: // type.datastore_options
360 if wire != proto.WireBytes {
361 return true, proto.ErrInternalBadWireType
363 msg := new(DatastoreOptions)
364 err := b.DecodeMessage(msg)
365 m.Type = &StorageConfig_DatastoreOptions{msg}
367 case 3: // type.cloud_storage_options
368 if wire != proto.WireBytes {
369 return true, proto.ErrInternalBadWireType
371 msg := new(CloudStorageOptions)
372 err := b.DecodeMessage(msg)
373 m.Type = &StorageConfig_CloudStorageOptions{msg}
375 case 4: // type.big_query_options
376 if wire != proto.WireBytes {
377 return true, proto.ErrInternalBadWireType
379 msg := new(BigQueryOptions)
380 err := b.DecodeMessage(msg)
381 m.Type = &StorageConfig_BigQueryOptions{msg}
388 func _StorageConfig_OneofSizer(msg proto.Message) (n int) {
389 m := msg.(*StorageConfig)
391 switch x := m.Type.(type) {
392 case *StorageConfig_DatastoreOptions:
393 s := proto.Size(x.DatastoreOptions)
394 n += proto.SizeVarint(2<<3 | proto.WireBytes)
395 n += proto.SizeVarint(uint64(s))
397 case *StorageConfig_CloudStorageOptions:
398 s := proto.Size(x.CloudStorageOptions)
399 n += proto.SizeVarint(3<<3 | proto.WireBytes)
400 n += proto.SizeVarint(uint64(s))
402 case *StorageConfig_BigQueryOptions:
403 s := proto.Size(x.BigQueryOptions)
404 n += proto.SizeVarint(4<<3 | proto.WireBytes)
405 n += proto.SizeVarint(uint64(s))
409 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
414 // Record key for a finding in a Cloud Storage file.
415 type CloudStorageKey struct {
417 FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath" json:"file_path,omitempty"`
418 // Byte offset of the referenced data in the file.
419 StartOffset int64 `protobuf:"varint,2,opt,name=start_offset,json=startOffset" json:"start_offset,omitempty"`
422 func (m *CloudStorageKey) Reset() { *m = CloudStorageKey{} }
423 func (m *CloudStorageKey) String() string { return proto.CompactTextString(m) }
424 func (*CloudStorageKey) ProtoMessage() {}
425 func (*CloudStorageKey) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{11} }
427 func (m *CloudStorageKey) GetFilePath() string {
434 func (m *CloudStorageKey) GetStartOffset() int64 {
441 // Record key for a finding in Cloud Datastore.
442 type DatastoreKey struct {
443 // Datastore entity key.
444 EntityKey *Key `protobuf:"bytes,1,opt,name=entity_key,json=entityKey" json:"entity_key,omitempty"`
447 func (m *DatastoreKey) Reset() { *m = DatastoreKey{} }
448 func (m *DatastoreKey) String() string { return proto.CompactTextString(m) }
449 func (*DatastoreKey) ProtoMessage() {}
450 func (*DatastoreKey) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{12} }
452 func (m *DatastoreKey) GetEntityKey() *Key {
459 // A unique identifier for a Datastore entity.
460 // If a key's partition ID or any of its path kinds or names are
461 // reserved/read-only, the key is reserved/read-only.
462 // A reserved/read-only key is forbidden in certain documented contexts.
464 // Entities are partitioned into subsets, currently identified by a project
465 // ID and namespace ID.
466 // Queries are scoped to a single partition.
467 PartitionId *PartitionId `protobuf:"bytes,1,opt,name=partition_id,json=partitionId" json:"partition_id,omitempty"`
469 // An entity path consists of one or more elements composed of a kind and a
470 // string or numerical identifier, which identify entities. The first
471 // element identifies a _root entity_, the second element identifies
472 // a _child_ of the root entity, the third element identifies a child of the
473 // second entity, and so forth. The entities identified by all prefixes of
474 // the path are called the element's _ancestors_.
476 // A path can never be empty, and a path can have at most 100 elements.
477 Path []*Key_PathElement `protobuf:"bytes,2,rep,name=path" json:"path,omitempty"`
480 func (m *Key) Reset() { *m = Key{} }
481 func (m *Key) String() string { return proto.CompactTextString(m) }
482 func (*Key) ProtoMessage() {}
483 func (*Key) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{13} }
485 func (m *Key) GetPartitionId() *PartitionId {
492 func (m *Key) GetPath() []*Key_PathElement {
499 // A (kind, ID/name) pair used to construct a key path.
501 // If either name or ID is set, the element is complete.
502 // If neither is set, the element is incomplete.
503 type Key_PathElement struct {
504 // The kind of the entity.
505 // A kind matching regex `__.*__` is reserved/read-only.
506 // A kind must not contain more than 1500 bytes when UTF-8 encoded.
508 Kind string `protobuf:"bytes,1,opt,name=kind" json:"kind,omitempty"`
511 // Types that are valid to be assigned to IdType:
512 // *Key_PathElement_Id
513 // *Key_PathElement_Name
514 IdType isKey_PathElement_IdType `protobuf_oneof:"id_type"`
517 func (m *Key_PathElement) Reset() { *m = Key_PathElement{} }
518 func (m *Key_PathElement) String() string { return proto.CompactTextString(m) }
519 func (*Key_PathElement) ProtoMessage() {}
520 func (*Key_PathElement) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{13, 0} }
522 type isKey_PathElement_IdType interface {
523 isKey_PathElement_IdType()
526 type Key_PathElement_Id struct {
527 Id int64 `protobuf:"varint,2,opt,name=id,oneof"`
529 type Key_PathElement_Name struct {
530 Name string `protobuf:"bytes,3,opt,name=name,oneof"`
533 func (*Key_PathElement_Id) isKey_PathElement_IdType() {}
534 func (*Key_PathElement_Name) isKey_PathElement_IdType() {}
536 func (m *Key_PathElement) GetIdType() isKey_PathElement_IdType {
543 func (m *Key_PathElement) GetKind() string {
550 func (m *Key_PathElement) GetId() int64 {
551 if x, ok := m.GetIdType().(*Key_PathElement_Id); ok {
557 func (m *Key_PathElement) GetName() string {
558 if x, ok := m.GetIdType().(*Key_PathElement_Name); ok {
564 // XXX_OneofFuncs is for the internal use of the proto package.
565 func (*Key_PathElement) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
566 return _Key_PathElement_OneofMarshaler, _Key_PathElement_OneofUnmarshaler, _Key_PathElement_OneofSizer, []interface{}{
567 (*Key_PathElement_Id)(nil),
568 (*Key_PathElement_Name)(nil),
572 func _Key_PathElement_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
573 m := msg.(*Key_PathElement)
575 switch x := m.IdType.(type) {
576 case *Key_PathElement_Id:
577 b.EncodeVarint(2<<3 | proto.WireVarint)
578 b.EncodeVarint(uint64(x.Id))
579 case *Key_PathElement_Name:
580 b.EncodeVarint(3<<3 | proto.WireBytes)
581 b.EncodeStringBytes(x.Name)
584 return fmt.Errorf("Key_PathElement.IdType has unexpected type %T", x)
589 func _Key_PathElement_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
590 m := msg.(*Key_PathElement)
592 case 2: // id_type.id
593 if wire != proto.WireVarint {
594 return true, proto.ErrInternalBadWireType
596 x, err := b.DecodeVarint()
597 m.IdType = &Key_PathElement_Id{int64(x)}
599 case 3: // id_type.name
600 if wire != proto.WireBytes {
601 return true, proto.ErrInternalBadWireType
603 x, err := b.DecodeStringBytes()
604 m.IdType = &Key_PathElement_Name{x}
611 func _Key_PathElement_OneofSizer(msg proto.Message) (n int) {
612 m := msg.(*Key_PathElement)
614 switch x := m.IdType.(type) {
615 case *Key_PathElement_Id:
616 n += proto.SizeVarint(2<<3 | proto.WireVarint)
617 n += proto.SizeVarint(uint64(x.Id))
618 case *Key_PathElement_Name:
619 n += proto.SizeVarint(3<<3 | proto.WireBytes)
620 n += proto.SizeVarint(uint64(len(x.Name)))
624 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
629 // Message for a unique key indicating a record that contains a finding.
630 type RecordKey struct {
631 // Types that are valid to be assigned to Type:
632 // *RecordKey_CloudStorageKey
633 // *RecordKey_DatastoreKey
634 Type isRecordKey_Type `protobuf_oneof:"type"`
637 func (m *RecordKey) Reset() { *m = RecordKey{} }
638 func (m *RecordKey) String() string { return proto.CompactTextString(m) }
639 func (*RecordKey) ProtoMessage() {}
640 func (*RecordKey) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{14} }
642 type isRecordKey_Type interface {
646 type RecordKey_CloudStorageKey struct {
647 CloudStorageKey *CloudStorageKey `protobuf:"bytes,1,opt,name=cloud_storage_key,json=cloudStorageKey,oneof"`
649 type RecordKey_DatastoreKey struct {
650 DatastoreKey *DatastoreKey `protobuf:"bytes,2,opt,name=datastore_key,json=datastoreKey,oneof"`
653 func (*RecordKey_CloudStorageKey) isRecordKey_Type() {}
654 func (*RecordKey_DatastoreKey) isRecordKey_Type() {}
656 func (m *RecordKey) GetType() isRecordKey_Type {
663 func (m *RecordKey) GetCloudStorageKey() *CloudStorageKey {
664 if x, ok := m.GetType().(*RecordKey_CloudStorageKey); ok {
665 return x.CloudStorageKey
670 func (m *RecordKey) GetDatastoreKey() *DatastoreKey {
671 if x, ok := m.GetType().(*RecordKey_DatastoreKey); ok {
672 return x.DatastoreKey
677 // XXX_OneofFuncs is for the internal use of the proto package.
678 func (*RecordKey) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
679 return _RecordKey_OneofMarshaler, _RecordKey_OneofUnmarshaler, _RecordKey_OneofSizer, []interface{}{
680 (*RecordKey_CloudStorageKey)(nil),
681 (*RecordKey_DatastoreKey)(nil),
685 func _RecordKey_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
686 m := msg.(*RecordKey)
688 switch x := m.Type.(type) {
689 case *RecordKey_CloudStorageKey:
690 b.EncodeVarint(1<<3 | proto.WireBytes)
691 if err := b.EncodeMessage(x.CloudStorageKey); err != nil {
694 case *RecordKey_DatastoreKey:
695 b.EncodeVarint(2<<3 | proto.WireBytes)
696 if err := b.EncodeMessage(x.DatastoreKey); err != nil {
701 return fmt.Errorf("RecordKey.Type has unexpected type %T", x)
706 func _RecordKey_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
707 m := msg.(*RecordKey)
709 case 1: // type.cloud_storage_key
710 if wire != proto.WireBytes {
711 return true, proto.ErrInternalBadWireType
713 msg := new(CloudStorageKey)
714 err := b.DecodeMessage(msg)
715 m.Type = &RecordKey_CloudStorageKey{msg}
717 case 2: // type.datastore_key
718 if wire != proto.WireBytes {
719 return true, proto.ErrInternalBadWireType
721 msg := new(DatastoreKey)
722 err := b.DecodeMessage(msg)
723 m.Type = &RecordKey_DatastoreKey{msg}
730 func _RecordKey_OneofSizer(msg proto.Message) (n int) {
731 m := msg.(*RecordKey)
733 switch x := m.Type.(type) {
734 case *RecordKey_CloudStorageKey:
735 s := proto.Size(x.CloudStorageKey)
736 n += proto.SizeVarint(1<<3 | proto.WireBytes)
737 n += proto.SizeVarint(uint64(s))
739 case *RecordKey_DatastoreKey:
740 s := proto.Size(x.DatastoreKey)
741 n += proto.SizeVarint(2<<3 | proto.WireBytes)
742 n += proto.SizeVarint(uint64(s))
746 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
751 // Message defining the location of a BigQuery table. A table is uniquely
752 // identified by its project_id, dataset_id, and table_name. Within a query
753 // a table is often referenced with a string in the format of:
754 // `<project_id>:<dataset_id>.<table_id>` or
755 // `<project_id>.<dataset_id>.<table_id>`.
756 type BigQueryTable struct {
757 // The Google Cloud Platform project ID of the project containing the table.
758 // If omitted, project ID is inferred from the API call.
759 ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
760 // Dataset ID of the table.
761 DatasetId string `protobuf:"bytes,2,opt,name=dataset_id,json=datasetId" json:"dataset_id,omitempty"`
762 // Name of the table.
763 TableId string `protobuf:"bytes,3,opt,name=table_id,json=tableId" json:"table_id,omitempty"`
766 func (m *BigQueryTable) Reset() { *m = BigQueryTable{} }
767 func (m *BigQueryTable) String() string { return proto.CompactTextString(m) }
768 func (*BigQueryTable) ProtoMessage() {}
769 func (*BigQueryTable) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{15} }
771 func (m *BigQueryTable) GetProjectId() string {
778 func (m *BigQueryTable) GetDatasetId() string {
785 func (m *BigQueryTable) GetTableId() string {
793 proto.RegisterType((*InfoType)(nil), "google.privacy.dlp.v2beta1.InfoType")
794 proto.RegisterType((*FieldId)(nil), "google.privacy.dlp.v2beta1.FieldId")
795 proto.RegisterType((*PartitionId)(nil), "google.privacy.dlp.v2beta1.PartitionId")
796 proto.RegisterType((*KindExpression)(nil), "google.privacy.dlp.v2beta1.KindExpression")
797 proto.RegisterType((*PropertyReference)(nil), "google.privacy.dlp.v2beta1.PropertyReference")
798 proto.RegisterType((*Projection)(nil), "google.privacy.dlp.v2beta1.Projection")
799 proto.RegisterType((*DatastoreOptions)(nil), "google.privacy.dlp.v2beta1.DatastoreOptions")
800 proto.RegisterType((*CloudStorageOptions)(nil), "google.privacy.dlp.v2beta1.CloudStorageOptions")
801 proto.RegisterType((*CloudStorageOptions_FileSet)(nil), "google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet")
802 proto.RegisterType((*CloudStoragePath)(nil), "google.privacy.dlp.v2beta1.CloudStoragePath")
803 proto.RegisterType((*BigQueryOptions)(nil), "google.privacy.dlp.v2beta1.BigQueryOptions")
804 proto.RegisterType((*StorageConfig)(nil), "google.privacy.dlp.v2beta1.StorageConfig")
805 proto.RegisterType((*CloudStorageKey)(nil), "google.privacy.dlp.v2beta1.CloudStorageKey")
806 proto.RegisterType((*DatastoreKey)(nil), "google.privacy.dlp.v2beta1.DatastoreKey")
807 proto.RegisterType((*Key)(nil), "google.privacy.dlp.v2beta1.Key")
808 proto.RegisterType((*Key_PathElement)(nil), "google.privacy.dlp.v2beta1.Key.PathElement")
809 proto.RegisterType((*RecordKey)(nil), "google.privacy.dlp.v2beta1.RecordKey")
810 proto.RegisterType((*BigQueryTable)(nil), "google.privacy.dlp.v2beta1.BigQueryTable")
813 func init() { proto.RegisterFile("google/privacy/dlp/v2beta1/storage.proto", fileDescriptor1) }
815 var fileDescriptor1 = []byte{
816 // 909 bytes of a gzipped FileDescriptorProto
817 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xef, 0x6e, 0x1b, 0x45,
818 0x10, 0xcf, 0xd9, 0x56, 0x13, 0x8f, 0x9d, 0xc6, 0xbe, 0x82, 0x64, 0x5c, 0xda, 0xb4, 0x07, 0x6a,
819 0x43, 0x03, 0x77, 0xc2, 0x7c, 0xe0, 0x03, 0xa2, 0x48, 0x6e, 0x1a, 0x62, 0x22, 0x35, 0xe9, 0x36,
820 0x02, 0x15, 0x3e, 0x9c, 0xd6, 0xb7, 0x7b, 0x97, 0xa5, 0xe7, 0xdb, 0xe5, 0x6e, 0x5d, 0x71, 0x2f,
821 0x80, 0x78, 0x16, 0x1e, 0x00, 0x89, 0x4f, 0xbc, 0x0d, 0xe2, 0x31, 0xd0, 0xfe, 0xf1, 0xf9, 0x62,
822 0x8c, 0x1b, 0xa4, 0x7e, 0x5b, 0xcf, 0xcd, 0xfc, 0x66, 0xe7, 0x37, 0xbf, 0x99, 0x35, 0x1c, 0x24,
823 0x9c, 0x27, 0x29, 0x0d, 0x44, 0xce, 0x5e, 0xe3, 0xa8, 0x0c, 0x48, 0x2a, 0x82, 0xd7, 0xa3, 0x29,
824 0x95, 0xf8, 0xd3, 0xa0, 0x90, 0x3c, 0xc7, 0x09, 0xf5, 0x45, 0xce, 0x25, 0x77, 0x87, 0xc6, 0xd3,
825 0xb7, 0x9e, 0x3e, 0x49, 0x85, 0x6f, 0x3d, 0x87, 0xef, 0x5b, 0x14, 0x2c, 0x58, 0x80, 0xb3, 0x8c,
826 0x4b, 0x2c, 0x19, 0xcf, 0x0a, 0x13, 0x39, 0xdc, 0xaf, 0x72, 0x70, 0xc9, 0xa7, 0xf3, 0x38, 0x90,
827 0x6c, 0x46, 0x0b, 0x89, 0x67, 0xc2, 0x38, 0x78, 0x77, 0x61, 0x67, 0x92, 0xc5, 0xfc, 0xa2, 0x14,
828 0xd4, 0x75, 0xa1, 0x95, 0xe1, 0x19, 0x1d, 0x38, 0xf7, 0x9c, 0x83, 0x36, 0xd2, 0x67, 0xef, 0x11,
829 0x6c, 0x1f, 0x33, 0x9a, 0x92, 0x09, 0x71, 0xf7, 0xa1, 0x13, 0xf1, 0x74, 0x3e, 0xcb, 0xc2, 0x9a,
830 0x17, 0x18, 0xd3, 0x33, 0xe5, 0x7b, 0x06, 0x9d, 0x73, 0x9c, 0x4b, 0xa6, 0x2e, 0x30, 0x21, 0xee,
831 0x1d, 0x00, 0x91, 0xf3, 0x1f, 0x69, 0x24, 0x43, 0x46, 0x06, 0x0d, 0xed, 0xde, 0xb6, 0x96, 0x09,
832 0x71, 0xef, 0x43, 0x57, 0xe1, 0x14, 0x02, 0x47, 0x54, 0x39, 0xb4, 0xb4, 0x43, 0xa7, 0xb2, 0x4d,
833 0x88, 0xf7, 0x21, 0xdc, 0x3c, 0x65, 0x19, 0x79, 0xfa, 0xb3, 0xc8, 0x69, 0x51, 0x30, 0x9e, 0xad,
834 0xbd, 0xe2, 0x43, 0xe8, 0x9f, 0xe7, 0x5c, 0xd0, 0x5c, 0x96, 0x88, 0xc6, 0x34, 0xa7, 0x59, 0xb4,
835 0xac, 0xa5, 0x51, 0x73, 0xfc, 0x0e, 0xe0, 0xdc, 0xa4, 0x57, 0x50, 0x13, 0xd8, 0x11, 0x36, 0x4c,
836 0xc3, 0x75, 0x46, 0x9f, 0xf8, 0xff, 0xcd, 0xb3, 0xff, 0xaf, 0x14, 0xa8, 0x0a, 0xf7, 0xfe, 0x72,
837 0xa0, 0x77, 0x84, 0x25, 0x56, 0x5d, 0xa3, 0x67, 0x42, 0x37, 0xc0, 0xfd, 0x06, 0xba, 0x62, 0xc1,
838 0x86, 0xaa, 0xcf, 0xe4, 0x78, 0xb8, 0x31, 0xc7, 0x92, 0x3d, 0xd4, 0x11, 0x35, 0x2a, 0x1f, 0x43,
839 0xeb, 0x15, 0xcb, 0x0c, 0x89, 0x9d, 0xd1, 0xa3, 0x4d, 0x18, 0x57, 0x09, 0x43, 0x3a, 0xce, 0x3d,
840 0xae, 0x5a, 0xc1, 0x78, 0x36, 0x68, 0xde, 0x6b, 0x1e, 0x74, 0x46, 0x0f, 0xde, 0x50, 0xad, 0xf5,
841 0x46, 0xb5, 0x48, 0xef, 0x17, 0x07,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