Package dlp
Overview ▹
Index ▹
Variables
var Likelihood_name = map[int32]string{
0: "LIKELIHOOD_UNSPECIFIED",
1: "VERY_UNLIKELY",
2: "UNLIKELY",
3: "POSSIBLE",
4: "LIKELY",
5: "VERY_LIKELY",
}
var Likelihood_value = map[string]int32{
"LIKELIHOOD_UNSPECIFIED": 0,
"VERY_UNLIKELY": 1,
"UNLIKELY": 2,
"POSSIBLE": 3,
"LIKELY": 4,
"VERY_LIKELY": 5,
}
func RegisterDlpServiceServer ¶
func RegisterDlpServiceServer(s *grpc.Server, srv DlpServiceServer)
type CategoryDescription ¶
Info Type Category description.
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"`
}
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 ¶
Record key for a finding in a Cloud Storage file.
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"`
}
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 ¶
Options defining a file or a set of files (path ending with *) within a Google Cloud Storage bucket.
type CloudStorageOptions struct {
FileSet *CloudStorageOptions_FileSet `protobuf:"bytes,1,opt,name=file_set,json=fileSet" json:"file_set,omitempty"`
}
func (*CloudStorageOptions) Descriptor ¶
func (*CloudStorageOptions) Descriptor() ([]byte, []int)
func (*CloudStorageOptions) GetFileSet ¶
func (m *CloudStorageOptions) GetFileSet() *CloudStorageOptions_FileSet
func (*CloudStorageOptions) ProtoMessage ¶
func (*CloudStorageOptions) ProtoMessage()
func (*CloudStorageOptions) Reset ¶
func (m *CloudStorageOptions) Reset()
func (*CloudStorageOptions) String ¶
func (m *CloudStorageOptions) String() string
type CloudStorageOptions_FileSet ¶
Set of files to scan.
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"`
}
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 ¶
A location in Cloud Storage.
type CloudStoragePath struct {
// The url, in the format of gs://bucket/<path>.
Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
}
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 ContentItem ¶
Container structure for the content to inspect.
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
DataItem isContentItem_DataItem `protobuf_oneof:"data_item"`
}
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) 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_Value ¶
type ContentItem_Value struct {
Value string `protobuf:"bytes,3,opt,name=value,oneof"`
}
type CreateInspectOperationRequest ¶
Request for scheduling a scan of a data subset from a Google Platform data repository.
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.
// Results will be split over multiple csv files with each file name matching
// the pattern "[operation_id] + [count].csv".
// The operation_id will match the identifier for the Operation,
// and the [count] is a counter used for tracking the number of files written.
// The CSV file(s) contain the following columns regardless of storage type
// scanned: id, info_type, likelihood, byte size of finding, quote, time_stamp
// For cloud storage the next two columns are: file_path, start_offset
// For datastore the next two columns are: project_id, namespace_id, path,
// column_name, offset.
OutputConfig *OutputStorageConfig `protobuf:"bytes,3,opt,name=output_config,json=outputConfig" json:"output_config,omitempty"`
}
func (*CreateInspectOperationRequest) Descriptor ¶
func (*CreateInspectOperationRequest) Descriptor() ([]byte, []int)
func (*CreateInspectOperationRequest) GetInspectConfig ¶
func (m *CreateInspectOperationRequest) GetInspectConfig() *InspectConfig
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 ¶
func (m *CreateInspectOperationRequest) String() string
type DatastoreKey ¶
Record key for a finding in Cloud Datastore.
type DatastoreKey struct {
// Datastore entity key.
EntityKey *Key `protobuf:"bytes,1,opt,name=entity_key,json=entityKey" json:"entity_key,omitempty"`
}
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 ¶
Options defining a data set within Google Cloud Datastore.
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"`
}
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 {
// Find 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)
// Redact 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)
// Schedule 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 {
// Find 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)
// Redact 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)
// Schedule 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 ¶
General identifier of a data field in a storage service.
type FieldId struct {
// Column name describing the field.
ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName" json:"column_name,omitempty"`
}
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 ¶
Container structure describing a single finding within a string or image.
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"`
}
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 ¶
Bounding box encompassing detected text within an image.
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"`
}
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 of information detected by the API.
type InfoType struct {
// Name of the information type, provided by the API call ListInfoTypes.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
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 ¶
Info type description.
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"`
}
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 ¶
Stats regarding a specific InfoType.
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"`
}
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 ¶
Configuration description of the scanning process. When used with redactContent only info_types and min_likelihood are currently used.
type InspectConfig struct {
// Restrict 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 return findings equal or above this threshold.
MinLikelihood Likelihood `protobuf:"varint,2,opt,name=min_likelihood,json=minLikelihood,enum=google.privacy.dlp.v2beta1.Likelihood" json:"min_likelihood,omitempty"`
// Limit the number of findings per content item.
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 will
// be included in the response; see Finding.quote.
IncludeQuote bool `protobuf:"varint,4,opt,name=include_quote,json=includeQuote" json:"include_quote,omitempty"`
// When true, exclude type information of the findings.
ExcludeTypes bool `protobuf:"varint,6,opt,name=exclude_types,json=excludeTypes" json:"exclude_types,omitempty"`
}
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) 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 InspectContentRequest ¶
Request to search for potentially sensitive info in a list of items.
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"`
}
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 ¶
Results of inspecting a list of items.
type InspectContentResponse struct {
// Each content_item from the request will have a result in this list, in the
// same order as the request.
Results []*InspectResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
}
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 ¶
Metadata returned within GetOperation for an inspect request.
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"`
}
func (*InspectOperationMetadata) Descriptor ¶
func (*InspectOperationMetadata) Descriptor() ([]byte, []int)
func (*InspectOperationMetadata) GetCreateTime ¶
func (m *InspectOperationMetadata) GetCreateTime() *google_protobuf3.Timestamp
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 ¶
The operational data.
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"`
}
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 ¶
All the findings for a single scanned item.
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"`
}
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 ¶
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.
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"`
}
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 ¶
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.
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"`
}
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 ¶
A representation of a Datastore kind.
type KindExpression struct {
// The name of the kind.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
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 ¶
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.
type Likelihood int32
const (
// Default value; information with all likelihoods will be 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 ¶
Request for the list of info types belonging to a given category, or all supported info types if no category is specified.
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"`
}
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 ¶
Response to the ListInfoTypes request.
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"`
}
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 ¶
Request for the list of results in a given inspect operation.
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 will select 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"`
}
func (*ListInspectFindingsRequest) Descriptor ¶
func (*ListInspectFindingsRequest) Descriptor() ([]byte, []int)
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 ¶
Response to the ListInspectFindings request.
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"`
}
func (*ListInspectFindingsResponse) Descriptor ¶
func (*ListInspectFindingsResponse) Descriptor() ([]byte, []int)
func (*ListInspectFindingsResponse) GetNextPageToken ¶
func (m *ListInspectFindingsResponse) GetNextPageToken() string
func (*ListInspectFindingsResponse) GetResult ¶
func (m *ListInspectFindingsResponse) GetResult() *InspectResult
func (*ListInspectFindingsResponse) ProtoMessage ¶
func (*ListInspectFindingsResponse) ProtoMessage()
func (*ListInspectFindingsResponse) Reset ¶
func (m *ListInspectFindingsResponse) Reset()
func (*ListInspectFindingsResponse) String ¶
func (m *ListInspectFindingsResponse) String() string
type ListRootCategoriesRequest ¶
Request for root categories of Info Types supported by the API. Example values might include "FINANCE", "HEALTH", "FAST", "DEFAULT".
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"`
}
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 ¶
Response for ListRootCategories request.
type ListRootCategoriesResponse struct {
// List of all into type categories supported by the API.
Categories []*CategoryDescription `protobuf:"bytes,1,rep,name=categories" json:"categories,omitempty"`
}
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 ¶
Specifies the location of a finding within its source item.
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"`
}
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) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) Reset ¶
func (m *Location) Reset()
func (*Location) String ¶
func (m *Location) String() string
type OutputStorageConfig ¶
Cloud repository for storing output.
type OutputStorageConfig struct {
// Types that are valid to be assigned to Type:
// *OutputStorageConfig_StoragePath
Type isOutputStorageConfig_Type `protobuf_oneof:"type"`
}
func (*OutputStorageConfig) Descriptor ¶
func (*OutputStorageConfig) Descriptor() ([]byte, []int)
func (*OutputStorageConfig) GetStoragePath ¶
func (m *OutputStorageConfig) GetStoragePath() *CloudStoragePath
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 PartitionId ¶
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.
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"`
}
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 ¶
A representation of a Datastore property in a projection.
type Projection struct {
// The property to project.
Property *PropertyReference `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
}
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 ¶
A reference to a property relative to the Datastore kind expressions.
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"`
}
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 ¶
Generic half-open interval [start, end)
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"`
}
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 ¶
Message for a unique key indicating a record that contains a finding.
type RecordKey struct {
// Types that are valid to be assigned to Type:
// *RecordKey_CloudStorageKey
// *RecordKey_DatastoreKey
Type isRecordKey_Type `protobuf_oneof:"type"`
}
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 ¶
Request to search for potentially sensitive info in a list of items and replace it with a default or provided content.
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 with. Must specify at least one.
ReplaceConfigs []*RedactContentRequest_ReplaceConfig `protobuf:"bytes,3,rep,name=replace_configs,json=replaceConfigs" json:"replace_configs,omitempty"`
}
func (*RedactContentRequest) Descriptor ¶
func (*RedactContentRequest) Descriptor() ([]byte, []int)
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_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, we'll
// match 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 (m *RedactContentRequest_ReplaceConfig) Reset()
func (*RedactContentRequest_ReplaceConfig) String ¶
func (m *RedactContentRequest_ReplaceConfig) String() string
type RedactContentResponse ¶
Results of deidentifying a list of items.
type RedactContentResponse struct {
// The redacted content.
Items []*ContentItem `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
}
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 ¶
Shared message indicating Cloud storage type.
type StorageConfig struct {
// Types that are valid to be assigned to Type:
// *StorageConfig_DatastoreOptions
// *StorageConfig_CloudStorageOptions
Type isStorageConfig_Type `protobuf_oneof:"type"`
}
func (*StorageConfig) Descriptor ¶
func (*StorageConfig) Descriptor() ([]byte, []int)
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_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"`
}
ActiveGo 1.8