recaptchaenterprise

package
v0.0.0-...-e165f0f Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AnnotateAssessmentRequest_Annotation_name = map[int32]string{
	0: "ANNOTATION_UNSPECIFIED",
	1: "LEGITIMATE",
	2: "FRAUDULENT",
	3: "PASSWORD_CORRECT",
	4: "PASSWORD_INCORRECT",
}
View Source
var AnnotateAssessmentRequest_Annotation_value = map[string]int32{
	"ANNOTATION_UNSPECIFIED": 0,
	"LEGITIMATE":             1,
	"FRAUDULENT":             2,
	"PASSWORD_CORRECT":       3,
	"PASSWORD_INCORRECT":     4,
}
View Source
var RiskAnalysis_ClassificationReason_name = map[int32]string{
	0: "CLASSIFICATION_REASON_UNSPECIFIED",
	1: "AUTOMATION",
	2: "UNEXPECTED_ENVIRONMENT",
	3: "TOO_MUCH_TRAFFIC",
	4: "UNEXPECTED_USAGE_PATTERNS",
	5: "LOW_CONFIDENCE_SCORE",
}
View Source
var RiskAnalysis_ClassificationReason_value = map[string]int32{
	"CLASSIFICATION_REASON_UNSPECIFIED": 0,
	"AUTOMATION":                        1,
	"UNEXPECTED_ENVIRONMENT":            2,
	"TOO_MUCH_TRAFFIC":                  3,
	"UNEXPECTED_USAGE_PATTERNS":         4,
	"LOW_CONFIDENCE_SCORE":              5,
}
View Source
var TokenProperties_InvalidReason_name = map[int32]string{
	0: "INVALID_REASON_UNSPECIFIED",
	1: "UNKNOWN_INVALID_REASON",
	2: "MALFORMED",
	3: "EXPIRED",
	4: "DUPE",
	5: "MISSING",
}
View Source
var TokenProperties_InvalidReason_value = map[string]int32{
	"INVALID_REASON_UNSPECIFIED": 0,
	"UNKNOWN_INVALID_REASON":     1,
	"MALFORMED":                  2,
	"EXPIRED":                    3,
	"DUPE":                       4,
	"MISSING":                    5,
}
View Source
var WebKeySettings_ChallengeSecurityPreference_name = map[int32]string{
	0: "CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED",
	1: "USABILITY",
	2: "BALANCE",
	3: "SECURITY",
}
View Source
var WebKeySettings_ChallengeSecurityPreference_value = map[string]int32{
	"CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED": 0,
	"USABILITY": 1,
	"BALANCE":   2,
	"SECURITY":  3,
}
View Source
var WebKeySettings_IntegrationType_name = map[int32]string{
	0: "INTEGRATION_TYPE_UNSPECIFIED",
	1: "SCORE",
	2: "CHECKBOX",
	3: "INVISIBLE",
}
View Source
var WebKeySettings_IntegrationType_value = map[string]int32{
	"INTEGRATION_TYPE_UNSPECIFIED": 0,
	"SCORE":                        1,
	"CHECKBOX":                     2,
	"INVISIBLE":                    3,
}

Functions

func RegisterRecaptchaEnterpriseServiceServer

func RegisterRecaptchaEnterpriseServiceServer(s *grpc.Server, srv RecaptchaEnterpriseServiceServer)

Types

type AndroidKeySettings

type AndroidKeySettings struct {
	// Android package names of apps allowed to use the key.
	// Example: 'com.companyname.appname'
	AllowedPackageNames  []string `protobuf:"bytes,1,rep,name=allowed_package_names,json=allowedPackageNames,proto3" json:"allowed_package_names,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Settings specific to keys that can be used by Android apps.

func (*AndroidKeySettings) Descriptor

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

func (*AndroidKeySettings) GetAllowedPackageNames

func (m *AndroidKeySettings) GetAllowedPackageNames() []string

func (*AndroidKeySettings) ProtoMessage

func (*AndroidKeySettings) ProtoMessage()

func (*AndroidKeySettings) Reset

func (m *AndroidKeySettings) Reset()

func (*AndroidKeySettings) String

func (m *AndroidKeySettings) String() string

func (*AndroidKeySettings) XXX_DiscardUnknown

func (m *AndroidKeySettings) XXX_DiscardUnknown()

func (*AndroidKeySettings) XXX_Marshal

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

func (*AndroidKeySettings) XXX_Merge

func (m *AndroidKeySettings) XXX_Merge(src proto.Message)

func (*AndroidKeySettings) XXX_Size

func (m *AndroidKeySettings) XXX_Size() int

func (*AndroidKeySettings) XXX_Unmarshal

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

type AnnotateAssessmentRequest

type AnnotateAssessmentRequest struct {
	// Required. The resource name of the Assessment, in the format
	// "projects/{project}/assessments/{assessment}".
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The annotation that will be assigned to the Event.
	Annotation           AnnotateAssessmentRequest_Annotation `` /* 152-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                             `json:"-"`
	XXX_unrecognized     []byte                               `json:"-"`
	XXX_sizecache        int32                                `json:"-"`
}

The request message to annotate an Assessment.

func (*AnnotateAssessmentRequest) Descriptor

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

func (*AnnotateAssessmentRequest) GetAnnotation

func (*AnnotateAssessmentRequest) GetName

func (m *AnnotateAssessmentRequest) GetName() string

func (*AnnotateAssessmentRequest) ProtoMessage

func (*AnnotateAssessmentRequest) ProtoMessage()

func (*AnnotateAssessmentRequest) Reset

func (m *AnnotateAssessmentRequest) Reset()

func (*AnnotateAssessmentRequest) String

func (m *AnnotateAssessmentRequest) String() string

func (*AnnotateAssessmentRequest) XXX_DiscardUnknown

func (m *AnnotateAssessmentRequest) XXX_DiscardUnknown()

func (*AnnotateAssessmentRequest) XXX_Marshal

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

func (*AnnotateAssessmentRequest) XXX_Merge

func (m *AnnotateAssessmentRequest) XXX_Merge(src proto.Message)

func (*AnnotateAssessmentRequest) XXX_Size

func (m *AnnotateAssessmentRequest) XXX_Size() int

func (*AnnotateAssessmentRequest) XXX_Unmarshal

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

type AnnotateAssessmentRequest_Annotation

type AnnotateAssessmentRequest_Annotation int32

Enum that reprensents the types of annotations.

const (
	// Default unspecified type.
	AnnotateAssessmentRequest_ANNOTATION_UNSPECIFIED AnnotateAssessmentRequest_Annotation = 0
	// Provides information that the event turned out to be legitimate.
	AnnotateAssessmentRequest_LEGITIMATE AnnotateAssessmentRequest_Annotation = 1
	// Provides information that the event turned out to be fraudulent.
	AnnotateAssessmentRequest_FRAUDULENT AnnotateAssessmentRequest_Annotation = 2
	// Provides information that the event was related to a login event in which
	// the user typed the correct password.
	AnnotateAssessmentRequest_PASSWORD_CORRECT AnnotateAssessmentRequest_Annotation = 3
	// Provides information that the event was related to a login event in which
	// the user typed the incorrect password.
	AnnotateAssessmentRequest_PASSWORD_INCORRECT AnnotateAssessmentRequest_Annotation = 4
)

func (AnnotateAssessmentRequest_Annotation) EnumDescriptor

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

func (AnnotateAssessmentRequest_Annotation) String

type AnnotateAssessmentResponse

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

Empty response for AnnotateAssessment.

func (*AnnotateAssessmentResponse) Descriptor

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

func (*AnnotateAssessmentResponse) ProtoMessage

func (*AnnotateAssessmentResponse) ProtoMessage()

func (*AnnotateAssessmentResponse) Reset

func (m *AnnotateAssessmentResponse) Reset()

func (*AnnotateAssessmentResponse) String

func (m *AnnotateAssessmentResponse) String() string

func (*AnnotateAssessmentResponse) XXX_DiscardUnknown

func (m *AnnotateAssessmentResponse) XXX_DiscardUnknown()

func (*AnnotateAssessmentResponse) XXX_Marshal

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

func (*AnnotateAssessmentResponse) XXX_Merge

func (m *AnnotateAssessmentResponse) XXX_Merge(src proto.Message)

func (*AnnotateAssessmentResponse) XXX_Size

func (m *AnnotateAssessmentResponse) XXX_Size() int

func (*AnnotateAssessmentResponse) XXX_Unmarshal

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

type Assessment

type Assessment struct {
	// Output only. The resource name for the Assessment in the format
	// "projects/{project}/assessments/{assessment}".
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The event being assessed.
	Event *Event `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
	// Output only. The risk analysis result for the event being assessed.
	RiskAnalysis *RiskAnalysis `protobuf:"bytes,3,opt,name=risk_analysis,json=riskAnalysis,proto3" json:"risk_analysis,omitempty"`
	// Output only. Properties of the provided event token.
	TokenProperties      *TokenProperties `protobuf:"bytes,4,opt,name=token_properties,json=tokenProperties,proto3" json:"token_properties,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

A recaptcha assessment resource.

func (*Assessment) Descriptor

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

func (*Assessment) GetEvent

func (m *Assessment) GetEvent() *Event

func (*Assessment) GetName

func (m *Assessment) GetName() string

func (*Assessment) GetRiskAnalysis

func (m *Assessment) GetRiskAnalysis() *RiskAnalysis

func (*Assessment) GetTokenProperties

func (m *Assessment) GetTokenProperties() *TokenProperties

func (*Assessment) ProtoMessage

func (*Assessment) ProtoMessage()

func (*Assessment) Reset

func (m *Assessment) Reset()

func (*Assessment) String

func (m *Assessment) String() string

func (*Assessment) XXX_DiscardUnknown

func (m *Assessment) XXX_DiscardUnknown()

func (*Assessment) XXX_Marshal

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

func (*Assessment) XXX_Merge

func (m *Assessment) XXX_Merge(src proto.Message)

func (*Assessment) XXX_Size

func (m *Assessment) XXX_Size() int

func (*Assessment) XXX_Unmarshal

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

type CreateAssessmentRequest

type CreateAssessmentRequest struct {
	// Required. The name of the project in which the assessment will be created,
	// in the format "projects/{project}".
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The assessment details.
	Assessment           *Assessment `protobuf:"bytes,2,opt,name=assessment,proto3" json:"assessment,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

The create assessment request message.

func (*CreateAssessmentRequest) Descriptor

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

func (*CreateAssessmentRequest) GetAssessment

func (m *CreateAssessmentRequest) GetAssessment() *Assessment

func (*CreateAssessmentRequest) GetParent

func (m *CreateAssessmentRequest) GetParent() string

func (*CreateAssessmentRequest) ProtoMessage

func (*CreateAssessmentRequest) ProtoMessage()

func (*CreateAssessmentRequest) Reset

func (m *CreateAssessmentRequest) Reset()

func (*CreateAssessmentRequest) String

func (m *CreateAssessmentRequest) String() string

func (*CreateAssessmentRequest) XXX_DiscardUnknown

func (m *CreateAssessmentRequest) XXX_DiscardUnknown()

func (*CreateAssessmentRequest) XXX_Marshal

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

func (*CreateAssessmentRequest) XXX_Merge

func (m *CreateAssessmentRequest) XXX_Merge(src proto.Message)

func (*CreateAssessmentRequest) XXX_Size

func (m *CreateAssessmentRequest) XXX_Size() int

func (*CreateAssessmentRequest) XXX_Unmarshal

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

type CreateKeyRequest

type CreateKeyRequest struct {
	// Required. The name of the project in which the key will be created, in the
	// format "projects/{project}".
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. Information to create a reCAPTCHA Enterprise key.
	Key                  *Key     `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The create key request message.

func (*CreateKeyRequest) Descriptor

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

func (*CreateKeyRequest) GetKey

func (m *CreateKeyRequest) GetKey() *Key

func (*CreateKeyRequest) GetParent

func (m *CreateKeyRequest) GetParent() string

func (*CreateKeyRequest) ProtoMessage

func (*CreateKeyRequest) ProtoMessage()

func (*CreateKeyRequest) Reset

func (m *CreateKeyRequest) Reset()

func (*CreateKeyRequest) String

func (m *CreateKeyRequest) String() string

func (*CreateKeyRequest) XXX_DiscardUnknown

func (m *CreateKeyRequest) XXX_DiscardUnknown()

func (*CreateKeyRequest) XXX_Marshal

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

func (*CreateKeyRequest) XXX_Merge

func (m *CreateKeyRequest) XXX_Merge(src proto.Message)

func (*CreateKeyRequest) XXX_Size

func (m *CreateKeyRequest) XXX_Size() int

func (*CreateKeyRequest) XXX_Unmarshal

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

type DeleteKeyRequest

type DeleteKeyRequest struct {
	// Required. The name of the key to be deleted, in the format
	// "projects/{project}/keys/{key}".
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The delete key request message.

func (*DeleteKeyRequest) Descriptor

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

func (*DeleteKeyRequest) GetName

func (m *DeleteKeyRequest) GetName() string

func (*DeleteKeyRequest) ProtoMessage

func (*DeleteKeyRequest) ProtoMessage()

func (*DeleteKeyRequest) Reset

func (m *DeleteKeyRequest) Reset()

func (*DeleteKeyRequest) String

func (m *DeleteKeyRequest) String() string

func (*DeleteKeyRequest) XXX_DiscardUnknown

func (m *DeleteKeyRequest) XXX_DiscardUnknown()

func (*DeleteKeyRequest) XXX_Marshal

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

func (*DeleteKeyRequest) XXX_Merge

func (m *DeleteKeyRequest) XXX_Merge(src proto.Message)

func (*DeleteKeyRequest) XXX_Size

func (m *DeleteKeyRequest) XXX_Size() int

func (*DeleteKeyRequest) XXX_Unmarshal

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

type Event

type Event struct {
	// Optional. The user response token provided by the reCAPTCHA client-side integration
	// on your site.
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// Optional. The site key that was used to invoke reCAPTCHA on your site and generate
	// the token.
	SiteKey string `protobuf:"bytes,2,opt,name=site_key,json=siteKey,proto3" json:"site_key,omitempty"`
	// Optional. The user agent present in the request from the user's device related to
	// this event.
	UserAgent string `protobuf:"bytes,3,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	// Optional. The IP address in the request from the user's device related to this event.
	UserIpAddress string `protobuf:"bytes,4,opt,name=user_ip_address,json=userIpAddress,proto3" json:"user_ip_address,omitempty"`
	// Optional. The expected action for this type of event. This should be the same action
	// provided at token generation time on client-side platforms already
	// integrated with recaptcha enterprise.
	ExpectedAction       string   `protobuf:"bytes,5,opt,name=expected_action,json=expectedAction,proto3" json:"expected_action,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Event) Descriptor

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

func (*Event) GetExpectedAction

func (m *Event) GetExpectedAction() string

func (*Event) GetSiteKey

func (m *Event) GetSiteKey() string

func (*Event) GetToken

func (m *Event) GetToken() string

func (*Event) GetUserAgent

func (m *Event) GetUserAgent() string

func (*Event) GetUserIpAddress

func (m *Event) GetUserIpAddress() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

func (*Event) XXX_DiscardUnknown

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal

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

func (*Event) XXX_Merge

func (m *Event) XXX_Merge(src proto.Message)

func (*Event) XXX_Size

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal

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

type GetKeyRequest

type GetKeyRequest struct {
	// Required. The name of the requested key, in the format
	// "projects/{project}/keys/{key}".
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The get key request message.

func (*GetKeyRequest) Descriptor

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

func (*GetKeyRequest) GetName

func (m *GetKeyRequest) GetName() string

func (*GetKeyRequest) ProtoMessage

func (*GetKeyRequest) ProtoMessage()

func (*GetKeyRequest) Reset

func (m *GetKeyRequest) Reset()

func (*GetKeyRequest) String

func (m *GetKeyRequest) String() string

func (*GetKeyRequest) XXX_DiscardUnknown

func (m *GetKeyRequest) XXX_DiscardUnknown()

func (*GetKeyRequest) XXX_Marshal

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

func (*GetKeyRequest) XXX_Merge

func (m *GetKeyRequest) XXX_Merge(src proto.Message)

func (*GetKeyRequest) XXX_Size

func (m *GetKeyRequest) XXX_Size() int

func (*GetKeyRequest) XXX_Unmarshal

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

type IOSKeySettings

type IOSKeySettings struct {
	// iOS bundle ids of apps allowed to use the key.
	// Example: 'com.companyname.productname.appname'
	AllowedBundleIds     []string `protobuf:"bytes,1,rep,name=allowed_bundle_ids,json=allowedBundleIds,proto3" json:"allowed_bundle_ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Settings specific to keys that can be used by iOS apps.

func (*IOSKeySettings) Descriptor

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

func (*IOSKeySettings) GetAllowedBundleIds

func (m *IOSKeySettings) GetAllowedBundleIds() []string

func (*IOSKeySettings) ProtoMessage

func (*IOSKeySettings) ProtoMessage()

func (*IOSKeySettings) Reset

func (m *IOSKeySettings) Reset()

func (*IOSKeySettings) String

func (m *IOSKeySettings) String() string

func (*IOSKeySettings) XXX_DiscardUnknown

func (m *IOSKeySettings) XXX_DiscardUnknown()

func (*IOSKeySettings) XXX_Marshal

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

func (*IOSKeySettings) XXX_Merge

func (m *IOSKeySettings) XXX_Merge(src proto.Message)

func (*IOSKeySettings) XXX_Size

func (m *IOSKeySettings) XXX_Size() int

func (*IOSKeySettings) XXX_Unmarshal

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

type Key

type Key struct {
	// The resource name for the Key in the format
	// "projects/{project}/keys/{key}".
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Human-readable display name of this key. Modifiable by user.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Platform specific settings for this key. The key can only be used on one
	// platform, the one it has settings for.
	//
	// Types that are valid to be assigned to PlatformSettings:
	//	*Key_WebSettings
	//	*Key_AndroidSettings
	//	*Key_IosSettings
	PlatformSettings isKey_PlatformSettings `protobuf_oneof:"platform_settings"`
	// Optional. See <a href="https://cloud.google.com/recaptcha-enterprise/docs/labels">
	// Creating and managing labels</a>.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// The timestamp corresponding to the creation of this Key.
	CreateTime           *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

A key used to identify and configure applications (web and/or mobile) that use reCAPTCHA Enterprise.

func (*Key) Descriptor

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

func (*Key) GetAndroidSettings

func (m *Key) GetAndroidSettings() *AndroidKeySettings

func (*Key) GetCreateTime

func (m *Key) GetCreateTime() *timestamp.Timestamp

func (*Key) GetDisplayName

func (m *Key) GetDisplayName() string

func (*Key) GetIosSettings

func (m *Key) GetIosSettings() *IOSKeySettings

func (*Key) GetLabels

func (m *Key) GetLabels() map[string]string

func (*Key) GetName

func (m *Key) GetName() string

func (*Key) GetPlatformSettings

func (m *Key) GetPlatformSettings() isKey_PlatformSettings

func (*Key) GetWebSettings

func (m *Key) GetWebSettings() *WebKeySettings

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) Reset

func (m *Key) Reset()

func (*Key) String

func (m *Key) String() string

func (*Key) XXX_DiscardUnknown

func (m *Key) XXX_DiscardUnknown()

func (*Key) XXX_Marshal

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

func (*Key) XXX_Merge

func (m *Key) XXX_Merge(src proto.Message)

func (*Key) XXX_OneofWrappers

func (*Key) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Key) XXX_Size

func (m *Key) XXX_Size() int

func (*Key) XXX_Unmarshal

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

type Key_AndroidSettings

type Key_AndroidSettings struct {
	AndroidSettings *AndroidKeySettings `protobuf:"bytes,4,opt,name=android_settings,json=androidSettings,proto3,oneof"`
}

type Key_IosSettings

type Key_IosSettings struct {
	IosSettings *IOSKeySettings `protobuf:"bytes,5,opt,name=ios_settings,json=iosSettings,proto3,oneof"`
}

type Key_WebSettings

type Key_WebSettings struct {
	WebSettings *WebKeySettings `protobuf:"bytes,3,opt,name=web_settings,json=webSettings,proto3,oneof"`
}

type ListKeysRequest

type ListKeysRequest struct {
	// Required. The name of the project that contains the keys that will be
	// listed, in the format "projects/{project}".
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Optional. The maximum number of keys to return. Default is 10. Max limit is
	// 1000.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. The next_page_token value returned from a previous.
	// ListKeysRequest, if any.
	PageToken            string   `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The list keys request message.

func (*ListKeysRequest) Descriptor

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

func (*ListKeysRequest) GetPageSize

func (m *ListKeysRequest) GetPageSize() int32

func (*ListKeysRequest) GetPageToken

func (m *ListKeysRequest) GetPageToken() string

func (*ListKeysRequest) GetParent

func (m *ListKeysRequest) GetParent() string

func (*ListKeysRequest) ProtoMessage

func (*ListKeysRequest) ProtoMessage()

func (*ListKeysRequest) Reset

func (m *ListKeysRequest) Reset()

func (*ListKeysRequest) String

func (m *ListKeysRequest) String() string

func (*ListKeysRequest) XXX_DiscardUnknown

func (m *ListKeysRequest) XXX_DiscardUnknown()

func (*ListKeysRequest) XXX_Marshal

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

func (*ListKeysRequest) XXX_Merge

func (m *ListKeysRequest) XXX_Merge(src proto.Message)

func (*ListKeysRequest) XXX_Size

func (m *ListKeysRequest) XXX_Size() int

func (*ListKeysRequest) XXX_Unmarshal

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

type ListKeysResponse

type ListKeysResponse struct {
	// Key details.
	Keys []*Key `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
	// Token to retrieve the next page of results. It is set to empty if no keys
	// remain in results.
	NextPageToken        string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response to request to list keys in a project.

func (*ListKeysResponse) Descriptor

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

func (*ListKeysResponse) GetKeys

func (m *ListKeysResponse) GetKeys() []*Key

func (*ListKeysResponse) GetNextPageToken

func (m *ListKeysResponse) GetNextPageToken() string

func (*ListKeysResponse) ProtoMessage

func (*ListKeysResponse) ProtoMessage()

func (*ListKeysResponse) Reset

func (m *ListKeysResponse) Reset()

func (*ListKeysResponse) String

func (m *ListKeysResponse) String() string

func (*ListKeysResponse) XXX_DiscardUnknown

func (m *ListKeysResponse) XXX_DiscardUnknown()

func (*ListKeysResponse) XXX_Marshal

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

func (*ListKeysResponse) XXX_Merge

func (m *ListKeysResponse) XXX_Merge(src proto.Message)

func (*ListKeysResponse) XXX_Size

func (m *ListKeysResponse) XXX_Size() int

func (*ListKeysResponse) XXX_Unmarshal

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

type RecaptchaEnterpriseServiceClient

type RecaptchaEnterpriseServiceClient interface {
	// Creates an Assessment of the likelihood an event is legitimate.
	CreateAssessment(ctx context.Context, in *CreateAssessmentRequest, opts ...grpc.CallOption) (*Assessment, error)
	// Annotates a previously created Assessment to provide additional information
	// on whether the event turned out to be authentic or fradulent.
	AnnotateAssessment(ctx context.Context, in *AnnotateAssessmentRequest, opts ...grpc.CallOption) (*AnnotateAssessmentResponse, error)
	// Creates a new reCAPTCHA Enterprise key.
	CreateKey(ctx context.Context, in *CreateKeyRequest, opts ...grpc.CallOption) (*Key, error)
	// Returns the list of all keys that belong to a project.
	ListKeys(ctx context.Context, in *ListKeysRequest, opts ...grpc.CallOption) (*ListKeysResponse, error)
	// Returns the specified key.
	GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*Key, error)
	// Updates the specified key.
	UpdateKey(ctx context.Context, in *UpdateKeyRequest, opts ...grpc.CallOption) (*Key, error)
	// Deletes the specified key.
	DeleteKey(ctx context.Context, in *DeleteKeyRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

RecaptchaEnterpriseServiceClient is the client API for RecaptchaEnterpriseService service.

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

type RecaptchaEnterpriseServiceServer

type RecaptchaEnterpriseServiceServer interface {
	// Creates an Assessment of the likelihood an event is legitimate.
	CreateAssessment(context.Context, *CreateAssessmentRequest) (*Assessment, error)
	// Annotates a previously created Assessment to provide additional information
	// on whether the event turned out to be authentic or fradulent.
	AnnotateAssessment(context.Context, *AnnotateAssessmentRequest) (*AnnotateAssessmentResponse, error)
	// Creates a new reCAPTCHA Enterprise key.
	CreateKey(context.Context, *CreateKeyRequest) (*Key, error)
	// Returns the list of all keys that belong to a project.
	ListKeys(context.Context, *ListKeysRequest) (*ListKeysResponse, error)
	// Returns the specified key.
	GetKey(context.Context, *GetKeyRequest) (*Key, error)
	// Updates the specified key.
	UpdateKey(context.Context, *UpdateKeyRequest) (*Key, error)
	// Deletes the specified key.
	DeleteKey(context.Context, *DeleteKeyRequest) (*empty.Empty, error)
}

RecaptchaEnterpriseServiceServer is the server API for RecaptchaEnterpriseService service.

type RiskAnalysis

type RiskAnalysis struct {
	// Legitimate event score from 0.0 to 1.0.
	// (1.0 means very likely legitimate traffic while 0.0 means very likely
	// non-legitimate traffic).
	Score float32 `protobuf:"fixed32,1,opt,name=score,proto3" json:"score,omitempty"`
	// Reasons contributing to the risk analysis verdict.
	Reasons              []RiskAnalysis_ClassificationReason `` /* 150-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
	XXX_unrecognized     []byte                              `json:"-"`
	XXX_sizecache        int32                               `json:"-"`
}

Risk analysis result for an event.

func (*RiskAnalysis) Descriptor

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

func (*RiskAnalysis) GetReasons

func (*RiskAnalysis) GetScore

func (m *RiskAnalysis) GetScore() float32

func (*RiskAnalysis) ProtoMessage

func (*RiskAnalysis) ProtoMessage()

func (*RiskAnalysis) Reset

func (m *RiskAnalysis) Reset()

func (*RiskAnalysis) String

func (m *RiskAnalysis) String() string

func (*RiskAnalysis) XXX_DiscardUnknown

func (m *RiskAnalysis) XXX_DiscardUnknown()

func (*RiskAnalysis) XXX_Marshal

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

func (*RiskAnalysis) XXX_Merge

func (m *RiskAnalysis) XXX_Merge(src proto.Message)

func (*RiskAnalysis) XXX_Size

func (m *RiskAnalysis) XXX_Size() int

func (*RiskAnalysis) XXX_Unmarshal

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

type RiskAnalysis_ClassificationReason

type RiskAnalysis_ClassificationReason int32

LINT.IfChange(classification_reason) Reasons contributing to the risk analysis verdict.

const (
	// Default unspecified type.
	RiskAnalysis_CLASSIFICATION_REASON_UNSPECIFIED RiskAnalysis_ClassificationReason = 0
	// Interactions matched the behavior of an automated agent.
	RiskAnalysis_AUTOMATION RiskAnalysis_ClassificationReason = 1
	// The event originated from an illegitimate environment.
	RiskAnalysis_UNEXPECTED_ENVIRONMENT RiskAnalysis_ClassificationReason = 2
	// Traffic volume from the event source is higher than normal.
	RiskAnalysis_TOO_MUCH_TRAFFIC RiskAnalysis_ClassificationReason = 3
	// Interactions with the site were significantly different than expected
	// patterns.
	RiskAnalysis_UNEXPECTED_USAGE_PATTERNS RiskAnalysis_ClassificationReason = 4
	// Too little traffic has been received from this site thus far to generate
	// quality risk analysis.
	RiskAnalysis_LOW_CONFIDENCE_SCORE RiskAnalysis_ClassificationReason = 5
)

func (RiskAnalysis_ClassificationReason) EnumDescriptor

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

func (RiskAnalysis_ClassificationReason) String

type TokenProperties

type TokenProperties struct {
	// Whether the provided user response token is valid. When valid = false, the
	// reason could be specified in invalid_reason or it could also be due to
	// a user failing to solve a challenge or a sitekey mismatch (i.e the sitekey
	// used to generate the token was different than the one specified in the
	// assessment).
	Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	// Reason associated with the response when valid = false.
	InvalidReason TokenProperties_InvalidReason `` /* 172-byte string literal not displayed */
	// The timestamp corresponding to the generation of the token.
	CreateTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The hostname of the page on which the token was generated.
	Hostname string `protobuf:"bytes,4,opt,name=hostname,proto3" json:"hostname,omitempty"`
	// Action name provided at token generation.
	Action               string   `protobuf:"bytes,5,opt,name=action,proto3" json:"action,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TokenProperties) Descriptor

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

func (*TokenProperties) GetAction

func (m *TokenProperties) GetAction() string

func (*TokenProperties) GetCreateTime

func (m *TokenProperties) GetCreateTime() *timestamp.Timestamp

func (*TokenProperties) GetHostname

func (m *TokenProperties) GetHostname() string

func (*TokenProperties) GetInvalidReason

func (m *TokenProperties) GetInvalidReason() TokenProperties_InvalidReason

func (*TokenProperties) GetValid

func (m *TokenProperties) GetValid() bool

func (*TokenProperties) ProtoMessage

func (*TokenProperties) ProtoMessage()

func (*TokenProperties) Reset

func (m *TokenProperties) Reset()

func (*TokenProperties) String

func (m *TokenProperties) String() string

func (*TokenProperties) XXX_DiscardUnknown

func (m *TokenProperties) XXX_DiscardUnknown()

func (*TokenProperties) XXX_Marshal

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

func (*TokenProperties) XXX_Merge

func (m *TokenProperties) XXX_Merge(src proto.Message)

func (*TokenProperties) XXX_Size

func (m *TokenProperties) XXX_Size() int

func (*TokenProperties) XXX_Unmarshal

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

type TokenProperties_InvalidReason

type TokenProperties_InvalidReason int32

LINT.IfChange Enum that represents the types of invalid token reasons.

const (
	// Default unspecified type.
	TokenProperties_INVALID_REASON_UNSPECIFIED TokenProperties_InvalidReason = 0
	// If the failure reason was not accounted for.
	TokenProperties_UNKNOWN_INVALID_REASON TokenProperties_InvalidReason = 1
	// The provided user verification token was malformed.
	TokenProperties_MALFORMED TokenProperties_InvalidReason = 2
	// The user verification token had expired.
	TokenProperties_EXPIRED TokenProperties_InvalidReason = 3
	// The user verification had already been seen.
	TokenProperties_DUPE TokenProperties_InvalidReason = 4
	// The user verification token was not present.
	TokenProperties_MISSING TokenProperties_InvalidReason = 5
)

func (TokenProperties_InvalidReason) EnumDescriptor

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

func (TokenProperties_InvalidReason) String

type UnimplementedRecaptchaEnterpriseServiceServer

type UnimplementedRecaptchaEnterpriseServiceServer struct {
}

UnimplementedRecaptchaEnterpriseServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedRecaptchaEnterpriseServiceServer) AnnotateAssessment

func (*UnimplementedRecaptchaEnterpriseServiceServer) CreateAssessment

func (*UnimplementedRecaptchaEnterpriseServiceServer) CreateKey

func (*UnimplementedRecaptchaEnterpriseServiceServer) DeleteKey

func (*UnimplementedRecaptchaEnterpriseServiceServer) GetKey

func (*UnimplementedRecaptchaEnterpriseServiceServer) ListKeys

func (*UnimplementedRecaptchaEnterpriseServiceServer) UpdateKey

type UpdateKeyRequest

type UpdateKeyRequest struct {
	// Required. The key to update.
	Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Optional. The mask to control which field of the key get updated. If the mask is not
	// present, all fields will be updated.
	UpdateMask           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

The update key request message.

func (*UpdateKeyRequest) Descriptor

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

func (*UpdateKeyRequest) GetKey

func (m *UpdateKeyRequest) GetKey() *Key

func (*UpdateKeyRequest) GetUpdateMask

func (m *UpdateKeyRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateKeyRequest) ProtoMessage

func (*UpdateKeyRequest) ProtoMessage()

func (*UpdateKeyRequest) Reset

func (m *UpdateKeyRequest) Reset()

func (*UpdateKeyRequest) String

func (m *UpdateKeyRequest) String() string

func (*UpdateKeyRequest) XXX_DiscardUnknown

func (m *UpdateKeyRequest) XXX_DiscardUnknown()

func (*UpdateKeyRequest) XXX_Marshal

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

func (*UpdateKeyRequest) XXX_Merge

func (m *UpdateKeyRequest) XXX_Merge(src proto.Message)

func (*UpdateKeyRequest) XXX_Size

func (m *UpdateKeyRequest) XXX_Size() int

func (*UpdateKeyRequest) XXX_Unmarshal

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

type WebKeySettings

type WebKeySettings struct {
	// If set to true, it means allowed_domains will not be enforced.
	AllowAllDomains bool `protobuf:"varint,3,opt,name=allow_all_domains,json=allowAllDomains,proto3" json:"allow_all_domains,omitempty"`
	// Domains or subdomains of websites allowed to use the key. All subdomains
	// of an allowed domain are automatically allowed. A valid domain requires a
	// host and must not include any path, port, query or fragment.
	// Examples: 'example.com' or 'subdomain.example.com'
	AllowedDomains []string `protobuf:"bytes,1,rep,name=allowed_domains,json=allowedDomains,proto3" json:"allowed_domains,omitempty"`
	// Required. Whether this key can be used on AMP (Accelerated Mobile Pages) websites.
	AllowAmpTraffic bool `protobuf:"varint,2,opt,name=allow_amp_traffic,json=allowAmpTraffic,proto3" json:"allow_amp_traffic,omitempty"`
	// Required. Describes how this key is integrated with the website.
	IntegrationType WebKeySettings_IntegrationType `` /* 179-byte string literal not displayed */
	// Settings for the frequency and difficulty at which this key triggers
	// captcha challenges. This should only be specified for IntegrationTypes
	// CHECKBOX and INVISIBLE.
	ChallengeSecurityPreference WebKeySettings_ChallengeSecurityPreference `` /* 229-byte string literal not displayed */
	XXX_NoUnkeyedLiteral        struct{}                                   `json:"-"`
	XXX_unrecognized            []byte                                     `json:"-"`
	XXX_sizecache               int32                                      `json:"-"`
}

Settings specific to keys that can be used by websites.

func (*WebKeySettings) Descriptor

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

func (*WebKeySettings) GetAllowAllDomains

func (m *WebKeySettings) GetAllowAllDomains() bool

func (*WebKeySettings) GetAllowAmpTraffic

func (m *WebKeySettings) GetAllowAmpTraffic() bool

func (*WebKeySettings) GetAllowedDomains

func (m *WebKeySettings) GetAllowedDomains() []string

func (*WebKeySettings) GetChallengeSecurityPreference

func (m *WebKeySettings) GetChallengeSecurityPreference() WebKeySettings_ChallengeSecurityPreference

func (*WebKeySettings) GetIntegrationType

func (m *WebKeySettings) GetIntegrationType() WebKeySettings_IntegrationType

func (*WebKeySettings) ProtoMessage

func (*WebKeySettings) ProtoMessage()

func (*WebKeySettings) Reset

func (m *WebKeySettings) Reset()

func (*WebKeySettings) String

func (m *WebKeySettings) String() string

func (*WebKeySettings) XXX_DiscardUnknown

func (m *WebKeySettings) XXX_DiscardUnknown()

func (*WebKeySettings) XXX_Marshal

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

func (*WebKeySettings) XXX_Merge

func (m *WebKeySettings) XXX_Merge(src proto.Message)

func (*WebKeySettings) XXX_Size

func (m *WebKeySettings) XXX_Size() int

func (*WebKeySettings) XXX_Unmarshal

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

type WebKeySettings_ChallengeSecurityPreference

type WebKeySettings_ChallengeSecurityPreference int32

Enum that represents the possible challenge frequency and difficulty configurations for a web key.

const (
	// Default type that indicates this enum hasn't been specified.
	WebKeySettings_CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED WebKeySettings_ChallengeSecurityPreference = 0
	// Key tends to show fewer and easier challenges.
	WebKeySettings_USABILITY WebKeySettings_ChallengeSecurityPreference = 1
	// Key tends to show balanced (in amount and difficulty) challenges.
	WebKeySettings_BALANCE WebKeySettings_ChallengeSecurityPreference = 2
	// Key tends to show more and harder challenges.
	WebKeySettings_SECURITY WebKeySettings_ChallengeSecurityPreference = 3
)

func (WebKeySettings_ChallengeSecurityPreference) EnumDescriptor

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

func (WebKeySettings_ChallengeSecurityPreference) String

type WebKeySettings_IntegrationType

type WebKeySettings_IntegrationType int32

Enum that represents the integration types for web keys.

const (
	// Default type that indicates this enum hasn't been specified. This is not
	// a valid IntegrationType, one of the other types must be specified
	// instead.
	WebKeySettings_INTEGRATION_TYPE_UNSPECIFIED WebKeySettings_IntegrationType = 0
	// Only used to produce scores. It doesn't display the "I'm not a robot"
	// checkbox and never shows captcha challenges.
	WebKeySettings_SCORE WebKeySettings_IntegrationType = 1
	// Displays the "I'm not a robot" checkbox and may show captcha challenges
	// after it is checked.
	WebKeySettings_CHECKBOX WebKeySettings_IntegrationType = 2
	// Doesn't display the "I'm not a robot" checkbox, but may show captcha
	// challenges after risk analysis.
	WebKeySettings_INVISIBLE WebKeySettings_IntegrationType = 3
)

func (WebKeySettings_IntegrationType) EnumDescriptor

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

func (WebKeySettings_IntegrationType) String

Jump to

Keyboard shortcuts

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