dlp

package
v0.0.0-...-52d6a69 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package dlp is a generated protocol buffer package.

It is generated from these files:

google/privacy/dlp/v2beta1/dlp.proto
google/privacy/dlp/v2beta1/storage.proto

It has these top-level messages:

InspectConfig
OperationConfig
ContentItem
Table
InspectResult
Finding
Location
TableLocation
Range
ImageLocation
RedactContentRequest
Color
RedactContentResponse
InspectContentRequest
InspectContentResponse
CreateInspectOperationRequest
OutputStorageConfig
InfoTypeStatistics
InspectOperationMetadata
InspectOperationResult
ListInspectFindingsRequest
ListInspectFindingsResponse
InfoTypeDescription
ListInfoTypesRequest
ListInfoTypesResponse
CategoryDescription
ListRootCategoriesRequest
ListRootCategoriesResponse
Value
InfoType
FieldId
PartitionId
KindExpression
PropertyReference
Projection
DatastoreOptions
CloudStorageOptions
CloudStoragePath
BigQueryOptions
StorageConfig
CloudStorageKey
DatastoreKey
Key
RecordKey
BigQueryTable

Index

Constants

This section is empty.

Variables

View Source
var Likelihood_name = map[int32]string{
	0: "LIKELIHOOD_UNSPECIFIED",
	1: "VERY_UNLIKELY",
	2: "UNLIKELY",
	3: "POSSIBLE",
	4: "LIKELY",
	5: "VERY_LIKELY",
}
View Source
var Likelihood_value = map[string]int32{
	"LIKELIHOOD_UNSPECIFIED": 0,
	"VERY_UNLIKELY":          1,
	"UNLIKELY":               2,
	"POSSIBLE":               3,
	"LIKELY":                 4,
	"VERY_LIKELY":            5,
}

Functions

func RegisterDlpServiceServer

func RegisterDlpServiceServer(s *grpc.Server, srv DlpServiceServer)

Types

type BigQueryOptions

type BigQueryOptions struct {
	// Complete BigQuery table reference.
	TableReference *BigQueryTable `protobuf:"bytes,1,opt,name=table_reference,json=tableReference" json:"table_reference,omitempty"`
	// References to fields uniquely identifying rows within the table.
	// Nested fields in the format, like `person.birthdate.year`, are allowed.
	IdentifyingFields []*FieldId `protobuf:"bytes,2,rep,name=identifying_fields,json=identifyingFields" json:"identifying_fields,omitempty"`
}

Options defining BigQuery table and row identifiers.

func (*BigQueryOptions) Descriptor

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

func (*BigQueryOptions) GetIdentifyingFields

func (m *BigQueryOptions) GetIdentifyingFields() []*FieldId

func (*BigQueryOptions) GetTableReference

func (m *BigQueryOptions) GetTableReference() *BigQueryTable

func (*BigQueryOptions) ProtoMessage

func (*BigQueryOptions) ProtoMessage()

func (*BigQueryOptions) Reset

func (m *BigQueryOptions) Reset()

func (*BigQueryOptions) String

func (m *BigQueryOptions) String() string

type BigQueryTable

type BigQueryTable struct {
	// The Google Cloud Platform project ID of the project containing the table.
	// If omitted, project ID is inferred from the API call.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// Dataset ID of the table.
	DatasetId string `protobuf:"bytes,2,opt,name=dataset_id,json=datasetId" json:"dataset_id,omitempty"`
	// Name of the table.
	TableId string `protobuf:"bytes,3,opt,name=table_id,json=tableId" json:"table_id,omitempty"`
}

Message defining the location of a BigQuery table. A table is uniquely identified by its project_id, dataset_id, and table_name. Within a query a table is often referenced with a string in the format of: `<project_id>:<dataset_id>.<table_id>` or `<project_id>.<dataset_id>.<table_id>`.

func (*BigQueryTable) Descriptor

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

func (*BigQueryTable) GetDatasetId

func (m *BigQueryTable) GetDatasetId() string

func (*BigQueryTable) GetProjectId

func (m *BigQueryTable) GetProjectId() string

func (*BigQueryTable) GetTableId

func (m *BigQueryTable) GetTableId() string

func (*BigQueryTable) ProtoMessage

func (*BigQueryTable) ProtoMessage()

func (*BigQueryTable) Reset

func (m *BigQueryTable) Reset()

func (*BigQueryTable) String

func (m *BigQueryTable) String() string

type CategoryDescription

type CategoryDescription struct {
	// Internal name of the category.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Human readable form of the category name.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
}

Info Type Category description.

func (*CategoryDescription) Descriptor

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

func (*CategoryDescription) GetDisplayName

func (m *CategoryDescription) GetDisplayName() string

func (*CategoryDescription) GetName

func (m *CategoryDescription) GetName() string

func (*CategoryDescription) ProtoMessage

func (*CategoryDescription) ProtoMessage()

func (*CategoryDescription) Reset

func (m *CategoryDescription) Reset()

func (*CategoryDescription) String

func (m *CategoryDescription) String() string

type CloudStorageKey

type CloudStorageKey struct {
	// Path to the file.
	FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath" json:"file_path,omitempty"`
	// Byte offset of the referenced data in the file.
	StartOffset int64 `protobuf:"varint,2,opt,name=start_offset,json=startOffset" json:"start_offset,omitempty"`
}

Record key for a finding in a Cloud Storage file.

func (*CloudStorageKey) Descriptor

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

func (*CloudStorageKey) GetFilePath

func (m *CloudStorageKey) GetFilePath() string

func (*CloudStorageKey) GetStartOffset

func (m *CloudStorageKey) GetStartOffset() int64

func (*CloudStorageKey) ProtoMessage

func (*CloudStorageKey) ProtoMessage()

func (*CloudStorageKey) Reset

func (m *CloudStorageKey) Reset()

func (*CloudStorageKey) String

func (m *CloudStorageKey) String() string

type CloudStorageOptions

type CloudStorageOptions struct {
	FileSet *CloudStorageOptions_FileSet `protobuf:"bytes,1,opt,name=file_set,json=fileSet" json:"file_set,omitempty"`
}

Options defining a file or a set of files (path ending with *) within a Google Cloud Storage bucket.

func (*CloudStorageOptions) Descriptor

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

func (*CloudStorageOptions) GetFileSet

func (*CloudStorageOptions) ProtoMessage

func (*CloudStorageOptions) ProtoMessage()

func (*CloudStorageOptions) Reset

func (m *CloudStorageOptions) Reset()

func (*CloudStorageOptions) String

func (m *CloudStorageOptions) String() string

type CloudStorageOptions_FileSet

type CloudStorageOptions_FileSet struct {
	// The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the
	// path is allowed.
	Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
}

Set of files to scan.

func (*CloudStorageOptions_FileSet) Descriptor

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

func (*CloudStorageOptions_FileSet) GetUrl

func (m *CloudStorageOptions_FileSet) GetUrl() string

func (*CloudStorageOptions_FileSet) ProtoMessage

func (*CloudStorageOptions_FileSet) ProtoMessage()

func (*CloudStorageOptions_FileSet) Reset

func (m *CloudStorageOptions_FileSet) Reset()

func (*CloudStorageOptions_FileSet) String

func (m *CloudStorageOptions_FileSet) String() string

type CloudStoragePath

type CloudStoragePath struct {
	// The url, in the format of `gs://bucket/<path>`.
	Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
}

A location in Cloud Storage.

func (*CloudStoragePath) Descriptor

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

func (*CloudStoragePath) GetPath

func (m *CloudStoragePath) GetPath() string

func (*CloudStoragePath) ProtoMessage

func (*CloudStoragePath) ProtoMessage()

func (*CloudStoragePath) Reset

func (m *CloudStoragePath) Reset()

func (*CloudStoragePath) String

func (m *CloudStoragePath) String() string

type Color

type Color struct {
	// The amount of red in the color as a value in the interval [0, 1].
	Red float32 `protobuf:"fixed32,1,opt,name=red" json:"red,omitempty"`
	// The amount of green in the color as a value in the interval [0, 1].
	Green float32 `protobuf:"fixed32,2,opt,name=green" json:"green,omitempty"`
	// The amount of blue in the color as a value in the interval [0, 1].
	Blue float32 `protobuf:"fixed32,3,opt,name=blue" json:"blue,omitempty"`
}

Represents a color in the RGB color space.

func (*Color) Descriptor

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

func (*Color) GetBlue

func (m *Color) GetBlue() float32

func (*Color) GetGreen

func (m *Color) GetGreen() float32

func (*Color) GetRed

func (m *Color) GetRed() float32

func (*Color) ProtoMessage

func (*Color) ProtoMessage()

func (*Color) Reset

func (m *Color) Reset()

func (*Color) String

func (m *Color) String() string

type ContentItem

type ContentItem struct {
	// Type of the content, as defined in Content-Type HTTP header.
	// Supported types are: all "text" types, octet streams, PNG images,
	// JPEG images.
	Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
	// Data of the item either in the byte array or UTF-8 string form.
	//
	// Types that are valid to be assigned to DataItem:
	//	*ContentItem_Data
	//	*ContentItem_Value
	//	*ContentItem_Table
	DataItem isContentItem_DataItem `protobuf_oneof:"data_item"`
}

Container structure for the content to inspect.

func (*ContentItem) Descriptor

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

func (*ContentItem) GetData

func (m *ContentItem) GetData() []byte

func (*ContentItem) GetDataItem

func (m *ContentItem) GetDataItem() isContentItem_DataItem

func (*ContentItem) GetTable

func (m *ContentItem) GetTable() *Table

func (*ContentItem) GetType

func (m *ContentItem) GetType() string

func (*ContentItem) GetValue

func (m *ContentItem) GetValue() string

func (*ContentItem) ProtoMessage

func (*ContentItem) ProtoMessage()

func (*ContentItem) Reset

func (m *ContentItem) Reset()

func (*ContentItem) String

func (m *ContentItem) String() string

func (*ContentItem) XXX_OneofFuncs

func (*ContentItem) 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{})

XXX_OneofFuncs is for the internal use of the proto package.

type ContentItem_Data

type ContentItem_Data struct {
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof"`
}

type ContentItem_Table

type ContentItem_Table struct {
	Table *Table `protobuf:"bytes,4,opt,name=table,oneof"`
}

type ContentItem_Value

type ContentItem_Value struct {
	Value string `protobuf:"bytes,3,opt,name=value,oneof"`
}

type CreateInspectOperationRequest

type CreateInspectOperationRequest struct {
	// Configuration for the inspector.
	InspectConfig *InspectConfig `protobuf:"bytes,1,opt,name=inspect_config,json=inspectConfig" json:"inspect_config,omitempty"`
	// Specification of the data set to process.
	StorageConfig *StorageConfig `protobuf:"bytes,2,opt,name=storage_config,json=storageConfig" json:"storage_config,omitempty"`
	// Optional location to store findings. The bucket must already exist and
	// the Google APIs service account for DLP must have write permission to
	// write to the given bucket.
	// <p>Results are split over multiple csv files with each file name matching
	// the pattern "[operation_id]_[count].csv", for example
	// `3094877188788974909_1.csv`. The `operation_id` matches the
	// identifier for the Operation, and the `count` is a counter used for
	// tracking the number of files written. <p>The CSV file(s) contain the
	// following columns regardless of storage type scanned: <li>id <li>info_type
	// <li>likelihood <li>byte size of finding <li>quote <li>timestamp<br/>
	// <p>For Cloud Storage the next columns are: <li>file_path
	// <li>start_offset<br/>
	// <p>For Cloud Datastore the next columns are: <li>project_id
	// <li>namespace_id <li>path <li>column_name <li>offset<br/>
	// <p>For BigQuery the next columns are: <li>row_number <li>project_id
	// <li>dataset_id <li>table_id
	OutputConfig *OutputStorageConfig `protobuf:"bytes,3,opt,name=output_config,json=outputConfig" json:"output_config,omitempty"`
	// Additional configuration settings for long running operations.
	OperationConfig *OperationConfig `protobuf:"bytes,5,opt,name=operation_config,json=operationConfig" json:"operation_config,omitempty"`
}

Request for scheduling a scan of a data subset from a Google Platform data repository.

func (*CreateInspectOperationRequest) Descriptor

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

func (*CreateInspectOperationRequest) GetInspectConfig

func (m *CreateInspectOperationRequest) GetInspectConfig() *InspectConfig

func (*CreateInspectOperationRequest) GetOperationConfig

func (m *CreateInspectOperationRequest) GetOperationConfig() *OperationConfig

func (*CreateInspectOperationRequest) GetOutputConfig

func (m *CreateInspectOperationRequest) GetOutputConfig() *OutputStorageConfig

func (*CreateInspectOperationRequest) GetStorageConfig

func (m *CreateInspectOperationRequest) GetStorageConfig() *StorageConfig

func (*CreateInspectOperationRequest) ProtoMessage

func (*CreateInspectOperationRequest) ProtoMessage()

func (*CreateInspectOperationRequest) Reset

func (m *CreateInspectOperationRequest) Reset()

func (*CreateInspectOperationRequest) String

type DatastoreKey

type DatastoreKey struct {
	// Datastore entity key.
	EntityKey *Key `protobuf:"bytes,1,opt,name=entity_key,json=entityKey" json:"entity_key,omitempty"`
}

Record key for a finding in Cloud Datastore.

func (*DatastoreKey) Descriptor

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

func (*DatastoreKey) GetEntityKey

func (m *DatastoreKey) GetEntityKey() *Key

func (*DatastoreKey) ProtoMessage

func (*DatastoreKey) ProtoMessage()

func (*DatastoreKey) Reset

func (m *DatastoreKey) Reset()

func (*DatastoreKey) String

func (m *DatastoreKey) String() string

type DatastoreOptions

type DatastoreOptions struct {
	// A partition ID identifies a grouping of entities. The grouping is always
	// by project and namespace, however the namespace ID may be empty.
	PartitionId *PartitionId `protobuf:"bytes,1,opt,name=partition_id,json=partitionId" json:"partition_id,omitempty"`
	// The kind to process.
	Kind *KindExpression `protobuf:"bytes,2,opt,name=kind" json:"kind,omitempty"`
	// Properties to scan. If none are specified, all properties will be scanned
	// by default.
	Projection []*Projection `protobuf:"bytes,3,rep,name=projection" json:"projection,omitempty"`
}

Options defining a data set within Google Cloud Datastore.

func (*DatastoreOptions) Descriptor

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

func (*DatastoreOptions) GetKind

func (m *DatastoreOptions) GetKind() *KindExpression

func (*DatastoreOptions) GetPartitionId

func (m *DatastoreOptions) GetPartitionId() *PartitionId

func (*DatastoreOptions) GetProjection

func (m *DatastoreOptions) GetProjection() []*Projection

func (*DatastoreOptions) ProtoMessage

func (*DatastoreOptions) ProtoMessage()

func (*DatastoreOptions) Reset

func (m *DatastoreOptions) Reset()

func (*DatastoreOptions) String

func (m *DatastoreOptions) String() string

type DlpServiceClient

type DlpServiceClient interface {
	// Finds potentially sensitive info in a list of strings.
	// This method has limits on input size, processing time, and output size.
	InspectContent(ctx context.Context, in *InspectContentRequest, opts ...grpc.CallOption) (*InspectContentResponse, error)
	// Redacts potentially sensitive info from a list of strings.
	// This method has limits on input size, processing time, and output size.
	RedactContent(ctx context.Context, in *RedactContentRequest, opts ...grpc.CallOption) (*RedactContentResponse, error)
	// Schedules a job scanning content in a Google Cloud Platform data
	// repository.
	CreateInspectOperation(ctx context.Context, in *CreateInspectOperationRequest, opts ...grpc.CallOption) (*google_longrunning.Operation, error)
	// Returns list of results for given inspect operation result set id.
	ListInspectFindings(ctx context.Context, in *ListInspectFindingsRequest, opts ...grpc.CallOption) (*ListInspectFindingsResponse, error)
	// Returns sensitive information types for given category.
	ListInfoTypes(ctx context.Context, in *ListInfoTypesRequest, opts ...grpc.CallOption) (*ListInfoTypesResponse, error)
	// Returns the list of root categories of sensitive information.
	ListRootCategories(ctx context.Context, in *ListRootCategoriesRequest, opts ...grpc.CallOption) (*ListRootCategoriesResponse, error)
}

func NewDlpServiceClient

func NewDlpServiceClient(cc *grpc.ClientConn) DlpServiceClient

type DlpServiceServer

type DlpServiceServer interface {
	// Finds potentially sensitive info in a list of strings.
	// This method has limits on input size, processing time, and output size.
	InspectContent(context.Context, *InspectContentRequest) (*InspectContentResponse, error)
	// Redacts potentially sensitive info from a list of strings.
	// This method has limits on input size, processing time, and output size.
	RedactContent(context.Context, *RedactContentRequest) (*RedactContentResponse, error)
	// Schedules a job scanning content in a Google Cloud Platform data
	// repository.
	CreateInspectOperation(context.Context, *CreateInspectOperationRequest) (*google_longrunning.Operation, error)
	// Returns list of results for given inspect operation result set id.
	ListInspectFindings(context.Context, *ListInspectFindingsRequest) (*ListInspectFindingsResponse, error)
	// Returns sensitive information types for given category.
	ListInfoTypes(context.Context, *ListInfoTypesRequest) (*ListInfoTypesResponse, error)
	// Returns the list of root categories of sensitive information.
	ListRootCategories(context.Context, *ListRootCategoriesRequest) (*ListRootCategoriesResponse, error)
}

type FieldId

type FieldId struct {
	// Name describing the field.
	ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName" json:"column_name,omitempty"`
}

General identifier of a data field in a storage service.

func (*FieldId) Descriptor

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

func (*FieldId) GetColumnName

func (m *FieldId) GetColumnName() string

func (*FieldId) ProtoMessage

func (*FieldId) ProtoMessage()

func (*FieldId) Reset

func (m *FieldId) Reset()

func (*FieldId) String

func (m *FieldId) String() string

type Finding

type Finding struct {
	// The specific string that may be potentially sensitive info.
	Quote string `protobuf:"bytes,1,opt,name=quote" json:"quote,omitempty"`
	// The specific type of info the string might be.
	InfoType *InfoType `protobuf:"bytes,2,opt,name=info_type,json=infoType" json:"info_type,omitempty"`
	// Estimate of how likely it is that the info_type is correct.
	Likelihood Likelihood `protobuf:"varint,3,opt,name=likelihood,enum=google.privacy.dlp.v2beta1.Likelihood" json:"likelihood,omitempty"`
	// Location of the info found.
	Location *Location `protobuf:"bytes,4,opt,name=location" json:"location,omitempty"`
	// Timestamp when finding was detected.
	CreateTime *google_protobuf3.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
}

Container structure describing a single finding within a string or image.

func (*Finding) Descriptor

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

func (*Finding) GetCreateTime

func (m *Finding) GetCreateTime() *google_protobuf3.Timestamp

func (*Finding) GetInfoType

func (m *Finding) GetInfoType() *InfoType

func (*Finding) GetLikelihood

func (m *Finding) GetLikelihood() Likelihood

func (*Finding) GetLocation

func (m *Finding) GetLocation() *Location

func (*Finding) GetQuote

func (m *Finding) GetQuote() string

func (*Finding) ProtoMessage

func (*Finding) ProtoMessage()

func (*Finding) Reset

func (m *Finding) Reset()

func (*Finding) String

func (m *Finding) String() string

type ImageLocation

type ImageLocation struct {
	// Top coordinate of the bounding box. (0,0) is upper left.
	Top int32 `protobuf:"varint,1,opt,name=top" json:"top,omitempty"`
	// Left coordinate of the bounding box. (0,0) is upper left.
	Left int32 `protobuf:"varint,2,opt,name=left" json:"left,omitempty"`
	// Width of the bounding box in pixels.
	Width int32 `protobuf:"varint,3,opt,name=width" json:"width,omitempty"`
	// Height of the bounding box in pixels.
	Height int32 `protobuf:"varint,4,opt,name=height" json:"height,omitempty"`
}

Bounding box encompassing detected text within an image.

func (*ImageLocation) Descriptor

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

func (*ImageLocation) GetHeight

func (m *ImageLocation) GetHeight() int32

func (*ImageLocation) GetLeft

func (m *ImageLocation) GetLeft() int32

func (*ImageLocation) GetTop

func (m *ImageLocation) GetTop() int32

func (*ImageLocation) GetWidth

func (m *ImageLocation) GetWidth() int32

func (*ImageLocation) ProtoMessage

func (*ImageLocation) ProtoMessage()

func (*ImageLocation) Reset

func (m *ImageLocation) Reset()

func (*ImageLocation) String

func (m *ImageLocation) String() string

type InfoType

type InfoType struct {
	// Name of the information type.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

Type of information detected by the API.

func (*InfoType) Descriptor

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

func (*InfoType) GetName

func (m *InfoType) GetName() string

func (*InfoType) ProtoMessage

func (*InfoType) ProtoMessage()

func (*InfoType) Reset

func (m *InfoType) Reset()

func (*InfoType) String

func (m *InfoType) String() string

type InfoTypeDescription

type InfoTypeDescription struct {
	// Internal name of the info type.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Human readable form of the info type name.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
	// List of categories this info type belongs to.
	Categories []*CategoryDescription `protobuf:"bytes,3,rep,name=categories" json:"categories,omitempty"`
}

Info type description.

func (*InfoTypeDescription) Descriptor

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

func (*InfoTypeDescription) GetCategories

func (m *InfoTypeDescription) GetCategories() []*CategoryDescription

func (*InfoTypeDescription) GetDisplayName

func (m *InfoTypeDescription) GetDisplayName() string

func (*InfoTypeDescription) GetName

func (m *InfoTypeDescription) GetName() string

func (*InfoTypeDescription) ProtoMessage

func (*InfoTypeDescription) ProtoMessage()

func (*InfoTypeDescription) Reset

func (m *InfoTypeDescription) Reset()

func (*InfoTypeDescription) String

func (m *InfoTypeDescription) String() string

type InfoTypeStatistics

type InfoTypeStatistics struct {
	// The type of finding this stat is for.
	InfoType *InfoType `protobuf:"bytes,1,opt,name=info_type,json=infoType" json:"info_type,omitempty"`
	// Number of findings for this info type.
	Count int64 `protobuf:"varint,2,opt,name=count" json:"count,omitempty"`
}

Statistics regarding a specific InfoType.

func (*InfoTypeStatistics) Descriptor

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

func (*InfoTypeStatistics) GetCount

func (m *InfoTypeStatistics) GetCount() int64

func (*InfoTypeStatistics) GetInfoType

func (m *InfoTypeStatistics) GetInfoType() *InfoType

func (*InfoTypeStatistics) ProtoMessage

func (*InfoTypeStatistics) ProtoMessage()

func (*InfoTypeStatistics) Reset

func (m *InfoTypeStatistics) Reset()

func (*InfoTypeStatistics) String

func (m *InfoTypeStatistics) String() string

type InspectConfig

type InspectConfig struct {
	// Restricts what info_types to look for. The values must correspond to
	// InfoType values returned by ListInfoTypes or found in documentation.
	// Empty info_types runs all enabled detectors.
	InfoTypes []*InfoType `protobuf:"bytes,1,rep,name=info_types,json=infoTypes" json:"info_types,omitempty"`
	// Only returns findings equal or above this threshold.
	MinLikelihood Likelihood `` /* 137-byte string literal not displayed */
	// Limits the number of findings per content item or long running operation.
	MaxFindings int32 `protobuf:"varint,3,opt,name=max_findings,json=maxFindings" json:"max_findings,omitempty"`
	// When true, a contextual quote from the data that triggered a finding is
	// included in the response; see Finding.quote.
	IncludeQuote bool `protobuf:"varint,4,opt,name=include_quote,json=includeQuote" json:"include_quote,omitempty"`
	// When true, excludes type information of the findings.
	ExcludeTypes bool `protobuf:"varint,6,opt,name=exclude_types,json=excludeTypes" json:"exclude_types,omitempty"`
	// Configuration of findings limit given for specified info types.
	InfoTypeLimits []*InspectConfig_InfoTypeLimit `protobuf:"bytes,7,rep,name=info_type_limits,json=infoTypeLimits" json:"info_type_limits,omitempty"`
}

Configuration description of the scanning process. When used with redactContent only info_types and min_likelihood are currently used.

func (*InspectConfig) Descriptor

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

func (*InspectConfig) GetExcludeTypes

func (m *InspectConfig) GetExcludeTypes() bool

func (*InspectConfig) GetIncludeQuote

func (m *InspectConfig) GetIncludeQuote() bool

func (*InspectConfig) GetInfoTypeLimits

func (m *InspectConfig) GetInfoTypeLimits() []*InspectConfig_InfoTypeLimit

func (*InspectConfig) GetInfoTypes

func (m *InspectConfig) GetInfoTypes() []*InfoType

func (*InspectConfig) GetMaxFindings

func (m *InspectConfig) GetMaxFindings() int32

func (*InspectConfig) GetMinLikelihood

func (m *InspectConfig) GetMinLikelihood() Likelihood

func (*InspectConfig) ProtoMessage

func (*InspectConfig) ProtoMessage()

func (*InspectConfig) Reset

func (m *InspectConfig) Reset()

func (*InspectConfig) String

func (m *InspectConfig) String() string

type InspectConfig_InfoTypeLimit

type InspectConfig_InfoTypeLimit struct {
	// Type of information the findings limit applies to. Only one limit per
	// info_type should be provided. If InfoTypeLimit does not have an
	// info_type, the DLP API applies the limit against all info_types that are
	// found but not specified in another InfoTypeLimit.
	InfoType *InfoType `protobuf:"bytes,1,opt,name=info_type,json=infoType" json:"info_type,omitempty"`
	// Max findings limit for the given infoType.
	MaxFindings int32 `protobuf:"varint,2,opt,name=max_findings,json=maxFindings" json:"max_findings,omitempty"`
}

Max findings configuration per info type, per content item or long running operation.

func (*InspectConfig_InfoTypeLimit) Descriptor

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

func (*InspectConfig_InfoTypeLimit) GetInfoType

func (m *InspectConfig_InfoTypeLimit) GetInfoType() *InfoType

func (*InspectConfig_InfoTypeLimit) GetMaxFindings

func (m *InspectConfig_InfoTypeLimit) GetMaxFindings() int32

func (*InspectConfig_InfoTypeLimit) ProtoMessage

func (*InspectConfig_InfoTypeLimit) ProtoMessage()

func (*InspectConfig_InfoTypeLimit) Reset

func (m *InspectConfig_InfoTypeLimit) Reset()

func (*InspectConfig_InfoTypeLimit) String

func (m *InspectConfig_InfoTypeLimit) String() string

type InspectContentRequest

type InspectContentRequest struct {
	// Configuration for the inspector.
	InspectConfig *InspectConfig `protobuf:"bytes,1,opt,name=inspect_config,json=inspectConfig" json:"inspect_config,omitempty"`
	// The list of items to inspect. Items in a single request are
	// considered "related" unless inspect_config.independent_inputs is true.
	// Up to 100 are allowed per request.
	Items []*ContentItem `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
}

Request to search for potentially sensitive info in a list of items.

func (*InspectContentRequest) Descriptor

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

func (*InspectContentRequest) GetInspectConfig

func (m *InspectContentRequest) GetInspectConfig() *InspectConfig

func (*InspectContentRequest) GetItems

func (m *InspectContentRequest) GetItems() []*ContentItem

func (*InspectContentRequest) ProtoMessage

func (*InspectContentRequest) ProtoMessage()

func (*InspectContentRequest) Reset

func (m *InspectContentRequest) Reset()

func (*InspectContentRequest) String

func (m *InspectContentRequest) String() string

type InspectContentResponse

type InspectContentResponse struct {
	// Each content_item from the request has a result in this list, in the
	// same order as the request.
	Results []*InspectResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
}

Results of inspecting a list of items.

func (*InspectContentResponse) Descriptor

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

func (*InspectContentResponse) GetResults

func (m *InspectContentResponse) GetResults() []*InspectResult

func (*InspectContentResponse) ProtoMessage

func (*InspectContentResponse) ProtoMessage()

func (*InspectContentResponse) Reset

func (m *InspectContentResponse) Reset()

func (*InspectContentResponse) String

func (m *InspectContentResponse) String() string

type InspectOperationMetadata

type InspectOperationMetadata struct {
	// Total size in bytes that were processed.
	ProcessedBytes int64 `protobuf:"varint,1,opt,name=processed_bytes,json=processedBytes" json:"processed_bytes,omitempty"`
	// Estimate of the number of bytes to process.
	TotalEstimatedBytes int64                 `protobuf:"varint,4,opt,name=total_estimated_bytes,json=totalEstimatedBytes" json:"total_estimated_bytes,omitempty"`
	InfoTypeStats       []*InfoTypeStatistics `protobuf:"bytes,2,rep,name=info_type_stats,json=infoTypeStats" json:"info_type_stats,omitempty"`
	// The time which this request was started.
	CreateTime *google_protobuf3.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
	// The inspect config used to create the Operation.
	RequestInspectConfig *InspectConfig `protobuf:"bytes,5,opt,name=request_inspect_config,json=requestInspectConfig" json:"request_inspect_config,omitempty"`
	// The storage config used to create the Operation.
	RequestStorageConfig *StorageConfig `protobuf:"bytes,6,opt,name=request_storage_config,json=requestStorageConfig" json:"request_storage_config,omitempty"`
	// Optional location to store findings.
	RequestOutputConfig *OutputStorageConfig `protobuf:"bytes,7,opt,name=request_output_config,json=requestOutputConfig" json:"request_output_config,omitempty"`
}

Metadata returned within GetOperation for an inspect request.

func (*InspectOperationMetadata) Descriptor

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

func (*InspectOperationMetadata) GetCreateTime

func (*InspectOperationMetadata) GetInfoTypeStats

func (m *InspectOperationMetadata) GetInfoTypeStats() []*InfoTypeStatistics

func (*InspectOperationMetadata) GetProcessedBytes

func (m *InspectOperationMetadata) GetProcessedBytes() int64

func (*InspectOperationMetadata) GetRequestInspectConfig

func (m *InspectOperationMetadata) GetRequestInspectConfig() *InspectConfig

func (*InspectOperationMetadata) GetRequestOutputConfig

func (m *InspectOperationMetadata) GetRequestOutputConfig() *OutputStorageConfig

func (*InspectOperationMetadata) GetRequestStorageConfig

func (m *InspectOperationMetadata) GetRequestStorageConfig() *StorageConfig

func (*InspectOperationMetadata) GetTotalEstimatedBytes

func (m *InspectOperationMetadata) GetTotalEstimatedBytes() int64

func (*InspectOperationMetadata) ProtoMessage

func (*InspectOperationMetadata) ProtoMessage()

func (*InspectOperationMetadata) Reset

func (m *InspectOperationMetadata) Reset()

func (*InspectOperationMetadata) String

func (m *InspectOperationMetadata) String() string

type InspectOperationResult

type InspectOperationResult struct {
	// The server-assigned name, which is only unique within the same service that
	// originally returns it. If you use the default HTTP mapping, the
	// `name` should have the format of `inspect/results/{id}`.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

The operational data.

func (*InspectOperationResult) Descriptor

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

func (*InspectOperationResult) GetName

func (m *InspectOperationResult) GetName() string

func (*InspectOperationResult) ProtoMessage

func (*InspectOperationResult) ProtoMessage()

func (*InspectOperationResult) Reset

func (m *InspectOperationResult) Reset()

func (*InspectOperationResult) String

func (m *InspectOperationResult) String() string

type InspectResult

type InspectResult struct {
	// List of findings for an item.
	Findings []*Finding `protobuf:"bytes,1,rep,name=findings" json:"findings,omitempty"`
	// If true, then this item might have more findings than were returned,
	// and the findings returned are an arbitrary subset of all findings.
	// The findings list might be truncated because the input items were too
	// large, or because the server reached the maximum amount of resources
	// allowed for a single API call. For best results, divide the input into
	// smaller batches.
	FindingsTruncated bool `protobuf:"varint,2,opt,name=findings_truncated,json=findingsTruncated" json:"findings_truncated,omitempty"`
}

All the findings for a single scanned item.

func (*InspectResult) Descriptor

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

func (*InspectResult) GetFindings

func (m *InspectResult) GetFindings() []*Finding

func (*InspectResult) GetFindingsTruncated

func (m *InspectResult) GetFindingsTruncated() bool

func (*InspectResult) ProtoMessage

func (*InspectResult) ProtoMessage()

func (*InspectResult) Reset

func (m *InspectResult) Reset()

func (*InspectResult) String

func (m *InspectResult) String() string

type Key

type Key struct {
	// Entities are partitioned into subsets, currently identified by a project
	// ID and namespace ID.
	// Queries are scoped to a single partition.
	PartitionId *PartitionId `protobuf:"bytes,1,opt,name=partition_id,json=partitionId" json:"partition_id,omitempty"`
	// The entity path.
	// An entity path consists of one or more elements composed of a kind and a
	// string or numerical identifier, which identify entities. The first
	// element identifies a _root entity_, the second element identifies
	// a _child_ of the root entity, the third element identifies a child of the
	// second entity, and so forth. The entities identified by all prefixes of
	// the path are called the element's _ancestors_.
	//
	// A path can never be empty, and a path can have at most 100 elements.
	Path []*Key_PathElement `protobuf:"bytes,2,rep,name=path" json:"path,omitempty"`
}

A unique identifier for a Datastore entity. If a key's partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts.

func (*Key) Descriptor

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

func (*Key) GetPartitionId

func (m *Key) GetPartitionId() *PartitionId

func (*Key) GetPath

func (m *Key) GetPath() []*Key_PathElement

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) Reset

func (m *Key) Reset()

func (*Key) String

func (m *Key) String() string

type Key_PathElement

type Key_PathElement struct {
	// The kind of the entity.
	// A kind matching regex `__.*__` is reserved/read-only.
	// A kind must not contain more than 1500 bytes when UTF-8 encoded.
	// Cannot be `""`.
	Kind string `protobuf:"bytes,1,opt,name=kind" json:"kind,omitempty"`
	// The type of ID.
	//
	// Types that are valid to be assigned to IdType:
	//	*Key_PathElement_Id
	//	*Key_PathElement_Name
	IdType isKey_PathElement_IdType `protobuf_oneof:"id_type"`
}

A (kind, ID/name) pair used to construct a key path.

If either name or ID is set, the element is complete. If neither is set, the element is incomplete.

func (*Key_PathElement) Descriptor

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

func (*Key_PathElement) GetId

func (m *Key_PathElement) GetId() int64

func (*Key_PathElement) GetIdType

func (m *Key_PathElement) GetIdType() isKey_PathElement_IdType

func (*Key_PathElement) GetKind

func (m *Key_PathElement) GetKind() string

func (*Key_PathElement) GetName

func (m *Key_PathElement) GetName() string

func (*Key_PathElement) ProtoMessage

func (*Key_PathElement) ProtoMessage()

func (*Key_PathElement) Reset

func (m *Key_PathElement) Reset()

func (*Key_PathElement) String

func (m *Key_PathElement) String() string

func (*Key_PathElement) XXX_OneofFuncs

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{})

XXX_OneofFuncs is for the internal use of the proto package.

type Key_PathElement_Id

type Key_PathElement_Id struct {
	Id int64 `protobuf:"varint,2,opt,name=id,oneof"`
}

type Key_PathElement_Name

type Key_PathElement_Name struct {
	Name string `protobuf:"bytes,3,opt,name=name,oneof"`
}

type KindExpression

type KindExpression struct {
	// The name of the kind.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

A representation of a Datastore kind.

func (*KindExpression) Descriptor

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

func (*KindExpression) GetName

func (m *KindExpression) GetName() string

func (*KindExpression) ProtoMessage

func (*KindExpression) ProtoMessage()

func (*KindExpression) Reset

func (m *KindExpression) Reset()

func (*KindExpression) String

func (m *KindExpression) String() string

type Likelihood

type Likelihood int32

Categorization of results based on how likely they are to represent a match, based on the number of elements they contain which imply a match.

const (
	// Default value; information with all likelihoods is included.
	Likelihood_LIKELIHOOD_UNSPECIFIED Likelihood = 0
	// Few matching elements.
	Likelihood_VERY_UNLIKELY Likelihood = 1
	Likelihood_UNLIKELY      Likelihood = 2
	// Some matching elements.
	Likelihood_POSSIBLE Likelihood = 3
	Likelihood_LIKELY   Likelihood = 4
	// Many matching elements.
	Likelihood_VERY_LIKELY Likelihood = 5
)

func (Likelihood) EnumDescriptor

func (Likelihood) EnumDescriptor() ([]byte, []int)

func (Likelihood) String

func (x Likelihood) String() string

type ListInfoTypesRequest

type ListInfoTypesRequest struct {
	// Category name as returned by ListRootCategories.
	Category string `protobuf:"bytes,1,opt,name=category" json:"category,omitempty"`
	// Optional BCP-47 language code for localized info type friendly
	// names. If omitted, or if localized strings are not available,
	// en-US strings will be returned.
	LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode" json:"language_code,omitempty"`
}

Request for the list of info types belonging to a given category, or all supported info types if no category is specified.

func (*ListInfoTypesRequest) Descriptor

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

func (*ListInfoTypesRequest) GetCategory

func (m *ListInfoTypesRequest) GetCategory() string

func (*ListInfoTypesRequest) GetLanguageCode

func (m *ListInfoTypesRequest) GetLanguageCode() string

func (*ListInfoTypesRequest) ProtoMessage

func (*ListInfoTypesRequest) ProtoMessage()

func (*ListInfoTypesRequest) Reset

func (m *ListInfoTypesRequest) Reset()

func (*ListInfoTypesRequest) String

func (m *ListInfoTypesRequest) String() string

type ListInfoTypesResponse

type ListInfoTypesResponse struct {
	// Set of sensitive info types belonging to a category.
	InfoTypes []*InfoTypeDescription `protobuf:"bytes,1,rep,name=info_types,json=infoTypes" json:"info_types,omitempty"`
}

Response to the ListInfoTypes request.

func (*ListInfoTypesResponse) Descriptor

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

func (*ListInfoTypesResponse) GetInfoTypes

func (m *ListInfoTypesResponse) GetInfoTypes() []*InfoTypeDescription

func (*ListInfoTypesResponse) ProtoMessage

func (*ListInfoTypesResponse) ProtoMessage()

func (*ListInfoTypesResponse) Reset

func (m *ListInfoTypesResponse) Reset()

func (*ListInfoTypesResponse) String

func (m *ListInfoTypesResponse) String() string

type ListInspectFindingsRequest

type ListInspectFindingsRequest struct {
	// Identifier of the results set returned as metadata of
	// the longrunning operation created by a call to CreateInspectOperation.
	// Should be in the format of `inspect/results/{id}`.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Maximum number of results to return.
	// If 0, the implementation selects a reasonable value.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
	// The value returned by the last `ListInspectFindingsResponse`; indicates
	// that this is a continuation of a prior `ListInspectFindings` call, and that
	// the system should return the next page of data.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
	// Restricts findings to items that match. Supports info_type and likelihood.
	// <p>Examples:<br/>
	// <li>info_type=EMAIL_ADDRESS
	// <li>info_type=PHONE_NUMBER,EMAIL_ADDRESS
	// <li>likelihood=VERY_LIKELY
	// <li>likelihood=VERY_LIKELY,LIKELY
	// <li>info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY
	Filter string `protobuf:"bytes,4,opt,name=filter" json:"filter,omitempty"`
}

Request for the list of results in a given inspect operation.

func (*ListInspectFindingsRequest) Descriptor

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

func (*ListInspectFindingsRequest) GetFilter

func (m *ListInspectFindingsRequest) GetFilter() string

func (*ListInspectFindingsRequest) GetName

func (m *ListInspectFindingsRequest) GetName() string

func (*ListInspectFindingsRequest) GetPageSize

func (m *ListInspectFindingsRequest) GetPageSize() int32

func (*ListInspectFindingsRequest) GetPageToken

func (m *ListInspectFindingsRequest) GetPageToken() string

func (*ListInspectFindingsRequest) ProtoMessage

func (*ListInspectFindingsRequest) ProtoMessage()

func (*ListInspectFindingsRequest) Reset

func (m *ListInspectFindingsRequest) Reset()

func (*ListInspectFindingsRequest) String

func (m *ListInspectFindingsRequest) String() string

type ListInspectFindingsResponse

type ListInspectFindingsResponse struct {
	// The results.
	Result *InspectResult `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// If not empty, indicates that there may be more results that match the
	// request; this value should be passed in a new `ListInspectFindingsRequest`.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
}

Response to the ListInspectFindings request.

func (*ListInspectFindingsResponse) Descriptor

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

func (*ListInspectFindingsResponse) GetNextPageToken

func (m *ListInspectFindingsResponse) GetNextPageToken() string

func (*ListInspectFindingsResponse) GetResult

func (*ListInspectFindingsResponse) ProtoMessage

func (*ListInspectFindingsResponse) ProtoMessage()

func (*ListInspectFindingsResponse) Reset

func (m *ListInspectFindingsResponse) Reset()

func (*ListInspectFindingsResponse) String

func (m *ListInspectFindingsResponse) String() string

type ListRootCategoriesRequest

type ListRootCategoriesRequest struct {
	// Optional language code for localized friendly category names.
	// If omitted or if localized strings are not available,
	// en-US strings will be returned.
	LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode" json:"language_code,omitempty"`
}

Request for root categories of Info Types supported by the API. Example values might include "FINANCE", "HEALTH", "FAST", "DEFAULT".

func (*ListRootCategoriesRequest) Descriptor

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

func (*ListRootCategoriesRequest) GetLanguageCode

func (m *ListRootCategoriesRequest) GetLanguageCode() string

func (*ListRootCategoriesRequest) ProtoMessage

func (*ListRootCategoriesRequest) ProtoMessage()

func (*ListRootCategoriesRequest) Reset

func (m *ListRootCategoriesRequest) Reset()

func (*ListRootCategoriesRequest) String

func (m *ListRootCategoriesRequest) String() string

type ListRootCategoriesResponse

type ListRootCategoriesResponse struct {
	// List of all into type categories supported by the API.
	Categories []*CategoryDescription `protobuf:"bytes,1,rep,name=categories" json:"categories,omitempty"`
}

Response for ListRootCategories request.

func (*ListRootCategoriesResponse) Descriptor

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

func (*ListRootCategoriesResponse) GetCategories

func (m *ListRootCategoriesResponse) GetCategories() []*CategoryDescription

func (*ListRootCategoriesResponse) ProtoMessage

func (*ListRootCategoriesResponse) ProtoMessage()

func (*ListRootCategoriesResponse) Reset

func (m *ListRootCategoriesResponse) Reset()

func (*ListRootCategoriesResponse) String

func (m *ListRootCategoriesResponse) String() string

type Location

type Location struct {
	// Zero-based byte offsets within a content item.
	ByteRange *Range `protobuf:"bytes,1,opt,name=byte_range,json=byteRange" json:"byte_range,omitempty"`
	// Character offsets within a content item, included when content type
	// is a text. Default charset assumed to be UTF-8.
	CodepointRange *Range `protobuf:"bytes,2,opt,name=codepoint_range,json=codepointRange" json:"codepoint_range,omitempty"`
	// Location within an image's pixels.
	ImageBoxes []*ImageLocation `protobuf:"bytes,3,rep,name=image_boxes,json=imageBoxes" json:"image_boxes,omitempty"`
	// Key of the finding.
	RecordKey *RecordKey `protobuf:"bytes,4,opt,name=record_key,json=recordKey" json:"record_key,omitempty"`
	// Field id of the field containing the finding.
	FieldId *FieldId `protobuf:"bytes,5,opt,name=field_id,json=fieldId" json:"field_id,omitempty"`
	// Location within a `ContentItem.Table`.
	TableLocation *TableLocation `protobuf:"bytes,6,opt,name=table_location,json=tableLocation" json:"table_location,omitempty"`
}

Specifies the location of a finding within its source item.

func (*Location) Descriptor

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

func (*Location) GetByteRange

func (m *Location) GetByteRange() *Range

func (*Location) GetCodepointRange

func (m *Location) GetCodepointRange() *Range

func (*Location) GetFieldId

func (m *Location) GetFieldId() *FieldId

func (*Location) GetImageBoxes

func (m *Location) GetImageBoxes() []*ImageLocation

func (*Location) GetRecordKey

func (m *Location) GetRecordKey() *RecordKey

func (*Location) GetTableLocation

func (m *Location) GetTableLocation() *TableLocation

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) Reset

func (m *Location) Reset()

func (*Location) String

func (m *Location) String() string

type OperationConfig

type OperationConfig struct {
	// Max number of findings per file, Datastore entity, or database row.
	MaxItemFindings int64 `protobuf:"varint,1,opt,name=max_item_findings,json=maxItemFindings" json:"max_item_findings,omitempty"`
}

Additional configuration for inspect long running operations.

func (*OperationConfig) Descriptor

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

func (*OperationConfig) GetMaxItemFindings

func (m *OperationConfig) GetMaxItemFindings() int64

func (*OperationConfig) ProtoMessage

func (*OperationConfig) ProtoMessage()

func (*OperationConfig) Reset

func (m *OperationConfig) Reset()

func (*OperationConfig) String

func (m *OperationConfig) String() string

type OutputStorageConfig

type OutputStorageConfig struct {
	// Types that are valid to be assigned to Type:
	//	*OutputStorageConfig_Table
	//	*OutputStorageConfig_StoragePath
	Type isOutputStorageConfig_Type `protobuf_oneof:"type"`
}

Cloud repository for storing output.

func (*OutputStorageConfig) Descriptor

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

func (*OutputStorageConfig) GetStoragePath

func (m *OutputStorageConfig) GetStoragePath() *CloudStoragePath

func (*OutputStorageConfig) GetTable

func (m *OutputStorageConfig) GetTable() *BigQueryTable

func (*OutputStorageConfig) GetType

func (m *OutputStorageConfig) GetType() isOutputStorageConfig_Type

func (*OutputStorageConfig) ProtoMessage

func (*OutputStorageConfig) ProtoMessage()

func (*OutputStorageConfig) Reset

func (m *OutputStorageConfig) Reset()

func (*OutputStorageConfig) String

func (m *OutputStorageConfig) String() string

func (*OutputStorageConfig) XXX_OneofFuncs

func (*OutputStorageConfig) 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{})

XXX_OneofFuncs is for the internal use of the proto package.

type OutputStorageConfig_StoragePath

type OutputStorageConfig_StoragePath struct {
	StoragePath *CloudStoragePath `protobuf:"bytes,2,opt,name=storage_path,json=storagePath,oneof"`
}

type OutputStorageConfig_Table

type OutputStorageConfig_Table struct {
	Table *BigQueryTable `protobuf:"bytes,1,opt,name=table,oneof"`
}

type PartitionId

type PartitionId struct {
	// The ID of the project to which the entities belong.
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// If not empty, the ID of the namespace to which the entities belong.
	NamespaceId string `protobuf:"bytes,4,opt,name=namespace_id,json=namespaceId" json:"namespace_id,omitempty"`
}

Datastore partition ID. A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty.

A partition ID contains several dimensions: project ID and namespace ID.

func (*PartitionId) Descriptor

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

func (*PartitionId) GetNamespaceId

func (m *PartitionId) GetNamespaceId() string

func (*PartitionId) GetProjectId

func (m *PartitionId) GetProjectId() string

func (*PartitionId) ProtoMessage

func (*PartitionId) ProtoMessage()

func (*PartitionId) Reset

func (m *PartitionId) Reset()

func (*PartitionId) String

func (m *PartitionId) String() string

type Projection

type Projection struct {
	// The property to project.
	Property *PropertyReference `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
}

A representation of a Datastore property in a projection.

func (*Projection) Descriptor

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

func (*Projection) GetProperty

func (m *Projection) GetProperty() *PropertyReference

func (*Projection) ProtoMessage

func (*Projection) ProtoMessage()

func (*Projection) Reset

func (m *Projection) Reset()

func (*Projection) String

func (m *Projection) String() string

type PropertyReference

type PropertyReference struct {
	// The name of the property.
	// If name includes "."s, it may be interpreted as a property name path.
	Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}

A reference to a property relative to the Datastore kind expressions.

func (*PropertyReference) Descriptor

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

func (*PropertyReference) GetName

func (m *PropertyReference) GetName() string

func (*PropertyReference) ProtoMessage

func (*PropertyReference) ProtoMessage()

func (*PropertyReference) Reset

func (m *PropertyReference) Reset()

func (*PropertyReference) String

func (m *PropertyReference) String() string

type Range

type Range struct {
	// Index of the first character of the range (inclusive).
	Start int64 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"`
	// Index of the last character of the range (exclusive).
	End int64 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"`
}

Generic half-open interval [start, end)

func (*Range) Descriptor

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

func (*Range) GetEnd

func (m *Range) GetEnd() int64

func (*Range) GetStart

func (m *Range) GetStart() int64

func (*Range) ProtoMessage

func (*Range) ProtoMessage()

func (*Range) Reset

func (m *Range) Reset()

func (*Range) String

func (m *Range) String() string

type RecordKey

type RecordKey struct {
	// Types that are valid to be assigned to Type:
	//	*RecordKey_CloudStorageKey
	//	*RecordKey_DatastoreKey
	Type isRecordKey_Type `protobuf_oneof:"type"`
}

Message for a unique key indicating a record that contains a finding.

func (*RecordKey) Descriptor

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

func (*RecordKey) GetCloudStorageKey

func (m *RecordKey) GetCloudStorageKey() *CloudStorageKey

func (*RecordKey) GetDatastoreKey

func (m *RecordKey) GetDatastoreKey() *DatastoreKey

func (*RecordKey) GetType

func (m *RecordKey) GetType() isRecordKey_Type

func (*RecordKey) ProtoMessage

func (*RecordKey) ProtoMessage()

func (*RecordKey) Reset

func (m *RecordKey) Reset()

func (*RecordKey) String

func (m *RecordKey) String() string

func (*RecordKey) XXX_OneofFuncs

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{})

XXX_OneofFuncs is for the internal use of the proto package.

type RecordKey_CloudStorageKey

type RecordKey_CloudStorageKey struct {
	CloudStorageKey *CloudStorageKey `protobuf:"bytes,1,opt,name=cloud_storage_key,json=cloudStorageKey,oneof"`
}

type RecordKey_DatastoreKey

type RecordKey_DatastoreKey struct {
	DatastoreKey *DatastoreKey `protobuf:"bytes,2,opt,name=datastore_key,json=datastoreKey,oneof"`
}

type RedactContentRequest

type RedactContentRequest struct {
	// Configuration for the inspector.
	InspectConfig *InspectConfig `protobuf:"bytes,1,opt,name=inspect_config,json=inspectConfig" json:"inspect_config,omitempty"`
	// The list of items to inspect. Up to 100 are allowed per request.
	Items []*ContentItem `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
	// The strings to replace findings text findings with. Must specify at least
	// one of these or one ImageRedactionConfig if redacting images.
	ReplaceConfigs []*RedactContentRequest_ReplaceConfig `protobuf:"bytes,3,rep,name=replace_configs,json=replaceConfigs" json:"replace_configs,omitempty"`
	// The configuration for specifying what content to redact from images.
	ImageRedactionConfigs []*RedactContentRequest_ImageRedactionConfig `protobuf:"bytes,4,rep,name=image_redaction_configs,json=imageRedactionConfigs" json:"image_redaction_configs,omitempty"`
}

Request to search for potentially sensitive info in a list of items and replace it with a default or provided content.

func (*RedactContentRequest) Descriptor

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

func (*RedactContentRequest) GetImageRedactionConfigs

func (m *RedactContentRequest) GetImageRedactionConfigs() []*RedactContentRequest_ImageRedactionConfig

func (*RedactContentRequest) GetInspectConfig

func (m *RedactContentRequest) GetInspectConfig() *InspectConfig

func (*RedactContentRequest) GetItems

func (m *RedactContentRequest) GetItems() []*ContentItem

func (*RedactContentRequest) GetReplaceConfigs

func (m *RedactContentRequest) GetReplaceConfigs() []*RedactContentRequest_ReplaceConfig

func (*RedactContentRequest) ProtoMessage

func (*RedactContentRequest) ProtoMessage()

func (*RedactContentRequest) Reset

func (m *RedactContentRequest) Reset()

func (*RedactContentRequest) String

func (m *RedactContentRequest) String() string

type RedactContentRequest_ImageRedactionConfig

type RedactContentRequest_ImageRedactionConfig struct {
	// Type of information to redact from images.
	//
	// Types that are valid to be assigned to Target:
	//	*RedactContentRequest_ImageRedactionConfig_InfoType
	//	*RedactContentRequest_ImageRedactionConfig_RedactAllText
	Target isRedactContentRequest_ImageRedactionConfig_Target `protobuf_oneof:"target"`
	// The color to use when redacting content from an image. If not specified,
	// the default is black.
	RedactionColor *Color `protobuf:"bytes,3,opt,name=redaction_color,json=redactionColor" json:"redaction_color,omitempty"`
}

Configuration for determing how redaction of images should occur.

func (*RedactContentRequest_ImageRedactionConfig) Descriptor

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

func (*RedactContentRequest_ImageRedactionConfig) GetInfoType

func (*RedactContentRequest_ImageRedactionConfig) GetRedactAllText

func (m *RedactContentRequest_ImageRedactionConfig) GetRedactAllText() bool

func (*RedactContentRequest_ImageRedactionConfig) GetRedactionColor

func (m *RedactContentRequest_ImageRedactionConfig) GetRedactionColor() *Color

func (*RedactContentRequest_ImageRedactionConfig) GetTarget

func (m *RedactContentRequest_ImageRedactionConfig) GetTarget() isRedactContentRequest_ImageRedactionConfig_Target

func (*RedactContentRequest_ImageRedactionConfig) ProtoMessage

func (*RedactContentRequest_ImageRedactionConfig) Reset

func (*RedactContentRequest_ImageRedactionConfig) String

func (*RedactContentRequest_ImageRedactionConfig) XXX_OneofFuncs

func (*RedactContentRequest_ImageRedactionConfig) 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{})

XXX_OneofFuncs is for the internal use of the proto package.

type RedactContentRequest_ImageRedactionConfig_InfoType

type RedactContentRequest_ImageRedactionConfig_InfoType struct {
	InfoType *InfoType `protobuf:"bytes,1,opt,name=info_type,json=infoType,oneof"`
}

type RedactContentRequest_ImageRedactionConfig_RedactAllText

type RedactContentRequest_ImageRedactionConfig_RedactAllText struct {
	RedactAllText bool `protobuf:"varint,2,opt,name=redact_all_text,json=redactAllText,oneof"`
}

type RedactContentRequest_ReplaceConfig

type RedactContentRequest_ReplaceConfig struct {
	// Type of information to replace. Only one ReplaceConfig per info_type
	// should be provided. If ReplaceConfig does not have an info_type, the DLP
	// API matches it against all info_types that are found but not specified in
	// another ReplaceConfig.
	InfoType *InfoType `protobuf:"bytes,1,opt,name=info_type,json=infoType" json:"info_type,omitempty"`
	// Content replacing sensitive information of given type. Max 256 chars.
	ReplaceWith string `protobuf:"bytes,2,opt,name=replace_with,json=replaceWith" json:"replace_with,omitempty"`
}

func (*RedactContentRequest_ReplaceConfig) Descriptor

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

func (*RedactContentRequest_ReplaceConfig) GetInfoType

func (m *RedactContentRequest_ReplaceConfig) GetInfoType() *InfoType

func (*RedactContentRequest_ReplaceConfig) GetReplaceWith

func (m *RedactContentRequest_ReplaceConfig) GetReplaceWith() string

func (*RedactContentRequest_ReplaceConfig) ProtoMessage

func (*RedactContentRequest_ReplaceConfig) ProtoMessage()

func (*RedactContentRequest_ReplaceConfig) Reset

func (*RedactContentRequest_ReplaceConfig) String

type RedactContentResponse

type RedactContentResponse struct {
	// The redacted content.
	Items []*ContentItem `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
}

Results of redacting a list of items.

func (*RedactContentResponse) Descriptor

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

func (*RedactContentResponse) GetItems

func (m *RedactContentResponse) GetItems() []*ContentItem

func (*RedactContentResponse) ProtoMessage

func (*RedactContentResponse) ProtoMessage()

func (*RedactContentResponse) Reset

func (m *RedactContentResponse) Reset()

func (*RedactContentResponse) String

func (m *RedactContentResponse) String() string

type StorageConfig

type StorageConfig struct {
	// Types that are valid to be assigned to Type:
	//	*StorageConfig_DatastoreOptions
	//	*StorageConfig_CloudStorageOptions
	//	*StorageConfig_BigQueryOptions
	Type isStorageConfig_Type `protobuf_oneof:"type"`
}

Shared message indicating Cloud storage type.

func (*StorageConfig) Descriptor

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

func (*StorageConfig) GetBigQueryOptions

func (m *StorageConfig) GetBigQueryOptions() *BigQueryOptions

func (*StorageConfig) GetCloudStorageOptions

func (m *StorageConfig) GetCloudStorageOptions() *CloudStorageOptions

func (*StorageConfig) GetDatastoreOptions

func (m *StorageConfig) GetDatastoreOptions() *DatastoreOptions

func (*StorageConfig) GetType

func (m *StorageConfig) GetType() isStorageConfig_Type

func (*StorageConfig) ProtoMessage

func (*StorageConfig) ProtoMessage()

func (*StorageConfig) Reset

func (m *StorageConfig) Reset()

func (*StorageConfig) String

func (m *StorageConfig) String() string

func (*StorageConfig) XXX_OneofFuncs

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{})

XXX_OneofFuncs is for the internal use of the proto package.

type StorageConfig_BigQueryOptions

type StorageConfig_BigQueryOptions struct {
	BigQueryOptions *BigQueryOptions `protobuf:"bytes,4,opt,name=big_query_options,json=bigQueryOptions,oneof"`
}

type StorageConfig_CloudStorageOptions

type StorageConfig_CloudStorageOptions struct {
	CloudStorageOptions *CloudStorageOptions `protobuf:"bytes,3,opt,name=cloud_storage_options,json=cloudStorageOptions,oneof"`
}

type StorageConfig_DatastoreOptions

type StorageConfig_DatastoreOptions struct {
	DatastoreOptions *DatastoreOptions `protobuf:"bytes,2,opt,name=datastore_options,json=datastoreOptions,oneof"`
}

type Table

type Table struct {
	Headers []*FieldId   `protobuf:"bytes,1,rep,name=headers" json:"headers,omitempty"`
	Rows    []*Table_Row `protobuf:"bytes,2,rep,name=rows" json:"rows,omitempty"`
}

Structured content to inspect. Up to 50,000 `Value`s per request allowed.

func (*Table) Descriptor

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

func (*Table) GetHeaders

func (m *Table) GetHeaders() []*FieldId

func (*Table) GetRows

func (m *Table) GetRows() []*Table_Row

func (*Table) ProtoMessage

func (*Table) ProtoMessage()

func (*Table) Reset

func (m *Table) Reset()

func (*Table) String

func (m *Table) String() string

type TableLocation

type TableLocation struct {
	// The zero-based index of the row where the finding is located.
	RowIndex int64 `protobuf:"varint,1,opt,name=row_index,json=rowIndex" json:"row_index,omitempty"`
}

Location of a finding within a `ContentItem.Table`.

func (*TableLocation) Descriptor

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

func (*TableLocation) GetRowIndex

func (m *TableLocation) GetRowIndex() int64

func (*TableLocation) ProtoMessage

func (*TableLocation) ProtoMessage()

func (*TableLocation) Reset

func (m *TableLocation) Reset()

func (*TableLocation) String

func (m *TableLocation) String() string

type Table_Row

type Table_Row struct {
	Values []*Value `protobuf:"bytes,1,rep,name=values" json:"values,omitempty"`
}

func (*Table_Row) Descriptor

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

func (*Table_Row) GetValues

func (m *Table_Row) GetValues() []*Value

func (*Table_Row) ProtoMessage

func (*Table_Row) ProtoMessage()

func (*Table_Row) Reset

func (m *Table_Row) Reset()

func (*Table_Row) String

func (m *Table_Row) String() string

type Value

type Value struct {
	// Types that are valid to be assigned to Type:
	//	*Value_IntegerValue
	//	*Value_FloatValue
	//	*Value_StringValue
	//	*Value_BooleanValue
	//	*Value_TimestampValue
	//	*Value_TimeValue
	//	*Value_DateValue
	Type isValue_Type `protobuf_oneof:"type"`
}

Set of primitive values supported by the system.

func (*Value) Descriptor

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

func (*Value) GetBooleanValue

func (m *Value) GetBooleanValue() bool

func (*Value) GetDateValue

func (m *Value) GetDateValue() *google_type.Date

func (*Value) GetFloatValue

func (m *Value) GetFloatValue() float64

func (*Value) GetIntegerValue

func (m *Value) GetIntegerValue() int64

func (*Value) GetStringValue

func (m *Value) GetStringValue() string

func (*Value) GetTimeValue

func (m *Value) GetTimeValue() *google_type1.TimeOfDay

func (*Value) GetTimestampValue

func (m *Value) GetTimestampValue() *google_protobuf3.Timestamp

func (*Value) GetType

func (m *Value) GetType() isValue_Type

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) Reset

func (m *Value) Reset()

func (*Value) String

func (m *Value) String() string

func (*Value) XXX_OneofFuncs

func (*Value) 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{})

XXX_OneofFuncs is for the internal use of the proto package.

type Value_BooleanValue

type Value_BooleanValue struct {
	BooleanValue bool `protobuf:"varint,4,opt,name=boolean_value,json=booleanValue,oneof"`
}

type Value_DateValue

type Value_DateValue struct {
	DateValue *google_type.Date `protobuf:"bytes,7,opt,name=date_value,json=dateValue,oneof"`
}

type Value_FloatValue

type Value_FloatValue struct {
	FloatValue float64 `protobuf:"fixed64,2,opt,name=float_value,json=floatValue,oneof"`
}

type Value_IntegerValue

type Value_IntegerValue struct {
	IntegerValue int64 `protobuf:"varint,1,opt,name=integer_value,json=integerValue,oneof"`
}

type Value_StringValue

type Value_StringValue struct {
	StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,oneof"`
}

type Value_TimeValue

type Value_TimeValue struct {
	TimeValue *google_type1.TimeOfDay `protobuf:"bytes,6,opt,name=time_value,json=timeValue,oneof"`
}

type Value_TimestampValue

type Value_TimestampValue struct {
	TimestampValue *google_protobuf3.Timestamp `protobuf:"bytes,5,opt,name=timestamp_value,json=timestampValue,oneof"`
}

Jump to

Keyboard shortcuts

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