types

package
Version: v0.0.0-...-98a9834 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 5 Imported by: 58

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DatasinkTypesEnum_name = map[int32]string{
	0: "mysql",
	1: "mssql",
	2: "postgres",
	3: "sqlite3",
	4: "oracle",
	5: "kafka",
	6: "eventhub",
	7: "s3",
	8: "azureblob",
	9: "googlestorage",
}
View Source
var DatasinkTypesEnum_value = map[string]int32{
	"mysql":         0,
	"mssql":         1,
	"postgres":      2,
	"sqlite3":       3,
	"oracle":        4,
	"kafka":         5,
	"eventhub":      6,
	"s3":            7,
	"azureblob":     8,
	"googlestorage": 9,
}
View Source
var DetectionTypeEnum_name = map[int32]string{
	0: "OCR",
	1: "AZURE_OCR",
	2: "AZURE_FACE",
}
View Source
var DetectionTypeEnum_value = map[string]int32{
	"OCR":        0,
	"AZURE_OCR":  1,
	"AZURE_FACE": 2,
}
View Source
var FieldTypesEnum_name = map[int32]string{
	0:  "CREDIT_CARD",
	1:  "CRYPTO",
	2:  "DATE_TIME",
	3:  "DOMAIN_NAME",
	4:  "EMAIL_ADDRESS",
	5:  "IBAN_CODE",
	6:  "IP_ADDRESS",
	7:  "NRP",
	8:  "LOCATION",
	9:  "PERSON",
	10: "PHONE_NUMBER",
	11: "US_BANK_NUMBER",
	12: "US_DRIVER_LICENSE",
	13: "US_ITIN",
	14: "US_PASSPORT",
	15: "US_SSN",
	16: "UK_NHS",
}
View Source
var FieldTypesEnum_value = map[string]int32{
	"CREDIT_CARD":       0,
	"CRYPTO":            1,
	"DATE_TIME":         2,
	"DOMAIN_NAME":       3,
	"EMAIL_ADDRESS":     4,
	"IBAN_CODE":         5,
	"IP_ADDRESS":        6,
	"NRP":               7,
	"LOCATION":          8,
	"PERSON":            9,
	"PHONE_NUMBER":      10,
	"US_BANK_NUMBER":    11,
	"US_DRIVER_LICENSE": 12,
	"US_ITIN":           13,
	"US_PASSPORT":       14,
	"US_SSN":            15,
	"UK_NHS":            16,
}

Functions

func RegisterAnalyzeServiceServer

func RegisterAnalyzeServiceServer(s *grpc.Server, srv AnalyzeServiceServer)

func RegisterAnonymizeImageServiceServer

func RegisterAnonymizeImageServiceServer(s *grpc.Server, srv AnonymizeImageServiceServer)

func RegisterAnonymizeServiceServer

func RegisterAnonymizeServiceServer(s *grpc.Server, srv AnonymizeServiceServer)

func RegisterDatasinkServiceServer

func RegisterDatasinkServiceServer(s *grpc.Server, srv DatasinkServiceServer)

func RegisterOcrServiceServer

func RegisterOcrServiceServer(s *grpc.Server, srv OcrServiceServer)

func RegisterRecognizersStoreServiceServer

func RegisterRecognizersStoreServiceServer(s *grpc.Server, srv RecognizersStoreServiceServer)

func RegisterSchedulerServiceServer

func RegisterSchedulerServiceServer(s *grpc.Server, srv SchedulerServiceServer)

Types

type AnalyzeApiRequest

type AnalyzeApiRequest struct {
	// The text to analyze
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// The analyze template id - that hold the analyze configuration
	AnalyzeTemplateId string `protobuf:"bytes,2,opt,name=analyzeTemplateId,proto3" json:"analyzeTemplateId,omitempty"`
	// Optional parameter (if template id was not provided) for running the analyze service without creating a template
	AnalyzeTemplate      *AnalyzeTemplate `protobuf:"bytes,3,opt,name=analyzeTemplate,proto3" json:"analyzeTemplate,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

AnalyzeApiRequest represents the request to the API HTTP service

func (*AnalyzeApiRequest) Descriptor

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

func (*AnalyzeApiRequest) GetAnalyzeTemplate

func (m *AnalyzeApiRequest) GetAnalyzeTemplate() *AnalyzeTemplate

func (*AnalyzeApiRequest) GetAnalyzeTemplateId

func (m *AnalyzeApiRequest) GetAnalyzeTemplateId() string

func (*AnalyzeApiRequest) GetText

func (m *AnalyzeApiRequest) GetText() string

func (*AnalyzeApiRequest) ProtoMessage

func (*AnalyzeApiRequest) ProtoMessage()

func (*AnalyzeApiRequest) Reset

func (m *AnalyzeApiRequest) Reset()

func (*AnalyzeApiRequest) String

func (m *AnalyzeApiRequest) String() string

func (*AnalyzeApiRequest) XXX_DiscardUnknown

func (m *AnalyzeApiRequest) XXX_DiscardUnknown()

func (*AnalyzeApiRequest) XXX_Marshal

func (m *AnalyzeApiRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnalyzeApiRequest) XXX_Merge

func (dst *AnalyzeApiRequest) XXX_Merge(src proto.Message)

func (*AnalyzeApiRequest) XXX_Size

func (m *AnalyzeApiRequest) XXX_Size() int

func (*AnalyzeApiRequest) XXX_Unmarshal

func (m *AnalyzeApiRequest) XXX_Unmarshal(b []byte) error

type AnalyzeRequest

type AnalyzeRequest struct {
	// The text to analyze
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// The analyze template, which configures which sensitive data should be analyzed
	AnalyzeTemplate      *AnalyzeTemplate `protobuf:"bytes,2,opt,name=analyzeTemplate,proto3" json:"analyzeTemplate,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

AnalyzeRequest represents the request to the analyze service via GRPC

func (*AnalyzeRequest) Descriptor

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

func (*AnalyzeRequest) GetAnalyzeTemplate

func (m *AnalyzeRequest) GetAnalyzeTemplate() *AnalyzeTemplate

func (*AnalyzeRequest) GetText

func (m *AnalyzeRequest) GetText() string

func (*AnalyzeRequest) ProtoMessage

func (*AnalyzeRequest) ProtoMessage()

func (*AnalyzeRequest) Reset

func (m *AnalyzeRequest) Reset()

func (*AnalyzeRequest) String

func (m *AnalyzeRequest) String() string

func (*AnalyzeRequest) XXX_DiscardUnknown

func (m *AnalyzeRequest) XXX_DiscardUnknown()

func (*AnalyzeRequest) XXX_Marshal

func (m *AnalyzeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnalyzeRequest) XXX_Merge

func (dst *AnalyzeRequest) XXX_Merge(src proto.Message)

func (*AnalyzeRequest) XXX_Size

func (m *AnalyzeRequest) XXX_Size() int

func (*AnalyzeRequest) XXX_Unmarshal

func (m *AnalyzeRequest) XXX_Unmarshal(b []byte) error

type AnalyzeResponse

type AnalyzeResponse struct {
	// Array of the analyze results finding
	AnalyzeResults []*AnalyzeResult `protobuf:"bytes,1,rep,name=analyzeResults,proto3" json:"analyzeResults,omitempty"`
	// The assigned analysis request id, can be used to correlate logs
	RequestId            string   `protobuf:"bytes,2,opt,name=requestId,proto3" json:"requestId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

AnalyzeResponse represents the analyze service response

func (*AnalyzeResponse) Descriptor

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

func (*AnalyzeResponse) GetAnalyzeResults

func (m *AnalyzeResponse) GetAnalyzeResults() []*AnalyzeResult

func (*AnalyzeResponse) GetRequestId

func (m *AnalyzeResponse) GetRequestId() string

func (*AnalyzeResponse) ProtoMessage

func (*AnalyzeResponse) ProtoMessage()

func (*AnalyzeResponse) Reset

func (m *AnalyzeResponse) Reset()

func (*AnalyzeResponse) String

func (m *AnalyzeResponse) String() string

func (*AnalyzeResponse) XXX_DiscardUnknown

func (m *AnalyzeResponse) XXX_DiscardUnknown()

func (*AnalyzeResponse) XXX_Marshal

func (m *AnalyzeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnalyzeResponse) XXX_Merge

func (dst *AnalyzeResponse) XXX_Merge(src proto.Message)

func (*AnalyzeResponse) XXX_Size

func (m *AnalyzeResponse) XXX_Size() int

func (*AnalyzeResponse) XXX_Unmarshal

func (m *AnalyzeResponse) XXX_Unmarshal(b []byte) error

type AnalyzeResult

type AnalyzeResult struct {
	// The sensitive text result
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// The sensitive text type (supported types: FieldTypesEnum)
	Field *FieldTypes `protobuf:"bytes,2,opt,name=field,proto3" json:"field,omitempty"`
	// The score of the result
	Score float32 `protobuf:"fixed32,3,opt,name=score,proto3" json:"score,omitempty"`
	// The location in the text of the finding
	Location             *Location `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

AnalyzeResult represents the Analyze service findings

func (*AnalyzeResult) Descriptor

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

func (*AnalyzeResult) GetField

func (m *AnalyzeResult) GetField() *FieldTypes

func (*AnalyzeResult) GetLocation

func (m *AnalyzeResult) GetLocation() *Location

func (*AnalyzeResult) GetScore

func (m *AnalyzeResult) GetScore() float32

func (*AnalyzeResult) GetText

func (m *AnalyzeResult) GetText() string

func (*AnalyzeResult) ProtoMessage

func (*AnalyzeResult) ProtoMessage()

func (*AnalyzeResult) Reset

func (m *AnalyzeResult) Reset()

func (*AnalyzeResult) String

func (m *AnalyzeResult) String() string

func (*AnalyzeResult) XXX_DiscardUnknown

func (m *AnalyzeResult) XXX_DiscardUnknown()

func (*AnalyzeResult) XXX_Marshal

func (m *AnalyzeResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnalyzeResult) XXX_Merge

func (dst *AnalyzeResult) XXX_Merge(src proto.Message)

func (*AnalyzeResult) XXX_Size

func (m *AnalyzeResult) XXX_Size() int

func (*AnalyzeResult) XXX_Unmarshal

func (m *AnalyzeResult) XXX_Unmarshal(b []byte) error

type AnalyzeServiceClient

type AnalyzeServiceClient interface {
	// Apply method will execute on the given request and return the analyze response with the sensitive text findings
	Apply(ctx context.Context, in *AnalyzeRequest, opts ...grpc.CallOption) (*AnalyzeResponse, error)
	// Gets the list of known recognizers.
	GetAllRecognizers(ctx context.Context, in *RecognizersAllRequest, opts ...grpc.CallOption) (*RecognizersAllResponse, error)
}

AnalyzeServiceClient is the client API for AnalyzeService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAnalyzeServiceClient

func NewAnalyzeServiceClient(cc *grpc.ClientConn) AnalyzeServiceClient

type AnalyzeServiceServer

type AnalyzeServiceServer interface {
	// Apply method will execute on the given request and return the analyze response with the sensitive text findings
	Apply(context.Context, *AnalyzeRequest) (*AnalyzeResponse, error)
	// Gets the list of known recognizers.
	GetAllRecognizers(context.Context, *RecognizersAllRequest) (*RecognizersAllResponse, error)
}

AnalyzeServiceServer is the server API for AnalyzeService service.

type AnalyzeTemplate

type AnalyzeTemplate struct {
	// Array of the fields to analyze
	Fields []*FieldTypes `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
	// Optional flag to request all existing fields. if true, "fields" must be empty.
	AllFields bool `protobuf:"varint,2,opt,name=allFields,proto3" json:"allFields,omitempty"`
	// Template description
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Template Creation date
	CreateTime string `protobuf:"bytes,4,opt,name=createTime,proto3" json:"createTime,omitempty"`
	// Template modification date
	ModifiedTime string `protobuf:"bytes,5,opt,name=modifiedTime,proto3" json:"modifiedTime,omitempty"`
	// Language code, in ISO-639 format, https://en.wikipedia.org/wiki/ISO_639-1
	Language string `protobuf:"bytes,6,opt,name=language,proto3" json:"language,omitempty"`
	// Threshold to filter results based on their score
	ResultsScoreThreshold float32  `protobuf:"fixed32,7,opt,name=resultsScoreThreshold,proto3" json:"resultsScoreThreshold,omitempty"`
	XXX_NoUnkeyedLiteral  struct{} `json:"-"`
	XXX_unrecognized      []byte   `json:"-"`
	XXX_sizecache         int32    `json:"-"`
}

AnalyzeTemplate represents the template definition of the Analyze service- for analyzing sensitive text.

func (*AnalyzeTemplate) Descriptor

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

func (*AnalyzeTemplate) GetAllFields

func (m *AnalyzeTemplate) GetAllFields() bool

func (*AnalyzeTemplate) GetCreateTime

func (m *AnalyzeTemplate) GetCreateTime() string

func (*AnalyzeTemplate) GetDescription

func (m *AnalyzeTemplate) GetDescription() string

func (*AnalyzeTemplate) GetFields

func (m *AnalyzeTemplate) GetFields() []*FieldTypes

func (*AnalyzeTemplate) GetLanguage

func (m *AnalyzeTemplate) GetLanguage() string

func (*AnalyzeTemplate) GetModifiedTime

func (m *AnalyzeTemplate) GetModifiedTime() string

func (*AnalyzeTemplate) GetResultsScoreThreshold

func (m *AnalyzeTemplate) GetResultsScoreThreshold() float32

func (*AnalyzeTemplate) ProtoMessage

func (*AnalyzeTemplate) ProtoMessage()

func (*AnalyzeTemplate) Reset

func (m *AnalyzeTemplate) Reset()

func (*AnalyzeTemplate) String

func (m *AnalyzeTemplate) String() string

func (*AnalyzeTemplate) XXX_DiscardUnknown

func (m *AnalyzeTemplate) XXX_DiscardUnknown()

func (*AnalyzeTemplate) XXX_Marshal

func (m *AnalyzeTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnalyzeTemplate) XXX_Merge

func (dst *AnalyzeTemplate) XXX_Merge(src proto.Message)

func (*AnalyzeTemplate) XXX_Size

func (m *AnalyzeTemplate) XXX_Size() int

func (*AnalyzeTemplate) XXX_Unmarshal

func (m *AnalyzeTemplate) XXX_Unmarshal(b []byte) error

type AnonymizeApiRequest

type AnonymizeApiRequest struct {
	// The text to anonymize
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// The analyze template id - anonymization is done according to analyzing results.
	// One of analyzeTemplateId or analyzeTemplate have to be configured.
	AnalyzeTemplateId string `protobuf:"bytes,2,opt,name=analyzeTemplateId,proto3" json:"analyzeTemplateId,omitempty"`
	// The anonymize template id - represents the anonymize configuration, which fields to anonymize and how.
	AnonymizeTemplateId string `protobuf:"bytes,3,opt,name=anonymizeTemplateId,proto3" json:"anonymizeTemplateId,omitempty"`
	// Optional parameter for running the analyzer without creating a template.
	AnalyzeTemplate *AnalyzeTemplate `protobuf:"bytes,4,opt,name=analyzeTemplate,proto3" json:"analyzeTemplate,omitempty"`
	// Optional parameter for running the anonymizer without creating a template.
	AnonymizeTemplate    *AnonymizeTemplate `protobuf:"bytes,5,opt,name=anonymizeTemplate,proto3" json:"anonymizeTemplate,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

AnonymizeApiRequest represents the request to the API HTTP service

func (*AnonymizeApiRequest) Descriptor

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

func (*AnonymizeApiRequest) GetAnalyzeTemplate

func (m *AnonymizeApiRequest) GetAnalyzeTemplate() *AnalyzeTemplate

func (*AnonymizeApiRequest) GetAnalyzeTemplateId

func (m *AnonymizeApiRequest) GetAnalyzeTemplateId() string

func (*AnonymizeApiRequest) GetAnonymizeTemplate

func (m *AnonymizeApiRequest) GetAnonymizeTemplate() *AnonymizeTemplate

func (*AnonymizeApiRequest) GetAnonymizeTemplateId

func (m *AnonymizeApiRequest) GetAnonymizeTemplateId() string

func (*AnonymizeApiRequest) GetText

func (m *AnonymizeApiRequest) GetText() string

func (*AnonymizeApiRequest) ProtoMessage

func (*AnonymizeApiRequest) ProtoMessage()

func (*AnonymizeApiRequest) Reset

func (m *AnonymizeApiRequest) Reset()

func (*AnonymizeApiRequest) String

func (m *AnonymizeApiRequest) String() string

func (*AnonymizeApiRequest) XXX_DiscardUnknown

func (m *AnonymizeApiRequest) XXX_DiscardUnknown()

func (*AnonymizeApiRequest) XXX_Marshal

func (m *AnonymizeApiRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnonymizeApiRequest) XXX_Merge

func (dst *AnonymizeApiRequest) XXX_Merge(src proto.Message)

func (*AnonymizeApiRequest) XXX_Size

func (m *AnonymizeApiRequest) XXX_Size() int

func (*AnonymizeApiRequest) XXX_Unmarshal

func (m *AnonymizeApiRequest) XXX_Unmarshal(b []byte) error

type AnonymizeImageApiRequest

type AnonymizeImageApiRequest struct {
	// The image data to anonymize in bytes format
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// The image type JPEG/PNG/TIFF
	ImageType string `protobuf:"bytes,2,opt,name=imageType,proto3" json:"imageType,omitempty"`
	// The analyze template id - anonymization is done according to analyzing results.
	// One of analyzeTemplateId or analyzeTemplate have to be configured.
	AnalyzeTemplateId string `protobuf:"bytes,3,opt,name=analyzeTemplateId,proto3" json:"analyzeTemplateId,omitempty"`
	// The anonymize image template id - represents the anonymize configuration, which fields to anonymize and how.
	AnonymizeImageTemplateId string `protobuf:"bytes,4,opt,name=anonymizeImageTemplateId,proto3" json:"anonymizeImageTemplateId,omitempty"`
	// Optional parameter for running the analyzer without creating a template.
	AnalyzeTemplate *AnalyzeTemplate `protobuf:"bytes,5,opt,name=analyzeTemplate,proto3" json:"analyzeTemplate,omitempty"`
	// Optional parameter for running the anonymize image without creating a template.
	AnonymizeImageTemplate *AnonymizeImageTemplate `protobuf:"bytes,6,opt,name=anonymizeImageTemplate,proto3" json:"anonymizeImageTemplate,omitempty"`
	// Anoymize image type detection OCR / Azure OCR / Azure Face
	DetectionType        DetectionTypeEnum `protobuf:"varint,7,opt,name=detectionType,proto3,enum=types.DetectionTypeEnum" json:"detectionType,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

AnonymizeApiRequest represents the request to the API HTTP service

func (*AnonymizeImageApiRequest) Descriptor

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

func (*AnonymizeImageApiRequest) GetAnalyzeTemplate

func (m *AnonymizeImageApiRequest) GetAnalyzeTemplate() *AnalyzeTemplate

func (*AnonymizeImageApiRequest) GetAnalyzeTemplateId

func (m *AnonymizeImageApiRequest) GetAnalyzeTemplateId() string

func (*AnonymizeImageApiRequest) GetAnonymizeImageTemplate

func (m *AnonymizeImageApiRequest) GetAnonymizeImageTemplate() *AnonymizeImageTemplate

func (*AnonymizeImageApiRequest) GetAnonymizeImageTemplateId

func (m *AnonymizeImageApiRequest) GetAnonymizeImageTemplateId() string

func (*AnonymizeImageApiRequest) GetData

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

func (*AnonymizeImageApiRequest) GetDetectionType

func (m *AnonymizeImageApiRequest) GetDetectionType() DetectionTypeEnum

func (*AnonymizeImageApiRequest) GetImageType

func (m *AnonymizeImageApiRequest) GetImageType() string

func (*AnonymizeImageApiRequest) ProtoMessage

func (*AnonymizeImageApiRequest) ProtoMessage()

func (*AnonymizeImageApiRequest) Reset

func (m *AnonymizeImageApiRequest) Reset()

func (*AnonymizeImageApiRequest) String

func (m *AnonymizeImageApiRequest) String() string

func (*AnonymizeImageApiRequest) XXX_DiscardUnknown

func (m *AnonymizeImageApiRequest) XXX_DiscardUnknown()

func (*AnonymizeImageApiRequest) XXX_Marshal

func (m *AnonymizeImageApiRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnonymizeImageApiRequest) XXX_Merge

func (dst *AnonymizeImageApiRequest) XXX_Merge(src proto.Message)

func (*AnonymizeImageApiRequest) XXX_Size

func (m *AnonymizeImageApiRequest) XXX_Size() int

func (*AnonymizeImageApiRequest) XXX_Unmarshal

func (m *AnonymizeImageApiRequest) XXX_Unmarshal(b []byte) error

type AnonymizeImageRequest

type AnonymizeImageRequest struct {
	// The Image to anonymize
	Image *Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	// The anonymize template represent the anonymize configuration, which fields to anonymize and how
	Template *AnonymizeImageTemplate `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"`
	// Anoymize image detection type  OCR / Azure OCR / Azure Face
	DetectionType DetectionTypeEnum `protobuf:"varint,3,opt,name=detectionType,proto3,enum=types.DetectionTypeEnum" json:"detectionType,omitempty"`
	// The analyze result containing the field type and location of the sensetive data to be anonymized.
	AnalyzeResults       []*AnalyzeResult `protobuf:"bytes,4,rep,name=analyzeResults,proto3" json:"analyzeResults,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

AnonymizeRequest represents the request to the anonymize service via GRPC

func (*AnonymizeImageRequest) Descriptor

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

func (*AnonymizeImageRequest) GetAnalyzeResults

func (m *AnonymizeImageRequest) GetAnalyzeResults() []*AnalyzeResult

func (*AnonymizeImageRequest) GetDetectionType

func (m *AnonymizeImageRequest) GetDetectionType() DetectionTypeEnum

func (*AnonymizeImageRequest) GetImage

func (m *AnonymizeImageRequest) GetImage() *Image

func (*AnonymizeImageRequest) GetTemplate

func (*AnonymizeImageRequest) ProtoMessage

func (*AnonymizeImageRequest) ProtoMessage()

func (*AnonymizeImageRequest) Reset

func (m *AnonymizeImageRequest) Reset()

func (*AnonymizeImageRequest) String

func (m *AnonymizeImageRequest) String() string

func (*AnonymizeImageRequest) XXX_DiscardUnknown

func (m *AnonymizeImageRequest) XXX_DiscardUnknown()

func (*AnonymizeImageRequest) XXX_Marshal

func (m *AnonymizeImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnonymizeImageRequest) XXX_Merge

func (dst *AnonymizeImageRequest) XXX_Merge(src proto.Message)

func (*AnonymizeImageRequest) XXX_Size

func (m *AnonymizeImageRequest) XXX_Size() int

func (*AnonymizeImageRequest) XXX_Unmarshal

func (m *AnonymizeImageRequest) XXX_Unmarshal(b []byte) error

type AnonymizeImageResponse

type AnonymizeImageResponse struct {
	Image                *Image   `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

AnonymizeResponse represents the anonymize service response

func (*AnonymizeImageResponse) Descriptor

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

func (*AnonymizeImageResponse) GetImage

func (m *AnonymizeImageResponse) GetImage() *Image

func (*AnonymizeImageResponse) ProtoMessage

func (*AnonymizeImageResponse) ProtoMessage()

func (*AnonymizeImageResponse) Reset

func (m *AnonymizeImageResponse) Reset()

func (*AnonymizeImageResponse) String

func (m *AnonymizeImageResponse) String() string

func (*AnonymizeImageResponse) XXX_DiscardUnknown

func (m *AnonymizeImageResponse) XXX_DiscardUnknown()

func (*AnonymizeImageResponse) XXX_Marshal

func (m *AnonymizeImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnonymizeImageResponse) XXX_Merge

func (dst *AnonymizeImageResponse) XXX_Merge(src proto.Message)

func (*AnonymizeImageResponse) XXX_Size

func (m *AnonymizeImageResponse) XXX_Size() int

func (*AnonymizeImageResponse) XXX_Unmarshal

func (m *AnonymizeImageResponse) XXX_Unmarshal(b []byte) error

type AnonymizeImageServiceClient

type AnonymizeImageServiceClient interface {
	// Apply method will execute on the given request and return the anonymize response with the sensitive text anonymized
	Apply(ctx context.Context, in *AnonymizeImageRequest, opts ...grpc.CallOption) (*AnonymizeImageResponse, error)
}

AnonymizeImageServiceClient is the client API for AnonymizeImageService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAnonymizeImageServiceClient

func NewAnonymizeImageServiceClient(cc *grpc.ClientConn) AnonymizeImageServiceClient

type AnonymizeImageServiceServer

type AnonymizeImageServiceServer interface {
	// Apply method will execute on the given request and return the anonymize response with the sensitive text anonymized
	Apply(context.Context, *AnonymizeImageRequest) (*AnonymizeImageResponse, error)
}

AnonymizeImageServiceServer is the server API for AnonymizeImageService service.

type AnonymizeImageTemplate

type AnonymizeImageTemplate struct {
	// Template description
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// Template Creation date
	CreateTime string `protobuf:"bytes,2,opt,name=createTime,proto3" json:"createTime,omitempty"`
	// Template modification date
	ModifiedTime string `protobuf:"bytes,3,opt,name=modifiedTime,proto3" json:"modifiedTime,omitempty"`
	// FieldTypeGraphic represents the graphics for an array of fields types
	FieldTypeGraphics    []*FieldTypeGraphic `protobuf:"bytes,4,rep,name=fieldTypeGraphics,proto3" json:"fieldTypeGraphics,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

AnonymizeImageTemplate represents the template definition of the Anonymize image service

func (*AnonymizeImageTemplate) Descriptor

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

func (*AnonymizeImageTemplate) GetCreateTime

func (m *AnonymizeImageTemplate) GetCreateTime() string

func (*AnonymizeImageTemplate) GetDescription

func (m *AnonymizeImageTemplate) GetDescription() string

func (*AnonymizeImageTemplate) GetFieldTypeGraphics

func (m *AnonymizeImageTemplate) GetFieldTypeGraphics() []*FieldTypeGraphic

func (*AnonymizeImageTemplate) GetModifiedTime

func (m *AnonymizeImageTemplate) GetModifiedTime() string

func (*AnonymizeImageTemplate) ProtoMessage

func (*AnonymizeImageTemplate) ProtoMessage()

func (*AnonymizeImageTemplate) Reset

func (m *AnonymizeImageTemplate) Reset()

func (*AnonymizeImageTemplate) String

func (m *AnonymizeImageTemplate) String() string

func (*AnonymizeImageTemplate) XXX_DiscardUnknown

func (m *AnonymizeImageTemplate) XXX_DiscardUnknown()

func (*AnonymizeImageTemplate) XXX_Marshal

func (m *AnonymizeImageTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnonymizeImageTemplate) XXX_Merge

func (dst *AnonymizeImageTemplate) XXX_Merge(src proto.Message)

func (*AnonymizeImageTemplate) XXX_Size

func (m *AnonymizeImageTemplate) XXX_Size() int

func (*AnonymizeImageTemplate) XXX_Unmarshal

func (m *AnonymizeImageTemplate) XXX_Unmarshal(b []byte) error

type AnonymizeJsonApiRequest

type AnonymizeJsonApiRequest struct {
	// The json to anonymize
	Json string `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty"`
	// The json schema template id.
	// One of jsonSchemaId or jsonSchema have to be configured.
	JsonSchemaId string `protobuf:"bytes,2,opt,name=jsonSchemaId,proto3" json:"jsonSchemaId,omitempty"`
	// The analyze template id - anonymization is done according to analyzing results.
	// One of analyzeTemplateId or analyzeTemplate have to be configured.
	AnalyzeTemplateId string `protobuf:"bytes,3,opt,name=analyzeTemplateId,proto3" json:"analyzeTemplateId,omitempty"`
	// The anonymize template id - represents the anonymize configuration, which fields to anonymize and how.
	AnonymizeTemplateId string `protobuf:"bytes,4,opt,name=anonymizeTemplateId,proto3" json:"anonymizeTemplateId,omitempty"`
	// Optional parameter for running the json anonymizer without creating a schema template.
	JsonSchemaTemplate *JsonSchemaTemplate `protobuf:"bytes,5,opt,name=jsonSchemaTemplate,proto3" json:"jsonSchemaTemplate,omitempty"`
	// Optional parameter for running the analyzer without creating a template.
	AnalyzeTemplate *AnalyzeTemplate `protobuf:"bytes,6,opt,name=analyzeTemplate,proto3" json:"analyzeTemplate,omitempty"`
	// Optional parameter for running the anonymizer without creating a template.
	AnonymizeTemplate    *AnonymizeTemplate `protobuf:"bytes,7,opt,name=anonymizeTemplate,proto3" json:"anonymizeTemplate,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

AnonymizeJsonApiRequest represents the request to the API HTTP service

func (*AnonymizeJsonApiRequest) Descriptor

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

func (*AnonymizeJsonApiRequest) GetAnalyzeTemplate

func (m *AnonymizeJsonApiRequest) GetAnalyzeTemplate() *AnalyzeTemplate

func (*AnonymizeJsonApiRequest) GetAnalyzeTemplateId

func (m *AnonymizeJsonApiRequest) GetAnalyzeTemplateId() string

func (*AnonymizeJsonApiRequest) GetAnonymizeTemplate

func (m *AnonymizeJsonApiRequest) GetAnonymizeTemplate() *AnonymizeTemplate

func (*AnonymizeJsonApiRequest) GetAnonymizeTemplateId

func (m *AnonymizeJsonApiRequest) GetAnonymizeTemplateId() string

func (*AnonymizeJsonApiRequest) GetJson

func (m *AnonymizeJsonApiRequest) GetJson() string

func (*AnonymizeJsonApiRequest) GetJsonSchemaId

func (m *AnonymizeJsonApiRequest) GetJsonSchemaId() string

func (*AnonymizeJsonApiRequest) GetJsonSchemaTemplate

func (m *AnonymizeJsonApiRequest) GetJsonSchemaTemplate() *JsonSchemaTemplate

func (*AnonymizeJsonApiRequest) ProtoMessage

func (*AnonymizeJsonApiRequest) ProtoMessage()

func (*AnonymizeJsonApiRequest) Reset

func (m *AnonymizeJsonApiRequest) Reset()

func (*AnonymizeJsonApiRequest) String

func (m *AnonymizeJsonApiRequest) String() string

func (*AnonymizeJsonApiRequest) XXX_DiscardUnknown

func (m *AnonymizeJsonApiRequest) XXX_DiscardUnknown()

func (*AnonymizeJsonApiRequest) XXX_Marshal

func (m *AnonymizeJsonApiRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnonymizeJsonApiRequest) XXX_Merge

func (dst *AnonymizeJsonApiRequest) XXX_Merge(src proto.Message)

func (*AnonymizeJsonApiRequest) XXX_Size

func (m *AnonymizeJsonApiRequest) XXX_Size() int

func (*AnonymizeJsonApiRequest) XXX_Unmarshal

func (m *AnonymizeJsonApiRequest) XXX_Unmarshal(b []byte) error

type AnonymizeJsonRequest

type AnonymizeJsonRequest struct {
	// The json to anonymize
	Json string `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty"`
	// the Json schema template.
	JsonSchema *JsonSchemaTemplate `protobuf:"bytes,2,opt,name=jsonSchema,proto3" json:"jsonSchema,omitempty"`
	// The analyze tempalte represents which fields should be analyzed in the json.
	AnalyzeTemplate *AnalyzeTemplate `protobuf:"bytes,3,opt,name=analyzeTemplate,proto3" json:"analyzeTemplate,omitempty"`
	// The anonymize template represent the anonymize configuration, which fields to anonymize and how.
	AnonymizeTemplate    *AnonymizeTemplate `protobuf:"bytes,4,opt,name=anonymizeTemplate,proto3" json:"anonymizeTemplate,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*AnonymizeJsonRequest) Descriptor

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

func (*AnonymizeJsonRequest) GetAnalyzeTemplate

func (m *AnonymizeJsonRequest) GetAnalyzeTemplate() *AnalyzeTemplate

func (*AnonymizeJsonRequest) GetAnonymizeTemplate

func (m *AnonymizeJsonRequest) GetAnonymizeTemplate() *AnonymizeTemplate

func (*AnonymizeJsonRequest) GetJson

func (m *AnonymizeJsonRequest) GetJson() string

func (*AnonymizeJsonRequest) GetJsonSchema

func (m *AnonymizeJsonRequest) GetJsonSchema() *JsonSchemaTemplate

func (*AnonymizeJsonRequest) ProtoMessage

func (*AnonymizeJsonRequest) ProtoMessage()

func (*AnonymizeJsonRequest) Reset

func (m *AnonymizeJsonRequest) Reset()

func (*AnonymizeJsonRequest) String

func (m *AnonymizeJsonRequest) String() string

func (*AnonymizeJsonRequest) XXX_DiscardUnknown

func (m *AnonymizeJsonRequest) XXX_DiscardUnknown()

func (*AnonymizeJsonRequest) XXX_Marshal

func (m *AnonymizeJsonRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnonymizeJsonRequest) XXX_Merge

func (dst *AnonymizeJsonRequest) XXX_Merge(src proto.Message)

func (*AnonymizeJsonRequest) XXX_Size

func (m *AnonymizeJsonRequest) XXX_Size() int

func (*AnonymizeJsonRequest) XXX_Unmarshal

func (m *AnonymizeJsonRequest) XXX_Unmarshal(b []byte) error

type AnonymizeRequest

type AnonymizeRequest struct {
	// The text to anonymize
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// The anonymize template represent the anonymize configuration, which fields to anonymize and how
	Template *AnonymizeTemplate `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"`
	// The analyze result containing the field type and location of the sensetive data to be anonymized.
	AnalyzeResults       []*AnalyzeResult `protobuf:"bytes,3,rep,name=analyzeResults,proto3" json:"analyzeResults,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

AnonymizeRequest represents the request to the anonymize service via GRPC

func (*AnonymizeRequest) Descriptor

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

func (*AnonymizeRequest) GetAnalyzeResults

func (m *AnonymizeRequest) GetAnalyzeResults() []*AnalyzeResult

func (*AnonymizeRequest) GetTemplate

func (m *AnonymizeRequest) GetTemplate() *AnonymizeTemplate

func (*AnonymizeRequest) GetText

func (m *AnonymizeRequest) GetText() string

func (*AnonymizeRequest) ProtoMessage

func (*AnonymizeRequest) ProtoMessage()

func (*AnonymizeRequest) Reset

func (m *AnonymizeRequest) Reset()

func (*AnonymizeRequest) String

func (m *AnonymizeRequest) String() string

func (*AnonymizeRequest) XXX_DiscardUnknown

func (m *AnonymizeRequest) XXX_DiscardUnknown()

func (*AnonymizeRequest) XXX_Marshal

func (m *AnonymizeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnonymizeRequest) XXX_Merge

func (dst *AnonymizeRequest) XXX_Merge(src proto.Message)

func (*AnonymizeRequest) XXX_Size

func (m *AnonymizeRequest) XXX_Size() int

func (*AnonymizeRequest) XXX_Unmarshal

func (m *AnonymizeRequest) XXX_Unmarshal(b []byte) error

type AnonymizeResponse

type AnonymizeResponse struct {
	// The text with the senstive fields anonymized
	Text                 string   `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

AnonymizeResponse represents the anonymize service response

func (*AnonymizeResponse) Descriptor

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

func (*AnonymizeResponse) GetText

func (m *AnonymizeResponse) GetText() string

func (*AnonymizeResponse) ProtoMessage

func (*AnonymizeResponse) ProtoMessage()

func (*AnonymizeResponse) Reset

func (m *AnonymizeResponse) Reset()

func (*AnonymizeResponse) String

func (m *AnonymizeResponse) String() string

func (*AnonymizeResponse) XXX_DiscardUnknown

func (m *AnonymizeResponse) XXX_DiscardUnknown()

func (*AnonymizeResponse) XXX_Marshal

func (m *AnonymizeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnonymizeResponse) XXX_Merge

func (dst *AnonymizeResponse) XXX_Merge(src proto.Message)

func (*AnonymizeResponse) XXX_Size

func (m *AnonymizeResponse) XXX_Size() int

func (*AnonymizeResponse) XXX_Unmarshal

func (m *AnonymizeResponse) XXX_Unmarshal(b []byte) error

type AnonymizeServiceClient

type AnonymizeServiceClient interface {
	// Apply method will execute on the given request and return the anonymize response with the sensitive text anonymized
	Apply(ctx context.Context, in *AnonymizeRequest, opts ...grpc.CallOption) (*AnonymizeResponse, error)
}

AnonymizeServiceClient is the client API for AnonymizeService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAnonymizeServiceClient

func NewAnonymizeServiceClient(cc *grpc.ClientConn) AnonymizeServiceClient

type AnonymizeServiceServer

type AnonymizeServiceServer interface {
	// Apply method will execute on the given request and return the anonymize response with the sensitive text anonymized
	Apply(context.Context, *AnonymizeRequest) (*AnonymizeResponse, error)
}

AnonymizeServiceServer is the server API for AnonymizeService service.

type AnonymizeTemplate

type AnonymizeTemplate struct {
	// Template description
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// Template Creation date
	CreateTime string `protobuf:"bytes,2,opt,name=createTime,proto3" json:"createTime,omitempty"`
	// Template modification date
	ModifiedTime string `protobuf:"bytes,3,opt,name=modifiedTime,proto3" json:"modifiedTime,omitempty"`
	// FieldTypeTransformation represents the transformation for an array of fields types
	FieldTypeTransformations []*FieldTypeTransformation `protobuf:"bytes,4,rep,name=fieldTypeTransformations,proto3" json:"fieldTypeTransformations,omitempty"`
	// The default transformation applied for undeclared fields
	DefaultTransformation *Transformation `protobuf:"bytes,5,opt,name=defaultTransformation,proto3" json:"defaultTransformation,omitempty"`
	XXX_NoUnkeyedLiteral  struct{}        `json:"-"`
	XXX_unrecognized      []byte          `json:"-"`
	XXX_sizecache         int32           `json:"-"`
}

AnonymizeTemplate represents the template definition of the Anonymize service for anonymizying the sensitive data

func (*AnonymizeTemplate) Descriptor

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

func (*AnonymizeTemplate) GetCreateTime

func (m *AnonymizeTemplate) GetCreateTime() string

func (*AnonymizeTemplate) GetDefaultTransformation

func (m *AnonymizeTemplate) GetDefaultTransformation() *Transformation

func (*AnonymizeTemplate) GetDescription

func (m *AnonymizeTemplate) GetDescription() string

func (*AnonymizeTemplate) GetFieldTypeTransformations

func (m *AnonymizeTemplate) GetFieldTypeTransformations() []*FieldTypeTransformation

func (*AnonymizeTemplate) GetModifiedTime

func (m *AnonymizeTemplate) GetModifiedTime() string

func (*AnonymizeTemplate) ProtoMessage

func (*AnonymizeTemplate) ProtoMessage()

func (*AnonymizeTemplate) Reset

func (m *AnonymizeTemplate) Reset()

func (*AnonymizeTemplate) String

func (m *AnonymizeTemplate) String() string

func (*AnonymizeTemplate) XXX_DiscardUnknown

func (m *AnonymizeTemplate) XXX_DiscardUnknown()

func (*AnonymizeTemplate) XXX_Marshal

func (m *AnonymizeTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnonymizeTemplate) XXX_Merge

func (dst *AnonymizeTemplate) XXX_Merge(src proto.Message)

func (*AnonymizeTemplate) XXX_Size

func (m *AnonymizeTemplate) XXX_Size() int

func (*AnonymizeTemplate) XXX_Unmarshal

func (m *AnonymizeTemplate) XXX_Unmarshal(b []byte) error

type BlobStorageConfig

type BlobStorageConfig struct {
	// Azure account name
	AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"`
	// Azure account key
	AccountKey string `protobuf:"bytes,2,opt,name=accountKey,proto3" json:"accountKey,omitempty"`
	// The blob storage container Name
	ContainerName        string   `protobuf:"bytes,3,opt,name=containerName,proto3" json:"containerName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Azure Blob Storage configuration

func (*BlobStorageConfig) Descriptor

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

func (*BlobStorageConfig) GetAccountKey

func (m *BlobStorageConfig) GetAccountKey() string

func (*BlobStorageConfig) GetAccountName

func (m *BlobStorageConfig) GetAccountName() string

func (*BlobStorageConfig) GetContainerName

func (m *BlobStorageConfig) GetContainerName() string

func (*BlobStorageConfig) ProtoMessage

func (*BlobStorageConfig) ProtoMessage()

func (*BlobStorageConfig) Reset

func (m *BlobStorageConfig) Reset()

func (*BlobStorageConfig) String

func (m *BlobStorageConfig) String() string

func (*BlobStorageConfig) XXX_DiscardUnknown

func (m *BlobStorageConfig) XXX_DiscardUnknown()

func (*BlobStorageConfig) XXX_Marshal

func (m *BlobStorageConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlobStorageConfig) XXX_Merge

func (dst *BlobStorageConfig) XXX_Merge(src proto.Message)

func (*BlobStorageConfig) XXX_Size

func (m *BlobStorageConfig) XXX_Size() int

func (*BlobStorageConfig) XXX_Unmarshal

func (m *BlobStorageConfig) XXX_Unmarshal(b []byte) error

type Boundingbox

type Boundingbox struct {
	// Pixel X location of BBox
	XLocation float32 `protobuf:"fixed32,1,opt,name=xLocation,proto3" json:"xLocation,omitempty"`
	// Width of BBox
	Width float32 `protobuf:"fixed32,2,opt,name=width,proto3" json:"width,omitempty"`
	// Pixel Y location of BBox
	YLocation float32 `protobuf:"fixed32,3,opt,name=yLocation,proto3" json:"yLocation,omitempty"`
	// Height of BBox
	Height float32 `protobuf:"fixed32,4,opt,name=height,proto3" json:"height,omitempty"`
	// Text in BBox
	Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"`
	// Start position of char in text
	StartPosition int32 `protobuf:"zigzag32,6,opt,name=startPosition,proto3" json:"startPosition,omitempty"`
	// End position of char in text
	EndPosition          int32    `protobuf:"zigzag32,7,opt,name=endPosition,proto3" json:"endPosition,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Define an extracted bounding box text/image from images

func (*Boundingbox) Descriptor

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

func (*Boundingbox) GetEndPosition

func (m *Boundingbox) GetEndPosition() int32

func (*Boundingbox) GetHeight

func (m *Boundingbox) GetHeight() float32

func (*Boundingbox) GetStartPosition

func (m *Boundingbox) GetStartPosition() int32

func (*Boundingbox) GetText

func (m *Boundingbox) GetText() string

func (*Boundingbox) GetWidth

func (m *Boundingbox) GetWidth() float32

func (*Boundingbox) GetXLocation

func (m *Boundingbox) GetXLocation() float32

func (*Boundingbox) GetYLocation

func (m *Boundingbox) GetYLocation() float32

func (*Boundingbox) ProtoMessage

func (*Boundingbox) ProtoMessage()

func (*Boundingbox) Reset

func (m *Boundingbox) Reset()

func (*Boundingbox) String

func (m *Boundingbox) String() string

func (*Boundingbox) XXX_DiscardUnknown

func (m *Boundingbox) XXX_DiscardUnknown()

func (*Boundingbox) XXX_Marshal

func (m *Boundingbox) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Boundingbox) XXX_Merge

func (dst *Boundingbox) XXX_Merge(src proto.Message)

func (*Boundingbox) XXX_Size

func (m *Boundingbox) XXX_Size() int

func (*Boundingbox) XXX_Unmarshal

func (m *Boundingbox) XXX_Unmarshal(b []byte) error

type CloudStorageConfig

type CloudStorageConfig struct {
	// The azure blob storage config
	BlobStorageConfig *BlobStorageConfig `protobuf:"bytes,1,opt,name=blobStorageConfig,proto3" json:"blobStorageConfig,omitempty"`
	// The s3 config
	S3Config *S3Config `protobuf:"bytes,2,opt,name=s3Config,proto3" json:"s3Config,omitempty"`
	// The google storage config
	GoogleStorageConfig  *GoogleStorageConfig `protobuf:"bytes,3,opt,name=GoogleStorageConfig,proto3" json:"GoogleStorageConfig,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Represents the cloud storage config - supported storage: Azure blob storage, AWS S3, Google storage

func (*CloudStorageConfig) Descriptor

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

func (*CloudStorageConfig) GetBlobStorageConfig

func (m *CloudStorageConfig) GetBlobStorageConfig() *BlobStorageConfig

func (*CloudStorageConfig) GetGoogleStorageConfig

func (m *CloudStorageConfig) GetGoogleStorageConfig() *GoogleStorageConfig

func (*CloudStorageConfig) GetS3Config

func (m *CloudStorageConfig) GetS3Config() *S3Config

func (*CloudStorageConfig) ProtoMessage

func (*CloudStorageConfig) ProtoMessage()

func (*CloudStorageConfig) Reset

func (m *CloudStorageConfig) Reset()

func (*CloudStorageConfig) String

func (m *CloudStorageConfig) String() string

func (*CloudStorageConfig) XXX_DiscardUnknown

func (m *CloudStorageConfig) XXX_DiscardUnknown()

func (*CloudStorageConfig) XXX_Marshal

func (m *CloudStorageConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CloudStorageConfig) XXX_Merge

func (dst *CloudStorageConfig) XXX_Merge(src proto.Message)

func (*CloudStorageConfig) XXX_Size

func (m *CloudStorageConfig) XXX_Size() int

func (*CloudStorageConfig) XXX_Unmarshal

func (m *CloudStorageConfig) XXX_Unmarshal(b []byte) error

type CompletionMessage

type CompletionMessage struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

CompletionMessage represents an indication to the data sink service that the scanning job is done service via GRPC

func (*CompletionMessage) Descriptor

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

func (*CompletionMessage) ProtoMessage

func (*CompletionMessage) ProtoMessage()

func (*CompletionMessage) Reset

func (m *CompletionMessage) Reset()

func (*CompletionMessage) String

func (m *CompletionMessage) String() string

func (*CompletionMessage) XXX_DiscardUnknown

func (m *CompletionMessage) XXX_DiscardUnknown()

func (*CompletionMessage) XXX_Marshal

func (m *CompletionMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CompletionMessage) XXX_Merge

func (dst *CompletionMessage) XXX_Merge(src proto.Message)

func (*CompletionMessage) XXX_Size

func (m *CompletionMessage) XXX_Size() int

func (*CompletionMessage) XXX_Unmarshal

func (m *CompletionMessage) XXX_Unmarshal(b []byte) error

type DBConfig

type DBConfig struct {
	// The database connection string
	ConnectionString string `protobuf:"bytes,1,opt,name=connectionString,proto3" json:"connectionString,omitempty"`
	// The table name
	TableName string `protobuf:"bytes,2,opt,name=tableName,proto3" json:"tableName,omitempty"`
	// The database type
	Type                 string   `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DBConfig represents the Database configuration - the DB connection string and the table name Supported database: mssql, mysql, sqlite3, postgreSQL, oracle

func (*DBConfig) Descriptor

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

func (*DBConfig) GetConnectionString

func (m *DBConfig) GetConnectionString() string

func (*DBConfig) GetTableName

func (m *DBConfig) GetTableName() string

func (*DBConfig) GetType

func (m *DBConfig) GetType() string

func (*DBConfig) ProtoMessage

func (*DBConfig) ProtoMessage()

func (*DBConfig) Reset

func (m *DBConfig) Reset()

func (*DBConfig) String

func (m *DBConfig) String() string

func (*DBConfig) XXX_DiscardUnknown

func (m *DBConfig) XXX_DiscardUnknown()

func (*DBConfig) XXX_Marshal

func (m *DBConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DBConfig) XXX_Merge

func (dst *DBConfig) XXX_Merge(src proto.Message)

func (*DBConfig) XXX_Size

func (m *DBConfig) XXX_Size() int

func (*DBConfig) XXX_Unmarshal

func (m *DBConfig) XXX_Unmarshal(b []byte) error

type Datasink

type Datasink struct {
	// The database configuration
	DbConfig *DBConfig `protobuf:"bytes,1,opt,name=dbConfig,proto3" json:"dbConfig,omitempty"`
	// The cloud storage configuration
	CloudStorageConfig *CloudStorageConfig `protobuf:"bytes,2,opt,name=cloudStorageConfig,proto3" json:"cloudStorageConfig,omitempty"`
	// The stream configuration
	StreamConfig         *StreamConfig `protobuf:"bytes,3,opt,name=streamConfig,proto3" json:"streamConfig,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Datasink represents the configuration for storing the scanner output to the selected destination such as cloud storage, database, etc.

func (*Datasink) Descriptor

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

func (*Datasink) GetCloudStorageConfig

func (m *Datasink) GetCloudStorageConfig() *CloudStorageConfig

func (*Datasink) GetDbConfig

func (m *Datasink) GetDbConfig() *DBConfig

func (*Datasink) GetStreamConfig

func (m *Datasink) GetStreamConfig() *StreamConfig

func (*Datasink) ProtoMessage

func (*Datasink) ProtoMessage()

func (*Datasink) Reset

func (m *Datasink) Reset()

func (*Datasink) String

func (m *Datasink) String() string

func (*Datasink) XXX_DiscardUnknown

func (m *Datasink) XXX_DiscardUnknown()

func (*Datasink) XXX_Marshal

func (m *Datasink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Datasink) XXX_Merge

func (dst *Datasink) XXX_Merge(src proto.Message)

func (*Datasink) XXX_Size

func (m *Datasink) XXX_Size() int

func (*Datasink) XXX_Unmarshal

func (m *Datasink) XXX_Unmarshal(b []byte) error

type DatasinkRequest

type DatasinkRequest struct {
	// Array of the analyzed results
	AnalyzeResults []*AnalyzeResult `protobuf:"bytes,1,rep,name=analyzeResults,proto3" json:"analyzeResults,omitempty"`
	// The anonymized text
	AnonymizeResult *AnonymizeResponse `protobuf:"bytes,2,opt,name=anonymizeResult,proto3" json:"anonymizeResult,omitempty"`
	// The path where the anonymized text is located
	Path                 string   `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DatasinkRequest represents the request to the data-sink service via GRPC

func (*DatasinkRequest) Descriptor

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

func (*DatasinkRequest) GetAnalyzeResults

func (m *DatasinkRequest) GetAnalyzeResults() []*AnalyzeResult

func (*DatasinkRequest) GetAnonymizeResult

func (m *DatasinkRequest) GetAnonymizeResult() *AnonymizeResponse

func (*DatasinkRequest) GetPath

func (m *DatasinkRequest) GetPath() string

func (*DatasinkRequest) ProtoMessage

func (*DatasinkRequest) ProtoMessage()

func (*DatasinkRequest) Reset

func (m *DatasinkRequest) Reset()

func (*DatasinkRequest) String

func (m *DatasinkRequest) String() string

func (*DatasinkRequest) XXX_DiscardUnknown

func (m *DatasinkRequest) XXX_DiscardUnknown()

func (*DatasinkRequest) XXX_Marshal

func (m *DatasinkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DatasinkRequest) XXX_Merge

func (dst *DatasinkRequest) XXX_Merge(src proto.Message)

func (*DatasinkRequest) XXX_Size

func (m *DatasinkRequest) XXX_Size() int

func (*DatasinkRequest) XXX_Unmarshal

func (m *DatasinkRequest) XXX_Unmarshal(b []byte) error

type DatasinkResponse

type DatasinkResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DatasinkResponse represents the response from the data-sink service via GRPC

func (*DatasinkResponse) Descriptor

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

func (*DatasinkResponse) ProtoMessage

func (*DatasinkResponse) ProtoMessage()

func (*DatasinkResponse) Reset

func (m *DatasinkResponse) Reset()

func (*DatasinkResponse) String

func (m *DatasinkResponse) String() string

func (*DatasinkResponse) XXX_DiscardUnknown

func (m *DatasinkResponse) XXX_DiscardUnknown()

func (*DatasinkResponse) XXX_Marshal

func (m *DatasinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DatasinkResponse) XXX_Merge

func (dst *DatasinkResponse) XXX_Merge(src proto.Message)

func (*DatasinkResponse) XXX_Size

func (m *DatasinkResponse) XXX_Size() int

func (*DatasinkResponse) XXX_Unmarshal

func (m *DatasinkResponse) XXX_Unmarshal(b []byte) error

type DatasinkServiceClient

type DatasinkServiceClient interface {
	// Apply method will execute on the given request and return whether the result where written successfully to the destination
	Apply(ctx context.Context, in *DatasinkRequest, opts ...grpc.CallOption) (*DatasinkResponse, error)
	// Init the data sink service with the provided data sink template
	Init(ctx context.Context, in *DatasinkTemplate, opts ...grpc.CallOption) (*DatasinkResponse, error)
	// Completion method for indicating that the scanning job is done
	Completion(ctx context.Context, in *CompletionMessage, opts ...grpc.CallOption) (*DatasinkResponse, error)
}

DatasinkServiceClient is the client API for DatasinkService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDatasinkServiceClient

func NewDatasinkServiceClient(cc *grpc.ClientConn) DatasinkServiceClient

type DatasinkServiceServer

type DatasinkServiceServer interface {
	// Apply method will execute on the given request and return whether the result where written successfully to the destination
	Apply(context.Context, *DatasinkRequest) (*DatasinkResponse, error)
	// Init the data sink service with the provided data sink template
	Init(context.Context, *DatasinkTemplate) (*DatasinkResponse, error)
	// Completion method for indicating that the scanning job is done
	Completion(context.Context, *CompletionMessage) (*DatasinkResponse, error)
}

DatasinkServiceServer is the server API for DatasinkService service.

type DatasinkTemplate

type DatasinkTemplate struct {
	// Template description
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// Datasink represents the configuration for storing the scanner output.
	// Datasink can output both of the analyze and anonymize results and to multiple outputs
	// Supported outputs are CloudStorage: AWS S3, Azure Blob storage, Google Storage
	// Streams: Azure EventHub, Kafka
	// Database: MySql, SqlLite3, MSSQL, PostgreSQL
	AnalyzeDatasink      []*Datasink `protobuf:"bytes,2,rep,name=analyzeDatasink,proto3" json:"analyzeDatasink,omitempty"`
	AnonymizeDatasink    []*Datasink `protobuf:"bytes,3,rep,name=anonymizeDatasink,proto3" json:"anonymizeDatasink,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

DatasinkTemplate represents the scanner service outputs definition.

func (*DatasinkTemplate) Descriptor

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

func (*DatasinkTemplate) GetAnalyzeDatasink

func (m *DatasinkTemplate) GetAnalyzeDatasink() []*Datasink

func (*DatasinkTemplate) GetAnonymizeDatasink

func (m *DatasinkTemplate) GetAnonymizeDatasink() []*Datasink

func (*DatasinkTemplate) GetDescription

func (m *DatasinkTemplate) GetDescription() string

func (*DatasinkTemplate) ProtoMessage

func (*DatasinkTemplate) ProtoMessage()

func (*DatasinkTemplate) Reset

func (m *DatasinkTemplate) Reset()

func (*DatasinkTemplate) String

func (m *DatasinkTemplate) String() string

func (*DatasinkTemplate) XXX_DiscardUnknown

func (m *DatasinkTemplate) XXX_DiscardUnknown()

func (*DatasinkTemplate) XXX_Marshal

func (m *DatasinkTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DatasinkTemplate) XXX_Merge

func (dst *DatasinkTemplate) XXX_Merge(src proto.Message)

func (*DatasinkTemplate) XXX_Size

func (m *DatasinkTemplate) XXX_Size() int

func (*DatasinkTemplate) XXX_Unmarshal

func (m *DatasinkTemplate) XXX_Unmarshal(b []byte) error

type DatasinkTypesEnum

type DatasinkTypesEnum int32

The data sink supported destenation types

const (
	DatasinkTypesEnum_mysql         DatasinkTypesEnum = 0
	DatasinkTypesEnum_mssql         DatasinkTypesEnum = 1
	DatasinkTypesEnum_postgres      DatasinkTypesEnum = 2
	DatasinkTypesEnum_sqlite3       DatasinkTypesEnum = 3
	DatasinkTypesEnum_oracle        DatasinkTypesEnum = 4
	DatasinkTypesEnum_kafka         DatasinkTypesEnum = 5
	DatasinkTypesEnum_eventhub      DatasinkTypesEnum = 6
	DatasinkTypesEnum_s3            DatasinkTypesEnum = 7
	DatasinkTypesEnum_azureblob     DatasinkTypesEnum = 8
	DatasinkTypesEnum_googlestorage DatasinkTypesEnum = 9
)

func (DatasinkTypesEnum) EnumDescriptor

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

func (DatasinkTypesEnum) String

func (x DatasinkTypesEnum) String() string

type DetectionTypeEnum

type DetectionTypeEnum int32

Anonymize image detection type

const (
	DetectionTypeEnum_OCR        DetectionTypeEnum = 0
	DetectionTypeEnum_AZURE_OCR  DetectionTypeEnum = 1
	DetectionTypeEnum_AZURE_FACE DetectionTypeEnum = 2
)

func (DetectionTypeEnum) EnumDescriptor

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

func (DetectionTypeEnum) String

func (x DetectionTypeEnum) String() string

type EHConfig

type EHConfig struct {
	// EventHub namespace
	EhNamespace string `protobuf:"bytes,1,opt,name=ehNamespace,proto3" json:"ehNamespace,omitempty"`
	// EventHub name
	EhName string `protobuf:"bytes,2,opt,name=ehName,proto3" json:"ehName,omitempty"`
	// Eventhub connection string
	EhConnectionString string `protobuf:"bytes,3,opt,name=ehConnectionString,proto3" json:"ehConnectionString,omitempty"`
	// Eventhub key name (a key name and a key value can provided instead of the full connection string)
	EhKeyName string `protobuf:"bytes,4,opt,name=ehKeyName,proto3" json:"ehKeyName,omitempty"`
	// Eventhub key value
	EhKeyValue string `protobuf:"bytes,5,opt,name=ehKeyValue,proto3" json:"ehKeyValue,omitempty"`
	// Storage account name value
	StorageAccountNameValue string `protobuf:"bytes,6,opt,name=storageAccountNameValue,proto3" json:"storageAccountNameValue,omitempty"`
	// Storage account key value
	StorageAccountKeyValue string `protobuf:"bytes,7,opt,name=storageAccountKeyValue,proto3" json:"storageAccountKeyValue,omitempty"`
	// Storage container  value
	ContainerValue       string   `protobuf:"bytes,8,opt,name=containerValue,proto3" json:"containerValue,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Azure EventHub configuration

func (*EHConfig) Descriptor

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

func (*EHConfig) GetContainerValue

func (m *EHConfig) GetContainerValue() string

func (*EHConfig) GetEhConnectionString

func (m *EHConfig) GetEhConnectionString() string

func (*EHConfig) GetEhKeyName

func (m *EHConfig) GetEhKeyName() string

func (*EHConfig) GetEhKeyValue

func (m *EHConfig) GetEhKeyValue() string

func (*EHConfig) GetEhName

func (m *EHConfig) GetEhName() string

func (*EHConfig) GetEhNamespace

func (m *EHConfig) GetEhNamespace() string

func (*EHConfig) GetStorageAccountKeyValue

func (m *EHConfig) GetStorageAccountKeyValue() string

func (*EHConfig) GetStorageAccountNameValue

func (m *EHConfig) GetStorageAccountNameValue() string

func (*EHConfig) ProtoMessage

func (*EHConfig) ProtoMessage()

func (*EHConfig) Reset

func (m *EHConfig) Reset()

func (*EHConfig) String

func (m *EHConfig) String() string

func (*EHConfig) XXX_DiscardUnknown

func (m *EHConfig) XXX_DiscardUnknown()

func (*EHConfig) XXX_Marshal

func (m *EHConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EHConfig) XXX_Merge

func (dst *EHConfig) XXX_Merge(src proto.Message)

func (*EHConfig) XXX_Size

func (m *EHConfig) XXX_Size() int

func (*EHConfig) XXX_Unmarshal

func (m *EHConfig) XXX_Unmarshal(b []byte) error

type FPEValue

type FPEValue struct {
	// base64 encoded 128, 192, 256 size key
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// base64 encoded tweak. Size must be below 8
	Tweak string `protobuf:"bytes,2,opt,name=tweak,proto3" json:"tweak,omitempty"`
	// true to decrypt value
	Decrypt              bool     `protobuf:"varint,3,opt,name=decrypt,proto3" json:"decrypt,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Encrypt the given value with FFI alogrithm to presereve detected value size.

func (*FPEValue) Descriptor

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

func (*FPEValue) GetDecrypt

func (m *FPEValue) GetDecrypt() bool

func (*FPEValue) GetKey

func (m *FPEValue) GetKey() string

func (*FPEValue) GetTweak

func (m *FPEValue) GetTweak() string

func (*FPEValue) ProtoMessage

func (*FPEValue) ProtoMessage()

func (*FPEValue) Reset

func (m *FPEValue) Reset()

func (*FPEValue) String

func (m *FPEValue) String() string

func (*FPEValue) XXX_DiscardUnknown

func (m *FPEValue) XXX_DiscardUnknown()

func (*FPEValue) XXX_Marshal

func (m *FPEValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FPEValue) XXX_Merge

func (dst *FPEValue) XXX_Merge(src proto.Message)

func (*FPEValue) XXX_Size

func (m *FPEValue) XXX_Size() int

func (*FPEValue) XXX_Unmarshal

func (m *FPEValue) XXX_Unmarshal(b []byte) error

type FieldTypeGraphic

type FieldTypeGraphic struct {
	// The array of field types
	Fields []*FieldTypes `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
	// The graphics for the array of fields
	Graphic              *Graphic `protobuf:"bytes,2,opt,name=graphic,proto3" json:"graphic,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

FieldTypeGraphic represents the graphics for an array of fields types

func (*FieldTypeGraphic) Descriptor

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

func (*FieldTypeGraphic) GetFields

func (m *FieldTypeGraphic) GetFields() []*FieldTypes

func (*FieldTypeGraphic) GetGraphic

func (m *FieldTypeGraphic) GetGraphic() *Graphic

func (*FieldTypeGraphic) ProtoMessage

func (*FieldTypeGraphic) ProtoMessage()

func (*FieldTypeGraphic) Reset

func (m *FieldTypeGraphic) Reset()

func (*FieldTypeGraphic) String

func (m *FieldTypeGraphic) String() string

func (*FieldTypeGraphic) XXX_DiscardUnknown

func (m *FieldTypeGraphic) XXX_DiscardUnknown()

func (*FieldTypeGraphic) XXX_Marshal

func (m *FieldTypeGraphic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FieldTypeGraphic) XXX_Merge

func (dst *FieldTypeGraphic) XXX_Merge(src proto.Message)

func (*FieldTypeGraphic) XXX_Size

func (m *FieldTypeGraphic) XXX_Size() int

func (*FieldTypeGraphic) XXX_Unmarshal

func (m *FieldTypeGraphic) XXX_Unmarshal(b []byte) error

type FieldTypeTransformation

type FieldTypeTransformation struct {
	// The array of field types
	Fields []*FieldTypes `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
	// The transformation for the array of fields
	Transformation       *Transformation `protobuf:"bytes,2,opt,name=transformation,proto3" json:"transformation,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

FieldTypeTransformation represents the transformation for an array of fields types

func (*FieldTypeTransformation) Descriptor

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

func (*FieldTypeTransformation) GetFields

func (m *FieldTypeTransformation) GetFields() []*FieldTypes

func (*FieldTypeTransformation) GetTransformation

func (m *FieldTypeTransformation) GetTransformation() *Transformation

func (*FieldTypeTransformation) ProtoMessage

func (*FieldTypeTransformation) ProtoMessage()

func (*FieldTypeTransformation) Reset

func (m *FieldTypeTransformation) Reset()

func (*FieldTypeTransformation) String

func (m *FieldTypeTransformation) String() string

func (*FieldTypeTransformation) XXX_DiscardUnknown

func (m *FieldTypeTransformation) XXX_DiscardUnknown()

func (*FieldTypeTransformation) XXX_Marshal

func (m *FieldTypeTransformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FieldTypeTransformation) XXX_Merge

func (dst *FieldTypeTransformation) XXX_Merge(src proto.Message)

func (*FieldTypeTransformation) XXX_Size

func (m *FieldTypeTransformation) XXX_Size() int

func (*FieldTypeTransformation) XXX_Unmarshal

func (m *FieldTypeTransformation) XXX_Unmarshal(b []byte) error

type FieldTypes

type FieldTypes struct {
	// Field type name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The minScore will filter results which has lower certainty than the provided value.
	MinScore             string   `protobuf:"bytes,2,opt,name=minScore,proto3" json:"minScore,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

FieldType strucy

func (*FieldTypes) Descriptor

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

func (*FieldTypes) GetMinScore

func (m *FieldTypes) GetMinScore() string

func (*FieldTypes) GetName

func (m *FieldTypes) GetName() string

func (*FieldTypes) ProtoMessage

func (*FieldTypes) ProtoMessage()

func (*FieldTypes) Reset

func (m *FieldTypes) Reset()

func (*FieldTypes) String

func (m *FieldTypes) String() string

func (*FieldTypes) XXX_DiscardUnknown

func (m *FieldTypes) XXX_DiscardUnknown()

func (*FieldTypes) XXX_Marshal

func (m *FieldTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FieldTypes) XXX_Merge

func (dst *FieldTypes) XXX_Merge(src proto.Message)

func (*FieldTypes) XXX_Size

func (m *FieldTypes) XXX_Size() int

func (*FieldTypes) XXX_Unmarshal

func (m *FieldTypes) XXX_Unmarshal(b []byte) error

type FieldTypesEnum

type FieldTypesEnum int32

FieldTypes for Analyzing and Anonymizing

const (
	FieldTypesEnum_CREDIT_CARD       FieldTypesEnum = 0
	FieldTypesEnum_CRYPTO            FieldTypesEnum = 1
	FieldTypesEnum_DATE_TIME         FieldTypesEnum = 2
	FieldTypesEnum_DOMAIN_NAME       FieldTypesEnum = 3
	FieldTypesEnum_EMAIL_ADDRESS     FieldTypesEnum = 4
	FieldTypesEnum_IBAN_CODE         FieldTypesEnum = 5
	FieldTypesEnum_IP_ADDRESS        FieldTypesEnum = 6
	FieldTypesEnum_NRP               FieldTypesEnum = 7
	FieldTypesEnum_LOCATION          FieldTypesEnum = 8
	FieldTypesEnum_PERSON            FieldTypesEnum = 9
	FieldTypesEnum_PHONE_NUMBER      FieldTypesEnum = 10
	FieldTypesEnum_US_BANK_NUMBER    FieldTypesEnum = 11
	FieldTypesEnum_US_DRIVER_LICENSE FieldTypesEnum = 12
	FieldTypesEnum_US_ITIN           FieldTypesEnum = 13
	FieldTypesEnum_US_PASSPORT       FieldTypesEnum = 14
	FieldTypesEnum_US_SSN            FieldTypesEnum = 15
	FieldTypesEnum_UK_NHS            FieldTypesEnum = 16
)

func (FieldTypesEnum) EnumDescriptor

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

func (FieldTypesEnum) String

func (x FieldTypesEnum) String() string

type FillColorValue

type FillColorValue struct {
	// 0 - 255
	Red float64 `protobuf:"fixed64,1,opt,name=red,proto3" json:"red,omitempty"`
	// 0 - 255
	Green float64 `protobuf:"fixed64,2,opt,name=green,proto3" json:"green,omitempty"`
	// 0 - 255
	Blue                 float64  `protobuf:"fixed64,3,opt,name=blue,proto3" json:"blue,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Fill the bbox with a color

func (*FillColorValue) Descriptor

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

func (*FillColorValue) GetBlue

func (m *FillColorValue) GetBlue() float64

func (*FillColorValue) GetGreen

func (m *FillColorValue) GetGreen() float64

func (*FillColorValue) GetRed

func (m *FillColorValue) GetRed() float64

func (*FillColorValue) ProtoMessage

func (*FillColorValue) ProtoMessage()

func (*FillColorValue) Reset

func (m *FillColorValue) Reset()

func (*FillColorValue) String

func (m *FillColorValue) String() string

func (*FillColorValue) XXX_DiscardUnknown

func (m *FillColorValue) XXX_DiscardUnknown()

func (*FillColorValue) XXX_Marshal

func (m *FillColorValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FillColorValue) XXX_Merge

func (dst *FillColorValue) XXX_Merge(src proto.Message)

func (*FillColorValue) XXX_Size

func (m *FillColorValue) XXX_Size() int

func (*FillColorValue) XXX_Unmarshal

func (m *FillColorValue) XXX_Unmarshal(b []byte) error

type GoogleStorageConfig

type GoogleStorageConfig struct {
	// The json
	Json string `protobuf:"bytes,1,opt,name=json,proto3" json:"json,omitempty"`
	// The project id
	ProjectId string `protobuf:"bytes,2,opt,name=projectId,proto3" json:"projectId,omitempty"`
	// The scopes authentication [there are different scopes, which you can find here https://cloud.google.com/storage/docs/authentication]
	Scopes string `protobuf:"bytes,3,opt,name=scopes,proto3" json:"scopes,omitempty"`
	// The bucket name
	BucketName           string   `protobuf:"bytes,4,opt,name=bucketName,proto3" json:"bucketName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Represents the Google Storage configuration

func (*GoogleStorageConfig) Descriptor

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

func (*GoogleStorageConfig) GetBucketName

func (m *GoogleStorageConfig) GetBucketName() string

func (*GoogleStorageConfig) GetJson

func (m *GoogleStorageConfig) GetJson() string

func (*GoogleStorageConfig) GetProjectId

func (m *GoogleStorageConfig) GetProjectId() string

func (*GoogleStorageConfig) GetScopes

func (m *GoogleStorageConfig) GetScopes() string

func (*GoogleStorageConfig) ProtoMessage

func (*GoogleStorageConfig) ProtoMessage()

func (*GoogleStorageConfig) Reset

func (m *GoogleStorageConfig) Reset()

func (*GoogleStorageConfig) String

func (m *GoogleStorageConfig) String() string

func (*GoogleStorageConfig) XXX_DiscardUnknown

func (m *GoogleStorageConfig) XXX_DiscardUnknown()

func (*GoogleStorageConfig) XXX_Marshal

func (m *GoogleStorageConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GoogleStorageConfig) XXX_Merge

func (dst *GoogleStorageConfig) XXX_Merge(src proto.Message)

func (*GoogleStorageConfig) XXX_Size

func (m *GoogleStorageConfig) XXX_Size() int

func (*GoogleStorageConfig) XXX_Unmarshal

func (m *GoogleStorageConfig) XXX_Unmarshal(b []byte) error

type Graphic

type Graphic struct {
	// Fill the bbox with a color
	FillColorValue       *FillColorValue `protobuf:"bytes,1,opt,name=fillColorValue,proto3" json:"fillColorValue,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

Graphic represents how the sensitive content will be transforms

func (*Graphic) Descriptor

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

func (*Graphic) GetFillColorValue

func (m *Graphic) GetFillColorValue() *FillColorValue

func (*Graphic) ProtoMessage

func (*Graphic) ProtoMessage()

func (*Graphic) Reset

func (m *Graphic) Reset()

func (*Graphic) String

func (m *Graphic) String() string

func (*Graphic) XXX_DiscardUnknown

func (m *Graphic) XXX_DiscardUnknown()

func (*Graphic) XXX_Marshal

func (m *Graphic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Graphic) XXX_Merge

func (dst *Graphic) XXX_Merge(src proto.Message)

func (*Graphic) XXX_Size

func (m *Graphic) XXX_Size() int

func (*Graphic) XXX_Unmarshal

func (m *Graphic) XXX_Unmarshal(b []byte) error

type HashValue

type HashValue struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Uses cryptographich hash on the given value with SHA-256 hash.

func (*HashValue) Descriptor

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

func (*HashValue) ProtoMessage

func (*HashValue) ProtoMessage()

func (*HashValue) Reset

func (m *HashValue) Reset()

func (*HashValue) String

func (m *HashValue) String() string

func (*HashValue) XXX_DiscardUnknown

func (m *HashValue) XXX_DiscardUnknown()

func (*HashValue) XXX_Marshal

func (m *HashValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HashValue) XXX_Merge

func (dst *HashValue) XXX_Merge(src proto.Message)

func (*HashValue) XXX_Size

func (m *HashValue) XXX_Size() int

func (*HashValue) XXX_Unmarshal

func (m *HashValue) XXX_Unmarshal(b []byte) error

type Image

type Image struct {
	// The image data in bytes
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// The image type JPEG/PNG/TIFF
	ImageType string `protobuf:"bytes,2,opt,name=imageType,proto3" json:"imageType,omitempty"`
	// Array of Boundingbox
	Boundingboxes []*Boundingbox `protobuf:"bytes,3,rep,name=Boundingboxes,proto3" json:"Boundingboxes,omitempty"`
	// Image Text
	Text                 string   `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Define an image with extracted bounded boxes of text/image

func (*Image) Descriptor

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

func (*Image) GetBoundingboxes

func (m *Image) GetBoundingboxes() []*Boundingbox

func (*Image) GetData

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

func (*Image) GetImageType

func (m *Image) GetImageType() string

func (*Image) GetText

func (m *Image) GetText() string

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) Reset

func (m *Image) Reset()

func (*Image) String

func (m *Image) String() string

func (*Image) XXX_DiscardUnknown

func (m *Image) XXX_DiscardUnknown()

func (*Image) XXX_Marshal

func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Image) XXX_Merge

func (dst *Image) XXX_Merge(src proto.Message)

func (*Image) XXX_Size

func (m *Image) XXX_Size() int

func (*Image) XXX_Unmarshal

func (m *Image) XXX_Unmarshal(b []byte) error

type JsonSchemaTemplate

type JsonSchemaTemplate struct {
	// Template description
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// Template Creation date
	CreateTime string `protobuf:"bytes,2,opt,name=createTime,proto3" json:"createTime,omitempty"`
	// Template modification date
	ModifiedTime string `protobuf:"bytes,3,opt,name=modifiedTime,proto3" json:"modifiedTime,omitempty"`
	// Json schema
	JsonSchema           string   `protobuf:"bytes,4,opt,name=jsonSchema,proto3" json:"jsonSchema,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

JsonSchemaTemplate represents the json template definition of the Anonymize service for anonymizying the sensitive data

func (*JsonSchemaTemplate) Descriptor

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

func (*JsonSchemaTemplate) GetCreateTime

func (m *JsonSchemaTemplate) GetCreateTime() string

func (*JsonSchemaTemplate) GetDescription

func (m *JsonSchemaTemplate) GetDescription() string

func (*JsonSchemaTemplate) GetJsonSchema

func (m *JsonSchemaTemplate) GetJsonSchema() string

func (*JsonSchemaTemplate) GetModifiedTime

func (m *JsonSchemaTemplate) GetModifiedTime() string

func (*JsonSchemaTemplate) ProtoMessage

func (*JsonSchemaTemplate) ProtoMessage()

func (*JsonSchemaTemplate) Reset

func (m *JsonSchemaTemplate) Reset()

func (*JsonSchemaTemplate) String

func (m *JsonSchemaTemplate) String() string

func (*JsonSchemaTemplate) XXX_DiscardUnknown

func (m *JsonSchemaTemplate) XXX_DiscardUnknown()

func (*JsonSchemaTemplate) XXX_Marshal

func (m *JsonSchemaTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*JsonSchemaTemplate) XXX_Merge

func (dst *JsonSchemaTemplate) XXX_Merge(src proto.Message)

func (*JsonSchemaTemplate) XXX_Size

func (m *JsonSchemaTemplate) XXX_Size() int

func (*JsonSchemaTemplate) XXX_Unmarshal

func (m *JsonSchemaTemplate) XXX_Unmarshal(b []byte) error

type KafkaConfig

type KafkaConfig struct {
	// Kafka address
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Kafka topic
	Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
	// SASL authentication user name
	SaslUsername string `protobuf:"bytes,3,opt,name=saslUsername,proto3" json:"saslUsername,omitempty"`
	// SASL authentication password
	SaslPassword         string   `protobuf:"bytes,4,opt,name=saslPassword,proto3" json:"saslPassword,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The Kafka configuration

func (*KafkaConfig) Descriptor

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

func (*KafkaConfig) GetAddress

func (m *KafkaConfig) GetAddress() string

func (*KafkaConfig) GetSaslPassword

func (m *KafkaConfig) GetSaslPassword() string

func (*KafkaConfig) GetSaslUsername

func (m *KafkaConfig) GetSaslUsername() string

func (*KafkaConfig) GetTopic

func (m *KafkaConfig) GetTopic() string

func (*KafkaConfig) ProtoMessage

func (*KafkaConfig) ProtoMessage()

func (*KafkaConfig) Reset

func (m *KafkaConfig) Reset()

func (*KafkaConfig) String

func (m *KafkaConfig) String() string

func (*KafkaConfig) XXX_DiscardUnknown

func (m *KafkaConfig) XXX_DiscardUnknown()

func (*KafkaConfig) XXX_Marshal

func (m *KafkaConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KafkaConfig) XXX_Merge

func (dst *KafkaConfig) XXX_Merge(src proto.Message)

func (*KafkaConfig) XXX_Size

func (m *KafkaConfig) XXX_Size() int

func (*KafkaConfig) XXX_Unmarshal

func (m *KafkaConfig) XXX_Unmarshal(b []byte) error

type Location

type Location struct {
	// The location start
	Start int32 `protobuf:"zigzag32,1,opt,name=start,proto3" json:"start,omitempty"`
	// The location end
	End int32 `protobuf:"zigzag32,2,opt,name=end,proto3" json:"end,omitempty"`
	// The location length
	Length               int32    `protobuf:"zigzag32,3,opt,name=length,proto3" json:"length,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The location in the text of the finding

func (*Location) Descriptor

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

func (*Location) GetEnd

func (m *Location) GetEnd() int32

func (*Location) GetLength

func (m *Location) GetLength() int32

func (*Location) GetStart

func (m *Location) GetStart() int32

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) Reset

func (m *Location) Reset()

func (*Location) String

func (m *Location) String() string

func (*Location) XXX_DiscardUnknown

func (m *Location) XXX_DiscardUnknown()

func (*Location) XXX_Marshal

func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Location) XXX_Merge

func (dst *Location) XXX_Merge(src proto.Message)

func (*Location) XXX_Size

func (m *Location) XXX_Size() int

func (*Location) XXX_Unmarshal

func (m *Location) XXX_Unmarshal(b []byte) error

type MaskValue

type MaskValue struct {
	// the masking char
	MaskingCharacter string `protobuf:"bytes,1,opt,name=maskingCharacter,proto3" json:"maskingCharacter,omitempty"`
	// number of chars to mask
	CharsToMask int32 `protobuf:"varint,2,opt,name=charsToMask,proto3" json:"charsToMask,omitempty"`
	// Should start masking from end
	FromEnd              bool     `protobuf:"varint,3,opt,name=fromEnd,proto3" json:"fromEnd,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Mask the given value with the selected characters. For example: my credit card number is 4961-2765-5327-5913 maskingCharacter: '*', chars to mask: 9, fromEnd: true Will output: my credit card number is 4961-2765-*********

func (*MaskValue) Descriptor

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

func (*MaskValue) GetCharsToMask

func (m *MaskValue) GetCharsToMask() int32

func (*MaskValue) GetFromEnd

func (m *MaskValue) GetFromEnd() bool

func (*MaskValue) GetMaskingCharacter

func (m *MaskValue) GetMaskingCharacter() string

func (*MaskValue) ProtoMessage

func (*MaskValue) ProtoMessage()

func (*MaskValue) Reset

func (m *MaskValue) Reset()

func (*MaskValue) String

func (m *MaskValue) String() string

func (*MaskValue) XXX_DiscardUnknown

func (m *MaskValue) XXX_DiscardUnknown()

func (*MaskValue) XXX_Marshal

func (m *MaskValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MaskValue) XXX_Merge

func (dst *MaskValue) XXX_Merge(src proto.Message)

func (*MaskValue) XXX_Size

func (m *MaskValue) XXX_Size() int

func (*MaskValue) XXX_Unmarshal

func (m *MaskValue) XXX_Unmarshal(b []byte) error

type OcrRequest

type OcrRequest struct {
	// The image to ocr
	Image                *Image   `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

OcrRequest represents the request to the anonymize service via GRPC

func (*OcrRequest) Descriptor

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

func (*OcrRequest) GetImage

func (m *OcrRequest) GetImage() *Image

func (*OcrRequest) ProtoMessage

func (*OcrRequest) ProtoMessage()

func (*OcrRequest) Reset

func (m *OcrRequest) Reset()

func (*OcrRequest) String

func (m *OcrRequest) String() string

func (*OcrRequest) XXX_DiscardUnknown

func (m *OcrRequest) XXX_DiscardUnknown()

func (*OcrRequest) XXX_Marshal

func (m *OcrRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OcrRequest) XXX_Merge

func (dst *OcrRequest) XXX_Merge(src proto.Message)

func (*OcrRequest) XXX_Size

func (m *OcrRequest) XXX_Size() int

func (*OcrRequest) XXX_Unmarshal

func (m *OcrRequest) XXX_Unmarshal(b []byte) error

type OcrResponse

type OcrResponse struct {
	// The image detected bboxes
	Image                *Image   `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

OcrResponse represents the anonymize service response

func (*OcrResponse) Descriptor

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

func (*OcrResponse) GetImage

func (m *OcrResponse) GetImage() *Image

func (*OcrResponse) ProtoMessage

func (*OcrResponse) ProtoMessage()

func (*OcrResponse) Reset

func (m *OcrResponse) Reset()

func (*OcrResponse) String

func (m *OcrResponse) String() string

func (*OcrResponse) XXX_DiscardUnknown

func (m *OcrResponse) XXX_DiscardUnknown()

func (*OcrResponse) XXX_Marshal

func (m *OcrResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OcrResponse) XXX_Merge

func (dst *OcrResponse) XXX_Merge(src proto.Message)

func (*OcrResponse) XXX_Size

func (m *OcrResponse) XXX_Size() int

func (*OcrResponse) XXX_Unmarshal

func (m *OcrResponse) XXX_Unmarshal(b []byte) error

type OcrServiceClient

type OcrServiceClient interface {
	// Apply method will execute on the given request and return the anonymize response with the sensitive text anonymized
	Apply(ctx context.Context, in *OcrRequest, opts ...grpc.CallOption) (*OcrResponse, error)
}

OcrServiceClient is the client API for OcrService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewOcrServiceClient

func NewOcrServiceClient(cc *grpc.ClientConn) OcrServiceClient

type OcrServiceServer

type OcrServiceServer interface {
	// Apply method will execute on the given request and return the anonymize response with the sensitive text anonymized
	Apply(context.Context, *OcrRequest) (*OcrResponse, error)
}

OcrServiceServer is the server API for OcrService service.

type Pattern

type Pattern struct {
	// The name of the pattern, unique
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The Regex used by this recognizer
	Regex string `protobuf:"bytes,2,opt,name=regex,proto3" json:"regex,omitempty"`
	// The confidence of the result
	Score                float32  `protobuf:"fixed32,3,opt,name=score,proto3" json:"score,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Pattern represents one regex (pattern) that is able to detect a certain entity and how confident the result is

func (*Pattern) Descriptor

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

func (*Pattern) GetName

func (m *Pattern) GetName() string

func (*Pattern) GetRegex

func (m *Pattern) GetRegex() string

func (*Pattern) GetScore

func (m *Pattern) GetScore() float32

func (*Pattern) ProtoMessage

func (*Pattern) ProtoMessage()

func (*Pattern) Reset

func (m *Pattern) Reset()

func (*Pattern) String

func (m *Pattern) String() string

func (*Pattern) XXX_DiscardUnknown

func (m *Pattern) XXX_DiscardUnknown()

func (*Pattern) XXX_Marshal

func (m *Pattern) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pattern) XXX_Merge

func (dst *Pattern) XXX_Merge(src proto.Message)

func (*Pattern) XXX_Size

func (m *Pattern) XXX_Size() int

func (*Pattern) XXX_Unmarshal

func (m *Pattern) XXX_Unmarshal(b []byte) error

type PatternRecognizer

type PatternRecognizer struct {
	// The name of the recognizer, unique
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The entity name which this recognizer can detect
	Entity string `protobuf:"bytes,2,opt,name=entity,proto3" json:"entity,omitempty"`
	// The supported language code, in ISO-639 format, https://en.wikipedia.org/wiki/ISO_639-1
	Language string `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"`
	// List of supported patterns by this recognizer
	Patterns []*Pattern `protobuf:"bytes,4,rep,name=patterns,proto3" json:"patterns,omitempty"`
	// A list of words that are considered PII and should always be detected
	// e.g. ["Mr", "Mrs", "account"]
	Blacklist []string `protobuf:"bytes,5,rep,name=blacklist,proto3" json:"blacklist,omitempty"`
	// A list of strings that if found in the surroundings of the entity, increase the score of the result
	// e.g. ["name", "address", ]
	ContextPhrases       []string `protobuf:"bytes,6,rep,name=contextPhrases,proto3" json:"contextPhrases,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

PatternRecognizer represents a recognizer which has the ability to detect entities using one or more Patterns

func (*PatternRecognizer) Descriptor

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

func (*PatternRecognizer) GetBlacklist

func (m *PatternRecognizer) GetBlacklist() []string

func (*PatternRecognizer) GetContextPhrases

func (m *PatternRecognizer) GetContextPhrases() []string

func (*PatternRecognizer) GetEntity

func (m *PatternRecognizer) GetEntity() string

func (*PatternRecognizer) GetLanguage

func (m *PatternRecognizer) GetLanguage() string

func (*PatternRecognizer) GetName

func (m *PatternRecognizer) GetName() string

func (*PatternRecognizer) GetPatterns

func (m *PatternRecognizer) GetPatterns() []*Pattern

func (*PatternRecognizer) ProtoMessage

func (*PatternRecognizer) ProtoMessage()

func (*PatternRecognizer) Reset

func (m *PatternRecognizer) Reset()

func (*PatternRecognizer) String

func (m *PatternRecognizer) String() string

func (*PatternRecognizer) XXX_DiscardUnknown

func (m *PatternRecognizer) XXX_DiscardUnknown()

func (*PatternRecognizer) XXX_Marshal

func (m *PatternRecognizer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PatternRecognizer) XXX_Merge

func (dst *PatternRecognizer) XXX_Merge(src proto.Message)

func (*PatternRecognizer) XXX_Size

func (m *PatternRecognizer) XXX_Size() int

func (*PatternRecognizer) XXX_Unmarshal

func (m *PatternRecognizer) XXX_Unmarshal(b []byte) error

type Recognizer

type Recognizer struct {
	// The name of the recognizer, unique
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The entity names which this recognizer can detect
	Entities []string `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"`
	// The supported language code, in ISO-639 format, https://en.wikipedia.org/wiki/ISO_639-1
	Language             string   `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Recognizer represents a known or custom recognizer

func (*Recognizer) Descriptor

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

func (*Recognizer) GetEntities

func (m *Recognizer) GetEntities() []string

func (*Recognizer) GetLanguage

func (m *Recognizer) GetLanguage() string

func (*Recognizer) GetName

func (m *Recognizer) GetName() string

func (*Recognizer) ProtoMessage

func (*Recognizer) ProtoMessage()

func (*Recognizer) Reset

func (m *Recognizer) Reset()

func (*Recognizer) String

func (m *Recognizer) String() string

func (*Recognizer) XXX_DiscardUnknown

func (m *Recognizer) XXX_DiscardUnknown()

func (*Recognizer) XXX_Marshal

func (m *Recognizer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Recognizer) XXX_Merge

func (dst *Recognizer) XXX_Merge(src proto.Message)

func (*Recognizer) XXX_Size

func (m *Recognizer) XXX_Size() int

func (*Recognizer) XXX_Unmarshal

func (m *Recognizer) XXX_Unmarshal(b []byte) error

type RecognizerDeleteRequest

type RecognizerDeleteRequest struct {
	// Name of the requested recognizer
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RecognizerDeleteRequest represents the request for deleting an existing recognizer

func (*RecognizerDeleteRequest) Descriptor

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

func (*RecognizerDeleteRequest) GetName

func (m *RecognizerDeleteRequest) GetName() string

func (*RecognizerDeleteRequest) ProtoMessage

func (*RecognizerDeleteRequest) ProtoMessage()

func (*RecognizerDeleteRequest) Reset

func (m *RecognizerDeleteRequest) Reset()

func (*RecognizerDeleteRequest) String

func (m *RecognizerDeleteRequest) String() string

func (*RecognizerDeleteRequest) XXX_DiscardUnknown

func (m *RecognizerDeleteRequest) XXX_DiscardUnknown()

func (*RecognizerDeleteRequest) XXX_Marshal

func (m *RecognizerDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RecognizerDeleteRequest) XXX_Merge

func (dst *RecognizerDeleteRequest) XXX_Merge(src proto.Message)

func (*RecognizerDeleteRequest) XXX_Size

func (m *RecognizerDeleteRequest) XXX_Size() int

func (*RecognizerDeleteRequest) XXX_Unmarshal

func (m *RecognizerDeleteRequest) XXX_Unmarshal(b []byte) error

type RecognizerGetHashRequest

type RecognizerGetHashRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RecognizerGetHashRequest represents the request for getting the hash of all the stored recognizers

func (*RecognizerGetHashRequest) Descriptor

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

func (*RecognizerGetHashRequest) ProtoMessage

func (*RecognizerGetHashRequest) ProtoMessage()

func (*RecognizerGetHashRequest) Reset

func (m *RecognizerGetHashRequest) Reset()

func (*RecognizerGetHashRequest) String

func (m *RecognizerGetHashRequest) String() string

func (*RecognizerGetHashRequest) XXX_DiscardUnknown

func (m *RecognizerGetHashRequest) XXX_DiscardUnknown()

func (*RecognizerGetHashRequest) XXX_Marshal

func (m *RecognizerGetHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RecognizerGetHashRequest) XXX_Merge

func (dst *RecognizerGetHashRequest) XXX_Merge(src proto.Message)

func (*RecognizerGetHashRequest) XXX_Size

func (m *RecognizerGetHashRequest) XXX_Size() int

func (*RecognizerGetHashRequest) XXX_Unmarshal

func (m *RecognizerGetHashRequest) XXX_Unmarshal(b []byte) error

type RecognizerGetRequest

type RecognizerGetRequest struct {
	// Name of the requested recognizer
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RecognizerGetRequest represents the request for retrieving a recognizer

func (*RecognizerGetRequest) Descriptor

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

func (*RecognizerGetRequest) GetName

func (m *RecognizerGetRequest) GetName() string

func (*RecognizerGetRequest) ProtoMessage

func (*RecognizerGetRequest) ProtoMessage()

func (*RecognizerGetRequest) Reset

func (m *RecognizerGetRequest) Reset()

func (*RecognizerGetRequest) String

func (m *RecognizerGetRequest) String() string

func (*RecognizerGetRequest) XXX_DiscardUnknown

func (m *RecognizerGetRequest) XXX_DiscardUnknown()

func (*RecognizerGetRequest) XXX_Marshal

func (m *RecognizerGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RecognizerGetRequest) XXX_Merge

func (dst *RecognizerGetRequest) XXX_Merge(src proto.Message)

func (*RecognizerGetRequest) XXX_Size

func (m *RecognizerGetRequest) XXX_Size() int

func (*RecognizerGetRequest) XXX_Unmarshal

func (m *RecognizerGetRequest) XXX_Unmarshal(b []byte) error

type RecognizerHashResponse

type RecognizerHashResponse struct {
	// The hash string of all the custom recognizers stored in the storage
	RecognizersHash      string   `protobuf:"bytes,1,opt,name=recognizersHash,proto3" json:"recognizersHash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RecognizerHashResponse represents the response of getting the hash of all the stored recognizers

func (*RecognizerHashResponse) Descriptor

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

func (*RecognizerHashResponse) GetRecognizersHash

func (m *RecognizerHashResponse) GetRecognizersHash() string

func (*RecognizerHashResponse) ProtoMessage

func (*RecognizerHashResponse) ProtoMessage()

func (*RecognizerHashResponse) Reset

func (m *RecognizerHashResponse) Reset()

func (*RecognizerHashResponse) String

func (m *RecognizerHashResponse) String() string

func (*RecognizerHashResponse) XXX_DiscardUnknown

func (m *RecognizerHashResponse) XXX_DiscardUnknown()

func (*RecognizerHashResponse) XXX_Marshal

func (m *RecognizerHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RecognizerHashResponse) XXX_Merge

func (dst *RecognizerHashResponse) XXX_Merge(src proto.Message)

func (*RecognizerHashResponse) XXX_Size

func (m *RecognizerHashResponse) XXX_Size() int

func (*RecognizerHashResponse) XXX_Unmarshal

func (m *RecognizerHashResponse) XXX_Unmarshal(b []byte) error

type RecognizerInsertOrUpdateRequest

type RecognizerInsertOrUpdateRequest struct {
	// The recognizer to be inserted or updated
	Value                *PatternRecognizer `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

RecognizerInsertOrUpdateRequest represents the request for inserting a new or updating an existing pattern recognizer

func (*RecognizerInsertOrUpdateRequest) Descriptor

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

func (*RecognizerInsertOrUpdateRequest) GetValue

func (*RecognizerInsertOrUpdateRequest) ProtoMessage

func (*RecognizerInsertOrUpdateRequest) ProtoMessage()

func (*RecognizerInsertOrUpdateRequest) Reset

func (*RecognizerInsertOrUpdateRequest) String

func (*RecognizerInsertOrUpdateRequest) XXX_DiscardUnknown

func (m *RecognizerInsertOrUpdateRequest) XXX_DiscardUnknown()

func (*RecognizerInsertOrUpdateRequest) XXX_Marshal

func (m *RecognizerInsertOrUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RecognizerInsertOrUpdateRequest) XXX_Merge

func (dst *RecognizerInsertOrUpdateRequest) XXX_Merge(src proto.Message)

func (*RecognizerInsertOrUpdateRequest) XXX_Size

func (m *RecognizerInsertOrUpdateRequest) XXX_Size() int

func (*RecognizerInsertOrUpdateRequest) XXX_Unmarshal

func (m *RecognizerInsertOrUpdateRequest) XXX_Unmarshal(b []byte) error

type RecognizersAllRequest

type RecognizersAllRequest struct {
	// The supported language code, in ISO-639 format, https://en.wikipedia.org/wiki/ISO_639-1
	Language             string   `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RecognizersRequest represents the request to get the recognizers known to the analyze service that support the input language via GRPC

func (*RecognizersAllRequest) Descriptor

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

func (*RecognizersAllRequest) GetLanguage

func (m *RecognizersAllRequest) GetLanguage() string

func (*RecognizersAllRequest) ProtoMessage

func (*RecognizersAllRequest) ProtoMessage()

func (*RecognizersAllRequest) Reset

func (m *RecognizersAllRequest) Reset()

func (*RecognizersAllRequest) String

func (m *RecognizersAllRequest) String() string

func (*RecognizersAllRequest) XXX_DiscardUnknown

func (m *RecognizersAllRequest) XXX_DiscardUnknown()

func (*RecognizersAllRequest) XXX_Marshal

func (m *RecognizersAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RecognizersAllRequest) XXX_Merge

func (dst *RecognizersAllRequest) XXX_Merge(src proto.Message)

func (*RecognizersAllRequest) XXX_Size

func (m *RecognizersAllRequest) XXX_Size() int

func (*RecognizersAllRequest) XXX_Unmarshal

func (m *RecognizersAllRequest) XXX_Unmarshal(b []byte) error

type RecognizersAllResponse

type RecognizersAllResponse struct {
	// Array of the recognizers
	RecognizerResults    []*Recognizer `protobuf:"bytes,1,rep,name=recognizerResults,proto3" json:"recognizerResults,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

RecognizersResponse represents the analyze service response

func (*RecognizersAllResponse) Descriptor

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

func (*RecognizersAllResponse) GetRecognizerResults

func (m *RecognizersAllResponse) GetRecognizerResults() []*Recognizer

func (*RecognizersAllResponse) ProtoMessage

func (*RecognizersAllResponse) ProtoMessage()

func (*RecognizersAllResponse) Reset

func (m *RecognizersAllResponse) Reset()

func (*RecognizersAllResponse) String

func (m *RecognizersAllResponse) String() string

func (*RecognizersAllResponse) XXX_DiscardUnknown

func (m *RecognizersAllResponse) XXX_DiscardUnknown()

func (*RecognizersAllResponse) XXX_Marshal

func (m *RecognizersAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RecognizersAllResponse) XXX_Merge

func (dst *RecognizersAllResponse) XXX_Merge(src proto.Message)

func (*RecognizersAllResponse) XXX_Size

func (m *RecognizersAllResponse) XXX_Size() int

func (*RecognizersAllResponse) XXX_Unmarshal

func (m *RecognizersAllResponse) XXX_Unmarshal(b []byte) error

type RecognizersGetAllRequest

type RecognizersGetAllRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RecognizersGetAllRequest represents the request for retrieving all recognizers

func (*RecognizersGetAllRequest) Descriptor

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

func (*RecognizersGetAllRequest) ProtoMessage

func (*RecognizersGetAllRequest) ProtoMessage()

func (*RecognizersGetAllRequest) Reset

func (m *RecognizersGetAllRequest) Reset()

func (*RecognizersGetAllRequest) String

func (m *RecognizersGetAllRequest) String() string

func (*RecognizersGetAllRequest) XXX_DiscardUnknown

func (m *RecognizersGetAllRequest) XXX_DiscardUnknown()

func (*RecognizersGetAllRequest) XXX_Marshal

func (m *RecognizersGetAllRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RecognizersGetAllRequest) XXX_Merge

func (dst *RecognizersGetAllRequest) XXX_Merge(src proto.Message)

func (*RecognizersGetAllRequest) XXX_Size

func (m *RecognizersGetAllRequest) XXX_Size() int

func (*RecognizersGetAllRequest) XXX_Unmarshal

func (m *RecognizersGetAllRequest) XXX_Unmarshal(b []byte) error

type RecognizersGetResponse

type RecognizersGetResponse struct {
	// An array of recognizers
	Recognizers          []*PatternRecognizer `protobuf:"bytes,1,rep,name=recognizers,proto3" json:"recognizers,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

RecognizersGetResponse represents a response to a get request

func (*RecognizersGetResponse) Descriptor

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

func (*RecognizersGetResponse) GetRecognizers

func (m *RecognizersGetResponse) GetRecognizers() []*PatternRecognizer

func (*RecognizersGetResponse) ProtoMessage

func (*RecognizersGetResponse) ProtoMessage()

func (*RecognizersGetResponse) Reset

func (m *RecognizersGetResponse) Reset()

func (*RecognizersGetResponse) String

func (m *RecognizersGetResponse) String() string

func (*RecognizersGetResponse) XXX_DiscardUnknown

func (m *RecognizersGetResponse) XXX_DiscardUnknown()

func (*RecognizersGetResponse) XXX_Marshal

func (m *RecognizersGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RecognizersGetResponse) XXX_Merge

func (dst *RecognizersGetResponse) XXX_Merge(src proto.