You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

159 lines
8.2 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/ads/googleads/v1/errors/authorization_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 authorization errors.
  18. type AuthorizationErrorEnum_AuthorizationError int32
  19. const (
  20. // Enum unspecified.
  21. AuthorizationErrorEnum_UNSPECIFIED AuthorizationErrorEnum_AuthorizationError = 0
  22. // The received error code is not known in this version.
  23. AuthorizationErrorEnum_UNKNOWN AuthorizationErrorEnum_AuthorizationError = 1
  24. // User doesn't have permission to access customer.
  25. AuthorizationErrorEnum_USER_PERMISSION_DENIED AuthorizationErrorEnum_AuthorizationError = 2
  26. // The developer token is not whitelisted.
  27. AuthorizationErrorEnum_DEVELOPER_TOKEN_NOT_WHITELISTED AuthorizationErrorEnum_AuthorizationError = 3
  28. // The developer token is not allowed with the project sent in the request.
  29. AuthorizationErrorEnum_DEVELOPER_TOKEN_PROHIBITED AuthorizationErrorEnum_AuthorizationError = 4
  30. // The Google Cloud project sent in the request does not have permission to
  31. // access the api.
  32. AuthorizationErrorEnum_PROJECT_DISABLED AuthorizationErrorEnum_AuthorizationError = 5
  33. // Authorization of the client failed.
  34. AuthorizationErrorEnum_AUTHORIZATION_ERROR AuthorizationErrorEnum_AuthorizationError = 6
  35. // The user does not have permission to perform this action
  36. // (e.g., ADD, UPDATE, REMOVE) on the resource or call a method.
  37. AuthorizationErrorEnum_ACTION_NOT_PERMITTED AuthorizationErrorEnum_AuthorizationError = 7
  38. // Signup not complete.
  39. AuthorizationErrorEnum_INCOMPLETE_SIGNUP AuthorizationErrorEnum_AuthorizationError = 8
  40. // The customer can't be used because it isn't enabled.
  41. AuthorizationErrorEnum_CUSTOMER_NOT_ENABLED AuthorizationErrorEnum_AuthorizationError = 24
  42. // The developer must sign the terms of service. They can be found here:
  43. // ads.google.com/aw/apicenter
  44. AuthorizationErrorEnum_MISSING_TOS AuthorizationErrorEnum_AuthorizationError = 9
  45. )
  46. var AuthorizationErrorEnum_AuthorizationError_name = map[int32]string{
  47. 0: "UNSPECIFIED",
  48. 1: "UNKNOWN",
  49. 2: "USER_PERMISSION_DENIED",
  50. 3: "DEVELOPER_TOKEN_NOT_WHITELISTED",
  51. 4: "DEVELOPER_TOKEN_PROHIBITED",
  52. 5: "PROJECT_DISABLED",
  53. 6: "AUTHORIZATION_ERROR",
  54. 7: "ACTION_NOT_PERMITTED",
  55. 8: "INCOMPLETE_SIGNUP",
  56. 24: "CUSTOMER_NOT_ENABLED",
  57. 9: "MISSING_TOS",
  58. }
  59. var AuthorizationErrorEnum_AuthorizationError_value = map[string]int32{
  60. "UNSPECIFIED": 0,
  61. "UNKNOWN": 1,
  62. "USER_PERMISSION_DENIED": 2,
  63. "DEVELOPER_TOKEN_NOT_WHITELISTED": 3,
  64. "DEVELOPER_TOKEN_PROHIBITED": 4,
  65. "PROJECT_DISABLED": 5,
  66. "AUTHORIZATION_ERROR": 6,
  67. "ACTION_NOT_PERMITTED": 7,
  68. "INCOMPLETE_SIGNUP": 8,
  69. "CUSTOMER_NOT_ENABLED": 24,
  70. "MISSING_TOS": 9,
  71. }
  72. func (x AuthorizationErrorEnum_AuthorizationError) String() string {
  73. return proto.EnumName(AuthorizationErrorEnum_AuthorizationError_name, int32(x))
  74. }
  75. func (AuthorizationErrorEnum_AuthorizationError) EnumDescriptor() ([]byte, []int) {
  76. return fileDescriptor_authorization_error_564df7b235bd6f5e, []int{0, 0}
  77. }
  78. // Container for enum describing possible authorization errors.
  79. type AuthorizationErrorEnum struct {
  80. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  81. XXX_unrecognized []byte `json:"-"`
  82. XXX_sizecache int32 `json:"-"`
  83. }
  84. func (m *AuthorizationErrorEnum) Reset() { *m = AuthorizationErrorEnum{} }
  85. func (m *AuthorizationErrorEnum) String() string { return proto.CompactTextString(m) }
  86. func (*AuthorizationErrorEnum) ProtoMessage() {}
  87. func (*AuthorizationErrorEnum) Descriptor() ([]byte, []int) {
  88. return fileDescriptor_authorization_error_564df7b235bd6f5e, []int{0}
  89. }
  90. func (m *AuthorizationErrorEnum) XXX_Unmarshal(b []byte) error {
  91. return xxx_messageInfo_AuthorizationErrorEnum.Unmarshal(m, b)
  92. }
  93. func (m *AuthorizationErrorEnum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  94. return xxx_messageInfo_AuthorizationErrorEnum.Marshal(b, m, deterministic)
  95. }
  96. func (dst *AuthorizationErrorEnum) XXX_Merge(src proto.Message) {
  97. xxx_messageInfo_AuthorizationErrorEnum.Merge(dst, src)
  98. }
  99. func (m *AuthorizationErrorEnum) XXX_Size() int {
  100. return xxx_messageInfo_AuthorizationErrorEnum.Size(m)
  101. }
  102. func (m *AuthorizationErrorEnum) XXX_DiscardUnknown() {
  103. xxx_messageInfo_AuthorizationErrorEnum.DiscardUnknown(m)
  104. }
  105. var xxx_messageInfo_AuthorizationErrorEnum proto.InternalMessageInfo
  106. func init() {
  107. proto.RegisterType((*AuthorizationErrorEnum)(nil), "google.ads.googleads.v1.errors.AuthorizationErrorEnum")
  108. proto.RegisterEnum("google.ads.googleads.v1.errors.AuthorizationErrorEnum_AuthorizationError", AuthorizationErrorEnum_AuthorizationError_name, AuthorizationErrorEnum_AuthorizationError_value)
  109. }
  110. func init() {
  111. proto.RegisterFile("google/ads/googleads/v1/errors/authorization_error.proto", fileDescriptor_authorization_error_564df7b235bd6f5e)
  112. }
  113. var fileDescriptor_authorization_error_564df7b235bd6f5e = []byte{
  114. // 449 bytes of a gzipped FileDescriptorProto
  115. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x4f, 0x6f, 0xd3, 0x30,
  116. 0x18, 0xc6, 0x69, 0x06, 0x1b, 0x78, 0x07, 0x82, 0x19, 0xdb, 0x54, 0xa1, 0x22, 0x95, 0x7b, 0xa2,
  117. 0x88, 0x0b, 0x0a, 0x27, 0x37, 0x79, 0x69, 0xcd, 0x5a, 0x3b, 0x72, 0x9c, 0x4e, 0x9a, 0x2a, 0x45,
  118. 0x81, 0x54, 0xa1, 0xd2, 0x16, 0x57, 0x71, 0xb7, 0x03, 0x1f, 0x86, 0x03, 0x47, 0xbe, 0x01, 0x5f,
  119. 0x81, 0x8f, 0xc2, 0x91, 0x4f, 0x80, 0x6c, 0xd3, 0x0a, 0x51, 0xc1, 0xc9, 0xaf, 0x5e, 0xff, 0x9e,
  120. 0xe7, 0xf1, 0x9f, 0x17, 0xbd, 0x6e, 0x94, 0x6a, 0xae, 0x97, 0x61, 0x55, 0xeb, 0xd0, 0x95, 0xa6,
  121. 0xba, 0x8b, 0xc2, 0x65, 0xd7, 0xa9, 0x4e, 0x87, 0xd5, 0xed, 0xe6, 0xa3, 0xea, 0x56, 0x9f, 0xaa,
  122. 0xcd, 0x4a, 0xb5, 0xa5, 0x6d, 0x06, 0xeb, 0x4e, 0x6d, 0x14, 0x1e, 0x38, 0x3c, 0xa8, 0x6a, 0x1d,
  123. 0xec, 0x94, 0xc1, 0x5d, 0x14, 0x38, 0x65, 0xff, 0xf9, 0xd6, 0x79, 0xbd, 0x0a, 0xab, 0xb6, 0x55,
  124. 0x1b, 0x6b, 0xa1, 0x9d, 0x7a, 0xf8, 0xcd, 0x43, 0xa7, 0xe4, 0x4f, 0x6f, 0x30, 0x2a, 0x68, 0x6f,
  125. 0x6f, 0x86, 0x9f, 0x3d, 0x84, 0xf7, 0xb7, 0xf0, 0x63, 0x74, 0x5c, 0xb0, 0x3c, 0x83, 0x84, 0xbe,
  126. 0xa5, 0x90, 0xfa, 0xf7, 0xf0, 0x31, 0x3a, 0x2a, 0xd8, 0x05, 0xe3, 0x97, 0xcc, 0xef, 0xe1, 0x3e,
  127. 0x3a, 0x2d, 0x72, 0x10, 0x65, 0x06, 0x62, 0x46, 0xf3, 0x9c, 0x72, 0x56, 0xa6, 0xc0, 0x0c, 0xe8,
  128. 0xe1, 0x97, 0xe8, 0x45, 0x0a, 0x73, 0x98, 0xf2, 0x0c, 0x44, 0x29, 0xf9, 0x05, 0xb0, 0x92, 0x71,
  129. 0x59, 0x5e, 0x4e, 0xa8, 0x84, 0x29, 0xcd, 0x25, 0xa4, 0xfe, 0x01, 0x1e, 0xa0, 0xfe, 0xdf, 0x50,
  130. 0x26, 0xf8, 0x84, 0x8e, 0xa8, 0xd9, 0xbf, 0x8f, 0x4f, 0x90, 0x9f, 0x09, 0xfe, 0x0e, 0x12, 0x59,
  131. 0xa6, 0x34, 0x27, 0xa3, 0x29, 0xa4, 0xfe, 0x03, 0x7c, 0x86, 0x9e, 0x92, 0x42, 0x4e, 0xb8, 0xa0,
  132. 0x57, 0x44, 0x9a, 0x50, 0x10, 0x82, 0x0b, 0xff, 0x10, 0x9f, 0xa3, 0x13, 0x92, 0xd8, 0x8e, 0x89,
  133. 0xb2, 0xa7, 0x92, 0xc6, 0xe8, 0x08, 0x3f, 0x43, 0x4f, 0x28, 0x4b, 0xf8, 0x2c, 0x9b, 0x82, 0x84,
  134. 0x32, 0xa7, 0x63, 0x56, 0x64, 0xfe, 0x43, 0x23, 0x48, 0x8a, 0x5c, 0xf2, 0x19, 0x08, 0x2b, 0x01,
  135. 0xe6, 0x32, 0xce, 0xcd, 0xc5, 0xed, 0x95, 0xd8, 0xb8, 0x94, 0x3c, 0xf7, 0x1f, 0x8d, 0x7e, 0xf6,
  136. 0xd0, 0xf0, 0x83, 0xba, 0x09, 0xfe, 0xff, 0x01, 0xa3, 0xb3, 0xfd, 0x47, 0xcc, 0xcc, 0xdb, 0x67,
  137. 0xbd, 0xab, 0xf4, 0xb7, 0xb4, 0x51, 0xd7, 0x55, 0xdb, 0x04, 0xaa, 0x6b, 0xc2, 0x66, 0xd9, 0xda,
  138. 0x9f, 0xd9, 0x4e, 0xc1, 0x7a, 0xa5, 0xff, 0x35, 0x14, 0x6f, 0xdc, 0xf2, 0xc5, 0x3b, 0x18, 0x13,
  139. 0xf2, 0xd5, 0x1b, 0x8c, 0x9d, 0x19, 0xa9, 0x75, 0xe0, 0x4a, 0x53, 0xcd, 0xa3, 0xc0, 0x46, 0xea,
  140. 0xef, 0x5b, 0x60, 0x41, 0x6a, 0xbd, 0xd8, 0x01, 0x8b, 0x79, 0xb4, 0x70, 0xc0, 0x0f, 0x6f, 0xe8,
  141. 0xba, 0x71, 0x4c, 0x6a, 0x1d, 0xc7, 0x3b, 0x24, 0x8e, 0xe7, 0x51, 0x1c, 0x3b, 0xe8, 0xfd, 0xa1,
  142. 0x3d, 0xdd, 0xab, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x41, 0x24, 0xf0, 0x86, 0xb1, 0x02, 0x00,
  143. 0x00,
  144. }