Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 

165 рядки
6.7 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/talent/v4beta1/tenant.proto
  3. package talent // import "google.golang.org/genproto/googleapis/cloud/talent/v4beta1"
  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 that represents how user data owned by the tenant is used.
  18. type Tenant_DataUsageType int32
  19. const (
  20. // Default value.
  21. Tenant_DATA_USAGE_TYPE_UNSPECIFIED Tenant_DataUsageType = 0
  22. // Data owned by this tenant is used to improve search/recommendation
  23. // quality across tenants.
  24. Tenant_AGGREGATED Tenant_DataUsageType = 1
  25. // Data owned by this tenant is used to improve search/recommendation
  26. // quality for this tenant only.
  27. Tenant_ISOLATED Tenant_DataUsageType = 2
  28. )
  29. var Tenant_DataUsageType_name = map[int32]string{
  30. 0: "DATA_USAGE_TYPE_UNSPECIFIED",
  31. 1: "AGGREGATED",
  32. 2: "ISOLATED",
  33. }
  34. var Tenant_DataUsageType_value = map[string]int32{
  35. "DATA_USAGE_TYPE_UNSPECIFIED": 0,
  36. "AGGREGATED": 1,
  37. "ISOLATED": 2,
  38. }
  39. func (x Tenant_DataUsageType) String() string {
  40. return proto.EnumName(Tenant_DataUsageType_name, int32(x))
  41. }
  42. func (Tenant_DataUsageType) EnumDescriptor() ([]byte, []int) {
  43. return fileDescriptor_tenant_a58ed01536a3d383, []int{0, 0}
  44. }
  45. // A Tenant resource represents a tenant in the service. A tenant is a group or
  46. // entity that shares common access with specific privileges for resources like
  47. // profiles. Customer may create multiple tenants to provide data isolation for
  48. // different groups.
  49. type Tenant struct {
  50. // Required during tenant update.
  51. //
  52. // The resource name for a tenant. This is generated by the service when a
  53. // tenant is created.
  54. //
  55. // The format is "projects/{project_id}/tenants/{tenant_id}", for example,
  56. // "projects/api-test-project/tenants/foo".
  57. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  58. // Required.
  59. //
  60. // Client side tenant identifier, used to uniquely identify the tenant.
  61. //
  62. // The maximum number of allowed characters is 255.
  63. ExternalId string `protobuf:"bytes,2,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
  64. // Optional.
  65. //
  66. // Indicates whether data owned by this tenant may be used to provide product
  67. // improvements across other tenants.
  68. //
  69. // Defaults behavior is
  70. // [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED]
  71. // if it's unset.
  72. UsageType Tenant_DataUsageType `protobuf:"varint,3,opt,name=usage_type,json=usageType,proto3,enum=google.cloud.talent.v4beta1.Tenant_DataUsageType" json:"usage_type,omitempty"`
  73. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  74. XXX_unrecognized []byte `json:"-"`
  75. XXX_sizecache int32 `json:"-"`
  76. }
  77. func (m *Tenant) Reset() { *m = Tenant{} }
  78. func (m *Tenant) String() string { return proto.CompactTextString(m) }
  79. func (*Tenant) ProtoMessage() {}
  80. func (*Tenant) Descriptor() ([]byte, []int) {
  81. return fileDescriptor_tenant_a58ed01536a3d383, []int{0}
  82. }
  83. func (m *Tenant) XXX_Unmarshal(b []byte) error {
  84. return xxx_messageInfo_Tenant.Unmarshal(m, b)
  85. }
  86. func (m *Tenant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  87. return xxx_messageInfo_Tenant.Marshal(b, m, deterministic)
  88. }
  89. func (dst *Tenant) XXX_Merge(src proto.Message) {
  90. xxx_messageInfo_Tenant.Merge(dst, src)
  91. }
  92. func (m *Tenant) XXX_Size() int {
  93. return xxx_messageInfo_Tenant.Size(m)
  94. }
  95. func (m *Tenant) XXX_DiscardUnknown() {
  96. xxx_messageInfo_Tenant.DiscardUnknown(m)
  97. }
  98. var xxx_messageInfo_Tenant proto.InternalMessageInfo
  99. func (m *Tenant) GetName() string {
  100. if m != nil {
  101. return m.Name
  102. }
  103. return ""
  104. }
  105. func (m *Tenant) GetExternalId() string {
  106. if m != nil {
  107. return m.ExternalId
  108. }
  109. return ""
  110. }
  111. func (m *Tenant) GetUsageType() Tenant_DataUsageType {
  112. if m != nil {
  113. return m.UsageType
  114. }
  115. return Tenant_DATA_USAGE_TYPE_UNSPECIFIED
  116. }
  117. func init() {
  118. proto.RegisterType((*Tenant)(nil), "google.cloud.talent.v4beta1.Tenant")
  119. proto.RegisterEnum("google.cloud.talent.v4beta1.Tenant_DataUsageType", Tenant_DataUsageType_name, Tenant_DataUsageType_value)
  120. }
  121. func init() {
  122. proto.RegisterFile("google/cloud/talent/v4beta1/tenant.proto", fileDescriptor_tenant_a58ed01536a3d383)
  123. }
  124. var fileDescriptor_tenant_a58ed01536a3d383 = []byte{
  125. // 329 bytes of a gzipped FileDescriptorProto
  126. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0x41, 0x6b, 0xea, 0x40,
  127. 0x14, 0x85, 0xdf, 0xe8, 0x43, 0x9e, 0xf3, 0xde, 0x13, 0x99, 0x6e, 0x44, 0x0b, 0x8a, 0x2b, 0x57,
  128. 0x33, 0xd8, 0x76, 0xd7, 0x55, 0x34, 0x69, 0x08, 0x14, 0x1b, 0x92, 0xb8, 0x68, 0x37, 0x61, 0x8c,
  129. 0xc3, 0x10, 0x48, 0xe6, 0x86, 0x64, 0x52, 0xea, 0xb2, 0x7f, 0xa5, 0x7f, 0xac, 0x7f, 0xa5, 0x38,
  130. 0xa3, 0x8b, 0x42, 0x71, 0x77, 0xef,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 0x8f, 0x3c, 0xdf, 0x49, 0x3c, 0x77, 0x88, 0xc8, 0x3f, 0xfc, 0x27, 0x88,
  142. 0x9f, 0x1e, 0xcd, 0xd6, 0x59, 0xbd, 0x23, 0x3c, 0xcd, 0xa0, 0xbc, 0x94, 0x69, 0x75, 0x65, 0x43,
  143. 0x45, 0xa2, 0x81, 0xb6, 0xce, 0x44, 0x78, 0xac, 0x26, 0x44, 0x2f, 0xce, 0x49, 0x23, 0xa1, 0xe0,
  144. 0x4a, 0x52, 0xa8, 0x25, 0x93, 0x42, 0x99, 0xe2, 0x98, 0x3d, 0xf1, 0x2a, 0x6f, 0x7e, 0x6c, 0xf9,
  145. 0xde, 0xae, 0x1f, 0x9d, 0xee, 0x3a, 0x89, 0x77, 0x3d, 0xa3, 0xb9, 0xfd, 0x0a, 0x00, 0x00, 0xff,
  146. 0xff, 0xd9, 0xf1, 0x67, 0xd5, 0xfd, 0x01, 0x00, 0x00,
  147. }