Variables
TransactionEvent_TransactionEventType_name, TransactionEvent_TransactionEventType_value
var (
TransactionEvent_TransactionEventType_name = map[int32]string{
0: "TRANSACTION_EVENT_TYPE_UNSPECIFIED",
1: "MERCHANT_APPROVE",
2: "MERCHANT_DENY",
3: "MANUAL_REVIEW",
4: "AUTHORIZATION",
5: "AUTHORIZATION_DECLINE",
6: "PAYMENT_CAPTURE",
7: "PAYMENT_CAPTURE_DECLINE",
8: "CANCEL",
9: "CHARGEBACK_INQUIRY",
10: "CHARGEBACK_ALERT",
11: "FRAUD_NOTIFICATION",
12: "CHARGEBACK",
13: "CHARGEBACK_REPRESENTMENT",
14: "CHARGEBACK_REVERSE",
15: "REFUND_REQUEST",
16: "REFUND_DECLINE",
17: "REFUND",
18: "REFUND_REVERSE",
}
TransactionEvent_TransactionEventType_value = map[string]int32{
"TRANSACTION_EVENT_TYPE_UNSPECIFIED": 0,
"MERCHANT_APPROVE": 1,
"MERCHANT_DENY": 2,
"MANUAL_REVIEW": 3,
"AUTHORIZATION": 4,
"AUTHORIZATION_DECLINE": 5,
"PAYMENT_CAPTURE": 6,
"PAYMENT_CAPTURE_DECLINE": 7,
"CANCEL": 8,
"CHARGEBACK_INQUIRY": 9,
"CHARGEBACK_ALERT": 10,
"FRAUD_NOTIFICATION": 11,
"CHARGEBACK": 12,
"CHARGEBACK_REPRESENTMENT": 13,
"CHARGEBACK_REVERSE": 14,
"REFUND_REQUEST": 15,
"REFUND_DECLINE": 16,
"REFUND": 17,
"REFUND_REVERSE": 18,
}
)
Enum value maps for TransactionEvent_TransactionEventType.
AnnotateAssessmentRequest_Annotation_name, AnnotateAssessmentRequest_Annotation_value
var (
AnnotateAssessmentRequest_Annotation_name = map[int32]string{
0: "ANNOTATION_UNSPECIFIED",
1: "LEGITIMATE",
2: "FRAUDULENT",
3: "PASSWORD_CORRECT",
4: "PASSWORD_INCORRECT",
}
AnnotateAssessmentRequest_Annotation_value = map[string]int32{
"ANNOTATION_UNSPECIFIED": 0,
"LEGITIMATE": 1,
"FRAUDULENT": 2,
"PASSWORD_CORRECT": 3,
"PASSWORD_INCORRECT": 4,
}
)
Enum value maps for AnnotateAssessmentRequest_Annotation.
AnnotateAssessmentRequest_Reason_name, AnnotateAssessmentRequest_Reason_value
var (
AnnotateAssessmentRequest_Reason_name = map[int32]string{
0: "REASON_UNSPECIFIED",
1: "CHARGEBACK",
8: "CHARGEBACK_FRAUD",
9: "CHARGEBACK_DISPUTE",
10: "REFUND",
11: "REFUND_FRAUD",
12: "TRANSACTION_ACCEPTED",
13: "TRANSACTION_DECLINED",
2: "PAYMENT_HEURISTICS",
7: "INITIATED_TWO_FACTOR",
3: "PASSED_TWO_FACTOR",
4: "FAILED_TWO_FACTOR",
5: "CORRECT_PASSWORD",
6: "INCORRECT_PASSWORD",
14: "SOCIAL_SPAM",
}
AnnotateAssessmentRequest_Reason_value = map[string]int32{
"REASON_UNSPECIFIED": 0,
"CHARGEBACK": 1,
"CHARGEBACK_FRAUD": 8,
"CHARGEBACK_DISPUTE": 9,
"REFUND": 10,
"REFUND_FRAUD": 11,
"TRANSACTION_ACCEPTED": 12,
"TRANSACTION_DECLINED": 13,
"PAYMENT_HEURISTICS": 2,
"INITIATED_TWO_FACTOR": 7,
"PASSED_TWO_FACTOR": 3,
"FAILED_TWO_FACTOR": 4,
"CORRECT_PASSWORD": 5,
"INCORRECT_PASSWORD": 6,
"SOCIAL_SPAM": 14,
}
)
Enum value maps for AnnotateAssessmentRequest_Reason.
AccountVerificationInfo_Result_name, AccountVerificationInfo_Result_value
var (
AccountVerificationInfo_Result_name = map[int32]string{
0: "RESULT_UNSPECIFIED",
1: "SUCCESS_USER_VERIFIED",
2: "ERROR_USER_NOT_VERIFIED",
3: "ERROR_SITE_ONBOARDING_INCOMPLETE",
4: "ERROR_RECIPIENT_NOT_ALLOWED",
5: "ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED",
6: "ERROR_CRITICAL_INTERNAL",
7: "ERROR_CUSTOMER_QUOTA_EXHAUSTED",
8: "ERROR_VERIFICATION_BYPASSED",
9: "ERROR_VERDICT_MISMATCH",
}
AccountVerificationInfo_Result_value = map[string]int32{
"RESULT_UNSPECIFIED": 0,
"SUCCESS_USER_VERIFIED": 1,
"ERROR_USER_NOT_VERIFIED": 2,
"ERROR_SITE_ONBOARDING_INCOMPLETE": 3,
"ERROR_RECIPIENT_NOT_ALLOWED": 4,
"ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED": 5,
"ERROR_CRITICAL_INTERNAL": 6,
"ERROR_CUSTOMER_QUOTA_EXHAUSTED": 7,
"ERROR_VERIFICATION_BYPASSED": 8,
"ERROR_VERDICT_MISMATCH": 9,
}
)
Enum value maps for AccountVerificationInfo_Result.
Event_FraudPrevention_name, Event_FraudPrevention_value
var (
Event_FraudPrevention_name = map[int32]string{
0: "FRAUD_PREVENTION_UNSPECIFIED",
1: "ENABLED",
2: "DISABLED",
}
Event_FraudPrevention_value = map[string]int32{
"FRAUD_PREVENTION_UNSPECIFIED": 0,
"ENABLED": 1,
"DISABLED": 2,
}
)
Enum value maps for Event_FraudPrevention.
RiskAnalysis_ClassificationReason_name, RiskAnalysis_ClassificationReason_value
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",
6: "SUSPECTED_CARDING",
7: "SUSPECTED_CHARGEBACK",
}
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,
"SUSPECTED_CARDING": 6,
"SUSPECTED_CHARGEBACK": 7,
}
)
Enum value maps for RiskAnalysis_ClassificationReason.
TokenProperties_InvalidReason_name, TokenProperties_InvalidReason_value
var (
TokenProperties_InvalidReason_name = map[int32]string{
0: "INVALID_REASON_UNSPECIFIED",
1: "UNKNOWN_INVALID_REASON",
2: "MALFORMED",
3: "EXPIRED",
4: "DUPE",
5: "MISSING",
6: "BROWSER_ERROR",
}
TokenProperties_InvalidReason_value = map[string]int32{
"INVALID_REASON_UNSPECIFIED": 0,
"UNKNOWN_INVALID_REASON": 1,
"MALFORMED": 2,
"EXPIRED": 3,
"DUPE": 4,
"MISSING": 5,
"BROWSER_ERROR": 6,
}
)
Enum value maps for TokenProperties_InvalidReason.
FraudSignals_CardSignals_CardLabel_name, FraudSignals_CardSignals_CardLabel_value
var (
FraudSignals_CardSignals_CardLabel_name = map[int32]string{
0: "CARD_LABEL_UNSPECIFIED",
1: "PREPAID",
2: "VIRTUAL",
3: "UNEXPECTED_LOCATION",
}
FraudSignals_CardSignals_CardLabel_value = map[string]int32{
"CARD_LABEL_UNSPECIFIED": 0,
"PREPAID": 1,
"VIRTUAL": 2,
"UNEXPECTED_LOCATION": 3,
}
)
Enum value maps for FraudSignals_CardSignals_CardLabel.
SmsTollFraudVerdict_SmsTollFraudReason_name, SmsTollFraudVerdict_SmsTollFraudReason_value
var (
SmsTollFraudVerdict_SmsTollFraudReason_name = map[int32]string{
0: "SMS_TOLL_FRAUD_REASON_UNSPECIFIED",
1: "INVALID_PHONE_NUMBER",
}
SmsTollFraudVerdict_SmsTollFraudReason_value = map[string]int32{
"SMS_TOLL_FRAUD_REASON_UNSPECIFIED": 0,
"INVALID_PHONE_NUMBER": 1,
}
)
Enum value maps for SmsTollFraudVerdict_SmsTollFraudReason.
AccountDefenderAssessment_AccountDefenderLabel_name, AccountDefenderAssessment_AccountDefenderLabel_value
var (
AccountDefenderAssessment_AccountDefenderLabel_name = map[int32]string{
0: "ACCOUNT_DEFENDER_LABEL_UNSPECIFIED",
1: "PROFILE_MATCH",
2: "SUSPICIOUS_LOGIN_ACTIVITY",
3: "SUSPICIOUS_ACCOUNT_CREATION",
4: "RELATED_ACCOUNTS_NUMBER_HIGH",
}
AccountDefenderAssessment_AccountDefenderLabel_value = map[string]int32{
"ACCOUNT_DEFENDER_LABEL_UNSPECIFIED": 0,
"PROFILE_MATCH": 1,
"SUSPICIOUS_LOGIN_ACTIVITY": 2,
"SUSPICIOUS_ACCOUNT_CREATION": 3,
"RELATED_ACCOUNTS_NUMBER_HIGH": 4,
}
)
Enum value maps for AccountDefenderAssessment_AccountDefenderLabel.
TestingOptions_TestingChallenge_name, TestingOptions_TestingChallenge_value
var (
TestingOptions_TestingChallenge_name = map[int32]string{
0: "TESTING_CHALLENGE_UNSPECIFIED",
1: "NOCAPTCHA",
2: "UNSOLVABLE_CHALLENGE",
}
TestingOptions_TestingChallenge_value = map[string]int32{
"TESTING_CHALLENGE_UNSPECIFIED": 0,
"NOCAPTCHA": 1,
"UNSOLVABLE_CHALLENGE": 2,
}
)
Enum value maps for TestingOptions_TestingChallenge.
WebKeySettings_IntegrationType_name, WebKeySettings_IntegrationType_value
var (
WebKeySettings_IntegrationType_name = map[int32]string{
0: "INTEGRATION_TYPE_UNSPECIFIED",
1: "SCORE",
2: "CHECKBOX",
3: "INVISIBLE",
}
WebKeySettings_IntegrationType_value = map[string]int32{
"INTEGRATION_TYPE_UNSPECIFIED": 0,
"SCORE": 1,
"CHECKBOX": 2,
"INVISIBLE": 3,
}
)
Enum value maps for WebKeySettings_IntegrationType.
WebKeySettings_ChallengeSecurityPreference_name, WebKeySettings_ChallengeSecurityPreference_value
var (
WebKeySettings_ChallengeSecurityPreference_name = map[int32]string{
0: "CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED",
1: "USABILITY",
2: "BALANCE",
3: "SECURITY",
}
WebKeySettings_ChallengeSecurityPreference_value = map[string]int32{
"CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED": 0,
"USABILITY": 1,
"BALANCE": 2,
"SECURITY": 3,
}
)
Enum value maps for WebKeySettings_ChallengeSecurityPreference.
WafSettings_WafFeature_name, WafSettings_WafFeature_value
var (
WafSettings_WafFeature_name = map[int32]string{
0: "WAF_FEATURE_UNSPECIFIED",
1: "CHALLENGE_PAGE",
2: "SESSION_TOKEN",
3: "ACTION_TOKEN",
5: "EXPRESS",
}
WafSettings_WafFeature_value = map[string]int32{
"WAF_FEATURE_UNSPECIFIED": 0,
"CHALLENGE_PAGE": 1,
"SESSION_TOKEN": 2,
"ACTION_TOKEN": 3,
"EXPRESS": 5,
}
)
Enum value maps for WafSettings_WafFeature.
WafSettings_WafService_name, WafSettings_WafService_value
var (
WafSettings_WafService_name = map[int32]string{
0: "WAF_SERVICE_UNSPECIFIED",
1: "CA",
3: "FASTLY",
4: "CLOUDFLARE",
}
WafSettings_WafService_value = map[string]int32{
"WAF_SERVICE_UNSPECIFIED": 0,
"CA": 1,
"FASTLY": 3,
"CLOUDFLARE": 4,
}
)
Enum value maps for WafSettings_WafService.
File_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto
var File_google_cloud_recaptchaenterprise_v1_recaptchaenterprise_proto protoreflect.FileDescriptor
Functions
func RegisterRecaptchaEnterpriseServiceServer
func RegisterRecaptchaEnterpriseServiceServer(s *grpc.Server, srv RecaptchaEnterpriseServiceServer)
AccountDefenderAssessment
type AccountDefenderAssessment struct {
Labels []AccountDefenderAssessment_AccountDefenderLabel "" /* 161 byte string literal not displayed */
}
Account defender risk assessment.
func (*AccountDefenderAssessment) Descriptor
func (*AccountDefenderAssessment) Descriptor() ([]byte, []int)
Deprecated: Use AccountDefenderAssessment.ProtoReflect.Descriptor instead.
func (*AccountDefenderAssessment) GetLabels
func (x *AccountDefenderAssessment) GetLabels() []AccountDefenderAssessment_AccountDefenderLabel
func (*AccountDefenderAssessment) ProtoMessage
func (*AccountDefenderAssessment) ProtoMessage()
func (*AccountDefenderAssessment) ProtoReflect
func (x *AccountDefenderAssessment) ProtoReflect() protoreflect.Message
func (*AccountDefenderAssessment) Reset
func (x *AccountDefenderAssessment) Reset()
func (*AccountDefenderAssessment) String
func (x *AccountDefenderAssessment) String() string
AccountDefenderAssessment_AccountDefenderLabel
type AccountDefenderAssessment_AccountDefenderLabel int32
Labels returned by account defender for this request.
AccountDefenderAssessment_ACCOUNT_DEFENDER_LABEL_UNSPECIFIED, AccountDefenderAssessment_PROFILE_MATCH, AccountDefenderAssessment_SUSPICIOUS_LOGIN_ACTIVITY, AccountDefenderAssessment_SUSPICIOUS_ACCOUNT_CREATION, AccountDefenderAssessment_RELATED_ACCOUNTS_NUMBER_HIGH
const (
// Default unspecified type.
AccountDefenderAssessment_ACCOUNT_DEFENDER_LABEL_UNSPECIFIED AccountDefenderAssessment_AccountDefenderLabel = 0
// The request matches a known good profile for the user.
AccountDefenderAssessment_PROFILE_MATCH AccountDefenderAssessment_AccountDefenderLabel = 1
// The request is potentially a suspicious login event and must be further
// verified either through multi-factor authentication or another system.
AccountDefenderAssessment_SUSPICIOUS_LOGIN_ACTIVITY AccountDefenderAssessment_AccountDefenderLabel = 2
// The request matched a profile that previously had suspicious account
// creation behavior. This can mean that this is a fake account.
AccountDefenderAssessment_SUSPICIOUS_ACCOUNT_CREATION AccountDefenderAssessment_AccountDefenderLabel = 3
// The account in the request has a high number of related accounts. It does
// not necessarily imply that the account is bad but can require further
// investigation.
AccountDefenderAssessment_RELATED_ACCOUNTS_NUMBER_HIGH AccountDefenderAssessment_AccountDefenderLabel = 4
)
func (AccountDefenderAssessment_AccountDefenderLabel) Descriptor
func (AccountDefenderAssessment_AccountDefenderLabel) Descriptor() protoreflect.EnumDescriptor
func (AccountDefenderAssessment_AccountDefenderLabel) Enum
func (x AccountDefenderAssessment_AccountDefenderLabel) Enum() *AccountDefenderAssessment_AccountDefenderLabel
func (AccountDefenderAssessment_AccountDefenderLabel) EnumDescriptor
func (AccountDefenderAssessment_AccountDefenderLabel) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccountDefenderAssessment_AccountDefenderLabel.Descriptor instead.
func (AccountDefenderAssessment_AccountDefenderLabel) Number
func (x AccountDefenderAssessment_AccountDefenderLabel) Number() protoreflect.EnumNumber
func (AccountDefenderAssessment_AccountDefenderLabel) String
func (x AccountDefenderAssessment_AccountDefenderLabel) String() string
func (AccountDefenderAssessment_AccountDefenderLabel) Type
AccountVerificationInfo
type AccountVerificationInfo struct {
Endpoints []*EndpointVerificationInfo `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
LatestVerificationResult AccountVerificationInfo_Result "" /* 208 byte string literal not displayed */
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
}
Information about account verification, used for identity verification.
func (*AccountVerificationInfo) Descriptor
func (*AccountVerificationInfo) Descriptor() ([]byte, []int)
Deprecated: Use AccountVerificationInfo.ProtoReflect.Descriptor instead.
func (*AccountVerificationInfo) GetEndpoints
func (x *AccountVerificationInfo) GetEndpoints() []*EndpointVerificationInfo
func (*AccountVerificationInfo) GetLanguageCode
func (x *AccountVerificationInfo) GetLanguageCode() string
func (*AccountVerificationInfo) GetLatestVerificationResult
func (x *AccountVerificationInfo) GetLatestVerificationResult() AccountVerificationInfo_Result
func (*AccountVerificationInfo) GetUsername
func (x *AccountVerificationInfo) GetUsername() string
Deprecated: Marked as deprecated in google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto.
func (*AccountVerificationInfo) ProtoMessage
func (*AccountVerificationInfo) ProtoMessage()
func (*AccountVerificationInfo) ProtoReflect
func (x *AccountVerificationInfo) ProtoReflect() protoreflect.Message
func (*AccountVerificationInfo) Reset
func (x *AccountVerificationInfo) Reset()
func (*AccountVerificationInfo) String
func (x *AccountVerificationInfo) String() string
AccountVerificationInfo_Result
type AccountVerificationInfo_Result int32
Result of the account verification as contained in the verdict token issued at the end of the verification flow.
AccountVerificationInfo_RESULT_UNSPECIFIED, AccountVerificationInfo_SUCCESS_USER_VERIFIED, AccountVerificationInfo_ERROR_USER_NOT_VERIFIED, AccountVerificationInfo_ERROR_SITE_ONBOARDING_INCOMPLETE, AccountVerificationInfo_ERROR_RECIPIENT_NOT_ALLOWED, AccountVerificationInfo_ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED, AccountVerificationInfo_ERROR_CRITICAL_INTERNAL, AccountVerificationInfo_ERROR_CUSTOMER_QUOTA_EXHAUSTED, AccountVerificationInfo_ERROR_VERIFICATION_BYPASSED, AccountVerificationInfo_ERROR_VERDICT_MISMATCH
const (
// No information about the latest account verification.
AccountVerificationInfo_RESULT_UNSPECIFIED AccountVerificationInfo_Result = 0
// The user was successfully verified. This means the account verification
// challenge was successfully completed.
AccountVerificationInfo_SUCCESS_USER_VERIFIED AccountVerificationInfo_Result = 1
// The user failed the verification challenge.
AccountVerificationInfo_ERROR_USER_NOT_VERIFIED AccountVerificationInfo_Result = 2
// The site is not properly onboarded to use the account verification
// feature.
AccountVerificationInfo_ERROR_SITE_ONBOARDING_INCOMPLETE AccountVerificationInfo_Result = 3
// The recipient is not allowed for account verification. This can occur
// during integration but should not occur in production.
AccountVerificationInfo_ERROR_RECIPIENT_NOT_ALLOWED AccountVerificationInfo_Result = 4
// The recipient has already been sent too many verification codes in a
// short amount of time.
AccountVerificationInfo_ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED AccountVerificationInfo_Result = 5
// The verification flow could not be completed due to a critical internal
// error.
AccountVerificationInfo_ERROR_CRITICAL_INTERNAL AccountVerificationInfo_Result = 6
// The client has exceeded their two factor request quota for this period of
// time.
AccountVerificationInfo_ERROR_CUSTOMER_QUOTA_EXHAUSTED AccountVerificationInfo_Result = 7
// The request cannot be processed at the time because of an incident. This
// bypass can be restricted to a problematic destination email domain, a
// customer, or could affect the entire service.
AccountVerificationInfo_ERROR_VERIFICATION_BYPASSED AccountVerificationInfo_Result = 8
// The request parameters do not match with the token provided and cannot be
// processed.
AccountVerificationInfo_ERROR_VERDICT_MISMATCH AccountVerificationInfo_Result = 9
)
func (AccountVerificationInfo_Result) Descriptor
func (AccountVerificationInfo_Result) Descriptor() protoreflect.EnumDescriptor
func (AccountVerificationInfo_Result) Enum
func (x AccountVerificationInfo_Result) Enum() *AccountVerificationInfo_Result
func (AccountVerificationInfo_Result) EnumDescriptor
func (AccountVerificationInfo_Result) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccountVerificationInfo_Result.Descriptor instead.
func (AccountVerificationInfo_Result) Number
func (x AccountVerificationInfo_Result) Number() protoreflect.EnumNumber
func (AccountVerificationInfo_Result) String
func (x AccountVerificationInfo_Result) String() string
func (AccountVerificationInfo_Result) Type
func (AccountVerificationInfo_Result) Type() protoreflect.EnumType
AndroidKeySettings
type AndroidKeySettings struct {
AllowAllPackageNames bool `protobuf:"varint,2,opt,name=allow_all_package_names,json=allowAllPackageNames,proto3" json:"allow_all_package_names,omitempty"`
AllowedPackageNames []string `protobuf:"bytes,1,rep,name=allowed_package_names,json=allowedPackageNames,proto3" json:"allowed_package_names,omitempty"`
SupportNonGoogleAppStoreDistribution bool "" /* 178 byte string literal not displayed */
}
Settings specific to keys that can be used by Android apps.
func (*AndroidKeySettings) Descriptor
func (*AndroidKeySettings) Descriptor() ([]byte, []int)
Deprecated: Use AndroidKeySettings.ProtoReflect.Descriptor instead.
func (*AndroidKeySettings) GetAllowAllPackageNames
func (x *AndroidKeySettings) GetAllowAllPackageNames() bool
func (*AndroidKeySettings) GetAllowedPackageNames
func (x *AndroidKeySettings) GetAllowedPackageNames() []string
func (*AndroidKeySettings) GetSupportNonGoogleAppStoreDistribution
func (x *AndroidKeySettings) GetSupportNonGoogleAppStoreDistribution() bool
func (*AndroidKeySettings) ProtoMessage
func (*AndroidKeySettings) ProtoMessage()
func (*AndroidKeySettings) ProtoReflect
func (x *AndroidKeySettings) ProtoReflect() protoreflect.Message
func (*AndroidKeySettings) Reset
func (x *AndroidKeySettings) Reset()
func (*AndroidKeySettings) String
func (x *AndroidKeySettings) String() string
AnnotateAssessmentRequest
type AnnotateAssessmentRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Annotation AnnotateAssessmentRequest_Annotation "" /* 152 byte string literal not displayed */
Reasons []AnnotateAssessmentRequest_Reason "" /* 149 byte string literal not displayed */
AccountId string `protobuf:"bytes,7,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
HashedAccountId []byte `protobuf:"bytes,4,opt,name=hashed_account_id,json=hashedAccountId,proto3" json:"hashed_account_id,omitempty"`
TransactionEvent *TransactionEvent `protobuf:"bytes,5,opt,name=transaction_event,json=transactionEvent,proto3" json:"transaction_event,omitempty"`
}
The request message to annotate an Assessment.
func (*AnnotateAssessmentRequest) Descriptor
func (*AnnotateAssessmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use AnnotateAssessmentRequest.ProtoReflect.Descriptor instead.
func (*AnnotateAssessmentRequest) GetAccountId
func (x *AnnotateAssessmentRequest) GetAccountId() string
func (*AnnotateAssessmentRequest) GetAnnotation
func (x *AnnotateAssessmentRequest) GetAnnotation() AnnotateAssessmentRequest_Annotation
func (*AnnotateAssessmentRequest) GetHashedAccountId
func (x *AnnotateAssessmentRequest) GetHashedAccountId() []byte
func (*AnnotateAssessmentRequest) GetName
func (x *AnnotateAssessmentRequest) GetName() string
func (*AnnotateAssessmentRequest) GetReasons
func (x *AnnotateAssessmentRequest) GetReasons() []AnnotateAssessmentRequest_Reason
func (*AnnotateAssessmentRequest) GetTransactionEvent
func (x *AnnotateAssessmentRequest) GetTransactionEvent() *TransactionEvent
func (*AnnotateAssessmentRequest) ProtoMessage
func (*AnnotateAssessmentRequest) ProtoMessage()
func (*AnnotateAssessmentRequest) ProtoReflect
func (x *AnnotateAssessmentRequest) ProtoReflect() protoreflect.Message
func (*AnnotateAssessmentRequest) Reset
func (x *AnnotateAssessmentRequest) Reset()
func (*AnnotateAssessmentRequest) String
func (x *AnnotateAssessmentRequest) String() string
AnnotateAssessmentRequest_Annotation
type AnnotateAssessmentRequest_Annotation int32
Enum that represents the types of annotations.
AnnotateAssessmentRequest_ANNOTATION_UNSPECIFIED, AnnotateAssessmentRequest_LEGITIMATE, AnnotateAssessmentRequest_FRAUDULENT, AnnotateAssessmentRequest_PASSWORD_CORRECT, AnnotateAssessmentRequest_PASSWORD_INCORRECT
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. Deprecated, prefer indicating
// CORRECT_PASSWORD through the reasons field instead.
//
// Deprecated: Marked as deprecated in google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto.
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. Deprecated, prefer indicating
// INCORRECT_PASSWORD through the reasons field instead.
//
// Deprecated: Marked as deprecated in google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto.
AnnotateAssessmentRequest_PASSWORD_INCORRECT AnnotateAssessmentRequest_Annotation = 4
)
func (AnnotateAssessmentRequest_Annotation) Descriptor
func (AnnotateAssessmentRequest_Annotation) Descriptor() protoreflect.EnumDescriptor
func (AnnotateAssessmentRequest_Annotation) Enum
func (x AnnotateAssessmentRequest_Annotation) Enum() *AnnotateAssessmentRequest_Annotation
func (AnnotateAssessmentRequest_Annotation) EnumDescriptor
func (AnnotateAssessmentRequest_Annotation) EnumDescriptor() ([]byte, []int)
Deprecated: Use AnnotateAssessmentRequest_Annotation.Descriptor instead.
func (AnnotateAssessmentRequest_Annotation) Number
func (x AnnotateAssessmentRequest_Annotation) Number() protoreflect.EnumNumber
func (AnnotateAssessmentRequest_Annotation) String
func (x AnnotateAssessmentRequest_Annotation) String() string
func (AnnotateAssessmentRequest_Annotation) Type
func (AnnotateAssessmentRequest_Annotation) Type() protoreflect.EnumType
AnnotateAssessmentRequest_Reason
type AnnotateAssessmentRequest_Reason int32
Enum that represents potential reasons for annotating an assessment.
AnnotateAssessmentRequest_REASON_UNSPECIFIED, AnnotateAssessmentRequest_CHARGEBACK, AnnotateAssessmentRequest_CHARGEBACK_FRAUD, AnnotateAssessmentRequest_CHARGEBACK_DISPUTE, AnnotateAssessmentRequest_REFUND, AnnotateAssessmentRequest_REFUND_FRAUD, AnnotateAssessmentRequest_TRANSACTION_ACCEPTED, AnnotateAssessmentRequest_TRANSACTION_DECLINED, AnnotateAssessmentRequest_PAYMENT_HEURISTICS, AnnotateAssessmentRequest_INITIATED_TWO_FACTOR, AnnotateAssessmentRequest_PASSED_TWO_FACTOR, AnnotateAssessmentRequest_FAILED_TWO_FACTOR, AnnotateAssessmentRequest_CORRECT_PASSWORD, AnnotateAssessmentRequest_INCORRECT_PASSWORD, AnnotateAssessmentRequest_SOCIAL_SPAM
const (
// Default unspecified reason.
AnnotateAssessmentRequest_REASON_UNSPECIFIED AnnotateAssessmentRequest_Reason = 0
// Indicates that the transaction had a chargeback issued with no other
// details. When possible, specify the type by using CHARGEBACK_FRAUD or
// CHARGEBACK_DISPUTE instead.
AnnotateAssessmentRequest_CHARGEBACK AnnotateAssessmentRequest_Reason = 1
// Indicates that the transaction had a chargeback issued related to an
// alleged unauthorized transaction from the cardholder's perspective (for
// example, the card number was stolen).
AnnotateAssessmentRequest_CHARGEBACK_FRAUD AnnotateAssessmentRequest_Reason = 8
// Indicates that the transaction had a chargeback issued related to the
// cardholder having provided their card details but allegedly not being
// satisfied with the purchase (for example, misrepresentation, attempted
// cancellation).
AnnotateAssessmentRequest_CHARGEBACK_DISPUTE AnnotateAssessmentRequest_Reason = 9
// Indicates that the completed payment transaction was refunded by the
// seller.
AnnotateAssessmentRequest_REFUND AnnotateAssessmentRequest_Reason = 10
// Indicates that the completed payment transaction was determined to be
// fraudulent by the seller, and was cancelled and refunded as a result.
AnnotateAssessmentRequest_REFUND_FRAUD AnnotateAssessmentRequest_Reason = 11
// Indicates that the payment transaction was accepted, and the user was
// charged.
AnnotateAssessmentRequest_TRANSACTION_ACCEPTED AnnotateAssessmentRequest_Reason = 12
// Indicates that the payment transaction was declined, for example due to
// invalid card details.
AnnotateAssessmentRequest_TRANSACTION_DECLINED AnnotateAssessmentRequest_Reason = 13
// Indicates the transaction associated with the assessment is suspected of
// being fraudulent based on the payment method, billing details, shipping
// address or other transaction information.
AnnotateAssessmentRequest_PAYMENT_HEURISTICS AnnotateAssessmentRequest_Reason = 2
// Indicates that the user was served a 2FA challenge. An old assessment
// with `ENUM_VALUES.INITIATED_TWO_FACTOR` reason that has not been
// overwritten with `PASSED_TWO_FACTOR` is treated as an abandoned 2FA flow.
// This is equivalent to `FAILED_TWO_FACTOR`.
AnnotateAssessmentRequest_INITIATED_TWO_FACTOR AnnotateAssessmentRequest_Reason = 7
// Indicates that the user passed a 2FA challenge.
AnnotateAssessmentRequest_PASSED_TWO_FACTOR AnnotateAssessmentRequest_Reason = 3
// Indicates that the user failed a 2FA challenge.
AnnotateAssessmentRequest_FAILED_TWO_FACTOR AnnotateAssessmentRequest_Reason = 4
// Indicates the user provided the correct password.
AnnotateAssessmentRequest_CORRECT_PASSWORD AnnotateAssessmentRequest_Reason = 5
// Indicates the user provided an incorrect password.
AnnotateAssessmentRequest_INCORRECT_PASSWORD AnnotateAssessmentRequest_Reason = 6
// Indicates that the user sent unwanted and abusive messages to other users
// of the platform, such as spam, scams, phishing, or social engineering.
AnnotateAssessmentRequest_SOCIAL_SPAM AnnotateAssessmentRequest_Reason = 14
)
func (AnnotateAssessmentRequest_Reason) Descriptor
func (AnnotateAssessmentRequest_Reason) Descriptor() protoreflect.EnumDescriptor
func (AnnotateAssessmentRequest_Reason) Enum
func (x AnnotateAssessmentRequest_Reason) Enum() *AnnotateAssessmentRequest_Reason
func (AnnotateAssessmentRequest_Reason) EnumDescriptor
func (AnnotateAssessmentRequest_Reason) EnumDescriptor() ([]byte, []int)
Deprecated: Use AnnotateAssessmentRequest_Reason.Descriptor instead.
func (AnnotateAssessmentRequest_Reason) Number
func (x AnnotateAssessmentRequest_Reason) Number() protoreflect.EnumNumber
func (AnnotateAssessmentRequest_Reason) String
func (x AnnotateAssessmentRequest_Reason) String() string
func (AnnotateAssessmentRequest_Reason) Type
func (AnnotateAssessmentRequest_Reason) Type() protoreflect.EnumType
AnnotateAssessmentResponse
type AnnotateAssessmentResponse struct {
// contains filtered or unexported fields
}
Empty response for AnnotateAssessment.
func (*AnnotateAssessmentResponse) Descriptor
func (*AnnotateAssessmentResponse) Descriptor() ([]byte, []int)
Deprecated: Use AnnotateAssessmentResponse.ProtoReflect.Descriptor instead.
func (*AnnotateAssessmentResponse) ProtoMessage
func (*AnnotateAssessmentResponse) ProtoMessage()
func (*AnnotateAssessmentResponse) ProtoReflect
func (x *AnnotateAssessmentResponse) ProtoReflect() protoreflect.Message
func (*AnnotateAssessmentResponse) Reset
func (x *AnnotateAssessmentResponse) Reset()
func (*AnnotateAssessmentResponse) String
func (x *AnnotateAssessmentResponse) String() string
AppleDeveloperId
type AppleDeveloperId struct {
// Required. Input only. A private key (downloaded as a text file with a .p8
// file extension) generated for your Apple Developer account. Ensure that
// Apple DeviceCheck is enabled for the private key.
PrivateKey string `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
// Required. The Apple developer key ID (10-character string).
KeyId string `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
// Required. The Apple team ID (10-character string) owning the provisioning
// profile used to build your application.
TeamId string `protobuf:"bytes,3,opt,name=team_id,json=teamId,proto3" json:"team_id,omitempty"`
// contains filtered or unexported fields
}
Contains fields that are required to perform Apple-specific integrity checks.
func (*AppleDeveloperId) Descriptor
func (*AppleDeveloperId) Descriptor() ([]byte, []int)
Deprecated: Use AppleDeveloperId.ProtoReflect.Descriptor instead.
func (*AppleDeveloperId) GetKeyId
func (x *AppleDeveloperId) GetKeyId() string
func (*AppleDeveloperId) GetPrivateKey
func (x *AppleDeveloperId) GetPrivateKey() string
func (*AppleDeveloperId) GetTeamId
func (x *AppleDeveloperId) GetTeamId() string
func (*AppleDeveloperId) ProtoMessage
func (*AppleDeveloperId) ProtoMessage()
func (*AppleDeveloperId) ProtoReflect
func (x *AppleDeveloperId) ProtoReflect() protoreflect.Message
func (*AppleDeveloperId) Reset
func (x *AppleDeveloperId) Reset()
func (*AppleDeveloperId) String
func (x *AppleDeveloperId) String() string
Assessment
type Assessment struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Event *Event `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"`
RiskAnalysis *RiskAnalysis `protobuf:"bytes,3,opt,name=risk_analysis,json=riskAnalysis,proto3" json:"risk_analysis,omitempty"`
TokenProperties *TokenProperties `protobuf:"bytes,4,opt,name=token_properties,json=tokenProperties,proto3" json:"token_properties,omitempty"`
AccountVerification *AccountVerificationInfo `protobuf:"bytes,5,opt,name=account_verification,json=accountVerification,proto3" json:"account_verification,omitempty"`
AccountDefenderAssessment *AccountDefenderAssessment "" /* 138 byte string literal not displayed */
PrivatePasswordLeakVerification *PrivatePasswordLeakVerification "" /* 158 byte string literal not displayed */
FirewallPolicyAssessment *FirewallPolicyAssessment "" /* 136 byte string literal not displayed */
FraudPreventionAssessment *FraudPreventionAssessment "" /* 139 byte string literal not displayed */
FraudSignals *FraudSignals `protobuf:"bytes,13,opt,name=fraud_signals,json=fraudSignals,proto3" json:"fraud_signals,omitempty"`
PhoneFraudAssessment *PhoneFraudAssessment `protobuf:"bytes,12,opt,name=phone_fraud_assessment,json=phoneFraudAssessment,proto3" json:"phone_fraud_assessment,omitempty"`
}
A reCAPTCHA Enterprise assessment resource.
func (*Assessment) Descriptor
func (*Assessment) Descriptor() ([]byte, []int)
Deprecated: Use Assessment.ProtoReflect.Descriptor instead.
func (*Assessment) GetAccountDefenderAssessment
func (x *Assessment) GetAccountDefenderAssessment() *AccountDefenderAssessment
func (*Assessment) GetAccountVerification
func (x *Assessment) GetAccountVerification() *AccountVerificationInfo
func (*Assessment) GetEvent
func (x *Assessment) GetEvent() *Event
func (*Assessment) GetFirewallPolicyAssessment
func (x *Assessment) GetFirewallPolicyAssessment() *FirewallPolicyAssessment
func (*Assessment) GetFraudPreventionAssessment
func (x *Assessment) GetFraudPreventionAssessment() *FraudPreventionAssessment
func (*Assessment) GetFraudSignals
func (x *Assessment) GetFraudSignals() *FraudSignals
func (*Assessment) GetName
func (x *Assessment) GetName() string
func (*Assessment) GetPhoneFraudAssessment
func (x *Assessment) GetPhoneFraudAssessment() *PhoneFraudAssessment
func (*Assessment) GetPrivatePasswordLeakVerification
func (x *Assessment) GetPrivatePasswordLeakVerification() *PrivatePasswordLeakVerification
func (*Assessment) GetRiskAnalysis
func (x *Assessment) GetRiskAnalysis() *RiskAnalysis
func (*Assessment) GetTokenProperties
func (x *Assessment) GetTokenProperties() *TokenProperties
func (*Assessment) ProtoMessage
func (*Assessment) ProtoMessage()
func (*Assessment) ProtoReflect
func (x *Assessment) ProtoReflect() protoreflect.Message
func (*Assessment) Reset
func (x *Assessment) Reset()
func (*Assessment) String
func (x *Assessment) String() string
ChallengeMetrics
type ChallengeMetrics struct {
// Count of reCAPTCHA checkboxes or badges rendered. This is mostly equivalent
// to a count of pageloads for pages that include reCAPTCHA.
PageloadCount int64 `protobuf:"varint,1,opt,name=pageload_count,json=pageloadCount,proto3" json:"pageload_count,omitempty"`
// Count of nocaptchas (successful verification without a challenge) issued.
NocaptchaCount int64 `protobuf:"varint,2,opt,name=nocaptcha_count,json=nocaptchaCount,proto3" json:"nocaptcha_count,omitempty"`
// Count of submitted challenge solutions that were incorrect or otherwise
// deemed suspicious such that a subsequent challenge was triggered.
FailedCount int64 `protobuf:"varint,3,opt,name=failed_count,json=failedCount,proto3" json:"failed_count,omitempty"`
// Count of nocaptchas (successful verification without a challenge) plus
// submitted challenge solutions that were correct and resulted in
// verification.
PassedCount int64 `protobuf:"varint,4,opt,name=passed_count,json=passedCount,proto3" json:"passed_count,omitempty"`
// contains filtered or unexported fields
}
Metrics related to challenges.
func (*ChallengeMetrics) Descriptor
func (*ChallengeMetrics) Descriptor() ([]byte, []int)
Deprecated: Use ChallengeMetrics.ProtoReflect.Descriptor instead.
func (*ChallengeMetrics) GetFailedCount
func (x *ChallengeMetrics) GetFailedCount() int64
func (*ChallengeMetrics) GetNocaptchaCount
func (x *ChallengeMetrics) GetNocaptchaCount() int64
func (*ChallengeMetrics) GetPageloadCount
func (x *ChallengeMetrics) GetPageloadCount() int64
func (*ChallengeMetrics) GetPassedCount
func (x *ChallengeMetrics) GetPassedCount() int64
func (*ChallengeMetrics) ProtoMessage
func (*ChallengeMetrics) ProtoMessage()
func (*ChallengeMetrics) ProtoReflect
func (x *ChallengeMetrics) ProtoReflect() protoreflect.Message
func (*ChallengeMetrics) Reset
func (x *ChallengeMetrics) Reset()
func (*ChallengeMetrics) String
func (x *ChallengeMetrics) String() string
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"`
// contains filtered or unexported fields
}
The create assessment request message.
func (*CreateAssessmentRequest) Descriptor
func (*CreateAssessmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAssessmentRequest.ProtoReflect.Descriptor instead.
func (*CreateAssessmentRequest) GetAssessment
func (x *CreateAssessmentRequest) GetAssessment() *Assessment
func (*CreateAssessmentRequest) GetParent
func (x *CreateAssessmentRequest) GetParent() string
func (*CreateAssessmentRequest) ProtoMessage
func (*CreateAssessmentRequest) ProtoMessage()
func (*CreateAssessmentRequest) ProtoReflect
func (x *CreateAssessmentRequest) ProtoReflect() protoreflect.Message
func (*CreateAssessmentRequest) Reset
func (x *CreateAssessmentRequest) Reset()
func (*CreateAssessmentRequest) String
func (x *CreateAssessmentRequest) String() string
CreateFirewallPolicyRequest
type CreateFirewallPolicyRequest struct {
// Required. The name of the project this policy will apply to, in the format
// `projects/{project}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Information to create the policy.
FirewallPolicy *FirewallPolicy `protobuf:"bytes,2,opt,name=firewall_policy,json=firewallPolicy,proto3" json:"firewall_policy,omitempty"`
// contains filtered or unexported fields
}
The create firewall policy request message.
func (*CreateFirewallPolicyRequest) Descriptor
func (*CreateFirewallPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateFirewallPolicyRequest.ProtoReflect.Descriptor instead.
func (*CreateFirewallPolicyRequest) GetFirewallPolicy
func (x *CreateFirewallPolicyRequest) GetFirewallPolicy() *FirewallPolicy
func (*CreateFirewallPolicyRequest) GetParent
func (x *CreateFirewallPolicyRequest) GetParent() string
func (*CreateFirewallPolicyRequest) ProtoMessage
func (*CreateFirewallPolicyRequest) ProtoMessage()
func (*CreateFirewallPolicyRequest) ProtoReflect
func (x *CreateFirewallPolicyRequest) ProtoReflect() protoreflect.Message
func (*CreateFirewallPolicyRequest) Reset
func (x *CreateFirewallPolicyRequest) Reset()
func (*CreateFirewallPolicyRequest) String
func (x *CreateFirewallPolicyRequest) String() string
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"`
// contains filtered or unexported fields
}
The create key request message.
func (*CreateKeyRequest) Descriptor
func (*CreateKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateKeyRequest.ProtoReflect.Descriptor instead.
func (*CreateKeyRequest) GetKey
func (x *CreateKeyRequest) GetKey() *Key
func (*CreateKeyRequest) GetParent
func (x *CreateKeyRequest) GetParent() string
func (*CreateKeyRequest) ProtoMessage
func (*CreateKeyRequest) ProtoMessage()
func (*CreateKeyRequest) ProtoReflect
func (x *CreateKeyRequest) ProtoReflect() protoreflect.Message
func (*CreateKeyRequest) Reset
func (x *CreateKeyRequest) Reset()
func (*CreateKeyRequest) String
func (x *CreateKeyRequest) String() string
DeleteFirewallPolicyRequest
type DeleteFirewallPolicyRequest struct {
// Required. The name of the policy to be deleted, in the format
// `projects/{project}/firewallpolicies/{firewallpolicy}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The delete firewall policy request message.
func (*DeleteFirewallPolicyRequest) Descriptor
func (*DeleteFirewallPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFirewallPolicyRequest.ProtoReflect.Descriptor instead.
func (*DeleteFirewallPolicyRequest) GetName
func (x *DeleteFirewallPolicyRequest) GetName() string
func (*DeleteFirewallPolicyRequest) ProtoMessage
func (*DeleteFirewallPolicyRequest) ProtoMessage()
func (*DeleteFirewallPolicyRequest) ProtoReflect
func (x *DeleteFirewallPolicyRequest) ProtoReflect() protoreflect.Message
func (*DeleteFirewallPolicyRequest) Reset
func (x *DeleteFirewallPolicyRequest) Reset()
func (*DeleteFirewallPolicyRequest) String
func (x *DeleteFirewallPolicyRequest) String() string
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"`
// contains filtered or unexported fields
}
The delete key request message.
func (*DeleteKeyRequest) Descriptor
func (*DeleteKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteKeyRequest.ProtoReflect.Descriptor instead.
func (*DeleteKeyRequest) GetName
func (x *DeleteKeyRequest) GetName() string
func (*DeleteKeyRequest) ProtoMessage
func (*DeleteKeyRequest) ProtoMessage()
func (*DeleteKeyRequest) ProtoReflect
func (x *DeleteKeyRequest) ProtoReflect() protoreflect.Message
func (*DeleteKeyRequest) Reset
func (x *DeleteKeyRequest) Reset()
func (*DeleteKeyRequest) String
func (x *DeleteKeyRequest) String() string
EndpointVerificationInfo
type EndpointVerificationInfo struct {
// Types that are assignable to Endpoint:
//
// *EndpointVerificationInfo_EmailAddress
// *EndpointVerificationInfo_PhoneNumber
Endpoint isEndpointVerificationInfo_Endpoint `protobuf_oneof:"endpoint"`
// Output only. Token to provide to the client to trigger endpoint
// verification. It must be used within 15 minutes.
RequestToken string `protobuf:"bytes,3,opt,name=request_token,json=requestToken,proto3" json:"request_token,omitempty"`
// Output only. Timestamp of the last successful verification for the
// endpoint, if any.
LastVerificationTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_verification_time,json=lastVerificationTime,proto3" json:"last_verification_time,omitempty"`
// contains filtered or unexported fields
}
Information about a verification endpoint that can be used for 2FA.
func (*EndpointVerificationInfo) Descriptor
func (*EndpointVerificationInfo) Descriptor() ([]byte, []int)
Deprecated: Use EndpointVerificationInfo.ProtoReflect.Descriptor instead.
func (*EndpointVerificationInfo) GetEmailAddress
func (x *EndpointVerificationInfo) GetEmailAddress() string
func (*EndpointVerificationInfo) GetEndpoint
func (m *EndpointVerificationInfo) GetEndpoint() isEndpointVerificationInfo_Endpoint
func (*EndpointVerificationInfo) GetLastVerificationTime
func (x *EndpointVerificationInfo) GetLastVerificationTime() *timestamppb.Timestamp
func (*EndpointVerificationInfo) GetPhoneNumber
func (x *EndpointVerificationInfo) GetPhoneNumber() string
func (*EndpointVerificationInfo) GetRequestToken
func (x *EndpointVerificationInfo) GetRequestToken() string
func (*EndpointVerificationInfo) ProtoMessage
func (*EndpointVerificationInfo) ProtoMessage()
func (*EndpointVerificationInfo) ProtoReflect
func (x *EndpointVerificationInfo) ProtoReflect() protoreflect.Message
func (*EndpointVerificationInfo) Reset
func (x *EndpointVerificationInfo) Reset()
func (*EndpointVerificationInfo) String
func (x *EndpointVerificationInfo) String() string
EndpointVerificationInfo_EmailAddress
type EndpointVerificationInfo_EmailAddress struct {
// Email address for which to trigger a verification request.
EmailAddress string `protobuf:"bytes,1,opt,name=email_address,json=emailAddress,proto3,oneof"`
}
EndpointVerificationInfo_PhoneNumber
type EndpointVerificationInfo_PhoneNumber struct {
// Phone number for which to trigger a verification request. Should be given
// in E.164 format.
PhoneNumber string `protobuf:"bytes,2,opt,name=phone_number,json=phoneNumber,proto3,oneof"`
}
Event
type Event struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
SiteKey string `protobuf:"bytes,2,opt,name=site_key,json=siteKey,proto3" json:"site_key,omitempty"`
UserAgent string `protobuf:"bytes,3,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
UserIpAddress string `protobuf:"bytes,4,opt,name=user_ip_address,json=userIpAddress,proto3" json:"user_ip_address,omitempty"`
ExpectedAction string `protobuf:"bytes,5,opt,name=expected_action,json=expectedAction,proto3" json:"expected_action,omitempty"`
HashedAccountId []byte `protobuf:"bytes,6,opt,name=hashed_account_id,json=hashedAccountId,proto3" json:"hashed_account_id,omitempty"`
Express bool `protobuf:"varint,14,opt,name=express,proto3" json:"express,omitempty"`
RequestedUri string `protobuf:"bytes,8,opt,name=requested_uri,json=requestedUri,proto3" json:"requested_uri,omitempty"`
WafTokenAssessment bool `protobuf:"varint,9,opt,name=waf_token_assessment,json=wafTokenAssessment,proto3" json:"waf_token_assessment,omitempty"`
Ja3 string `protobuf:"bytes,10,opt,name=ja3,proto3" json:"ja3,omitempty"`
Headers []string `protobuf:"bytes,11,rep,name=headers,proto3" json:"headers,omitempty"`
FirewallPolicyEvaluation bool "" /* 137 byte string literal not displayed */
TransactionData *TransactionData `protobuf:"bytes,13,opt,name=transaction_data,json=transactionData,proto3" json:"transaction_data,omitempty"`
UserInfo *UserInfo `protobuf:"bytes,15,opt,name=user_info,json=userInfo,proto3" json:"user_info,omitempty"`
FraudPrevention Event_FraudPrevention "" /* 171 byte string literal not displayed */
}
The event being assessed.
func (*Event) Descriptor
Deprecated: Use Event.ProtoReflect.Descriptor instead.
func (*Event) GetExpectedAction
func (*Event) GetExpress
func (*Event) GetFirewallPolicyEvaluation
func (*Event) GetFraudPrevention
func (x *Event) GetFraudPrevention() Event_FraudPrevention
func (*Event) GetHashedAccountId
Deprecated: Marked as deprecated in google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto.
func (*Event) GetHeaders
func (*Event) GetJa3
func (*Event) GetRequestedUri
func (*Event) GetSiteKey
func (*Event) GetToken
func (*Event) GetTransactionData
func (x *Event) GetTransactionData() *TransactionData
func (*Event) GetUserAgent
func (*Event) GetUserInfo
func (*Event) GetUserIpAddress
func (*Event) GetWafTokenAssessment
func (*Event) ProtoMessage
func (*Event) ProtoMessage()
func (*Event) ProtoReflect
func (x *Event) ProtoReflect() protoreflect.Message
func (*Event) Reset
func (x *Event) Reset()
func (*Event) String
Event_FraudPrevention
type Event_FraudPrevention int32
Setting that controls Fraud Prevention assessments.
Event_FRAUD_PREVENTION_UNSPECIFIED, Event_ENABLED, Event_DISABLED
const (
// Default, unspecified setting. If opted in for automatic detection,
// `fraud_prevention_assessment` is returned based on the request.
// Otherwise, `fraud_prevention_assessment` is returned if
// `transaction_data` is present in the `Event` and Fraud Prevention is
// enabled in the Google Cloud console.
Event_FRAUD_PREVENTION_UNSPECIFIED Event_FraudPrevention = 0
// Enable Fraud Prevention for this assessment, if Fraud Prevention is
// enabled in the Google Cloud console.
Event_ENABLED Event_FraudPrevention = 1
// Disable Fraud Prevention for this assessment, regardless of opt-in
// status or Google Cloud console settings.
Event_DISABLED Event_FraudPrevention = 2
)
func (Event_FraudPrevention) Descriptor
func (Event_FraudPrevention) Descriptor() protoreflect.EnumDescriptor
func (Event_FraudPrevention) Enum
func (x Event_FraudPrevention) Enum() *Event_FraudPrevention
func (Event_FraudPrevention) EnumDescriptor
func (Event_FraudPrevention) EnumDescriptor() ([]byte, []int)
Deprecated: Use Event_FraudPrevention.Descriptor instead.
func (Event_FraudPrevention) Number
func (x Event_FraudPrevention) Number() protoreflect.EnumNumber
func (Event_FraudPrevention) String
func (x Event_FraudPrevention) String() string
func (Event_FraudPrevention) Type
func (Event_FraudPrevention) Type() protoreflect.EnumType
FirewallAction
type FirewallAction struct {
// Types that are assignable to FirewallActionOneof:
//
// *FirewallAction_Allow
// *FirewallAction_Block
// *FirewallAction_IncludeRecaptchaScript
// *FirewallAction_Redirect
// *FirewallAction_Substitute
// *FirewallAction_SetHeader
FirewallActionOneof isFirewallAction_FirewallActionOneof `protobuf_oneof:"firewall_action_oneof"`
// contains filtered or unexported fields
}
An individual action. Each action represents what to do if a policy matches.
func (*FirewallAction) Descriptor
func (*FirewallAction) Descriptor() ([]byte, []int)
Deprecated: Use FirewallAction.ProtoReflect.Descriptor instead.
func (*FirewallAction) GetAllow
func (x *FirewallAction) GetAllow() *FirewallAction_AllowAction
func (*FirewallAction) GetBlock
func (x *FirewallAction) GetBlock() *FirewallAction_BlockAction
func (*FirewallAction) GetFirewallActionOneof
func (m *FirewallAction) GetFirewallActionOneof() isFirewallAction_FirewallActionOneof
func (*FirewallAction) GetIncludeRecaptchaScript
func (x *FirewallAction) GetIncludeRecaptchaScript() *FirewallAction_IncludeRecaptchaScriptAction
func (*FirewallAction) GetRedirect
func (x *FirewallAction) GetRedirect() *FirewallAction_RedirectAction
func (*FirewallAction) GetSetHeader
func (x *FirewallAction) GetSetHeader() *FirewallAction_SetHeaderAction
func (*FirewallAction) GetSubstitute
func (x *FirewallAction) GetSubstitute() *FirewallAction_SubstituteAction
func (*FirewallAction) ProtoMessage
func (*FirewallAction) ProtoMessage()
func (*FirewallAction) ProtoReflect
func (x *FirewallAction) ProtoReflect() protoreflect.Message
func (*FirewallAction) Reset
func (x *FirewallAction) Reset()
func (*FirewallAction) String
func (x *FirewallAction) String() string
FirewallAction_Allow
type FirewallAction_Allow struct {
// The user request did not match any policy and should be allowed
// access to the requested resource.
Allow *FirewallAction_AllowAction `protobuf:"bytes,1,opt,name=allow,proto3,oneof"`
}
FirewallAction_AllowAction
type FirewallAction_AllowAction struct {
// contains filtered or unexported fields
}
An allow action continues processing a request unimpeded.
func (*FirewallAction_AllowAction) Descriptor
func (*FirewallAction_AllowAction) Descriptor() ([]byte, []int)
Deprecated: Use FirewallAction_AllowAction.ProtoReflect.Descriptor instead.
func (*FirewallAction_AllowAction) ProtoMessage
func (*FirewallAction_AllowAction) ProtoMessage()
func (*FirewallAction_AllowAction) ProtoReflect
func (x *FirewallAction_AllowAction) ProtoReflect() protoreflect.Message
func (*FirewallAction_AllowAction) Reset
func (x *FirewallAction_AllowAction) Reset()
func (*FirewallAction_AllowAction) String
func (x *FirewallAction_AllowAction) String() string
FirewallAction_Block
type FirewallAction_Block struct {
// This action will deny access to a given page. The user will get an HTTP
// error code.
Block *FirewallAction_BlockAction `protobuf:"bytes,2,opt,name=block,proto3,oneof"`
}
FirewallAction_BlockAction
type FirewallAction_BlockAction struct {
// contains filtered or unexported fields
}
A block action serves an HTTP error code a prevents the request from hitting the backend.
func (*FirewallAction_BlockAction) Descriptor
func (*FirewallAction_BlockAction) Descriptor() ([]byte, []int)
Deprecated: Use FirewallAction_BlockAction.ProtoReflect.Descriptor instead.
func (*FirewallAction_BlockAction) ProtoMessage
func (*FirewallAction_BlockAction) ProtoMessage()
func (*FirewallAction_BlockAction) ProtoReflect
func (x *FirewallAction_BlockAction) ProtoReflect() protoreflect.Message
func (*FirewallAction_BlockAction) Reset
func (x *FirewallAction_BlockAction) Reset()
func (*FirewallAction_BlockAction) String
func (x *FirewallAction_BlockAction) String() string
FirewallAction_IncludeRecaptchaScript
type FirewallAction_IncludeRecaptchaScript struct {
// This action will inject reCAPTCHA JavaScript code into the HTML page
// returned by the site backend.
IncludeRecaptchaScript *FirewallAction_IncludeRecaptchaScriptAction `protobuf:"bytes,6,opt,name=include_recaptcha_script,json=includeRecaptchaScript,proto3,oneof"`
}
FirewallAction_IncludeRecaptchaScriptAction
type FirewallAction_IncludeRecaptchaScriptAction struct {
// contains filtered or unexported fields
}
An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript code into the HTML returned by the site backend. This reCAPTCHA script is tasked with collecting user signals on the requested web page, issuing tokens as a cookie within the site domain, and enabling their utilization in subsequent page requests.
func (*FirewallAction_IncludeRecaptchaScriptAction) Descriptor
func (*FirewallAction_IncludeRecaptchaScriptAction) Descriptor() ([]byte, []int)
Deprecated: Use FirewallAction_IncludeRecaptchaScriptAction.ProtoReflect.Descriptor instead.
func (*FirewallAction_IncludeRecaptchaScriptAction) ProtoMessage
func (*FirewallAction_IncludeRecaptchaScriptAction) ProtoMessage()
func (*FirewallAction_IncludeRecaptchaScriptAction) ProtoReflect
func (x *FirewallAction_IncludeRecaptchaScriptAction) ProtoReflect() protoreflect.Message
func (*FirewallAction_IncludeRecaptchaScriptAction) Reset
func (x *FirewallAction_IncludeRecaptchaScriptAction) Reset()
func (*FirewallAction_IncludeRecaptchaScriptAction) String
func (x *FirewallAction_IncludeRecaptchaScriptAction) String() string
FirewallAction_Redirect
type FirewallAction_Redirect struct {
// This action will redirect the request to a ReCaptcha interstitial to
// attach a token.
Redirect *FirewallAction_RedirectAction `protobuf:"bytes,5,opt,name=redirect,proto3,oneof"`
}
FirewallAction_RedirectAction
type FirewallAction_RedirectAction struct {
// contains filtered or unexported fields
}
A redirect action returns a 307 (temporary redirect) response, pointing the user to a ReCaptcha interstitial page to attach a token.
func (*FirewallAction_RedirectAction) Descriptor
func (*FirewallAction_RedirectAction) Descriptor() ([]byte, []int)
Deprecated: Use FirewallAction_RedirectAction.ProtoReflect.Descriptor instead.
func (*FirewallAction_RedirectAction) ProtoMessage
func (*FirewallAction_RedirectAction) ProtoMessage()
func (*FirewallAction_RedirectAction) ProtoReflect
func (x *FirewallAction_RedirectAction) ProtoReflect() protoreflect.Message
func (*FirewallAction_RedirectAction) Reset
func (x *FirewallAction_RedirectAction) Reset()
func (*FirewallAction_RedirectAction) String
func (x *FirewallAction_RedirectAction) String() string
FirewallAction_SetHeader
type FirewallAction_SetHeader struct {
// This action will set a custom header but allow the request to continue
// to the customer backend.
SetHeader *FirewallAction_SetHeaderAction `protobuf:"bytes,4,opt,name=set_header,json=setHeader,proto3,oneof"`
}
FirewallAction_SetHeaderAction
type FirewallAction_SetHeaderAction struct {
// Optional. The header key to set in the request to the backend server.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// Optional. The header value to set in the request to the backend server.
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
A set header action sets a header and forwards the request to the backend. This can be used to trigger custom protection implemented on the backend.
func (*FirewallAction_SetHeaderAction) Descriptor
func (*FirewallAction_SetHeaderAction) Descriptor() ([]byte, []int)
Deprecated: Use FirewallAction_SetHeaderAction.ProtoReflect.Descriptor instead.
func (*FirewallAction_SetHeaderAction) GetKey
func (x *FirewallAction_SetHeaderAction) GetKey() string
func (*FirewallAction_SetHeaderAction) GetValue
func (x *FirewallAction_SetHeaderAction) GetValue() string
func (*FirewallAction_SetHeaderAction) ProtoMessage
func (*FirewallAction_SetHeaderAction) ProtoMessage()
func (*FirewallAction_SetHeaderAction) ProtoReflect
func (x *FirewallAction_SetHeaderAction) ProtoReflect() protoreflect.Message
func (*FirewallAction_SetHeaderAction) Reset
func (x *FirewallAction_SetHeaderAction) Reset()
func (*FirewallAction_SetHeaderAction) String
func (x *FirewallAction_SetHeaderAction) String() string
FirewallAction_Substitute
type FirewallAction_Substitute struct {
// This action will transparently serve a different page to an offending
// user.
Substitute *FirewallAction_SubstituteAction `protobuf:"bytes,3,opt,name=substitute,proto3,oneof"`
}
FirewallAction_SubstituteAction
type FirewallAction_SubstituteAction struct {
// Optional. The address to redirect to. The target is a relative path in
// the current host. Example: "/blog/404.html".
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}
A substitute action transparently serves a different page than the one requested.
func (*FirewallAction_SubstituteAction) Descriptor
func (*FirewallAction_SubstituteAction) Descriptor() ([]byte, []int)
Deprecated: Use FirewallAction_SubstituteAction.ProtoReflect.Descriptor instead.
func (*FirewallAction_SubstituteAction) GetPath
func (x *FirewallAction_SubstituteAction) GetPath() string
func (*FirewallAction_SubstituteAction) ProtoMessage
func (*FirewallAction_SubstituteAction) ProtoMessage()
func (*FirewallAction_SubstituteAction) ProtoReflect
func (x *FirewallAction_SubstituteAction) ProtoReflect() protoreflect.Message
func (*FirewallAction_SubstituteAction) Reset
func (x *FirewallAction_SubstituteAction) Reset()
func (*FirewallAction_SubstituteAction) String
func (x *FirewallAction_SubstituteAction) String() string
FirewallPolicy
type FirewallPolicy struct {
// Identifier. The resource name for the FirewallPolicy in the format
// `projects/{project}/firewallpolicies/{firewallpolicy}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. A description of what this policy aims to achieve, for
// convenience purposes. The description can at most include 256 UTF-8
// characters.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Optional. The path for which this policy applies, specified as a glob
// pattern. For more information on glob, see the [manual
// page](https://man7.org/linux/man-pages/man7/glob.7.html).
// A path has a max length of 200 characters.
Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
// Optional. A CEL (Common Expression Language) conditional expression that
// specifies if this policy applies to an incoming user request. If this
// condition evaluates to true and the requested path matched the path
// pattern, the associated actions should be executed by the caller. The
// condition string is checked for CEL syntax correctness on creation. For
// more information, see the [CEL spec](https://github.com/google/cel-spec)
// and its [language
// definition](https://github.com/google/cel-spec/blob/master/doc/langdef.md).
// A condition has a max length of 500 characters.
Condition string `protobuf:"bytes,5,opt,name=condition,proto3" json:"condition,omitempty"`
// Optional. The actions that the caller should take regarding user access.
// There should be at most one terminal action. A terminal action is any
// action that forces a response, such as `AllowAction`,
// `BlockAction` or `SubstituteAction`.
// Zero or more non-terminal actions such as `SetHeader` might be
// specified. A single policy can contain up to 16 actions.
Actions []*FirewallAction `protobuf:"bytes,6,rep,name=actions,proto3" json:"actions,omitempty"`
// contains filtered or unexported fields
}
A FirewallPolicy represents a single matching pattern and resulting actions to take.
func (*FirewallPolicy) Descriptor
func (*FirewallPolicy) Descriptor() ([]byte, []int)
Deprecated: Use FirewallPolicy.ProtoReflect.Descriptor instead.
func (*FirewallPolicy) GetActions
func (x *FirewallPolicy) GetActions() []*FirewallAction
func (*FirewallPolicy) GetCondition
func (x *FirewallPolicy) GetCondition() string
func (*FirewallPolicy) GetDescription
func (x *FirewallPolicy) GetDescription() string
func (*FirewallPolicy) GetName
func (x *FirewallPolicy) GetName() string
func (*FirewallPolicy) GetPath
func (x *FirewallPolicy) GetPath() string
func (*FirewallPolicy) ProtoMessage
func (*FirewallPolicy) ProtoMessage()
func (*FirewallPolicy) ProtoReflect
func (x *FirewallPolicy) ProtoReflect() protoreflect.Message
func (*FirewallPolicy) Reset
func (x *FirewallPolicy) Reset()
func (*FirewallPolicy) String
func (x *FirewallPolicy) String() string
FirewallPolicyAssessment
type FirewallPolicyAssessment struct {
// Output only. If the processing of a policy config fails, an error will be
// populated and the firewall_policy will be left empty.
Error *status.Status `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
// Output only. The policy that matched the request. If more than one policy
// may match, this is the first match. If no policy matches the incoming
// request, the policy field will be left empty.
FirewallPolicy *FirewallPolicy `protobuf:"bytes,8,opt,name=firewall_policy,json=firewallPolicy,proto3" json:"firewall_policy,omitempty"`
// contains filtered or unexported fields
}
Policy config assessment.
func (*FirewallPolicyAssessment) Descriptor
func (*FirewallPolicyAssessment) Descriptor() ([]byte, []int)
Deprecated: Use FirewallPolicyAssessment.ProtoReflect.Descriptor instead.
func (*FirewallPolicyAssessment) GetError
func (x *FirewallPolicyAssessment) GetError() *status.Status
func (*FirewallPolicyAssessment) GetFirewallPolicy
func (x *FirewallPolicyAssessment) GetFirewallPolicy() *FirewallPolicy
func (*FirewallPolicyAssessment) ProtoMessage
func (*FirewallPolicyAssessment) ProtoMessage()
func (*FirewallPolicyAssessment) ProtoReflect
func (x *FirewallPolicyAssessment) ProtoReflect() protoreflect.Message
func (*FirewallPolicyAssessment) Reset
func (x *FirewallPolicyAssessment) Reset()
func (*FirewallPolicyAssessment) String
func (x *FirewallPolicyAssessment) String() string
FraudPreventionAssessment
type FraudPreventionAssessment struct {
TransactionRisk float32 `protobuf:"fixed32,1,opt,name=transaction_risk,json=transactionRisk,proto3" json:"transaction_risk,omitempty"`
StolenInstrumentVerdict *FraudPreventionAssessment_StolenInstrumentVerdict "" /* 132 byte string literal not displayed */
CardTestingVerdict *FraudPreventionAssessment_CardTestingVerdict `protobuf:"bytes,3,opt,name=card_testing_verdict,json=cardTestingVerdict,proto3" json:"card_testing_verdict,omitempty"`
BehavioralTrustVerdict *FraudPreventionAssessment_BehavioralTrustVerdict "" /* 129 byte string literal not displayed */
}
Assessment for Fraud Prevention.
func (*FraudPreventionAssessment) Descriptor
func (*FraudPreventionAssessment) Descriptor() ([]byte, []int)
Deprecated: Use FraudPreventionAssessment.ProtoReflect.Descriptor instead.
func (*FraudPreventionAssessment) GetBehavioralTrustVerdict
func (x *FraudPreventionAssessment) GetBehavioralTrustVerdict() *FraudPreventionAssessment_BehavioralTrustVerdict
func (*FraudPreventionAssessment) GetCardTestingVerdict
func (x *FraudPreventionAssessment) GetCardTestingVerdict() *FraudPreventionAssessment_CardTestingVerdict
func (*FraudPreventionAssessment) GetStolenInstrumentVerdict
func (x *FraudPreventionAssessment) GetStolenInstrumentVerdict() *FraudPreventionAssessment_StolenInstrumentVerdict
func (*FraudPreventionAssessment) GetTransactionRisk
func (x *FraudPreventionAssessment) GetTransactionRisk() float32
func (*FraudPreventionAssessment) ProtoMessage
func (*FraudPreventionAssessment) ProtoMessage()
func (*FraudPreventionAssessment) ProtoReflect
func (x *FraudPreventionAssessment) ProtoReflect() protoreflect.Message
func (*FraudPreventionAssessment) Reset
func (x *FraudPreventionAssessment) Reset()
func (*FraudPreventionAssessment) String
func (x *FraudPreventionAssessment) String() string
FraudPreventionAssessment_BehavioralTrustVerdict
type FraudPreventionAssessment_BehavioralTrustVerdict struct {
// Output only. Probability of this transaction attempt being executed in a
// behaviorally trustworthy way. Values are from 0.0 (lowest) to 1.0
// (highest).
Trust float32 `protobuf:"fixed32,1,opt,name=trust,proto3" json:"trust,omitempty"`
// contains filtered or unexported fields
}
Information about behavioral trust of the transaction.
func (*FraudPreventionAssessment_BehavioralTrustVerdict) Descriptor
func (*FraudPreventionAssessment_BehavioralTrustVerdict) Descriptor() ([]byte, []int)
Deprecated: Use FraudPreventionAssessment_BehavioralTrustVerdict.ProtoReflect.Descriptor instead.
func (*FraudPreventionAssessment_BehavioralTrustVerdict) GetTrust
func (x *FraudPreventionAssessment_BehavioralTrustVerdict) GetTrust() float32
func (*FraudPreventionAssessment_BehavioralTrustVerdict) ProtoMessage
func (*FraudPreventionAssessment_BehavioralTrustVerdict) ProtoMessage()
func (*FraudPreventionAssessment_BehavioralTrustVerdict) ProtoReflect
func (x *FraudPreventionAssessment_BehavioralTrustVerdict) ProtoReflect() protoreflect.Message
func (*FraudPreventionAssessment_BehavioralTrustVerdict) Reset
func (x *FraudPreventionAssessment_BehavioralTrustVerdict) Reset()
func (*FraudPreventionAssessment_BehavioralTrustVerdict) String
func (x *FraudPreventionAssessment_BehavioralTrustVerdict) String() string
FraudPreventionAssessment_CardTestingVerdict
type FraudPreventionAssessment_CardTestingVerdict struct {
// Output only. Probability of this transaction attempt being part of a card
// testing attack. Values are from 0.0 (lowest) to 1.0 (highest).
Risk float32 `protobuf:"fixed32,1,opt,name=risk,proto3" json:"risk,omitempty"`
// contains filtered or unexported fields
}
Information about card testing fraud, where an adversary is testing fraudulently obtained cards or brute forcing their details.
func (*FraudPreventionAssessment_CardTestingVerdict) Descriptor
func (*FraudPreventionAssessment_CardTestingVerdict) Descriptor() ([]byte, []int)
Deprecated: Use FraudPreventionAssessment_CardTestingVerdict.ProtoReflect.Descriptor instead.
func (*FraudPreventionAssessment_CardTestingVerdict) GetRisk
func (x *FraudPreventionAssessment_CardTestingVerdict) GetRisk() float32
func (*FraudPreventionAssessment_CardTestingVerdict) ProtoMessage
func (*FraudPreventionAssessment_CardTestingVerdict) ProtoMessage()
func (*FraudPreventionAssessment_CardTestingVerdict) ProtoReflect
func (x *FraudPreventionAssessment_CardTestingVerdict) ProtoReflect() protoreflect.Message
func (*FraudPreventionAssessment_CardTestingVerdict) Reset
func (x *FraudPreventionAssessment_CardTestingVerdict) Reset()
func (*FraudPreventionAssessment_CardTestingVerdict) String
func (x *FraudPreventionAssessment_CardTestingVerdict) String() string
FraudPreventionAssessment_StolenInstrumentVerdict
type FraudPreventionAssessment_StolenInstrumentVerdict struct {
// Output only. Probability of this transaction being executed with a stolen
// instrument. Values are from 0.0 (lowest) to 1.0 (highest).
Risk float32 `protobuf:"fixed32,1,opt,name=risk,proto3" json:"risk,omitempty"`
// contains filtered or unexported fields
}
Information about stolen instrument fraud, where the user is not the legitimate owner of the instrument being used for the purchase.
func (*FraudPreventionAssessment_StolenInstrumentVerdict) Descriptor
func (*FraudPreventionAssessment_StolenInstrumentVerdict) Descriptor() ([]byte, []int)
Deprecated: Use FraudPreventionAssessment_StolenInstrumentVerdict.ProtoReflect.Descriptor instead.
func (*FraudPreventionAssessment_StolenInstrumentVerdict) GetRisk
func (x *FraudPreventionAssessment_StolenInstrumentVerdict) GetRisk() float32
func (*FraudPreventionAssessment_StolenInstrumentVerdict) ProtoMessage
func (*FraudPreventionAssessment_StolenInstrumentVerdict) ProtoMessage()
func (*FraudPreventionAssessment_StolenInstrumentVerdict) ProtoReflect
func (x *FraudPreventionAssessment_StolenInstrumentVerdict) ProtoReflect() protoreflect.Message
func (*FraudPreventionAssessment_StolenInstrumentVerdict) Reset
func (x *FraudPreventionAssessment_StolenInstrumentVerdict) Reset()
func (*FraudPreventionAssessment_StolenInstrumentVerdict) String
func (x *FraudPreventionAssessment_StolenInstrumentVerdict) String() string
FraudSignals
type FraudSignals struct {
// Output only. Signals describing the end user in this transaction.
UserSignals *FraudSignals_UserSignals `protobuf:"bytes,1,opt,name=user_signals,json=userSignals,proto3" json:"user_signals,omitempty"`
// Output only. Signals describing the payment card or cards used in this
// transaction.
CardSignals *FraudSignals_CardSignals `protobuf:"bytes,2,opt,name=card_signals,json=cardSignals,proto3" json:"card_signals,omitempty"`
// contains filtered or unexported fields
}
Fraud signals describing users and cards involved in the transaction.
func (*FraudSignals) Descriptor
func (*FraudSignals) Descriptor() ([]byte, []int)
Deprecated: Use FraudSignals.ProtoReflect.Descriptor instead.
func (*FraudSignals) GetCardSignals
func (x *FraudSignals) GetCardSignals() *FraudSignals_CardSignals
func (*FraudSignals) GetUserSignals
func (x *FraudSignals) GetUserSignals() *FraudSignals_UserSignals
func (*FraudSignals) ProtoMessage
func (*FraudSignals) ProtoMessage()
func (*FraudSignals) ProtoReflect
func (x *FraudSignals) ProtoReflect() protoreflect.Message
func (*FraudSignals) Reset
func (x *FraudSignals) Reset()
func (*FraudSignals) String
func (x *FraudSignals) String() string
FraudSignals_CardSignals
type FraudSignals_CardSignals struct {
CardLabels []FraudSignals_CardSignals_CardLabel "" /* 175 byte string literal not displayed */
}
Signals describing the payment card used in this transaction.
func (*FraudSignals_CardSignals) Descriptor
func (*FraudSignals_CardSignals) Descriptor() ([]byte, []int)
Deprecated: Use FraudSignals_CardSignals.ProtoReflect.Descriptor instead.
func (*FraudSignals_CardSignals) GetCardLabels
func (x *FraudSignals_CardSignals) GetCardLabels() []FraudSignals_CardSignals_CardLabel
func (*FraudSignals_CardSignals) ProtoMessage
func (*FraudSignals_CardSignals) ProtoMessage()
func (*FraudSignals_CardSignals) ProtoReflect
func (x *FraudSignals_CardSignals) ProtoReflect() protoreflect.Message
func (*FraudSignals_CardSignals) Reset
func (x *FraudSignals_CardSignals) Reset()
func (*FraudSignals_CardSignals) String
func (x *FraudSignals_CardSignals) String() string
FraudSignals_CardSignals_CardLabel
type FraudSignals_CardSignals_CardLabel int32
Risk labels describing the card being assessed, such as its funding mechanism.
FraudSignals_CardSignals_CARD_LABEL_UNSPECIFIED, FraudSignals_CardSignals_PREPAID, FraudSignals_CardSignals_VIRTUAL, FraudSignals_CardSignals_UNEXPECTED_LOCATION
const (
// No label specified.
FraudSignals_CardSignals_CARD_LABEL_UNSPECIFIED FraudSignals_CardSignals_CardLabel = 0
// This card has been detected as prepaid.
FraudSignals_CardSignals_PREPAID FraudSignals_CardSignals_CardLabel = 1
// This card has been detected as virtual, such as a card number generated
// for a single transaction or merchant.
FraudSignals_CardSignals_VIRTUAL FraudSignals_CardSignals_CardLabel = 2
// This card has been detected as being used in an unexpected geographic
// location.
FraudSignals_CardSignals_UNEXPECTED_LOCATION FraudSignals_CardSignals_CardLabel = 3
)
func (FraudSignals_CardSignals_CardLabel) Descriptor
func (FraudSignals_CardSignals_CardLabel) Descriptor() protoreflect.EnumDescriptor
func (FraudSignals_CardSignals_CardLabel) Enum
func (x FraudSignals_CardSignals_CardLabel) Enum() *FraudSignals_CardSignals_CardLabel
func (FraudSignals_CardSignals_CardLabel) EnumDescriptor
func (FraudSignals_CardSignals_CardLabel) EnumDescriptor() ([]byte, []int)
Deprecated: Use FraudSignals_CardSignals_CardLabel.Descriptor instead.
func (FraudSignals_CardSignals_CardLabel) Number
func (x FraudSignals_CardSignals_CardLabel) Number() protoreflect.EnumNumber
func (FraudSignals_CardSignals_CardLabel) String
func (x FraudSignals_CardSignals_CardLabel) String() string
func (FraudSignals_CardSignals_CardLabel) Type
func (FraudSignals_CardSignals_CardLabel) Type() protoreflect.EnumType
FraudSignals_UserSignals
type FraudSignals_UserSignals struct {
// Output only. This user (based on email, phone, and other identifiers) has
// been seen on the internet for at least this number of days.
ActiveDaysLowerBound int32 `protobuf:"varint,1,opt,name=active_days_lower_bound,json=activeDaysLowerBound,proto3" json:"active_days_lower_bound,omitempty"`
// Output only. Likelihood (from 0.0 to 1.0) this user includes synthetic
// components in their identity, such as a randomly generated email address,
// temporary phone number, or fake shipping address.
SyntheticRisk float32 `protobuf:"fixed32,2,opt,name=synthetic_risk,json=syntheticRisk,proto3" json:"synthetic_risk,omitempty"`
// contains filtered or unexported fields
}
Signals describing the user involved in this transaction.
func (*FraudSignals_UserSignals) Descriptor
func (*FraudSignals_UserSignals) Descriptor() ([]byte, []int)
Deprecated: Use FraudSignals_UserSignals.ProtoReflect.Descriptor instead.
func (*FraudSignals_UserSignals) GetActiveDaysLowerBound
func (x *FraudSignals_UserSignals) GetActiveDaysLowerBound() int32
func (*FraudSignals_UserSignals) GetSyntheticRisk
func (x *FraudSignals_UserSignals) GetSyntheticRisk() float32
func (*FraudSignals_UserSignals) ProtoMessage
func (*FraudSignals_UserSignals) ProtoMessage()
func (*FraudSignals_UserSignals) ProtoReflect
func (x *FraudSignals_UserSignals) ProtoReflect() protoreflect.Message
func (*FraudSignals_UserSignals) Reset
func (x *FraudSignals_UserSignals) Reset()
func (*FraudSignals_UserSignals) String
func (x *FraudSignals_UserSignals) String() string
GetFirewallPolicyRequest
type GetFirewallPolicyRequest struct {
// Required. The name of the requested policy, in the format
// `projects/{project}/firewallpolicies/{firewallpolicy}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The get firewall policy request message.
func (*GetFirewallPolicyRequest) Descriptor
func (*GetFirewallPolicyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFirewallPolicyRequest.ProtoReflect.Descriptor instead.
func (*GetFirewallPolicyRequest) GetName
func (x *GetFirewallPolicyRequest) GetName() string
func (*GetFirewallPolicyRequest) ProtoMessage
func (*GetFirewallPolicyRequest) ProtoMessage()
func (*GetFirewallPolicyRequest) ProtoReflect
func (x *GetFirewallPolicyRequest) ProtoReflect() protoreflect.Message
func (*GetFirewallPolicyRequest) Reset
func (x *GetFirewallPolicyRequest) Reset()
func (*GetFirewallPolicyRequest) String
func (x *GetFirewallPolicyRequest) String() string
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"`
// contains filtered or unexported fields
}
The get key request message.
func (*GetKeyRequest) Descriptor
func (*GetKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetKeyRequest.ProtoReflect.Descriptor instead.
func (*GetKeyRequest) GetName
func (x *GetKeyRequest) GetName() string
func (*GetKeyRequest) ProtoMessage
func (*GetKeyRequest) ProtoMessage()
func (*GetKeyRequest) ProtoReflect
func (x *GetKeyRequest) ProtoReflect() protoreflect.Message
func (*GetKeyRequest) Reset
func (x *GetKeyRequest) Reset()
func (*GetKeyRequest) String
func (x *GetKeyRequest) String() string
GetMetricsRequest
type GetMetricsRequest struct {
// Required. The name of the requested metrics, in the format
// `projects/{project}/keys/{key}/metrics`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
The get metrics request message.
func (*GetMetricsRequest) Descriptor
func (*GetMetricsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMetricsRequest.ProtoReflect.Descriptor instead.
func (*GetMetricsRequest) GetName
func (x *GetMetricsRequest) GetName() string
func (*GetMetricsRequest) ProtoMessage
func (*GetMetricsRequest) ProtoMessage()
func (*GetMetricsRequest) ProtoReflect
func (x *GetMetricsRequest) ProtoReflect() protoreflect.Message
func (*GetMetricsRequest) Reset
func (x *GetMetricsRequest) Reset()
func (*GetMetricsRequest) String
func (x *GetMetricsRequest) String() string
IOSKeySettings
type IOSKeySettings struct {
// Optional. If set to true, allowed_bundle_ids are not enforced.
AllowAllBundleIds bool `protobuf:"varint,2,opt,name=allow_all_bundle_ids,json=allowAllBundleIds,proto3" json:"allow_all_bundle_ids,omitempty"`
// Optional. 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"`
// Optional. Apple Developer account details for the app that is protected by
// the reCAPTCHA Key. reCAPTCHA Enterprise leverages platform-specific checks
// like Apple App Attest and Apple DeviceCheck to protect your app from abuse.
// Providing these fields allows reCAPTCHA Enterprise to get a better
// assessment of the integrity of your app.
AppleDeveloperId *AppleDeveloperId `protobuf:"bytes,3,opt,name=apple_developer_id,json=appleDeveloperId,proto3" json:"apple_developer_id,omitempty"`
// contains filtered or unexported fields
}
Settings specific to keys that can be used by iOS apps.
func (*IOSKeySettings) Descriptor
func (*IOSKeySettings) Descriptor() ([]byte, []int)
Deprecated: Use IOSKeySettings.ProtoReflect.Descriptor instead.
func (*IOSKeySettings) GetAllowAllBundleIds
func (x *IOSKeySettings) GetAllowAllBundleIds() bool
func (*IOSKeySettings) GetAllowedBundleIds
func (x *IOSKeySettings) GetAllowedBundleIds() []string
func (*IOSKeySettings) GetAppleDeveloperId
func (x *IOSKeySettings) GetAppleDeveloperId() *AppleDeveloperId
func (*IOSKeySettings) ProtoMessage
func (*IOSKeySettings) ProtoMessage()
func (*IOSKeySettings) ProtoReflect
func (x *IOSKeySettings) ProtoReflect() protoreflect.Message
func (*IOSKeySettings) Reset
func (x *IOSKeySettings) Reset()
func (*IOSKeySettings) String
func (x *IOSKeySettings) String() string
Key
type Key struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
PlatformSettings isKey_PlatformSettings `protobuf_oneof:"platform_settings"`
Labels map[string]string "" /* 153 byte string literal not displayed */
CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
TestingOptions *TestingOptions `protobuf:"bytes,9,opt,name=testing_options,json=testingOptions,proto3" json:"testing_options,omitempty"`
WafSettings *WafSettings `protobuf:"bytes,10,opt,name=waf_settings,json=wafSettings,proto3" json:"waf_settings,omitempty"`
}
A key used to identify and configure applications (web and/or mobile) that use reCAPTCHA Enterprise.
func (*Key) Descriptor
Deprecated: Use Key.ProtoReflect.Descriptor instead.
func (*Key) GetAndroidSettings
func (x *Key) GetAndroidSettings() *AndroidKeySettings
func (*Key) GetCreateTime
func (x *Key) GetCreateTime() *timestamppb.Timestamp
func (*Key) GetDisplayName
func (*Key) GetIosSettings
func (x *Key) GetIosSettings() *IOSKeySettings
func (*Key) GetLabels
func (*Key) GetName
func (*Key) GetPlatformSettings
func (m *Key) GetPlatformSettings() isKey_PlatformSettings
func (*Key) GetTestingOptions
func (x *Key) GetTestingOptions() *TestingOptions
func (*Key) GetWafSettings
func (x *Key) GetWafSettings() *WafSettings
func (*Key) GetWebSettings
func (x *Key) GetWebSettings() *WebKeySettings
func (*Key) ProtoMessage
func (*Key) ProtoMessage()
func (*Key) ProtoReflect
func (x *Key) ProtoReflect() protoreflect.Message
func (*Key) Reset
func (x *Key) Reset()
func (*Key) String
Key_AndroidSettings
type Key_AndroidSettings struct {
// Settings for keys that can be used by Android apps.
AndroidSettings *AndroidKeySettings `protobuf:"bytes,4,opt,name=android_settings,json=androidSettings,proto3,oneof"`
}
Key_IosSettings
type Key_IosSettings struct {
// Settings for keys that can be used by iOS apps.
IosSettings *IOSKeySettings `protobuf:"bytes,5,opt,name=ios_settings,json=iosSettings,proto3,oneof"`
}
Key_WebSettings
type Key_WebSettings struct {
// Settings for keys that can be used by websites.
WebSettings *WebKeySettings `protobuf:"bytes,3,opt,name=web_settings,json=webSettings,proto3,oneof"`
}
ListFirewallPoliciesRequest
type ListFirewallPoliciesRequest struct {
// Required. The name of the project to list the policies for, in the format
// `projects/{project}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of policies 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.
// ListFirewallPoliciesRequest, if any.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
The list firewall policies request message.
func (*ListFirewallPoliciesRequest) Descriptor
func (*ListFirewallPoliciesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListFirewallPoliciesRequest.ProtoReflect.Descriptor instead.
func (*ListFirewallPoliciesRequest) GetPageSize
func (x *ListFirewallPoliciesRequest) GetPageSize() int32
func (*ListFirewallPoliciesRequest) GetPageToken
func (x *ListFirewallPoliciesRequest) GetPageToken() string
func (*ListFirewallPoliciesRequest) GetParent
func (x *ListFirewallPoliciesRequest) GetParent() string
func (*ListFirewallPoliciesRequest) ProtoMessage
func (*ListFirewallPoliciesRequest) ProtoMessage()
func (*ListFirewallPoliciesRequest) ProtoReflect
func (x *ListFirewallPoliciesRequest) ProtoReflect() protoreflect.Message
func (*ListFirewallPoliciesRequest) Reset
func (x *ListFirewallPoliciesRequest) Reset()
func (*ListFirewallPoliciesRequest) String
func (x *ListFirewallPoliciesRequest) String() string
ListFirewallPoliciesResponse
type ListFirewallPoliciesResponse struct {
// Policy details.
FirewallPolicies []*FirewallPolicy `protobuf:"bytes,1,rep,name=firewall_policies,json=firewallPolicies,proto3" json:"firewall_policies,omitempty"`
// Token to retrieve the next page of results. It is set to empty if no
// policies remain in results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
Response to request to list firewall policies belonging to a project.
func (*ListFirewallPoliciesResponse) Descriptor
func (*ListFirewallPoliciesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListFirewallPoliciesResponse.ProtoReflect.Descriptor instead.
func (*ListFirewallPoliciesResponse) GetFirewallPolicies
func (x *ListFirewallPoliciesResponse) GetFirewallPolicies() []*FirewallPolicy
func (*ListFirewallPoliciesResponse) GetNextPageToken
func (x *ListFirewallPoliciesResponse) GetNextPageToken() string
func (*ListFirewallPoliciesResponse) ProtoMessage
func (*ListFirewallPoliciesResponse) ProtoMessage()
func (*ListFirewallPoliciesResponse) ProtoReflect
func (x *ListFirewallPoliciesResponse) ProtoReflect() protoreflect.Message
func (*ListFirewallPoliciesResponse) Reset
func (x *ListFirewallPoliciesResponse) Reset()
func (*ListFirewallPoliciesResponse) String
func (x *ListFirewallPoliciesResponse) String() string
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"`
// contains filtered or unexported fields
}
The list keys request message.
func (*ListKeysRequest) Descriptor
func (*ListKeysRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListKeysRequest.ProtoReflect.Descriptor instead.
func (*ListKeysRequest) GetPageSize
func (x *ListKeysRequest) GetPageSize() int32
func (*ListKeysRequest) GetPageToken
func (x *ListKeysRequest) GetPageToken() string
func (*ListKeysRequest) GetParent
func (x *ListKeysRequest) GetParent() string
func (*ListKeysRequest) ProtoMessage
func (*ListKeysRequest) ProtoMessage()
func (*ListKeysRequest) ProtoReflect
func (x *ListKeysRequest) ProtoReflect() protoreflect.Message
func (*ListKeysRequest) Reset
func (x *ListKeysRequest) Reset()
func (*ListKeysRequest) String
func (x *ListKeysRequest) String() string
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"`
// contains filtered or unexported fields
}
Response to request to list keys in a project.
func (*ListKeysResponse) Descriptor
func (*ListKeysResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListKeysResponse.ProtoReflect.Descriptor instead.
func (*ListKeysResponse) GetKeys
func (x *ListKeysResponse) GetKeys() []*Key
func (*ListKeysResponse) GetNextPageToken
func (x *ListKeysResponse) GetNextPageToken() string
func (*ListKeysResponse) ProtoMessage
func (*ListKeysResponse) ProtoMessage()
func (*ListKeysResponse) ProtoReflect
func (x *ListKeysResponse) ProtoReflect() protoreflect.Message
func (*ListKeysResponse) Reset
func (x *ListKeysResponse) Reset()
func (*ListKeysResponse) String
func (x *ListKeysResponse) String() string
ListRelatedAccountGroupMembershipsRequest
type ListRelatedAccountGroupMembershipsRequest struct {
// Required. The resource name for the related account group in the format
// `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of accounts to return. The service might
// return fewer than this value. If unspecified, at most 50 accounts are
// returned. The maximum value is 1000; values above 1000 are coerced to 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous
// `ListRelatedAccountGroupMemberships` call.
//
// When paginating, all other parameters provided to
// `ListRelatedAccountGroupMemberships` must match the call that provided the
// page token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
The request message to list memberships in a related account group.
func (*ListRelatedAccountGroupMembershipsRequest) Descriptor
func (*ListRelatedAccountGroupMembershipsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRelatedAccountGroupMembershipsRequest.ProtoReflect.Descriptor instead.
func (*ListRelatedAccountGroupMembershipsRequest) GetPageSize
func (x *ListRelatedAccountGroupMembershipsRequest) GetPageSize() int32
func (*ListRelatedAccountGroupMembershipsRequest) GetPageToken
func (x *ListRelatedAccountGroupMembershipsRequest) GetPageToken() string
func (*ListRelatedAccountGroupMembershipsRequest) GetParent
func (x *ListRelatedAccountGroupMembershipsRequest) GetParent() string
func (*ListRelatedAccountGroupMembershipsRequest) ProtoMessage
func (*ListRelatedAccountGroupMembershipsRequest) ProtoMessage()
func (*ListRelatedAccountGroupMembershipsRequest) ProtoReflect
func (x *ListRelatedAccountGroupMembershipsRequest) ProtoReflect() protoreflect.Message
func (*ListRelatedAccountGroupMembershipsRequest) Reset
func (x *ListRelatedAccountGroupMembershipsRequest) Reset()
func (*ListRelatedAccountGroupMembershipsRequest) String
func (x *ListRelatedAccountGroupMembershipsRequest) String() string
ListRelatedAccountGroupMembershipsResponse
type ListRelatedAccountGroupMembershipsResponse struct {
RelatedAccountGroupMemberships []*RelatedAccountGroupMembership "" /* 155 byte string literal not displayed */
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
The response to a ListRelatedAccountGroupMemberships
call.
func (*ListRelatedAccountGroupMembershipsResponse) Descriptor
func (*ListRelatedAccountGroupMembershipsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRelatedAccountGroupMembershipsResponse.ProtoReflect.Descriptor instead.
func (*ListRelatedAccountGroupMembershipsResponse) GetNextPageToken
func (x *ListRelatedAccountGroupMembershipsResponse) GetNextPageToken() string
func (*ListRelatedAccountGroupMembershipsResponse) GetRelatedAccountGroupMemberships
func (x *ListRelatedAccountGroupMembershipsResponse) GetRelatedAccountGroupMemberships() []*RelatedAccountGroupMembership
func (*ListRelatedAccountGroupMembershipsResponse) ProtoMessage
func (*ListRelatedAccountGroupMembershipsResponse) ProtoMessage()
func (*ListRelatedAccountGroupMembershipsResponse) ProtoReflect
func (x *ListRelatedAccountGroupMembershipsResponse) ProtoReflect() protoreflect.Message
func (*ListRelatedAccountGroupMembershipsResponse) Reset
func (x *ListRelatedAccountGroupMembershipsResponse) Reset()
func (*ListRelatedAccountGroupMembershipsResponse) String
func (x *ListRelatedAccountGroupMembershipsResponse) String() string
ListRelatedAccountGroupsRequest
type ListRelatedAccountGroupsRequest struct {
// Required. The name of the project to list related account groups from, in
// the format `projects/{project}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. The maximum number of groups to return. The service might return
// fewer than this value. If unspecified, at most 50 groups are returned. The
// maximum value is 1000; values above 1000 are coerced to 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A page token, received from a previous `ListRelatedAccountGroups`
// call. Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to
// `ListRelatedAccountGroups` must match the call that provided the page
// token.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
The request message to list related account groups.
func (*ListRelatedAccountGroupsRequest) Descriptor
func (*ListRelatedAccountGroupsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRelatedAccountGroupsRequest.ProtoReflect.Descriptor instead.
func (*ListRelatedAccountGroupsRequest) GetPageSize
func (x *ListRelatedAccountGroupsRequest) GetPageSize() int32
func (*ListRelatedAccountGroupsRequest) GetPageToken
func (x *ListRelatedAccountGroupsRequest) GetPageToken() string
func (*ListRelatedAccountGroupsRequest) GetParent
func (x *ListRelatedAccountGroupsRequest) GetParent() string
func (*ListRelatedAccountGroupsRequest) ProtoMessage
func (*ListRelatedAccountGroupsRequest) ProtoMessage()
func (*ListRelatedAccountGroupsRequest) ProtoReflect
func (x *ListRelatedAccountGroupsRequest) ProtoReflect() protoreflect.Message
func (*ListRelatedAccountGroupsRequest) Reset
func (x *ListRelatedAccountGroupsRequest) Reset()
func (*ListRelatedAccountGroupsRequest) String
func (x *ListRelatedAccountGroupsRequest) String() string
ListRelatedAccountGroupsResponse
type ListRelatedAccountGroupsResponse struct {
// The groups of related accounts listed by the query.
RelatedAccountGroups []*RelatedAccountGroup `protobuf:"bytes,1,rep,name=related_account_groups,json=relatedAccountGroups,proto3" json:"related_account_groups,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there are no subsequent pages.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
The response to a ListRelatedAccountGroups
call.
func (*ListRelatedAccountGroupsResponse) Descriptor
func (*ListRelatedAccountGroupsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRelatedAccountGroupsResponse.ProtoReflect.Descriptor instead.
func (*ListRelatedAccountGroupsResponse) GetNextPageToken
func (x *ListRelatedAccountGroupsResponse) GetNextPageToken() string
func (*ListRelatedAccountGroupsResponse) GetRelatedAccountGroups
func (x *ListRelatedAccountGroupsResponse) GetRelatedAccountGroups() []*RelatedAccountGroup
func (*ListRelatedAccountGroupsResponse) ProtoMessage
func (*ListRelatedAccountGroupsResponse) ProtoMessage()
func (*ListRelatedAccountGroupsResponse) ProtoReflect
func (x *ListRelatedAccountGroupsResponse) ProtoReflect() protoreflect.Message
func (*ListRelatedAccountGroupsResponse) Reset
func (x *ListRelatedAccountGroupsResponse) Reset()
func (*ListRelatedAccountGroupsResponse) String
func (x *ListRelatedAccountGroupsResponse) String() string
Metrics
type Metrics struct {
// Output only. Identifier. The name of the metrics, in the format
// `projects/{project}/keys/{key}/metrics`.
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// Inclusive start time aligned to a day (UTC).
StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Metrics will be continuous and in order by dates, and in the granularity
// of day. All Key types should have score-based data.
ScoreMetrics []*ScoreMetrics `protobuf:"bytes,2,rep,name=score_metrics,json=scoreMetrics,proto3" json:"score_metrics,omitempty"`
// Metrics will be continuous and in order by dates, and in the granularity
// of day. Only challenge-based keys (CHECKBOX, INVISIBLE), will have
// challenge-based data.
ChallengeMetrics []*ChallengeMetrics `protobuf:"bytes,3,rep,name=challenge_metrics,json=challengeMetrics,proto3" json:"challenge_metrics,omitempty"`
// contains filtered or unexported fields
}
Metrics for a single Key.
func (*Metrics) Descriptor
Deprecated: Use Metrics.ProtoReflect.Descriptor instead.
func (*Metrics) GetChallengeMetrics
func (x *Metrics) GetChallengeMetrics() []*ChallengeMetrics
func (*Metrics) GetName
func (*Metrics) GetScoreMetrics
func (x *Metrics) GetScoreMetrics() []*ScoreMetrics
func (*Metrics) GetStartTime
func (x *Metrics) GetStartTime() *timestamppb.Timestamp
func (*Metrics) ProtoMessage
func (*Metrics) ProtoMessage()
func (*Metrics) ProtoReflect
func (x *Metrics) ProtoReflect() protoreflect.Message
func (*Metrics) Reset
func (x *Metrics) Reset()
func (*Metrics) String
MigrateKeyRequest
type MigrateKeyRequest struct {
// Required. The name of the key to be migrated, in the format
// `projects/{project}/keys/{key}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. If true, skips the billing check.
// A reCAPTCHA Enterprise key or migrated key behaves differently than a
// reCAPTCHA (non-Enterprise version) key when you reach a quota limit (see
// https://cloud.google.com/recaptcha-enterprise/quotas#quota_limit). To avoid
// any disruption of your usage, we check that a billing account is present.
// If your usage of reCAPTCHA is under the free quota, you can safely skip the
// billing check and proceed with the migration. See
// https://cloud.google.com/recaptcha-enterprise/docs/billing-information.
SkipBillingCheck bool `protobuf:"varint,2,opt,name=skip_billing_check,json=skipBillingCheck,proto3" json:"skip_billing_check,omitempty"`
// contains filtered or unexported fields
}
The migrate key request message.
func (*MigrateKeyRequest) Descriptor
func (*MigrateKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use MigrateKeyRequest.ProtoReflect.Descriptor instead.
func (*MigrateKeyRequest) GetName
func (x *MigrateKeyRequest) GetName() string
func (*MigrateKeyRequest) GetSkipBillingCheck
func (x *MigrateKeyRequest) GetSkipBillingCheck() bool
func (*MigrateKeyRequest) ProtoMessage
func (*MigrateKeyRequest) ProtoMessage()
func (*MigrateKeyRequest) ProtoReflect
func (x *MigrateKeyRequest) ProtoReflect() protoreflect.Message
func (*MigrateKeyRequest) Reset
func (x *MigrateKeyRequest) Reset()
func (*MigrateKeyRequest) String
func (x *MigrateKeyRequest) String() string
PhoneFraudAssessment
type PhoneFraudAssessment struct {
// Output only. Assessment of this phone event for risk of SMS toll fraud.
SmsTollFraudVerdict *SmsTollFraudVerdict `protobuf:"bytes,1,opt,name=sms_toll_fraud_verdict,json=smsTollFraudVerdict,proto3" json:"sms_toll_fraud_verdict,omitempty"`
// contains filtered or unexported fields
}
Assessment for Phone Fraud
func (*PhoneFraudAssessment) Descriptor
func (*PhoneFraudAssessment) Descriptor() ([]byte, []int)
Deprecated: Use PhoneFraudAssessment.ProtoReflect.Descriptor instead.
func (*PhoneFraudAssessment) GetSmsTollFraudVerdict
func (x *PhoneFraudAssessment) GetSmsTollFraudVerdict() *SmsTollFraudVerdict
func (*PhoneFraudAssessment) ProtoMessage
func (*PhoneFraudAssessment) ProtoMessage()
func (*PhoneFraudAssessment) ProtoReflect
func (x *PhoneFraudAssessment) ProtoReflect() protoreflect.Message
func (*PhoneFraudAssessment) Reset
func (x *PhoneFraudAssessment) Reset()
func (*PhoneFraudAssessment) String
func (x *PhoneFraudAssessment) String() string
PrivatePasswordLeakVerification
type PrivatePasswordLeakVerification struct {
LookupHashPrefix []byte `protobuf:"bytes,1,opt,name=lookup_hash_prefix,json=lookupHashPrefix,proto3" json:"lookup_hash_prefix,omitempty"`
EncryptedUserCredentialsHash []byte "" /* 149 byte string literal not displayed */
EncryptedLeakMatchPrefixes [][]byte "" /* 143 byte string literal not displayed */
ReencryptedUserCredentialsHash []byte "" /* 155 byte string literal not displayed */
}
Private password leak verification info.
func (*PrivatePasswordLeakVerification) Descriptor
func (*PrivatePasswordLeakVerification) Descriptor() ([]byte, []int)
Deprecated: Use PrivatePasswordLeakVerification.ProtoReflect.Descriptor instead.
func (*PrivatePasswordLeakVerification) GetEncryptedLeakMatchPrefixes
func (x *PrivatePasswordLeakVerification) GetEncryptedLeakMatchPrefixes() [][]byte
func (*PrivatePasswordLeakVerification) GetEncryptedUserCredentialsHash
func (x *PrivatePasswordLeakVerification) GetEncryptedUserCredentialsHash() []byte
func (*PrivatePasswordLeakVerification) GetLookupHashPrefix
func (x *PrivatePasswordLeakVerification) GetLookupHashPrefix() []byte
func (*PrivatePasswordLeakVerification) GetReencryptedUserCredentialsHash
func (x *PrivatePasswordLeakVerification) GetReencryptedUserCredentialsHash() []byte
func (*PrivatePasswordLeakVerification) ProtoMessage
func (*PrivatePasswordLeakVerification) ProtoMessage()
func (*PrivatePasswordLeakVerification) ProtoReflect
func (x *PrivatePasswordLeakVerification) ProtoReflect() protoreflect.Message
func (*PrivatePasswordLeakVerification) Reset
func (x *PrivatePasswordLeakVerification) Reset()
func (*PrivatePasswordLeakVerification) String
func (x *PrivatePasswordLeakVerification) String() string
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 fraudulent.
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 secret key related to the specified public key.
// You must use the legacy secret key only in a 3rd party integration with
// legacy reCAPTCHA.
RetrieveLegacySecretKey(ctx context.Context, in *RetrieveLegacySecretKeyRequest, opts ...grpc.CallOption) (*RetrieveLegacySecretKeyResponse, 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) (*emptypb.Empty, error)
// Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise.
// Once a key is migrated, it can be used from either product. SiteVerify
// requests are billed as CreateAssessment calls. You must be
// authenticated as one of the current owners of the reCAPTCHA Key, and
// your user must have the reCAPTCHA Enterprise Admin IAM role in the
// destination project.
MigrateKey(ctx context.Context, in *MigrateKeyRequest, opts ...grpc.CallOption) (*Key, error)
// Get some aggregated metrics for a Key. This data can be used to build
// dashboards.
GetMetrics(ctx context.Context, in *GetMetricsRequest, opts ...grpc.CallOption) (*Metrics, error)
// Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
// Enterprise actions can be executed.
// A project may have a maximum of 1000 policies.
CreateFirewallPolicy(ctx context.Context, in *CreateFirewallPolicyRequest, opts ...grpc.CallOption) (*FirewallPolicy, error)
// Returns the list of all firewall policies that belong to a project.
ListFirewallPolicies(ctx context.Context, in *ListFirewallPoliciesRequest, opts ...grpc.CallOption) (*ListFirewallPoliciesResponse, error)
// Returns the specified firewall policy.
GetFirewallPolicy(ctx context.Context, in *GetFirewallPolicyRequest, opts ...grpc.CallOption) (*FirewallPolicy, error)
// Updates the specified firewall policy.
UpdateFirewallPolicy(ctx context.Context, in *UpdateFirewallPolicyRequest, opts ...grpc.CallOption) (*FirewallPolicy, error)
// Deletes the specified firewall policy.
DeleteFirewallPolicy(ctx context.Context, in *DeleteFirewallPolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Reorders all firewall policies.
ReorderFirewallPolicies(ctx context.Context, in *ReorderFirewallPoliciesRequest, opts ...grpc.CallOption) (*ReorderFirewallPoliciesResponse, error)
// List groups of related accounts.
ListRelatedAccountGroups(ctx context.Context, in *ListRelatedAccountGroupsRequest, opts ...grpc.CallOption) (*ListRelatedAccountGroupsResponse, error)
// Get memberships in a group of related accounts.
ListRelatedAccountGroupMemberships(ctx context.Context, in *ListRelatedAccountGroupMembershipsRequest, opts ...grpc.CallOption) (*ListRelatedAccountGroupMembershipsResponse, error)
// Search group memberships related to a given account.
SearchRelatedAccountGroupMemberships(ctx context.Context, in *SearchRelatedAccountGroupMembershipsRequest, opts ...grpc.CallOption) (*SearchRelatedAccountGroupMembershipsResponse, 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.
func NewRecaptchaEnterpriseServiceClient
func NewRecaptchaEnterpriseServiceClient(cc grpc.ClientConnInterface) RecaptchaEnterpriseServiceClient
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 fraudulent.
AnnotateAssessment(context.Context, *AnnotateAssessmentRequest) (*AnnotateAssessmentResponse, error)
// Creates a new reCAPTCHA Enterprise key.
CreateKey(