Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

203 rindas
11 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v1/errors/authentication_error.proto
  3. package errors // import "google.golang.org/genproto/googleapis/ads/googleads/v1/errors"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "google.golang.org/genproto/googleapis/api/annotations"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. // Enum describing possible authentication errors.
  18. type AuthenticationErrorEnum_AuthenticationError int32
  19. const (
  20. // Enum unspecified.
  21. AuthenticationErrorEnum_UNSPECIFIED AuthenticationErrorEnum_AuthenticationError = 0
  22. // The received error code is not known in this version.
  23. AuthenticationErrorEnum_UNKNOWN AuthenticationErrorEnum_AuthenticationError = 1
  24. // Authentication of the request failed.
  25. AuthenticationErrorEnum_AUTHENTICATION_ERROR AuthenticationErrorEnum_AuthenticationError = 2
  26. // Client Customer Id is not a number.
  27. AuthenticationErrorEnum_CLIENT_CUSTOMER_ID_INVALID AuthenticationErrorEnum_AuthenticationError = 5
  28. // No customer found for the provided customer id.
  29. AuthenticationErrorEnum_CUSTOMER_NOT_FOUND AuthenticationErrorEnum_AuthenticationError = 8
  30. // Client's Google Account is deleted.
  31. AuthenticationErrorEnum_GOOGLE_ACCOUNT_DELETED AuthenticationErrorEnum_AuthenticationError = 9
  32. // Google account login token in the cookie is invalid.
  33. AuthenticationErrorEnum_GOOGLE_ACCOUNT_COOKIE_INVALID AuthenticationErrorEnum_AuthenticationError = 10
  34. // A problem occurred during Google account authentication.
  35. AuthenticationErrorEnum_GOOGLE_ACCOUNT_AUTHENTICATION_FAILED AuthenticationErrorEnum_AuthenticationError = 25
  36. // The user in the google account login token does not match the UserId in
  37. // the cookie.
  38. AuthenticationErrorEnum_GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH AuthenticationErrorEnum_AuthenticationError = 12
  39. // Login cookie is required for authentication.
  40. AuthenticationErrorEnum_LOGIN_COOKIE_REQUIRED AuthenticationErrorEnum_AuthenticationError = 13
  41. // User in the cookie is not a valid Ads user.
  42. AuthenticationErrorEnum_NOT_ADS_USER AuthenticationErrorEnum_AuthenticationError = 14
  43. // Oauth token in the header is not valid.
  44. AuthenticationErrorEnum_OAUTH_TOKEN_INVALID AuthenticationErrorEnum_AuthenticationError = 15
  45. // Oauth token in the header has expired.
  46. AuthenticationErrorEnum_OAUTH_TOKEN_EXPIRED AuthenticationErrorEnum_AuthenticationError = 16
  47. // Oauth token in the header has been disabled.
  48. AuthenticationErrorEnum_OAUTH_TOKEN_DISABLED AuthenticationErrorEnum_AuthenticationError = 17
  49. // Oauth token in the header has been revoked.
  50. AuthenticationErrorEnum_OAUTH_TOKEN_REVOKED AuthenticationErrorEnum_AuthenticationError = 18
  51. // Oauth token HTTP header is malformed.
  52. AuthenticationErrorEnum_OAUTH_TOKEN_HEADER_INVALID AuthenticationErrorEnum_AuthenticationError = 19
  53. // Login cookie is not valid.
  54. AuthenticationErrorEnum_LOGIN_COOKIE_INVALID AuthenticationErrorEnum_AuthenticationError = 20
  55. // User Id in the header is not a valid id.
  56. AuthenticationErrorEnum_USER_ID_INVALID AuthenticationErrorEnum_AuthenticationError = 22
  57. // An account administrator changed this account's authentication settings.
  58. // To access this Google Ads account, enable 2-Step Verification in your
  59. // Google account at https://www.google.com/landing/2step.
  60. AuthenticationErrorEnum_TWO_STEP_VERIFICATION_NOT_ENROLLED AuthenticationErrorEnum_AuthenticationError = 23
  61. // An account administrator changed this account's authentication settings.
  62. // To access this Google Ads account, enable Advanced Protection in your
  63. // Google account at https://landing.google.com/advancedprotection.
  64. AuthenticationErrorEnum_ADVANCED_PROTECTION_NOT_ENROLLED AuthenticationErrorEnum_AuthenticationError = 24
  65. )
  66. var AuthenticationErrorEnum_AuthenticationError_name = map[int32]string{
  67. 0: "UNSPECIFIED",
  68. 1: "UNKNOWN",
  69. 2: "AUTHENTICATION_ERROR",
  70. 5: "CLIENT_CUSTOMER_ID_INVALID",
  71. 8: "CUSTOMER_NOT_FOUND",
  72. 9: "GOOGLE_ACCOUNT_DELETED",
  73. 10: "GOOGLE_ACCOUNT_COOKIE_INVALID",
  74. 25: "GOOGLE_ACCOUNT_AUTHENTICATION_FAILED",
  75. 12: "GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH",
  76. 13: "LOGIN_COOKIE_REQUIRED",
  77. 14: "NOT_ADS_USER",
  78. 15: "OAUTH_TOKEN_INVALID",
  79. 16: "OAUTH_TOKEN_EXPIRED",
  80. 17: "OAUTH_TOKEN_DISABLED",
  81. 18: "OAUTH_TOKEN_REVOKED",
  82. 19: "OAUTH_TOKEN_HEADER_INVALID",
  83. 20: "LOGIN_COOKIE_INVALID",
  84. 22: "USER_ID_INVALID",
  85. 23: "TWO_STEP_VERIFICATION_NOT_ENROLLED",
  86. 24: "ADVANCED_PROTECTION_NOT_ENROLLED",
  87. }
  88. var AuthenticationErrorEnum_AuthenticationError_value = map[string]int32{
  89. "UNSPECIFIED": 0,
  90. "UNKNOWN": 1,
  91. "AUTHENTICATION_ERROR": 2,
  92. "CLIENT_CUSTOMER_ID_INVALID": 5,
  93. "CUSTOMER_NOT_FOUND": 8,
  94. "GOOGLE_ACCOUNT_DELETED": 9,
  95. "GOOGLE_ACCOUNT_COOKIE_INVALID": 10,
  96. "GOOGLE_ACCOUNT_AUTHENTICATION_FAILED": 25,
  97. "GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH": 12,
  98. "LOGIN_COOKIE_REQUIRED": 13,
  99. "NOT_ADS_USER": 14,
  100. "OAUTH_TOKEN_INVALID": 15,
  101. "OAUTH_TOKEN_EXPIRED": 16,
  102. "OAUTH_TOKEN_DISABLED": 17,
  103. "OAUTH_TOKEN_REVOKED": 18,
  104. "OAUTH_TOKEN_HEADER_INVALID": 19,
  105. "LOGIN_COOKIE_INVALID": 20,
  106. "USER_ID_INVALID": 22,
  107. "TWO_STEP_VERIFICATION_NOT_ENROLLED": 23,
  108. "ADVANCED_PROTECTION_NOT_ENROLLED": 24,
  109. }
  110. func (x AuthenticationErrorEnum_AuthenticationError) String() string {
  111. return proto.EnumName(AuthenticationErrorEnum_AuthenticationError_name, int32(x))
  112. }
  113. func (AuthenticationErrorEnum_AuthenticationError) EnumDescriptor() ([]byte, []int) {
  114. return fileDescriptor_authentication_error_91bf0148374362f4, []int{0, 0}
  115. }
  116. // Container for enum describing possible authentication errors.
  117. type AuthenticationErrorEnum struct {
  118. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  119. XXX_unrecognized []byte `json:"-"`
  120. XXX_sizecache int32 `json:"-"`
  121. }
  122. func (m *AuthenticationErrorEnum) Reset() { *m = AuthenticationErrorEnum{} }
  123. func (m *AuthenticationErrorEnum) String() string { return proto.CompactTextString(m) }
  124. func (*AuthenticationErrorEnum) ProtoMessage() {}
  125. func (*AuthenticationErrorEnum) Descriptor() ([]byte, []int) {
  126. return fileDescriptor_authentication_error_91bf0148374362f4, []int{0}
  127. }
  128. func (m *AuthenticationErrorEnum) XXX_Unmarshal(b []byte) error {
  129. return xxx_messageInfo_AuthenticationErrorEnum.Unmarshal(m, b)
  130. }
  131. func (m *AuthenticationErrorEnum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  132. return xxx_messageInfo_AuthenticationErrorEnum.Marshal(b, m, deterministic)
  133. }
  134. func (dst *AuthenticationErrorEnum) XXX_Merge(src proto.Message) {
  135. xxx_messageInfo_AuthenticationErrorEnum.Merge(dst, src)
  136. }
  137. func (m *AuthenticationErrorEnum) XXX_Size() int {
  138. return xxx_messageInfo_AuthenticationErrorEnum.Size(m)
  139. }
  140. func (m *AuthenticationErrorEnum) XXX_DiscardUnknown() {
  141. xxx_messageInfo_AuthenticationErrorEnum.DiscardUnknown(m)
  142. }
  143. var xxx_messageInfo_AuthenticationErrorEnum proto.InternalMessageInfo
  144. func init() {
  145. proto.RegisterType((*AuthenticationErrorEnum)(nil), "google.ads.googleads.v1.errors.AuthenticationErrorEnum")
  146. proto.RegisterEnum("google.ads.googleads.v1.errors.AuthenticationErrorEnum_AuthenticationError", AuthenticationErrorEnum_AuthenticationError_name, AuthenticationErrorEnum_AuthenticationError_value)
  147. }
  148. func init() {
  149. proto.RegisterFile("google/ads/googleads/v1/errors/authentication_error.proto", fileDescriptor_authentication_error_91bf0148374362f4)
  150. }
  151. var fileDescriptor_authentication_error_91bf0148374362f4 = []byte{
  152. // 558 bytes of a gzipped FileDescriptorProto
  153. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x53, 0xdd, 0x6e, 0xd3, 0x30,
  154. 0x14, 0x66, 0x65, 0xfc, 0x79, 0x83, 0x19, 0x77, 0xec, 0x4f, 0x30, 0x41, 0x35, 0x21, 0xb8, 0x20,
  155. 0x51, 0xc5, 0x15, 0xe1, 0xca, 0x8b, 0x4f, 0x3b, 0xab, 0x99, 0x1d, 0x12, 0x27, 0x43, 0xa8, 0x92,
  156. 0x15, 0xd6, 0x2a, 0x54, 0xda, 0x92, 0xa9, 0xe9, 0xf6, 0x40, 0x5c, 0xf2, 0x28, 0x88, 0x07, 0x41,
  157. 0xdc, 0xf2, 0x02, 0xc8, 0xc9, 0x12, 0x6d, 0x61, 0x70, 0xd5, 0x53, 0x7f, 0x3f, 0xe7, 0xf3, 0xc9,
  158. 0x31, 0x7a, 0x97, 0xe6, 0x79, 0x7a, 0x32, 0xb5, 0x93, 0x49, 0x61, 0x57, 0xa5, 0xa9, 0x2e, 0xfa,
  159. 0xf6, 0x74, 0x3e, 0xcf, 0xe7, 0x85, 0x9d, 0x9c, 0x2f, 0xbe, 0x4c, 0xb3, 0xc5, 0xec, 0x38, 0x59,
  160. 0xcc, 0xf2, 0x4c, 0x97, 0xa7, 0xd6, 0xd9, 0x3c, 0x5f, 0xe4, 0x64, 0xb7, 0xe2, 0x5b, 0xc9, 0xa4,
  161. 0xb0, 0x1a, 0xa9, 0x75, 0xd1, 0xb7, 0x2a, 0xe9, 0xce, 0xd3, 0xda, 0xfa, 0x6c, 0x66, 0x27, 0x59,
  162. 0x96, 0x2f, 0x4a, 0x8b, 0xa2, 0x52, 0xf7, 0x7e, 0x2e, 0xa3, 0x4d, 0x7a, 0xcd, 0x1c, 0x8c, 0x0c,
  163. 0xb2, 0xf3, 0xd3, 0xde, 0x8f, 0x65, 0xd4, 0xbd, 0x01, 0x23, 0x6b, 0x68, 0x25, 0x12, 0xa1, 0x0f,
  164. 0x2e, 0x1f, 0x70, 0x60, 0xf8, 0x16, 0x59, 0x41, 0xf7, 0x22, 0x31, 0x12, 0xf2, 0x48, 0xe0, 0x25,
  165. 0xb2, 0x85, 0xd6, 0x69, 0xa4, 0x0e, 0x40, 0x28, 0xee, 0x52, 0xc5, 0xa5, 0xd0, 0x10, 0x04, 0x32,
  166. 0xc0, 0x1d, 0xb2, 0x8b, 0x76, 0x5c, 0x8f, 0x83, 0x50, 0xda, 0x8d, 0x42, 0x25, 0x0f, 0x21, 0xd0,
  167. 0x9c, 0x69, 0x2e, 0x62, 0xea, 0x71, 0x86, 0xef, 0x90, 0x0d, 0x44, 0x1a, 0x40, 0x48, 0xa5, 0x07,
  168. 0x32, 0x12, 0x0c, 0xdf, 0x27, 0x3b, 0x68, 0x63, 0x28, 0xe5, 0xd0, 0x03, 0x4d, 0x5d, 0x57, 0x46,
  169. 0x42, 0x69, 0x06, 0x1e, 0x28, 0x60, 0xf8, 0x01, 0x79, 0x81, 0x9e, 0xb5, 0x30, 0x57, 0xca, 0x11,
  170. 0x87, 0xc6, 0x16, 0x91, 0x57, 0x68, 0xaf, 0x45, 0x69, 0xe5, 0x1b, 0x50, 0xee, 0x01, 0xc3, 0xdb,
  171. 0xe4, 0x0d, 0x7a, 0xdd, 0x62, 0x46, 0x21, 0x04, 0x9a, 0x0a, 0xa6, 0x29, 0x0b, 0xab, 0x3f, 0x87,
  172. 0x3c, 0x3c, 0xa4, 0xca, 0x3d, 0xc0, 0xab, 0x64, 0x1b, 0x3d, 0xf1, 0xe4, 0x90, 0x8b, 0xba, 0x65,
  173. 0x00, 0x1f, 0x22, 0x1e, 0x00, 0xc3, 0x0f, 0x09, 0x46, 0xab, 0xe6, 0x06, 0xb5, 0x0a, 0x3f, 0x22,
  174. 0x9b, 0xa8, 0x2b, 0x4d, 0x5f, 0xad, 0xe4, 0x08, 0x44, 0x13, 0x6f, 0xad, 0x0d, 0xc0, 0x47, 0xbf,
  175. 0xf4, 0xc0, 0x66, 0x90, 0x57, 0x01, 0xc6, 0x43, 0xba, 0x6f, 0x72, 0x3e, 0x6e, 0x4b, 0x02, 0x88,
  176. 0xe5, 0x08, 0x18, 0x26, 0x66, 0xc2, 0x57, 0x81, 0x03, 0xa0, 0xcc, 0x0c, 0xf9, 0xb2, 0x57, 0xd7,
  177. 0x58, 0x5e, 0x4b, 0x5c, 0x23, 0xeb, 0xa4, 0x8b, 0xd6, 0xca, 0xeb, 0x5d, 0xf9, 0x20, 0x1b, 0xe4,
  178. 0x25, 0xea, 0xa9, 0x23, 0xa9, 0x43, 0x05, 0xbe, 0x8e, 0x21, 0xe0, 0x83, 0x7a, 0x62, 0xe6, 0x6e,
  179. 0x20, 0x02, 0xe9, 0x99, 0x3c, 0x9b, 0x64, 0x0f, 0x3d, 0xa7, 0x2c, 0xa6, 0xc2, 0x05, 0xa6, 0xfd,
  180. 0x40, 0x2a, 0x70, 0xff, 0x66, 0x6d, 0xed, 0xff, 0x5e, 0x42, 0xbd, 0xe3, 0xfc, 0xd4, 0xfa, 0xff,
  181. 0xbe, 0xee, 0x6f, 0xdd, 0xb0, 0x72, 0xbe, 0xd9, 0x55, 0x7f, 0xe9, 0x13, 0xbb, 0xd4, 0xa6, 0xf9,
  182. 0x49, 0x92, 0xa5, 0x56, 0x3e, 0x4f, 0xed, 0x74, 0x9a, 0x95, 0x9b, 0x5c, 0x3f, 0x9b, 0xb3, 0x59,
  183. 0xf1, 0xaf, 0x57, 0xf4, 0xbe, 0xfa, 0xf9, 0xda, 0xb9, 0x3d, 0xa4, 0xf4, 0x5b, 0x67, 0x77, 0x58,
  184. 0x99, 0xd1, 0x49, 0x61, 0x55, 0xa5, 0xa9, 0xe2, 0xbe, 0x55, 0xb6, 0x2c, 0xbe, 0xd7, 0x84, 0x31,
  185. 0x9d, 0x14, 0xe3, 0x86, 0x30, 0x8e, 0xfb, 0xe3, 0x8a, 0xf0, 0xab, 0xd3, 0xab, 0x4e, 0x1d, 0x87,
  186. 0x4e, 0x0a, 0xc7, 0x69, 0x28, 0x8e, 0x13, 0xf7, 0x1d, 0xa7, 0x22, 0x7d, 0xbe, 0x5b, 0xa6, 0x7b,
  187. 0xfb, 0x27, 0x00, 0x00, 0xff, 0xff, 0xc1, 0xb7, 0xd1, 0x26, 0xe2, 0x03, 0x00, 0x00,
  188. }